diff --git a/modules/.DS_Store b/modules/.DS_Store index ec17aff0..99b5b4c9 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 051cdf09..5c39d0b6 100644 Binary files a/modules/ai/.DS_Store and b/modules/ai/.DS_Store differ diff --git a/modules/ai/pom.xml b/modules/ai/pom.xml index 161a588e..7bbf2d2a 100644 --- a/modules/ai/pom.xml +++ b/modules/ai/pom.xml @@ -79,14 +79,6 @@ release-V4-2.3.0 - - - com.google.protobuf - protobuf-java - 3.25.2 - provided - - org.springframework.boot diff --git a/modules/ai/src/main/java/com/bytedesk/ai/moonshot/MoonshotController.java b/modules/ai/src/main/java/com/bytedesk/ai/moonshot/MoonshotController.java index b6fe135c..ef668ee9 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/moonshot/MoonshotController.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/moonshot/MoonshotController.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-08-19 21:16:26 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-28 09:29:01 + * @LastEditTime: 2024-08-28 09:29: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. 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 09073e43..22b8e10b 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-08-26 06:10:25 + * @LastEditTime: 2024-08-30 08:34: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. @@ -14,15 +14,10 @@ */ package com.bytedesk.ai.robot; -import org.hibernate.annotations.JdbcTypeCode; -import org.hibernate.type.SqlTypes; - import com.bytedesk.ai.settings.RobotServiceSettings; import com.bytedesk.core.base.BaseEntity; import com.bytedesk.core.constant.AvatarConsts; -import com.bytedesk.core.constant.BdConstants; import com.bytedesk.core.constant.I18Consts; -import com.bytedesk.core.constant.TypeConsts; import com.bytedesk.core.enums.LevelEnum; import jakarta.persistence.Column; import jakarta.persistence.Embedded; @@ -53,7 +48,8 @@ public class Robot extends BaseEntity { private static final long serialVersionUID = 1L; - private String nickname; + @Builder.Default + private String nickname = I18Consts.I18N_ROBOT_NICKNAME; @Builder.Default private String avatar = AvatarConsts.DEFAULT_AVATAR_URL; @@ -69,6 +65,10 @@ public class Robot extends BaseEntity { @Builder.Default private RobotLlm llm = new RobotLlm(); + @Embedded + @Builder.Default + private RobotFlow flow = new RobotFlow(); + // 如果未匹配到关键词,默认回复内容 @Builder.Default private String defaultReply = I18Consts.I18N_ROBOT_REPLY; @@ -86,10 +86,10 @@ public class Robot extends BaseEntity { // private LevelEnum level = LevelEnum.ORGNIZATION; private String level = LevelEnum.ORGNIZATION.name(); - @Builder.Default - @Column(columnDefinition = TypeConsts.COLUMN_TYPE_JSON) - @JdbcTypeCode(SqlTypes.JSON) - private String flow = BdConstants.EMPTY_JSON_STRING; + // @Builder.Default + // @Column(columnDefinition = TypeConsts.COLUMN_TYPE_JSON) + // @JdbcTypeCode(SqlTypes.JSON) + // private String flow = BdConstants.EMPTY_JSON_STRING; @Builder.Default private boolean published = false; diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotEventListener.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotEventListener.java index 3e71ce14..041c9d2e 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotEventListener.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-06-12 07:17:13 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-19 16:51:10 + * @LastEditTime: 2024-09-07 18:49: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. @@ -15,9 +15,7 @@ package com.bytedesk.ai.robot; import java.io.IOException; -import java.util.Arrays; import java.util.Date; -import java.util.List; import java.util.Optional; import org.springframework.context.event.EventListener; @@ -30,19 +28,22 @@ import com.alibaba.fastjson2.JSONObject; import com.bytedesk.ai.utils.ConvertAiUtils; import com.bytedesk.ai.zhipuai.ZhipuaiService; -import com.bytedesk.core.config.BytedeskEventPublisher; +import com.bytedesk.core.config.BytedeskProperties; import com.bytedesk.core.constant.BdConstants; -import com.bytedesk.core.constant.I18Consts; import com.bytedesk.core.enums.ClientEnum; +import com.bytedesk.core.message.MessageCache; import com.bytedesk.core.message.MessageExtra; import com.bytedesk.core.message.MessageJsonEvent; import com.bytedesk.core.message.MessageProtoEvent; import com.bytedesk.core.message.MessageProtobuf; import com.bytedesk.core.message.MessageStatusEnum; import com.bytedesk.core.message.MessageTypeEnum; +import com.bytedesk.core.message.MessageUtils; import com.bytedesk.core.rbac.organization.Organization; import com.bytedesk.core.rbac.organization.OrganizationCreateEvent; import com.bytedesk.core.rbac.user.UserProtobuf; +import com.bytedesk.core.rbac.user.UserTypeEnum; +import com.bytedesk.core.redis.pubsub.RedisPubsubService; import com.bytedesk.core.socket.protobuf.model.MessageProto; import com.bytedesk.core.thread.ThreadCreateEvent; import com.bytedesk.core.thread.ThreadProtobuf; @@ -65,41 +66,57 @@ public class RobotEventListener { private final ZhipuaiService zhipuaiService; - private final BytedeskEventPublisher bytedeskEventPublisher; + // private final BytedeskEventPublisher bytedeskEventPublisher; private final UidUtils uidUtils; private final ThreadService threadService; + private final RedisPubsubService redisPubsubService; + + private final BytedeskProperties bytedeskProperties; + + private final MessageCache messageCache; + @Order(5) @EventListener public void onOrganizationCreateEvent(OrganizationCreateEvent event) { Organization organization = (Organization) event.getSource(); - // User user = organization.getUser(); String orgUid = organization.getUid(); log.info("robot - organization created: {}", organization.getName()); // - List faqUids = Arrays.asList( - orgUid + I18Consts.I18N_FAQ_DEMO_TITLE_1, - orgUid + I18Consts.I18N_FAQ_DEMO_TITLE_2); - // - // List quickButtonUids = Arrays.asList( - // orgUid + I18Consts.I18N_QUICK_BUTTON_DEMO_TITLE_1, - // orgUid + I18Consts.I18N_QUICK_BUTTON_DEMO_TITLE_2); - // - RobotRequest robotRequest = RobotRequest.builder() - .nickname(I18Consts.I18N_ROBOT_NICKNAME) - .description(I18Consts.I18N_ROBOT_DESCRIPTION) - // .kb(kb) - // .llm(llm) - .build(); - robotRequest.setType(RobotTypeEnum.SERVICE.name()); - robotRequest.setOrgUid(orgUid); - // - robotRequest.getServiceSettings().setFaqUids(faqUids); - robotRequest.getServiceSettings().setQuickFaqUids(faqUids); + robotService.createDefaultRobot(orgUid, uidUtils.getCacheSerialUid()); + robotService.createDefaultAgentAsistantRobot(orgUid); + } + + // + @EventListener + public void onThreadCreateEvent(ThreadCreateEvent event) { + Thread thread = event.getThread(); + log.info("robot ThreadCreateEvent: {}", thread.getUid()); // - robotService.create(robotRequest); + if (thread.getType().equals(ThreadTypeEnum.ROBOT.name()) + && thread.getAgent().equals(BdConstants.EMPTY_JSON_STRING)) { + // 机器人会话:org/robot/{robot_uid}/{visitor_uid} + String topic = thread.getTopic(); + // + String[] splits = topic.split("/"); + if (splits.length < 4) { + throw new RuntimeException("robot topic format error"); + } + String robotUid = splits[2]; + Optional robotOptional = robotService.findByUid(robotUid); + if (robotOptional.isPresent()) { + Robot robot = robotOptional.get(); + // 更新机器人配置+大模型相关信息 + thread.setExtra(JSON.toJSONString(ConvertAiUtils.convertToServiceSettingsResponseVisitor( + robot.getServiceSettings()))); + thread.setAgent(JSON.toJSONString(ConvertAiUtils.convertToRobotProtobuf(robot))); + // + threadService.save(thread); + } + } + } @EventListener @@ -132,11 +149,15 @@ public void onMessageProtoEvent(MessageProtoEvent event) { private void processMessage(String messageJson) { MessageProtobuf messageProtobuf = JSON.parseObject(messageJson, MessageProtobuf.class); MessageTypeEnum messageType = messageProtobuf.getType(); + if (messageType.equals(MessageTypeEnum.STREAM)) { + // ai回答暂不处理 + return; + } String query = messageProtobuf.getContent(); log.info("robot processMessage {}", query); // - ThreadProtobuf thread = messageProtobuf.getThread(); - if (thread == null) { + ThreadProtobuf threadProtobuf = messageProtobuf.getThread(); + if (threadProtobuf == null) { throw new RuntimeException("thread is null"); } // 仅针对文本类型自动回复 @@ -144,12 +165,11 @@ private void processMessage(String messageJson) { return; } // - String threadTopic = thread.getTopic(); - log.info("robot threadTopic {}, thread.type {}", threadTopic, thread.getType()); - if (thread.getType().equals(ThreadTypeEnum.ROBOT)) { + String threadTopic = threadProtobuf.getTopic(); + if (threadProtobuf.getType().equals(ThreadTypeEnum.ROBOT)) { + log.info("robot threadTopic {}, thread.type {}", threadTopic, threadProtobuf.getType()); // 机器人回复 - log.info("robot thread reply"); - // 机器人客服消息 org/robot/default_robot_uid/1420995827073219 + // 机器人客服消息 org/robot/df_robot_uid/1420995827073219 String[] splits = threadTopic.split("/"); if (splits.length < 4) { throw new RuntimeException("robot topic format error"); @@ -167,64 +187,63 @@ private void processMessage(String messageJson) { user.setNickname(robot.getNickname()); user.setAvatar(robot.getAvatar()); // - MessageExtra extra = MessageExtra.builder() - // .isAutoReply(true) - // .autoReplyType(autoReplySettings.getAutoReplyType().name()) - .orgUid(robot.getOrgUid()) - .build(); - // - MessageProtobuf message = MessageProtobuf.builder() - .uid(uidUtils.getCacheSerialUid()) - .status(MessageStatusEnum.SUCCESS) - .thread(thread) - .user(user) - .client(ClientEnum.SYSTEM_AUTO) - .extra(JSONObject.toJSONString(extra)) - .createdAt(new Date()) - .build(); - // 返回一个输入中消息,让访客端显示输入中 - MessageProtobuf clonedMessage = SerializationUtils.clone(message); - clonedMessage.setUid(uidUtils.getCacheSerialUid()); - clonedMessage.setType(MessageTypeEnum.PROCESSING); - String json = JSON.toJSONString(clonedMessage); - bytedeskEventPublisher.publishMessageJsonEvent(json); - // 绑定知识库 - zhipuaiService.sendWsRobotMessage(query, robot.getKbUid(), robot, message); + sendRobotReply(threadProtobuf, user, query, robot); } else { log.error("robot not found"); } + } else if (threadProtobuf.getType().equals(ThreadTypeEnum.AGENT) + || threadProtobuf.getType().equals(ThreadTypeEnum.WORKGROUP)) { + log.info("robot threadTopic {}, thread.type {}", threadTopic, threadProtobuf.getType()); + Thread thread = threadService.findByTopic(threadTopic) + .orElseThrow(() -> new RuntimeException("thread with topic " + threadTopic + " not found")); + UserProtobuf agent = JSON.parseObject(thread.getAgent(), UserProtobuf.class); + // 当前会话为机器人接待,而且是访客发送的消息 + if (agent.getType().equals(UserTypeEnum.ROBOT.name()) + && messageProtobuf.getUser().getType().equals(UserTypeEnum.VISITOR.name())) { + // 机器人回复 + log.info("robot thread reply"); + Robot robot = robotService.findByUid(agent.getUid()) + .orElseThrow(() -> new RuntimeException("robot " + agent.getUid() + " not found")); + // + sendRobotReply(threadProtobuf, agent, query, robot); + } } - } + - // - @EventListener - public void onThreadCreateEvent(ThreadCreateEvent event) { - Thread thread = event.getThread(); - log.info("robot ThreadCreateEvent: {}", thread.getUid()); + private void sendRobotReply(ThreadProtobuf threadProtobuf, UserProtobuf user, String query, Robot robot) { // - if (thread.getType().equals(ThreadTypeEnum.ROBOT) - && thread.getAgent().equals(BdConstants.EMPTY_JSON_STRING)) { - // 机器人会话:org/robot/{robot_uid}/{visitor_uid} - String topic = thread.getTopic(); - // - String[] splits = topic.split("/"); - if (splits.length < 4) { - throw new RuntimeException("robot topic format error"); - } - String robotUid = splits[2]; - Optional robotOptional = robotService.findByUid(robotUid); - if (robotOptional.isPresent()) { - Robot robot = robotOptional.get(); - // 更新机器人配置+大模型相关信息 - thread.setExtra(JSON.toJSONString(ConvertAiUtils.convertToServiceSettingsResponseVisitor( - robot.getServiceSettings()))); - thread.setAgent(JSON.toJSONString(ConvertAiUtils.convertToRobotProtobuf(robot))); - // - threadService.save(thread); - } - } + String threadTopic = threadProtobuf.getTopic(); + MessageExtra extra = MessageUtils.getMessageExtra(robot.getOrgUid()); + // + String messageUid = uidUtils.getCacheSerialUid(); + MessageProtobuf message = MessageProtobuf.builder() + .uid(messageUid) + .status(MessageStatusEnum.SUCCESS) + .thread(threadProtobuf) + .user(user) + .client(ClientEnum.SYSTEM_AUTO) + .extra(JSONObject.toJSONString(extra)) + .createdAt(new Date()) + .build(); + // 返回一个输入中消息,让访客端显示输入中 + MessageProtobuf clonedMessage = SerializationUtils.clone(message); + clonedMessage.setUid(uidUtils.getCacheSerialUid()); + clonedMessage.setType(MessageTypeEnum.PROCESSING); + // + MessageUtils.notifyUser(clonedMessage); + // 知识库 + if (bytedeskProperties.getJavaai()) { + zhipuaiService.sendWsRobotMessage(query, robot.getKbUid(), robot, message); + } + // 通知python ai模块处理回答 + if (bytedeskProperties.getPythonai()) { + messageCache.put(messageUid, message); + redisPubsubService.sendQuestionMessage(messageUid, threadTopic, robot.getKbUid(), + query); + } } + } diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotFlow.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotFlow.java new file mode 100644 index 00000000..bc992ffc --- /dev/null +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotFlow.java @@ -0,0 +1,67 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-06 15:13:07 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-06 15: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.ai.robot; + +import org.hibernate.annotations.JdbcTypeCode; +import org.hibernate.type.SqlTypes; + +import com.bytedesk.core.constant.BdConstants; +import com.bytedesk.core.constant.TypeConsts; + +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Embeddable +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class RobotFlow { + + @Builder.Default + @Column(name = "flow_groups", columnDefinition = TypeConsts.COLUMN_TYPE_JSON) + @JdbcTypeCode(SqlTypes.JSON) + private String groups = BdConstants.EMPTY_JSON_STRING; + + @Builder.Default + @Column(name = "flow_events", columnDefinition = TypeConsts.COLUMN_TYPE_JSON) + @JdbcTypeCode(SqlTypes.JSON) + private String events = BdConstants.EMPTY_JSON_STRING; + + @Builder.Default + @Column(name = "flow_variables", columnDefinition = TypeConsts.COLUMN_TYPE_JSON) + @JdbcTypeCode(SqlTypes.JSON) + private String variables = BdConstants.EMPTY_JSON_STRING; + + @Builder.Default + @Column(name = "flow_edges", columnDefinition = TypeConsts.COLUMN_TYPE_JSON) + @JdbcTypeCode(SqlTypes.JSON) + private String edges = BdConstants.EMPTY_JSON_STRING; + + @Builder.Default + @Column(name = "flow_themes", columnDefinition = TypeConsts.COLUMN_TYPE_JSON) + @JdbcTypeCode(SqlTypes.JSON) + private String themes = BdConstants.EMPTY_JSON_STRING; + + @Builder.Default + @Column(name = "flow_settings", columnDefinition = TypeConsts.COLUMN_TYPE_JSON) + @JdbcTypeCode(SqlTypes.JSON) + private String settings = BdConstants.EMPTY_JSON_STRING; + +} diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotProtobuf.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotProtobuf.java index 57083214..10d61fb6 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotProtobuf.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotProtobuf.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-06-06 11:28:30 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-05 18:15:57 + * @LastEditTime: 2024-09-07 08:29: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. diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotRequest.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotRequest.java index 2adcd34e..2d6ef0f7 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotRequest.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-22 16:45:07 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-18 13:15:05 + * @LastEditTime: 2024-08-30 09:20: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. @@ -32,7 +32,8 @@ @EqualsAndHashCode(callSuper = false) public class RobotRequest extends BaseRequest { - private String nickname; + @Builder.Default + private String nickname = I18Consts.I18N_ROBOT_NICKNAME; @Builder.Default private String avatar = AvatarConsts.DEFAULT_AVATAR_URL; 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 ffb78af1..4c781c70 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 @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-22 16:44:41 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-26 06:42:14 + * @LastEditTime: 2024-08-30 08:43:36 * @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. @@ -336,36 +336,60 @@ private Boolean existsByNicknameAndOrgUidAndDeleted(String name, String orgUid) return robotRepository.existsByNicknameAndOrgUidAndDeleted(name, orgUid, false); } - public void initData() { - - if (robotRepository.count() > 0) { - return; - } - // - String orgUid = BdConstants.DEFAULT_ORGANIZATION_UID; + public RobotResponse createDefaultRobot(String orgUid, String uid) { List faqUids = Arrays.asList( orgUid + I18Consts.I18N_FAQ_DEMO_TITLE_1, orgUid + I18Consts.I18N_FAQ_DEMO_TITLE_2); // - // Kb kb = kbService.getKb(I18Consts.I18N_ROBOT_NICKNAME, - // BdConstants.DEFAULT_ORGANIZATION_UID); - // RobotLlm llm = RobotLlm.builder().build(); RobotRequest robotRequest = RobotRequest.builder() .nickname(I18Consts.I18N_ROBOT_NICKNAME) - // .description(I18Consts.I18N_ROBOT_DESCRIPTION) - // .kb(kb) - // .llm(llm) .build(); - robotRequest.setUid(BdConstants.DEFAULT_ROBOT_UID); + robotRequest.setUid(uid); robotRequest.setType(RobotTypeEnum.SERVICE.name()); - robotRequest.setOrgUid(BdConstants.DEFAULT_ORGANIZATION_UID); + robotRequest.setOrgUid(orgUid); // robotRequest.getServiceSettings().setFaqUids(faqUids); robotRequest.getServiceSettings().setQuickFaqUids(faqUids); // - create(robotRequest); - // save(robotRequest); + return create(robotRequest); + } + public RobotResponse createDefaultAgentAsistantRobot(String orgUid) { + // + RobotRequest robotRequest = RobotRequest.builder() + .nickname(I18Consts.I18N_ROBOT_AGENT_ASISTANT_NICKNAME) + .build(); + robotRequest.setType(RobotTypeEnum.AGENT_ASSISTANT.name()); + robotRequest.setOrgUid(orgUid); + // + return create(robotRequest); + } + + public void initData() { + + if (robotRepository.count() > 0) { + return; + } + // + String orgUid = BdConstants.DEFAULT_ORGANIZATION_UID; + createDefaultRobot(orgUid, BdConstants.DEFAULT_ROBOT_UID); + createDefaultAgentAsistantRobot(orgUid); + // // + // List faqUids = Arrays.asList( + // orgUid + I18Consts.I18N_FAQ_DEMO_TITLE_1, + // orgUid + I18Consts.I18N_FAQ_DEMO_TITLE_2); + // // + // RobotRequest robotRequest = RobotRequest.builder() + // .nickname(I18Consts.I18N_ROBOT_NICKNAME) + // .build(); + // robotRequest.setUid(BdConstants.DEFAULT_ROBOT_UID); + // robotRequest.setType(RobotTypeEnum.SERVICE.name()); + // robotRequest.setOrgUid(orgUid); + // // + // robotRequest.getServiceSettings().setFaqUids(faqUids); + // robotRequest.getServiceSettings().setQuickFaqUids(faqUids); + // // + // create(robotRequest); } } diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotSpecification.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotSpecification.java index fc5efb76..63098be7 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotSpecification.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotSpecification.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-06-12 09:07:53 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-06-12 09:08:56 + * @LastEditTime: 2024-08-30 09:25: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. @@ -18,6 +18,7 @@ import java.util.List; import org.springframework.data.jpa.domain.Specification; +import org.springframework.util.StringUtils; import com.bytedesk.core.base.BaseSpecification; @@ -32,7 +33,15 @@ public static Specification search(RobotRequest request) { return (root, query, criteriaBuilder) -> { List predicates = new ArrayList<>(); predicates.addAll(getBasicPredicates(root, criteriaBuilder, request.getOrgUid())); + // + if (StringUtils.hasText(request.getType())) { + predicates.add(criteriaBuilder.equal(root.get("type"), request.getType())); + } // + // if (request.getPublished()) { + // predicates.add(criteriaBuilder.equal(root.get("published"), request.getPublished())); + // } + // return criteriaBuilder.and(predicates.toArray(new Predicate[0])); }; } diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotTypeEnum.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotTypeEnum.java index 78fd8f61..1a89dd9d 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotTypeEnum.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/RobotTypeEnum.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-06-05 11:10:06 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-24 14:11:39 + * @LastEditTime: 2024-08-30 11:07: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. @@ -18,7 +18,10 @@ public enum RobotTypeEnum { SERVICE, // 客服机器人 MARKETING, // 营销机器人 KNOWLEDGEBASE, // 知识库机器人 - QA; // 问答机器人 + QA, // 问答机器人 + AGENT_ASSISTANT, // 客服助理机器人 + TICKET_ASSISTANT, // 工单助手机器人 + ; // 根据整型值查找对应的枚举常量 public static RobotTypeEnum fromValue(String value) { @@ -27,17 +30,7 @@ public static RobotTypeEnum fromValue(String value) { return type; } } - throw new IllegalArgumentException("No enum constant with value " + value); - } - - public static RobotTypeEnum fromString(String typeStr) { - // 使用try-catch处理可能的异常 - try { - return RobotTypeEnum.valueOf(typeStr); - } catch (IllegalArgumentException e) { - // 处理错误,例如记录日志或抛出更具体的异常 - throw new IllegalArgumentException("Invalid robot type: " + typeStr, e); - } + throw new IllegalArgumentException("No RobotTypeEnum constant with value " + value); } } diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/Flow.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/Flow.java new file mode 100644 index 00000000..9b67c149 --- /dev/null +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/Flow.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-06 17:15:26 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-06 17:15:29 + * @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.ai.robot.flow; + +public class Flow { + +} diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowAnswer.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowAnswer.java new file mode 100644 index 00000000..18769e18 --- /dev/null +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowAnswer.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-06 15:26:10 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-06 15:26: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.ai.robot.flow; + +public class FlowAnswer { + +} diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowBlock.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowBlock.java new file mode 100644 index 00000000..b9f76b8e --- /dev/null +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowBlock.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-06 16:14:02 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-06 16:14: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.ai.robot.flow; + +public class FlowBlock { + +} diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowCoordinate.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowCoordinate.java new file mode 100644 index 00000000..c275600a --- /dev/null +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowCoordinate.java @@ -0,0 +1,29 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-06 16:08:40 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-06 16:08: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.ai.robot.flow; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Data +@AllArgsConstructor +@NoArgsConstructor +@Builder +public class FlowCoordinate { + private int x; + private int y; +} diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowEdge.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowEdge.java new file mode 100644 index 00000000..3e349c54 --- /dev/null +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowEdge.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-06 16:07:09 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-06 16:07: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.ai.robot.flow; + +public class FlowEdge { + +} diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowEvent.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowEvent.java new file mode 100644 index 00000000..3d23a198 --- /dev/null +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowEvent.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-06 16:06:44 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-06 16:06: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.ai.robot.flow; + +public class FlowEvent { + +} diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowGroup.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowGroup.java new file mode 100644 index 00000000..712affff --- /dev/null +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowGroup.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-06 15:25:34 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-06 15:25: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.ai.robot.flow; + +public class FlowGroup { + +} diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowResult.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowResult.java new file mode 100644 index 00000000..b4189431 --- /dev/null +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowResult.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-06 15:28:51 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-06 15:28: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.ai.robot.flow; + +public class FlowResult { + +} diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowSetting.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowSetting.java new file mode 100644 index 00000000..2c6a9b11 --- /dev/null +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowSetting.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-06 16:07:35 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-06 16:07: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.ai.robot.flow; + +public class FlowSetting { + +} diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowTheme.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowTheme.java new file mode 100644 index 00000000..4a153401 --- /dev/null +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowTheme.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-06 16:07:23 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-06 16:07: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.ai.robot.flow; + +public class FlowTheme { + +} diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowVariable.java b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowVariable.java new file mode 100644 index 00000000..4f3e691f --- /dev/null +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot/flow/FlowVariable.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-06 16:06:57 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-06 16:07: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.ai.robot.flow; + +public class FlowVariable { + +} diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot_message/RobotMessageEventListener.java b/modules/ai/src/main/java/com/bytedesk/ai/robot_message/RobotMessageEventListener.java index e5b58944..50e15943 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/robot_message/RobotMessageEventListener.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot_message/RobotMessageEventListener.java @@ -1,26 +1,36 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-07-05 11:06:26 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-07 16:15: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.ai.robot_message; -import org.springframework.context.event.EventListener; import org.springframework.stereotype.Component; -import com.bytedesk.core.message.MessageCreateEvent; -import com.bytedesk.core.message.MessageUpdateEvent; - // import lombok.extern.slf4j.Slf4j; // @Slf4j @Component public class RobotMessageEventListener { - @EventListener - public void onMessageCreateEvent(MessageCreateEvent event) { - // log.info("robot message unread create event: " + event); + // @EventListener + // public void onMessageCreateEvent(MessageCreateEvent event) { + // // log.info("robot message unread create event: " + event); - } + // } - @EventListener - public void onMessageUpdateEvent(MessageUpdateEvent event) { - // log.info("robot message unread update event: " + event); - } + // @EventListener + // public void onMessageUpdateEvent(MessageUpdateEvent event) { + // // log.info("robot message unread update event: " + event); + // } } diff --git a/modules/ai/src/main/java/com/bytedesk/ai/robot_published/RobotPublished.java b/modules/ai/src/main/java/com/bytedesk/ai/robot_published/RobotPublished.java new file mode 100644 index 00000000..b0d18502 --- /dev/null +++ b/modules/ai/src/main/java/com/bytedesk/ai/robot_published/RobotPublished.java @@ -0,0 +1,21 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-06 17:33:55 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-06 17:35: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.ai.robot_published; + +// 线上已发布机器人,与Robot表的区别是RobotPublished表,机器人发布后,机器人信息不会变动 +// Robot内主要用于本地测试,此表用于存储线上Robot信息 +public class RobotPublished { + +} diff --git a/modules/ai/src/main/java/com/bytedesk/ai/utils/ConvertAiUtils.java b/modules/ai/src/main/java/com/bytedesk/ai/utils/ConvertAiUtils.java index d5c15be9..7ca95ecb 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/utils/ConvertAiUtils.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/utils/ConvertAiUtils.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-06-06 11:28:01 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-05 18:16:49 + * @LastEditTime: 2024-09-07 10:25: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. @@ -20,6 +20,8 @@ import com.bytedesk.ai.robot.RobotResponse; import com.bytedesk.ai.robot.RobotProtobuf; import com.bytedesk.ai.settings.RobotServiceSettings; +import com.bytedesk.core.rbac.user.UserProtobuf; +import com.bytedesk.core.rbac.user.UserTypeEnum; import com.bytedesk.kbase.service_settings.ServiceSettingsResponseVisitor; public class ConvertAiUtils { @@ -35,6 +37,12 @@ public static RobotProtobuf convertToRobotProtobuf(Robot entity) { return new ModelMapper().map(entity, RobotProtobuf.class); } + public static UserProtobuf convertToUserProtobuf(Robot entity) { + UserProtobuf userProtobuf = new ModelMapper().map(entity, UserProtobuf.class); + userProtobuf.setType(UserTypeEnum.ROBOT.name()); + return userProtobuf; + } + public static ServiceSettingsResponseVisitor convertToServiceSettingsResponseVisitor( RobotServiceSettings serviceSettings) { return new ModelMapper().map(serviceSettings, ServiceSettingsResponseVisitor.class); diff --git a/modules/ai/src/main/java/com/bytedesk/ai/zhipuai/ZhipuAiConfig.java b/modules/ai/src/main/java/com/bytedesk/ai/zhipuai/ZhipuAiConfig.java index d6e31d4c..9bc2c10e 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/zhipuai/ZhipuAiConfig.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/zhipuai/ZhipuAiConfig.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-05-31 10:53:11 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-26 11:17:19 + * @LastEditTime: 2024-08-30 14:40: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. @@ -41,6 +41,9 @@ public class ZhipuaiConfig { @Value("${spring.ai.zhipuai.api-key}") String zhiPuAiApiKey; + @Value("${spring.ai.zhipuai.chat.options.model}") + String zhiPuAiApiModel; + @Bean ZhiPuAiApi zhipuaiApi() { return new ZhiPuAiApi(zhiPuAiApiKey); @@ -65,7 +68,8 @@ ZhiPuAiEmbeddingModel zhipuaiEmbeddingModel() { @Primary ZhiPuAiChatModel zhipuaiChatModel() { return new ZhiPuAiChatModel(zhipuaiApi(), ZhiPuAiChatOptions.builder() - .withModel(ZhiPuAiApi.ChatModel.GLM_3_Turbo.getValue()) + // .withModel(ZhiPuAiApi.ChatModel.GLM_3_Turbo.getValue()) + .withModel(zhiPuAiApiModel) .withTemperature(0.4f) .withMaxTokens(200) .build()); diff --git a/modules/ai/src/main/java/com/bytedesk/ai/zhipuai/ZhipuAiService.java b/modules/ai/src/main/java/com/bytedesk/ai/zhipuai/ZhipuAiService.java index 8b34cc57..3f4fa392 100644 --- a/modules/ai/src/main/java/com/bytedesk/ai/zhipuai/ZhipuAiService.java +++ b/modules/ai/src/main/java/com/bytedesk/ai/zhipuai/ZhipuAiService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-06-05 15:39:22 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-26 06:42:25 + * @LastEditTime: 2024-08-30 14:41: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. @@ -29,7 +29,6 @@ import com.bytedesk.ai.robot.RobotMessage; import com.bytedesk.ai.robot.RobotProtobuf; import com.bytedesk.ai.robot.RobotTypeEnum; -import com.bytedesk.core.config.BytedeskEventPublisher; import com.bytedesk.core.enums.ClientEnum; import com.bytedesk.core.thread.Thread; import com.bytedesk.core.message.Message; @@ -37,6 +36,7 @@ import com.bytedesk.core.message.MessageService; import com.bytedesk.core.message.MessageStatusEnum; import com.bytedesk.core.message.MessageTypeEnum; +import com.bytedesk.core.message.MessageUtils; import com.bytedesk.core.rbac.user.UserProtobuf; import com.bytedesk.core.thread.ThreadService; import com.bytedesk.core.uid.UidUtils; @@ -44,7 +44,7 @@ import com.bytedesk.core.utils.JsonResultCodeEnum; import com.bytedesk.kbase.upload.UploadVectorStore; import com.zhipu.oapi.ClientV4; -import com.zhipu.oapi.Constants; +// import com.zhipu.oapi.Constants; import com.zhipu.oapi.service.v4.model.ChatCompletionRequest; import com.zhipu.oapi.service.v4.model.ChatMessage; import com.zhipu.oapi.service.v4.model.ChatMessageAccumulator; @@ -68,6 +68,8 @@ @AllArgsConstructor public class ZhipuaiService { + private final ZhipuaiConfig zhipuaiConfig; + private final ClientV4 client; private final UidUtils uidUtils; @@ -80,7 +82,7 @@ public class ZhipuaiService { private final UploadVectorStore uploadVectorStore; - private final BytedeskEventPublisher bytedeskEventPublisher; + // private final BytedeskEventPublisher bytedeskEventPublisher; private final String PROMPT_BLUEPRINT = """ 根据提供的文档信息回答问题,文档信息如下: @@ -226,8 +228,8 @@ public void getSseAnswer(String uid, String sid, String question, SseEmitter emi public void sendWsRobotMessage(String query, String kbUid, Robot robot, MessageProtobuf messageProtobuf) { // String prompt = robot.getLlm().getPrompt(); - if (robot.getType().equals(RobotTypeEnum.SERVICE) - || robot.getType().equals(RobotTypeEnum.KNOWLEDGEBASE)) { + if (robot.getType().equals(RobotTypeEnum.SERVICE.name()) + || robot.getType().equals(RobotTypeEnum.KNOWLEDGEBASE.name())) { List contentList = uploadVectorStore.searchText(query, kbUid); String context = String.join("\n", contentList); prompt = PROMPT_BLUEPRINT.replace("{context}", context).replace("{query}", query); @@ -242,7 +244,8 @@ public void sendWsRobotMessage(String query, String kbUid, Robot robot, MessageP // ChatCompletionRequest chatCompletionRequest = ChatCompletionRequest.builder() // 模型名称 - .model(Constants.ModelChatGLM3TURBO) + .model(zhipuaiConfig.zhiPuAiApiModel) + // .model(Constants.ModelChatGLM3TURBO) // .model(robotSimple.getLlm().getModel()) // .temperature(robotSimple.getLlm().getTemperature()) // .topP(robotSimple.getLlm().getTopP()) @@ -272,8 +275,9 @@ public void sendWsRobotMessage(String query, String kbUid, Robot robot, MessageP messageProtobuf.setType(MessageTypeEnum.STREAM); messageProtobuf.setContent(answerContent); // - String json = JSON.toJSONString(messageProtobuf); - bytedeskEventPublisher.publishMessageJsonEvent(json); + MessageUtils.notifyUser(messageProtobuf); + // String json = JSON.toJSONString(messageProtobuf); + // bytedeskEventPublisher.publishMessageJsonEvent(json); } } } @@ -315,7 +319,8 @@ public void sendWsAutoReply(String query, String kbUid, MessageProtobuf messageP // ChatCompletionRequest chatCompletionRequest = ChatCompletionRequest.builder() // 模型名称 - .model(Constants.ModelChatGLM3TURBO) + .model(zhipuaiConfig.zhiPuAiApiModel) + // .model(Constants.ModelChatGLM3TURBO) // .model(robotSimple.getLlm().getModel()) // .temperature(robotSimple.getLlm().getTemperature()) // .topP(robotSimple.getLlm().getTopP()) @@ -345,8 +350,9 @@ public void sendWsAutoReply(String query, String kbUid, MessageProtobuf messageP messageProtobuf.setType(MessageTypeEnum.STREAM); messageProtobuf.setContent(answerContent); // - String json = JSON.toJSONString(messageProtobuf); - bytedeskEventPublisher.publishMessageJsonEvent(json); + MessageUtils.notifyUser(messageProtobuf); + // String json = JSON.toJSONString(messageProtobuf); + // bytedeskEventPublisher.publishMessageJsonEvent(json); } } } diff --git a/modules/core/.DS_Store b/modules/core/.DS_Store index 1ca22e5a..025dee03 100644 Binary files a/modules/core/.DS_Store and b/modules/core/.DS_Store differ diff --git a/modules/core/pom.xml b/modules/core/pom.xml index 196afc46..79b1abb9 100644 --- a/modules/core/pom.xml +++ b/modules/core/pom.xml @@ -59,14 +59,6 @@ provided - - - com.google.protobuf - protobuf-java - 3.25.2 - provided - - com.google.protobuf diff --git a/modules/core/src/main/java/com/bytedesk/core/action/ActionEventListener.java b/modules/core/src/main/java/com/bytedesk/core/action/ActionEventListener.java index a0db585e..3fd45208 100644 --- a/modules/core/src/main/java/com/bytedesk/core/action/ActionEventListener.java +++ b/modules/core/src/main/java/com/bytedesk/core/action/ActionEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-05-23 10:00:44 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-23 21:39:23 + * @LastEditTime: 2024-08-30 18:01: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. @@ -14,7 +14,7 @@ */ package com.bytedesk.core.action; -import org.springframework.context.event.EventListener; +// import org.springframework.context.event.EventListener; import org.springframework.stereotype.Component; import lombok.AllArgsConstructor; @@ -25,11 +25,11 @@ @AllArgsConstructor public class ActionEventListener { - @EventListener - public void onActionCreateEvent(ActionCreateEvent event) { - log.info("onActionCreateEvent Received event: {}", event.getAction().getTitle()); - // do something - // Action action = event.getAction(); - } + // @EventListener + // public void onActionCreateEvent(ActionCreateEvent event) { + // log.info("onActionCreateEvent Received event: {}", event.getAction().getTitle()); + // // do something + // // Action action = event.getAction(); + // } } diff --git a/modules/core/src/main/java/com/bytedesk/core/base/BaseResponse.java b/modules/core/src/main/java/com/bytedesk/core/base/BaseResponse.java index 1cf463c4..cbbf30e7 100644 --- a/modules/core/src/main/java/com/bytedesk/core/base/BaseResponse.java +++ b/modules/core/src/main/java/com/bytedesk/core/base/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-06-24 23:17:29 + * @LastEditTime: 2024-09-07 12:03:50 * @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,5 +23,9 @@ public abstract class BaseResponse implements Serializable { private String uid; + // 导致报错: com.google.protobuf.InvalidProtocolBufferException: Cannot find field: orgUid + // in message Thread + // at com.bytedesk.core.utils.MessageConvertUtils.toProtoBean(MessageConvertUtils.java:19) + // at com.bytedesk.core.message.MessageEventListener.onMessageJsonEvent(MessageEventListener.java:55) // private String orgUid; } diff --git a/modules/core/src/main/java/com/bytedesk/core/config/BytedeskEventPublisher.java b/modules/core/src/main/java/com/bytedesk/core/config/BytedeskEventPublisher.java index 2f250df0..7dfe3615 100644 --- a/modules/core/src/main/java/com/bytedesk/core/config/BytedeskEventPublisher.java +++ b/modules/core/src/main/java/com/bytedesk/core/config/BytedeskEventPublisher.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-23 14:42:58 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-27 12:58:18 + * @LastEditTime: 2024-09-09 16: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. @@ -24,10 +24,12 @@ // import com.bytedesk.core.cache.CaffeineCacheGroupEvent; import com.bytedesk.core.message.MessageProtoEvent; import com.bytedesk.core.message.MessageUpdateEvent; +import com.bytedesk.core.quartz.event.QuartzFiveMinEvent; +import com.bytedesk.core.quartz.event.QuartzFiveSecondEvent; +import com.bytedesk.core.quartz.event.QuartzOneMinEvent; import com.bytedesk.core.message.Message; import com.bytedesk.core.message.MessageCreateEvent; import com.bytedesk.core.message.MessageJsonEvent; -import com.bytedesk.core.quartz.QuartzFiveSecondEvent; import com.bytedesk.core.rbac.organization.Organization; import com.bytedesk.core.rbac.organization.OrganizationCreateEvent; import com.bytedesk.core.rbac.user.User; @@ -96,6 +98,14 @@ public void publishQuartzFiveSecondEvent() { applicationEventPublisher.publishEvent(new QuartzFiveSecondEvent(this)); } + public void publishQuartzFiveMinEvent() { + applicationEventPublisher.publishEvent(new QuartzFiveMinEvent(this)); + } + + public void publishQuartzOneMinEvent() { + applicationEventPublisher.publishEvent(new QuartzOneMinEvent(this)); + } + public void publishMqttConnectedEvent(String clientId) { applicationEventPublisher.publishEvent(new MqttConnectedEvent(this, clientId)); } diff --git a/modules/core/src/main/java/com/bytedesk/core/config/BytedeskProperties.java b/modules/core/src/main/java/com/bytedesk/core/config/BytedeskProperties.java index 4f13b0d4..8d9974dc 100644 --- a/modules/core/src/main/java/com/bytedesk/core/config/BytedeskProperties.java +++ b/modules/core/src/main/java/com/bytedesk/core/config/BytedeskProperties.java @@ -44,13 +44,14 @@ public class BytedeskProperties { private List mobileWhitelist = new ArrayList<>(); private String mobileCode; - private String organizationName; - private String organizationCode; - // private String timezone; + // ai + private Boolean javaai; + private Boolean pythonai; + // cors private String corsAllowedOrigins; diff --git a/modules/core/src/main/java/com/bytedesk/core/constant/BdConstants.java b/modules/core/src/main/java/com/bytedesk/core/constant/BdConstants.java index cf45b316..a1a827d0 100644 --- a/modules/core/src/main/java/com/bytedesk/core/constant/BdConstants.java +++ b/modules/core/src/main/java/com/bytedesk/core/constant/BdConstants.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-02 21:48:19 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-27 14:52:26 + * @LastEditTime: 2024-09-08 08:43: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. @@ -44,6 +44,7 @@ private BdConstants() { public static final String ACTION_LOGIN_USERNAME = "loginWithUsernamePassword"; public static final String ACTION_LOGIN_MOBILE = "loginWithMobileCode"; public static final String ACTION_LOGIN_EMAIL = "loginWithEmailCode"; + public static final String ACTION_LOGIN_SCAN = "loginWithScan"; // 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 dc86e517..7dd164a5 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 @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-26 22:25:47 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-23 21:37:48 + * @LastEditTime: 2024-08-31 21:57: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. @@ -63,7 +63,9 @@ private I18Consts() { // public static final String I18N_ROBOT_NICKNAME = I18N_PREFIX + "robot.nickname"; public static final String I18N_ROBOT_DESCRIPTION = I18N_PREFIX + "robot.description"; - // public static final String I18N_ROBOT_LLM_PROMPT = I18N_PREFIX + "llm.prompt"; + public static final String I18N_ROBOT_AGENT_ASISTANT_NICKNAME = I18N_PREFIX + "robot.agent.asistant.nickname"; + // public static final String I18N_ROBOT_LLM_PROMPT = I18N_PREFIX + + // "llm.prompt"; public static final String I18N_ROBOT_LLM_PROMPT = "角色:资深客服专家; 背景:有专业客服经验,对教育、电商、金融领域有深刻理解; 任务:根据上下文中提到的内容,对提出的问题给出有用、详细、礼貌的回答; 要求:1. 解决客户提出的问题,2. 安抚客户情绪,3. 提升客户满意度"; public static final String I18N_ROBOT_REPLY = I18N_PREFIX + "robot.reply"; public static final String I18N_ROBOT_NO_REPLY = I18N_PREFIX + "robot.noreply"; @@ -104,10 +106,10 @@ private I18Consts() { public static final String I18N_QUICK_BUTTON_DEMO_CONTENT_1 = I18N_PREFIX + "quick.button.demo.content.1"; public static final String I18N_QUICK_BUTTON_DEMO_TITLE_2 = I18N_PREFIX + "quick.button.demo.title.2"; public static final String I18N_QUICK_BUTTON_DEMO_CONTENT_2 = I18N_PREFIX + "quick.button.demo.content.2"; - // + // public static final String I18N_GROUP_NAME = I18N_PREFIX + "group.name"; public static final String I18N_GROUP_DESCRIPTION = I18N_PREFIX + "group.description"; - // + // public static final String I18N_NOTICE_TITLE = I18N_PREFIX + "notice.title"; public static final String I18N_NOTICE_TYPE = I18N_PREFIX + "notice.type"; public static final String I18N_NOTICE_CONTENT = I18N_PREFIX + "notice.content"; @@ -115,6 +117,11 @@ private I18Consts() { public static final String I18N_NOTICE_IPLOCATION = I18N_PREFIX + "notice.ipLocation"; public static final String I18N_NOTICE_URL = I18N_PREFIX + "notice.url"; public static final String I18N_NOTICE_EXTRA = I18N_PREFIX + "notice.extra"; - // + // + public static final String I18N_NOTICE_PARSE_FILE_SUCCESS = I18N_PREFIX + "notice.parse.file.success"; + public static final String I18N_NOTICE_PARSE_FILE_ERROR = I18N_PREFIX + "notice.parse.file.error"; + // + public static final String I18N_AUTO_CLOSED = I18N_PREFIX + "auto.closed"; + public static final String I18N_AGENT_CLOSED = I18N_PREFIX + "agent.closed"; } diff --git a/modules/core/src/main/java/com/bytedesk/core/constant/TypeConsts.java b/modules/core/src/main/java/com/bytedesk/core/constant/TypeConsts.java index b474cdf0..a3709dfe 100644 --- a/modules/core/src/main/java/com/bytedesk/core/constant/TypeConsts.java +++ b/modules/core/src/main/java/com/bytedesk/core/constant/TypeConsts.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-06 11:14:06 + * @LastEditTime: 2024-09-09 14:39: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. @@ -22,6 +22,7 @@ private TypeConsts() { public static final String TYPE_SYSTEM = "system"; public static final String TYPE_MOBILE = "mobile"; public static final String TYPE_EMAIL = "email"; + public static final String TYPE_SCAN = "scan"; // public static final String SUPER = "SUPER"; @@ -92,12 +93,6 @@ private TypeConsts() { // public static final String COLUMN_TYPE_TEXT = "TEXT"; // length = 65534 public static final String COLUMN_TYPE_JSON = "json"; // - // public static final String COLUMN_NAME_TYPE = "by_type"; - // public static final String COLUMN_NAME_USER = "by_user"; - - // - // public static final String ROBOT_TYPE_SERVICE = "service"; - // // public static final String ACTION_TYPE_FAILED = "failed"; // public static final String ACTION_TYPE_LOG = "log"; diff --git a/modules/core/src/main/java/com/bytedesk/core/enums/ClientEnum.java b/modules/core/src/main/java/com/bytedesk/core/enums/ClientEnum.java index a22369d8..87d7ec9c 100644 --- a/modules/core/src/main/java/com/bytedesk/core/enums/ClientEnum.java +++ b/modules/core/src/main/java/com/bytedesk/core/enums/ClientEnum.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-05-25 13:07:20 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-27 21:59:49 + * @LastEditTime: 2024-08-28 11:12: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. @@ -19,6 +19,8 @@ public enum ClientEnum { SYSTEM_AUTO, // auto reply SYSTEM_BOT, // robot reply WEB, + WEB_VISITOR, // 访客端 + WEB_ADMIN, // 管理端 H5, IOS, ANDROID, 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 aa4d6247..daa65b87 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-08-26 06:14:34 + * @LastEditTime: 2024-08-30 16: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. @@ -47,13 +47,13 @@ public class Message extends BaseEntity { // @Enumerated(EnumType.STRING) // 默认使用int类型表示,如果为了可读性,可以转换为使用字符串存储 @Column(name = "message_type", nullable = false) // private MessageTypeEnum type = MessageTypeEnum.TEXT; - private String type = MessageTypeEnum.TEXT.name(); + private String type = MessageTypeEnum.TEXT.name(); // 仅对一对一/客服/技能组聊天有效,表示对方是否已读。群聊无效 @Builder.Default // @Enumerated(EnumType.STRING) // private MessageStatusEnum status = MessageStatusEnum.SUCCESS; - private String status = MessageStatusEnum.SUCCESS.name(); + private String status = MessageStatusEnum.SUCCESS.name(); // 复杂类型可以使用json存储在此,通过type字段区分 @Column(columnDefinition = TypeConsts.COLUMN_TYPE_TEXT) diff --git a/modules/core/src/main/java/com/bytedesk/core/message/MessageCache.java b/modules/core/src/main/java/com/bytedesk/core/message/MessageCache.java new file mode 100644 index 00000000..1f08004c --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/message/MessageCache.java @@ -0,0 +1,50 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-08-31 10:01:05 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-08-31 10:05: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.message; + +import java.util.concurrent.TimeUnit; + +import org.springframework.stereotype.Component; + +import com.github.benmanes.caffeine.cache.Cache; +import com.github.benmanes.caffeine.cache.Caffeine; + +import jakarta.annotation.PostConstruct; + +@Component +public class MessageCache { + + // 创建一个caffeinecache实例 + private Cache messageCache; + + @PostConstruct + public void init() { + // 初始化caffeinecache,设置缓存的最大大小、过期时间等参数 + messageCache = Caffeine.newBuilder() + .maximumSize(10000) // 设置缓存的最大条目数 + .expireAfterWrite(10, TimeUnit.MINUTES) // 设置缓存条目的过期时间 + .build(); + } + + public void put(String key, MessageProtobuf message) { + messageCache.put(key, message); + } + + public MessageProtobuf get(String key) { + return messageCache.getIfPresent(key); + } + + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/message/MessageCacheService.java b/modules/core/src/main/java/com/bytedesk/core/message/MessageCacheService.java deleted file mode 100644 index 3f43af62..00000000 --- a/modules/core/src/main/java/com/bytedesk/core/message/MessageCacheService.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * @Author: jackning 270580156@qq.com - * @Date: 2024-07-16 11:09:19 - * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-16 11:11: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. - * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.message; - -import java.util.ArrayList; -import java.util.List; -import java.util.concurrent.TimeUnit; - -import org.springframework.stereotype.Service; - -import com.github.benmanes.caffeine.cache.Cache; -import com.github.benmanes.caffeine.cache.CacheLoader; -import com.github.benmanes.caffeine.cache.Caffeine; - -@Service -public class MessageCacheService { - - // 假设我们使用"myList"作为缓存中的键 - String defaultPersistKey = "messageList"; - - // 创建一个缓存实例,设置过期时间为5天 - Cache> messageCache = Caffeine.newBuilder() - .expireAfterWrite(5, TimeUnit.DAYS) - .build(new CacheLoader>() { - @Override - public List load(String key) throws Exception { - // 当缓存中没有找到对应的键时,使用load方法初始化 - return new ArrayList<>(); - } - }); - - // 模拟 push 操作:向列表中添加元素 - public void pushForPersist(String messageJSON) { - push(defaultPersistKey, messageJSON); - } - - // 模拟 pop 操作:从列表中移除元素 - public List getListForPersist() { - return getList(defaultPersistKey); - } - - // - // 模拟 push 操作:向列表中添加元素 - public void push(String listKey, String messageJSON) { - List cachedList = messageCache.getIfPresent(listKey); - if (cachedList == null) { - // 如果缓存中没有找到对应的键,则使用load方法初始化 - cachedList = new ArrayList<>(); - } - cachedList.add(messageJSON); - messageCache.put(listKey, cachedList); - } - - public void pushGroup(String groupUid, String messageJSON) { - // bytedeskEventPublisher.publishCaffeineCacheGroupEvent(groupUid, messageJSON); - } - - // 模拟 pop 操作:从列表中移除元素 - // public String getFirst(String listKey) { - // List cachedList = cache.getIfPresent(listKey); - // if (cachedList != null && !cachedList.isEmpty()) { - // String messageJSON = cachedList.remove(0); - // // log.info("Popped element: " + messageJSON); - // return messageJSON; - // } - // return null; - // } - - // public String removeMessage(String listKey, MessageProtobuf messageObject) { - // List cachedList = messageCache.getIfPresent(listKey); - // if (cachedList != null && !cachedList.isEmpty()) { - // for (int i = 0; i < cachedList.size(); i++) { - // String element = cachedList.get(i); - // MessageProtobuf messageElement = JSON.parseObject(element, MessageProtobuf.class); - // // 回执消息内容中存储被回执消息的uid - // if (messageElement.getUid().equals(messageObject.getContent())) { - // cachedList.remove(i); - // } - // } - // messageCache.put(listKey, cachedList); - // } - // return null; - // } - - public List getList(String listKey) { - List cachedList = messageCache.getIfPresent(listKey); - if (cachedList != null && !cachedList.isEmpty()) { - // 只需要返回一次即可 - remove(listKey); - return cachedList; - } - return null; - } - - public void remove(String listKey) { - messageCache.invalidate(listKey); - } - - // public List getAllKeyList() { - // List keys = new ArrayList<>(); - // messageCache.asMap().keySet().forEach(key -> { - // if (key != defaultPersistKey) { - // keys.add(key); - // } - // }); - // return keys; - // } - - public void clear() { - messageCache.invalidateAll(); - } - -} diff --git a/modules/core/src/main/java/com/bytedesk/core/message/MessageEntityListener.java b/modules/core/src/main/java/com/bytedesk/core/message/MessageEntityListener.java index 64771b4e..80df2cb2 100644 --- a/modules/core/src/main/java/com/bytedesk/core/message/MessageEntityListener.java +++ b/modules/core/src/main/java/com/bytedesk/core/message/MessageEntityListener.java @@ -30,7 +30,7 @@ public class MessageEntityListener { @PostPersist public void onPostPersist(Message message) { - log.info("message MessageEntityListener: onPostPersist"); + // log.info("message MessageEntityListener: onPostPersist"); Message clonedMessage = SerializationUtils.clone(message); // BytedeskEventPublisher bytedeskEventPublisher = ApplicationContextHolder.getBean(BytedeskEventPublisher.class); @@ -39,7 +39,7 @@ public void onPostPersist(Message message) { @PostUpdate public void onPostUpdate(Message message) { - log.info("message MessageEntityListener: onPostUpdate"); + // log.info("message MessageEntityListener: onPostUpdate"); Message clonedMessage = SerializationUtils.clone(message); // BytedeskEventPublisher bytedeskEventPublisher = ApplicationContextHolder.getBean(BytedeskEventPublisher.class); diff --git a/modules/core/src/main/java/com/bytedesk/core/message/MessageEventListener.java b/modules/core/src/main/java/com/bytedesk/core/message/MessageEventListener.java index 98fdc205..cf4b2e7d 100644 --- a/modules/core/src/main/java/com/bytedesk/core/message/MessageEventListener.java +++ b/modules/core/src/main/java/com/bytedesk/core/message/MessageEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-06-27 16:02:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-01 07:26:46 + * @LastEditTime: 2024-08-31 10:02: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. @@ -22,7 +22,7 @@ import org.springframework.stereotype.Component; import com.alibaba.fastjson2.JSON; -import com.bytedesk.core.quartz.QuartzFiveSecondEvent; +import com.bytedesk.core.quartz.event.QuartzFiveSecondEvent; import com.bytedesk.core.socket.protobuf.model.MessageProto; import com.bytedesk.core.thread.ThreadProtobuf; import com.bytedesk.core.utils.MessageConvertUtils; @@ -36,7 +36,7 @@ @AllArgsConstructor public class MessageEventListener { - private final MessageCacheService messageCacheService; + private final MessagePersistCache messagePersistCache; private final MessagePersistService messagePersistService; @@ -108,7 +108,7 @@ private String processMessage(String messageJson) { String msgJson = JSON.toJSONString(messageProtobuf); // 缓存消息,用于定期持久化到数据库 - messageCacheService.pushForPersist(msgJson); + messagePersistCache.pushForPersist(msgJson); // return msgJson; } @@ -116,7 +116,7 @@ private String processMessage(String messageJson) { @EventListener public void onQuartzFiveSecondEvent(QuartzFiveSecondEvent event) { // log.info("message quartz five second event: " + event); - List messageJsonList = messageCacheService.getListForPersist(); + List messageJsonList = messagePersistCache.getListForPersist(); if (messageJsonList == null || messageJsonList.isEmpty()) { return; } diff --git a/modules/core/src/main/java/com/bytedesk/core/message/MessageExtra.java b/modules/core/src/main/java/com/bytedesk/core/message/MessageExtra.java index cd1f1965..e24f570f 100644 --- a/modules/core/src/main/java/com/bytedesk/core/message/MessageExtra.java +++ b/modules/core/src/main/java/com/bytedesk/core/message/MessageExtra.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-02 11:55:53 + * @LastEditTime: 2024-09-10 14:14: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. @@ -25,10 +25,18 @@ @NoArgsConstructor @Builder public class MessageExtra { - + // 自动回复 private Boolean isAutoReply; - private String autoReplyType; + + // 机器人回复 + + // 翻译 + private String translation; + + // 引用 + private String quotation; + // 企业id private String orgUid; } diff --git a/modules/core/src/main/java/com/bytedesk/core/message/MessagePersistCache.java b/modules/core/src/main/java/com/bytedesk/core/message/MessagePersistCache.java new file mode 100644 index 00000000..18f1347f --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/message/MessagePersistCache.java @@ -0,0 +1,133 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-07-16 11:09:19 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-08-31 10:45:29 + * @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.core.message; + +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.TimeUnit; + +import org.springframework.stereotype.Component; + +import com.github.benmanes.caffeine.cache.Cache; +import com.github.benmanes.caffeine.cache.CacheLoader; +import com.github.benmanes.caffeine.cache.Caffeine; + +import jakarta.annotation.PostConstruct; + +@Component +public class MessagePersistCache { + + // 假设我们使用"myList"作为缓存中的键 + String defaultPersistKey = "messageList"; + + // 创建一个缓存实例,设置过期时间为5天 + private Cache> messageCache; + + @PostConstruct + public void init() { + // 初始化caffeinecache,设置缓存的最大大小、过期时间等参数 + messageCache = Caffeine.newBuilder() + .expireAfterWrite(1, TimeUnit.DAYS) + .build(new CacheLoader>() { + @Override + public List load(String key) throws Exception { + // 当缓存中没有找到对应的键时,使用load方法初始化 + return new ArrayList<>(); + } + }); + } + + + // 模拟 push 操作:向列表中添加元素 + public void pushForPersist(String messageJSON) { + push(defaultPersistKey, messageJSON); + } + + // 模拟 pop 操作:从列表中移除元素 + public List getListForPersist() { + return getList(defaultPersistKey); + } + + // 模拟 push 操作:向列表中添加元素 + public void push(String listKey, String messageJSON) { + List cachedList = messageCache.getIfPresent(listKey); + if (cachedList == null) { + // 如果缓存中没有找到对应的键,则使用load方法初始化 + cachedList = new ArrayList<>(); + } + cachedList.add(messageJSON); + messageCache.put(listKey, cachedList); + } + + public void pushGroup(String groupUid, String messageJSON) { + // bytedeskEventPublisher.publishCaffeineCacheGroupEvent(groupUid, messageJSON); + } + + public List getList(String listKey) { + List cachedList = messageCache.getIfPresent(listKey); + if (cachedList != null && !cachedList.isEmpty()) { + // 只需要返回一次即可 + remove(listKey); + return cachedList; + } + return null; + } + + public void remove(String listKey) { + messageCache.invalidate(listKey); + } + + // public List getAllKeyList() { + // List keys = new ArrayList<>(); + // messageCache.asMap().keySet().forEach(key -> { + // if (key != defaultPersistKey) { + // keys.add(key); + // } + // }); + // return keys; + // } + + public void clear() { + messageCache.invalidateAll(); + } + + // 模拟 pop 操作:从列表中移除元素 + // public String getFirst(String listKey) { + // List cachedList = messageCache.getIfPresent(listKey); + // if (cachedList != null && !cachedList.isEmpty()) { + // String messageJSON = cachedList.remove(0); + // // log.info("Popped element: " + messageJSON); + // return messageJSON; + // } + // return null; + // } + + // public String removeMessage(String listKey, MessageProtobuf messageObject) { + // List cachedList = messageCache.getIfPresent(listKey); + // if (cachedList != null && !cachedList.isEmpty()) { + // for (int i = 0; i < cachedList.size(); i++) { + // String element = cachedList.get(i); + // MessageProtobuf messageElement = JSON.parseObject(element, + // MessageProtobuf.class); + // // 回执消息内容中存储被回执消息的uid + // if (messageElement.getUid().equals(messageObject.getContent())) { + // cachedList.remove(i); + // } + // } + // messageCache.put(listKey, cachedList); + // } + // return null; + // } +} diff --git a/modules/core/src/main/java/com/bytedesk/core/message/MessagePersistService.java b/modules/core/src/main/java/com/bytedesk/core/message/MessagePersistService.java index 47414b6e..07515dae 100644 --- a/modules/core/src/main/java/com/bytedesk/core/message/MessagePersistService.java +++ b/modules/core/src/main/java/com/bytedesk/core/message/MessagePersistService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-16 18:04:37 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-26 06:43:05 + * @LastEditTime: 2024-09-07 16:23:29 * @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,17 +37,16 @@ public class MessagePersistService { private final ModelMapper modelMapper; public void persist(String messageJSON) { - log.info("persist: {}", messageJSON); + // log.info("persist: {}", messageJSON); MessageProtobuf messageProtobuf = JSON.parseObject(messageJSON, MessageProtobuf.class); // MessageTypeEnum type = messageProtobuf.getType(); String threadTopic = messageProtobuf.getThread().getTopic(); - // log.info("orgUid: {}", orgUid); // 返回true表示该消息是系统通知,不应该保存到数据库 if (dealWithMessageNotification(type, messageProtobuf)) { - log.info("message should not be saved uid {}, type {}", messageProtobuf.getUid(), type); + // log.info("message should not be saved uid {}, type {}", messageProtobuf.getUid(), type); return; } // @@ -191,12 +190,12 @@ private void dealWithMessageReceipt(MessageTypeEnum type, @Nonnull MessageProtob // 消息撤回,从数据库中删除消息 private void dealWithMessageRecall(MessageProtobuf message) { - log.info("dealWithMessageRecall"); + // log.info("dealWithMessageRecall"); messageService.deleteByUid(message.getUid()); } private void dealWithRateMessage(MessageTypeEnum type, MessageProtobuf message) { - log.info("dealWithMessageRateSubmit"); + // log.info("dealWithMessageRateSubmit"); // 如果是客服邀请评价,则content为邀请评价消息的uid,否则为空 Optional messageOpt = messageService.findByUid(message.getContent()); if (messageOpt.isPresent()) { @@ -212,7 +211,7 @@ private void dealWithRateMessage(MessageTypeEnum type, MessageProtobuf message) } private void dealWithLeaveMsg(MessageTypeEnum type, MessageProtobuf message) { - log.info("dealWithLeaveMsg"); + // log.info("dealWithLeaveMsg"); Optional messageOpt = messageService.findByUid(message.getContent()); if (messageOpt.isPresent()) { Message messageEntity = messageOpt.get(); @@ -225,8 +224,7 @@ private void dealWithLeaveMsg(MessageTypeEnum type, MessageProtobuf message) { } private void dealWithFaqRateMessage(MessageTypeEnum type, MessageProtobuf message) { - log.info("dealWithFaqRateMessage"); - // + // log.info("dealWithFaqRateMessage"); Optional messageOpt = messageService.findByUid(message.getContent()); if (messageOpt.isPresent()) { Message messageEntity = messageOpt.get(); @@ -240,7 +238,7 @@ private void dealWithFaqRateMessage(MessageTypeEnum type, MessageProtobuf messag } private void dealWithRobotRateMessage(MessageTypeEnum type, MessageProtobuf message) { - log.info("dealWithRobotRateMessage"); + // log.info("dealWithRobotRateMessage"); // Optional messageOpt = messageService.findByUid(message.getContent()); if (messageOpt.isPresent()) { @@ -255,7 +253,7 @@ private void dealWithRobotRateMessage(MessageTypeEnum type, MessageProtobuf mess } private void dealWithTransferMessage(MessageTypeEnum type, MessageProtobuf message) { - log.info("dealWithTransferMessage"); + // log.info("dealWithTransferMessage"); MessageTransferContent transferContentObject = JSONObject.parseObject(message.getContent(), MessageTransferContent.class); // 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 8ba7b248..dd9b249a 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 @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-24 09:18:11 + * @LastEditTime: 2024-09-07 17:01:20 * @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,10 @@ */ package com.bytedesk.core.message; -import java.util.Date; import java.util.Optional; import org.springframework.cache.annotation.Cacheable; import org.springframework.cache.annotation.Caching; import org.springframework.cache.annotation.CachePut; -import org.modelmapper.ModelMapper; import org.springframework.cache.annotation.CacheEvict; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; @@ -30,16 +28,9 @@ import org.springframework.orm.ObjectOptimisticLockingFailureException; import org.springframework.stereotype.Service; -import com.alibaba.fastjson2.JSON; +// import com.alibaba.fastjson2.JSON; import com.bytedesk.core.base.BaseService; -import com.bytedesk.core.config.BytedeskEventPublisher; -import com.bytedesk.core.enums.ClientEnum; -import com.bytedesk.core.rbac.user.User; -import com.bytedesk.core.rbac.user.UserProtobuf; -import com.bytedesk.core.thread.ThreadProtobuf; -import com.bytedesk.core.thread.ThreadResponse; -import com.bytedesk.core.thread.ThreadService; -import com.bytedesk.core.uid.UidUtils; +// import com.bytedesk.core.config.BytedeskEventPublisher; import com.bytedesk.core.utils.ConvertUtils; import lombok.AllArgsConstructor; @@ -51,13 +42,7 @@ public class MessageService extends BaseService queryByOrg(MessageRequest request) { @@ -101,16 +86,6 @@ public Optional findByUid(String uid) { return messageRepository.findByUid(uid); } - /** - * find the last message in the thread - * 找到当前会话中最新一条聊天记录 - */ - // @Cacheable(value = "message", key = "#threadUid", unless = "#result == null") - // public Optional findByThreadsUidInOrderByCreatedAtDesc(String - // threadUid) { - // return messageRepository.findFirstByThreadsUidInOrderByCreatedAtDesc(new - // String[] { threadUid }); - // } @Caching(put = { @CachePut(value = "message", key = "#message.uid"), @@ -147,12 +122,6 @@ public boolean existsByUid(String uid) { return messageRepository.existsByUid(uid); } - // public int ping() { - // User user = authService.getCurrentUser(); - // int count = messageCacheService.getUnreadCount(user.getUid()); - // return count; - // } - @Override public Page queryByUser(MessageRequest request) { // TODO Auto-generated method stub @@ -184,58 +153,80 @@ public void handleOptimisticLockingFailureException(ObjectOptimisticLockingFailu } // - public void notifyUser(MessageProtobuf messageProtobuf) { - String json = JSON.toJSONString(messageProtobuf); - bytedeskEventPublisher.publishMessageJsonEvent(json); - } + // public void notifyUser(MessageProtobuf messageProtobuf) { + // String json = JSON.toJSONString(messageProtobuf); + // bytedeskEventPublisher.publishMessageJsonEvent(json); + // } + + // public MessageProtobuf createNoticeMessage(String userUid, String orgUid, String content) { + // // + // UserProtobuf sender = UserUtils.getSystemChannelUser(); + // // + // String topic = TopicUtils.getSystemTopic(userUid); + // ThreadProtobuf thread = ThreadUtils.getThreadProtobuf(topic, ThreadTypeEnum.CHANNEL, sender); + // // + // MessageExtra extra = MessageUtils.getMessageExtra(orgUid); + // // + // MessageProtobuf message = MessageProtobuf.builder() + // .uid(uidUtils.getCacheSerialUid()) + // .type(MessageTypeEnum.NOTICE) + // .content(content) + // .status(MessageStatusEnum.SUCCESS) + // .createdAt(new Date()) + // .client(ClientEnum.SYSTEM) + // .thread(thread) + // .user(sender) + // .extra(JSON.toJSONString(extra)) + // .build(); + // return message; + // } // 通知消息:登录 - public MessageProtobuf createNoticeMessage(User user, String content) { - // - ThreadResponse noticeThread = threadService.createSystemChannelThread(user); - ThreadProtobuf thread = modelMapper.map(noticeThread, ThreadProtobuf.class); - UserProtobuf sender = thread.getUser(); - // - MessageExtra extra = MessageExtra.builder().orgUid(user.getOrgUid()).build(); - // - MessageProtobuf message = MessageProtobuf.builder() - .uid(uidUtils.getCacheSerialUid()) - .type(MessageTypeEnum.NOTICE) - .content(content) - .status(MessageStatusEnum.SUCCESS) - .createdAt(new Date()) - .client(ClientEnum.SYSTEM) - .thread(thread) - .user(sender) - .extra(JSON.toJSONString(extra)) - .build(); - - return message; - } + // public MessageProtobuf createNoticeMessage(User user, String content) { + // // + // ThreadResponse noticeThread = threadService.createSystemChannelThread(user); + // ThreadProtobuf thread = modelMapper.map(noticeThread, ThreadProtobuf.class); + // UserProtobuf sender = thread.getUser(); + // // + // MessageExtra extra = MessageExtra.builder().orgUid(user.getOrgUid()).build(); + // // + // MessageProtobuf message = MessageProtobuf.builder() + // .uid(uidUtils.getCacheSerialUid()) + // .type(MessageTypeEnum.NOTICE) + // .content(content) + // .status(MessageStatusEnum.SUCCESS) + // .createdAt(new Date()) + // .client(ClientEnum.SYSTEM) + // .thread(thread) + // .user(sender) + // .extra(JSON.toJSONString(extra)) + // .build(); + // return message; + // } // TODO: 事件消息:访客离线、访客上线 - public MessageProtobuf createEventMessage(User user, String content) { - // - ThreadResponse noticeThread = threadService.createSystemChannelThread(user); - ThreadProtobuf thread = modelMapper.map(noticeThread, ThreadProtobuf.class); - UserProtobuf sender = thread.getUser(); - // - MessageExtra extra = MessageExtra.builder().orgUid(user.getOrgUid()).build(); - // - MessageProtobuf message = MessageProtobuf.builder() - .uid(uidUtils.getCacheSerialUid()) - .type(MessageTypeEnum.EVENT) - .content(content) - .status(MessageStatusEnum.SUCCESS) - .createdAt(new Date()) - .client(ClientEnum.SYSTEM) - .thread(thread) - .user(sender) - .extra(JSON.toJSONString(extra)) - .build(); - - return message; - } + // public MessageProtobuf createEventMessage(User user, String content) { + // // + // ThreadResponse noticeThread = threadService.createSystemChannelThread(user); + // ThreadProtobuf thread = modelMapper.map(noticeThread, ThreadProtobuf.class); + // UserProtobuf sender = thread.getUser(); + // // + // MessageExtra extra = MessageExtra.builder().orgUid(user.getOrgUid()).build(); + // // + // MessageProtobuf message = MessageProtobuf.builder() + // .uid(uidUtils.getCacheSerialUid()) + // .type(MessageTypeEnum.EVENT) + // .content(content) + // .status(MessageStatusEnum.SUCCESS) + // .createdAt(new Date()) + // .client(ClientEnum.SYSTEM) + // .thread(thread) + // .user(sender) + // .extra(JSON.toJSONString(extra)) + // .build(); + + // return message; + // } } diff --git a/modules/core/src/main/java/com/bytedesk/core/message/MessageSocketService.java b/modules/core/src/main/java/com/bytedesk/core/message/MessageSocketService.java index 0d5020f0..aeb09e8b 100644 --- a/modules/core/src/main/java/com/bytedesk/core/message/MessageSocketService.java +++ b/modules/core/src/main/java/com/bytedesk/core/message/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-08-01 18:54:05 + * @LastEditTime: 2024-08-31 16:46: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. @@ -147,28 +147,5 @@ private void doSendMessage(String topic, @NonNull MessageProto.Message messagePr } } - // private void doSendToSenderClients(MessageProto.Message messageProto) { - // log.debug("doSendToSenderClients"); - // // String uid, String topic, byte[] messageBytes - // // String uid = messageProto.getUser().getUid(); - // String topic = messageProto.getThread().getTopic(); - // byte[] messageBytes = messageProto.toByteArray(); - // // - // // String sid = topic.split("/")[0]; - // // List topicList = topicService.findByTopic(sid); - // Set topicSet = topicService.findByTopic(topic); - // topicSet.forEach(topicElement -> { - // Set clientIdList = topicElement.getClientIds(); - // clientIdList.forEach(clientId -> { - // doSendMessage(topic, messageBytes, clientId); - // }); - // }); - // // - // if (topicSet.size() == 0) { - // log.debug("doSendToSenderClients: no topic"); - // // TODO: 数据库中为空,尝试匹配内存 - // // doSendMessage(topic, messageBytes, topic); - // } - // } } diff --git a/modules/core/src/main/java/com/bytedesk/core/message/MessageTypeEnum.java b/modules/core/src/main/java/com/bytedesk/core/message/MessageTypeEnum.java index 3793d687..b4141cd7 100644 --- a/modules/core/src/main/java/com/bytedesk/core/message/MessageTypeEnum.java +++ b/modules/core/src/main/java/com/bytedesk/core/message/MessageTypeEnum.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-06-05 21:50:54 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-24 06:18:04 + * @LastEditTime: 2024-09-07 18:15: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. @@ -62,6 +62,8 @@ public enum MessageTypeEnum { RATE_INVITE, // 客服邀请评价 RATE_SUBMIT, // 访客提交评价 RATE_CANCEL, // 访客取消评价 + AUTO_CLOSED, // 自动关闭 + AGENT_CLOSED, // 客服关闭 TRANSFER, TRANSFER_REJECT, TRANSFER_ACCEPT, diff --git a/modules/core/src/main/java/com/bytedesk/core/message/MessageUtils.java b/modules/core/src/main/java/com/bytedesk/core/message/MessageUtils.java new file mode 100644 index 00000000..85bf20b5 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/message/MessageUtils.java @@ -0,0 +1,88 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-08-31 16:23:54 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-07 18:13: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.message; + +import java.util.Date; + +import com.alibaba.fastjson2.JSON; +import com.bytedesk.core.config.BytedeskEventPublisher; +import com.bytedesk.core.enums.ClientEnum; +import com.bytedesk.core.rbac.user.UserProtobuf; +import com.bytedesk.core.rbac.user.UserUtils; +import com.bytedesk.core.thread.Thread; +import com.bytedesk.core.thread.ThreadProtobuf; +import com.bytedesk.core.thread.ThreadTypeEnum; +import com.bytedesk.core.thread.ThreadUtils; +import com.bytedesk.core.topic.TopicUtils; +import com.bytedesk.core.utils.ApplicationContextHolder; + +public class MessageUtils { + + public static MessageExtra getMessageExtra(String orgUid) { + return MessageExtra.builder().orgUid(orgUid).build(); + } + + public static MessageProtobuf createNoticeMessage(String messageUid, String userUid, String orgUid, + String content) { + // + UserProtobuf sender = UserUtils.getSystemChannelUser(); + // + String topic = TopicUtils.getSystemTopic(userUid); + ThreadProtobuf thread = ThreadUtils.getThreadProtobuf(topic, ThreadTypeEnum.CHANNEL, sender); + // + MessageExtra extra = MessageUtils.getMessageExtra(orgUid); + // + MessageProtobuf message = MessageProtobuf.builder() + .uid(messageUid) + .type(MessageTypeEnum.NOTICE) + .content(content) + .status(MessageStatusEnum.SUCCESS) + .createdAt(new Date()) + .client(ClientEnum.SYSTEM) + .thread(thread) + .user(sender) + .extra(JSON.toJSONString(extra)) + .build(); + return message; + } + + public static MessageProtobuf createThreadMessage(String messageUid, Thread thread, MessageTypeEnum type, String content) { + // + UserProtobuf sender = UserUtils.getSystemChannelUser(); + ThreadProtobuf threadProtobuf = thread.toProtobuf(); + MessageExtra extra = MessageUtils.getMessageExtra(thread.getOrgUid()); + // + MessageProtobuf message = MessageProtobuf.builder() + .uid(messageUid) + .type(type) + .content(content) + .status(MessageStatusEnum.SUCCESS) + .createdAt(new Date()) + .client(ClientEnum.SYSTEM) + .thread(threadProtobuf) + .user(sender) + .extra(JSON.toJSONString(extra)) + .build(); + return message; + } + + public static void notifyUser(MessageProtobuf messageProtobuf) { + String json = JSON.toJSONString(messageProtobuf); + // + BytedeskEventPublisher bytedeskEventPublisher = ApplicationContextHolder.getBean(BytedeskEventPublisher.class); + bytedeskEventPublisher.publishMessageJsonEvent(json); + } + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/message_unread/MessageUnreadEventListener.java b/modules/core/src/main/java/com/bytedesk/core/message_unread/MessageUnreadEventListener.java index e71d94ea..6c4bb438 100644 --- a/modules/core/src/main/java/com/bytedesk/core/message_unread/MessageUnreadEventListener.java +++ b/modules/core/src/main/java/com/bytedesk/core/message_unread/MessageUnreadEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-07-01 12:37:41 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-05 12:24:45 + * @LastEditTime: 2024-09-10 17:06: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. @@ -21,7 +21,9 @@ import com.bytedesk.core.message.Message; import com.bytedesk.core.message.MessageCreateEvent; import com.bytedesk.core.message.MessageStatusEnum; +import com.bytedesk.core.message.MessageTypeEnum; import com.bytedesk.core.message.MessageUpdateEvent; +import com.bytedesk.core.quartz.event.QuartzFiveSecondEvent; import com.bytedesk.core.rbac.user.UserProtobuf; import com.bytedesk.core.socket.mqtt.MqttConnectedEvent; import com.bytedesk.core.socket.stomp.StompConnectedEvent; @@ -42,7 +44,10 @@ public class MessageUnreadEventListener { @EventListener public void onMessageCreateEvent(MessageCreateEvent event) { Message message = event.getMessage(); - log.info("message unread create event: {}", message.getContent()); + if (message.getType().equals(MessageTypeEnum.STREAM.name())) { + return; + } + // log.info("message unread create event: {}", message.getContent()); // 缓存未读消息 String threadTopic = message.getThreadTopic(); String userString = message.getUser(); @@ -67,23 +72,23 @@ public void onMessageCreateEvent(MessageCreateEvent event) { } // } else if (TopicUtils.isOrgWorkgroupTopic(threadTopic)) { - // 技能组客服 topic格式:org/workgroup/{workgroup_uid}/{agent_uid}/{visitor_uid} + // 技能组客服 topic格式:org/workgroup/{workgroup_uid}/{visitor_uid} String[] splits = threadTopic.split("/"); - if (splits.length < 5) { + if (splits.length < 4) { throw new RuntimeException("workgroup topic format error"); } String workgroupUid = splits[2]; - String agentUid = splits[3]; - String visitorUid = splits[4]; - log.info("workgroupUid {}, agentUid {}, visitorUid {}", workgroupUid, agentUid, visitorUid); + // String agentUid = splits[3]; + String visitorUid = splits[3]; + log.info("workgroupUid {}, visitorUid {}", workgroupUid, visitorUid); // // 仅缓存接受者未读消息 - if (userUid.equals(agentUid)) { - messageUnreadService.create(message, visitorUid); - } - if (userUid.equals(visitorUid)) { - messageUnreadService.create(message, agentUid); - } + // if (userUid.equals(agentUid)) { + // messageUnreadService.create(message, visitorUid); + // } + // if (userUid.equals(visitorUid)) { + // messageUnreadService.create(message, agentUid); + // } } else if (TopicUtils.isOrgGroupTopic(threadTopic)) { // 群组消息 topic格式:org/group/{group_uid} @@ -122,7 +127,10 @@ public void onMessageCreateEvent(MessageCreateEvent event) { @EventListener public void onMessageUpdateEvent(MessageUpdateEvent event) { Message message = event.getMessage(); - log.info("message unread update event: {}", message.getContent()); + // log.info("message unread update event: {}", message.getContent()); + if (message.getType().equals(MessageTypeEnum.STREAM.name())) { + return; + } // String threadTopic = message.getThreadTopic(); MessageStatusEnum messageStatus = MessageStatusEnum.fromValue(message.getStatus()); @@ -145,17 +153,17 @@ public void onMessageUpdateEvent(MessageUpdateEvent event) { messageUnreadService.delete(visitorUid); // } else if (TopicUtils.isOrgWorkgroupTopic(threadTopic)) { - // 技能组客服 topic格式:org/workgroup/{workgroup_uid}/{agent_uid}/{visitor_uid} + // 技能组客服 topic格式:org/workgroup/{workgroup_uid}/{visitor_uid} String[] splits = threadTopic.split("/"); - if (splits.length < 5) { + if (splits.length < 4) { throw new RuntimeException("workgroup topic format error"); } String workgroupUid = splits[2]; - String agentUid = splits[3]; - String visitorUid = splits[4]; - log.info("workgroupUid {}, agentUid {}, visitorUid {}", workgroupUid, agentUid, visitorUid); + // String agentUid = splits[3]; + String visitorUid = splits[3]; + log.info("workgroupUid {}, visitorUid {}", workgroupUid, visitorUid); // - messageUnreadService.delete(agentUid); + // messageUnreadService.delete(agentUid); messageUnreadService.delete(visitorUid); } else if (TopicUtils.isOrgGroupTopic(threadTopic)) { @@ -183,10 +191,11 @@ public void onMessageUpdateEvent(MessageUpdateEvent event) { } } - // @EventListener - // public void onQuartzFiveSecondEvent(QuartzFiveSecondEvent event) { - // // log.info("message quartz five second event: " + event); - // } + @EventListener + public void onQuartzFiveSecondEvent(QuartzFiveSecondEvent event) { + // log.info("message quartz five second event: " + event); + + } @EventListener public void onMqttConnectEvent(MqttConnectedEvent event) { diff --git a/modules/core/src/main/java/com/bytedesk/core/notice/Notice.java b/modules/core/src/main/java/com/bytedesk/core/notice/Notice.java new file mode 100644 index 00000000..fbe1a738 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/notice/Notice.java @@ -0,0 +1,48 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-01 09:27:49 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-10 10:00: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.notice; + +import com.bytedesk.core.base.BaseEntity; + +import jakarta.persistence.Entity; +import jakarta.persistence.Table; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +/** + * TODO: 通知 + * 1. 一条消息通知-每个用户写一条 + * 2. 定期清理一段时间以前的通知 + */ +@Data +@Entity +@Builder +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@AllArgsConstructor +@NoArgsConstructor +@Table(name = "core_notice") +public class Notice extends BaseEntity { + + private String title; + + private String content; + + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/notice/NoticeController.java b/modules/core/src/main/java/com/bytedesk/core/notice/NoticeController.java new file mode 100644 index 00000000..9a268889 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/notice/NoticeController.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-01 09:28:15 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-01 09:28: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.notice; + +public class NoticeController { + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/notice/NoticeRepository.java b/modules/core/src/main/java/com/bytedesk/core/notice/NoticeRepository.java new file mode 100644 index 00000000..a09c8277 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/notice/NoticeRepository.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-01 09:29:07 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-01 09:29: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.notice; + +public class NoticeRepository { + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/notice/NoticeRequest.java b/modules/core/src/main/java/com/bytedesk/core/notice/NoticeRequest.java new file mode 100644 index 00000000..9578c624 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/notice/NoticeRequest.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-01 09:28:40 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-01 09:28:43 + * @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.core.notice; + +public class NoticeRequest { + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/notice/NoticeResponse.java b/modules/core/src/main/java/com/bytedesk/core/notice/NoticeResponse.java new file mode 100644 index 00000000..e873abaf --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/notice/NoticeResponse.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-01 09:28:51 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-01 09:28: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.notice; + +public class NoticeResponse { + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/notice/NoticeService.java b/modules/core/src/main/java/com/bytedesk/core/notice/NoticeService.java new file mode 100644 index 00000000..cc8a7102 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/notice/NoticeService.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-01 09:28:27 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-01 09:28: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.notice; + +public class NoticeService { + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/notice/NoticeSpecification.java b/modules/core/src/main/java/com/bytedesk/core/notice/NoticeSpecification.java new file mode 100644 index 00000000..331e6570 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/notice/NoticeSpecification.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-01 09:29:23 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-01 09:29: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.notice; + +public class NoticeSpecification { + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/push/Notifier.java b/modules/core/src/main/java/com/bytedesk/core/push/Notifier.java deleted file mode 100644 index f5b1a5c5..00000000 --- a/modules/core/src/main/java/com/bytedesk/core/push/Notifier.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * @Author: jackning 270580156@qq.com - * @Date: 2024-03-29 15:49:55 - * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-06-01 16:14: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. - * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.push; - -import com.bytedesk.core.message.Message; - -import jakarta.servlet.http.HttpServletRequest; - -public abstract class Notifier { - abstract void notify(Message e); - abstract void send(String to, String content, HttpServletRequest request); -} 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 bdd911ba..68d80933 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-08-26 06:18:13 + * @LastEditTime: 2024-09-09 16:16:20 * @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,6 +57,8 @@ public class Push extends BaseEntity { // according to ip address private String ipLocation; + private String deviceUid; // 设备唯一标识 + // @Enumerated(EnumType.STRING) @Builder.Default // private String status = StatusConsts.CODE_STATUS_PENDING; diff --git a/modules/core/src/main/java/com/bytedesk/core/push/PushEventListener.java b/modules/core/src/main/java/com/bytedesk/core/push/PushEventListener.java index 31b0df26..22b54cca 100644 --- a/modules/core/src/main/java/com/bytedesk/core/push/PushEventListener.java +++ b/modules/core/src/main/java/com/bytedesk/core/push/PushEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-06-27 16:24:13 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-06-27 16:38:55 + * @LastEditTime: 2024-09-10 10:22: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. @@ -17,12 +17,12 @@ import org.springframework.context.event.EventListener; import org.springframework.stereotype.Component; -import com.bytedesk.core.quartz.QuartzFiveSecondEvent; +import com.bytedesk.core.quartz.event.QuartzOneMinEvent; import lombok.AllArgsConstructor; -// import lombok.extern.slf4j.Slf4j; +import lombok.extern.slf4j.Slf4j; -// @Slf4j +@Slf4j @Component @AllArgsConstructor public class PushEventListener { @@ -30,9 +30,8 @@ public class PushEventListener { private final PushService pushService; @EventListener - public void onQuartzFiveSecondEvent(QuartzFiveSecondEvent event) { - // log.info("push quartz five second event: " + event); - + public void onQuartzOneMinEvent(QuartzOneMinEvent event) { + // log.info("push quartz one min event"); // auto outdate code pushService.autoOutdateCode(); } diff --git a/modules/core/src/main/java/com/bytedesk/core/push/PushNotifier.java b/modules/core/src/main/java/com/bytedesk/core/push/PushNotifier.java new file mode 100644 index 00000000..877e3452 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/push/PushNotifier.java @@ -0,0 +1,26 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-03-29 15:49:55 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-10 09:55: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.push; + +import com.bytedesk.core.message.Message; + +import jakarta.servlet.http.HttpServletRequest; + +public abstract class PushNotifier { + + abstract void notify(Message e); + + abstract void send(String to, String content, HttpServletRequest request); +} diff --git a/modules/core/src/main/java/com/bytedesk/core/push/PushRepository.java b/modules/core/src/main/java/com/bytedesk/core/push/PushRepository.java index 42553065..e2118bcf 100644 --- a/modules/core/src/main/java/com/bytedesk/core/push/PushRepository.java +++ b/modules/core/src/main/java/com/bytedesk/core/push/PushRepository.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-25 15:42:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-26 06:55:00 + * @LastEditTime: 2024-09-09 20:12: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. @@ -25,7 +25,11 @@ public interface PushRepository extends JpaRepository, JpaSpecificat List findByStatus(String status); Optional findByStatusAndTypeAndReceiverAndContent(String status, String type, String receiver, - String content); + String content); + + Optional findByDeviceUid(String deviceUid); + + Optional findByDeviceUidAndContent(String deviceUid, String code); Boolean existsByStatusAndTypeAndReceiver(String status, String type, String receiver); diff --git a/modules/core/src/main/java/com/bytedesk/core/push/PushRequest.java b/modules/core/src/main/java/com/bytedesk/core/push/PushRequest.java index 13732ee4..bc6d3577 100644 --- a/modules/core/src/main/java/com/bytedesk/core/push/PushRequest.java +++ b/modules/core/src/main/java/com/bytedesk/core/push/PushRequest.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-25 15:42:01 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-06-20 18:12:10 + * @LastEditTime: 2024-09-09 16:14: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. @@ -46,6 +46,10 @@ public class PushRequest extends BaseRequest { // according to ip address private String ipLocation; + // 用于扫码登录 + private Boolean forceRefresh; // 强制刷新 + private String deviceUid; // 设备唯一标识 + @Builder.Default // private PushStatusEnum status = PushStatusEnum.PENDING; private String status = PushStatusEnum.PENDING.name(); diff --git a/modules/core/src/main/java/com/bytedesk/core/push/PushResponse.java b/modules/core/src/main/java/com/bytedesk/core/push/PushResponse.java index a16448ea..0c7c8099 100644 --- a/modules/core/src/main/java/com/bytedesk/core/push/PushResponse.java +++ b/modules/core/src/main/java/com/bytedesk/core/push/PushResponse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-25 15:42:11 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-09 22:23:27 + * @LastEditTime: 2024-09-09 17:00: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. @@ -48,6 +48,8 @@ public class PushResponse extends BaseResponse { private String ipLocation; + private String deviceUid; // 设备唯一标识 + private PushStatusEnum status; private String client; diff --git a/modules/core/src/main/java/com/bytedesk/core/push/PushService.java b/modules/core/src/main/java/com/bytedesk/core/push/PushService.java index 3fba9214..d954e2ac 100644 --- a/modules/core/src/main/java/com/bytedesk/core/push/PushService.java +++ b/modules/core/src/main/java/com/bytedesk/core/push/PushService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-25 15:41:33 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-26 06:55:08 + * @LastEditTime: 2024-09-09 20:35: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. @@ -21,7 +21,6 @@ import org.modelmapper.ModelMapper; import org.springframework.cache.annotation.CachePut; -import org.springframework.cache.annotation.Cacheable; import org.springframework.cache.annotation.Caching; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; @@ -113,7 +112,7 @@ public Boolean sendCode(String receiver, String type, String client, String auth code = bytedeskProperties.getMobileCode(); log.info("test code: {}", code); } else { - code = Utils.getRandomCode(receiver); + code = Utils.getRandomCode(); } if (type.equals(TypeConsts.TYPE_EMAIL)) { @@ -138,6 +137,67 @@ public Boolean sendCode(String receiver, String type, String client, String auth return true; } + public PushResponse scanQuery(PushRequest pushRequest, HttpServletRequest request) { + + Optional pushOptional = findByDeviceUid(pushRequest.getDeviceUid()); + if (pushOptional.isPresent()) { + Push push = pushOptional.get(); + // + if (pushRequest.getForceRefresh().booleanValue()) { + push.setStatus(PushStatusEnum.PENDING.name()); + save(push); + } + // + return convertToResponse(push); + } + + String ip = ipService.getIp(request); + String ipLocation = ipService.getIpLocation(ip); + // + Push push = modelMapper.map(pushRequest, Push.class); + push.setUid(uidUtils.getCacheSerialUid()); + push.setType(TypeConsts.TYPE_SCAN); + push.setSender(TypeConsts.TYPE_SYSTEM); + push.setContent(Utils.getRandomCode()); + push.setIp(ip); + push.setIpLocation(ipLocation); + // + Push savedPush = save(push); + if (savedPush == null) { + throw new RuntimeException("scan query failed"); + } + return convertToResponse(savedPush); + } + + public PushResponse scan(PushRequest pushRequest, HttpServletRequest request) { + + Push push = findByDeviceUid(pushRequest.getDeviceUid()) + .orElseThrow(() -> new RuntimeException("scan deviceUid " + pushRequest.getDeviceUid() + " not found")); + + push.setStatus(PushStatusEnum.SCANED.name()); + // + Push savedPush = save(push); + if (savedPush == null) { + throw new RuntimeException("scan save failed"); + } + return convertToResponse(savedPush); + } + + public PushResponse scanConfirm(PushRequest pushRequest, HttpServletRequest request) { + + Push push = findByDeviceUid(pushRequest.getDeviceUid()) + .orElseThrow(() -> new RuntimeException( + "scanConfirm deviceUid " + pushRequest.getDeviceUid() + " not found")); + push.setReceiver(pushRequest.getReceiver()); + push.setStatus(PushStatusEnum.CONFIRMED.name()); + // + Push savedPush = save(push); + if (savedPush == null) { + throw new RuntimeException("scanConfirm save failed"); + } + return convertToResponse(savedPush); + } + public PushResponse create(PushRequest pushRequest) { log.info("pushRequest {}", pushRequest.toString()); @@ -149,6 +209,7 @@ public PushResponse create(PushRequest pushRequest) { if (savedPush == null) { throw new RuntimeException("create push failed"); } + // return convertToResponse(savedPush); } @@ -162,15 +223,6 @@ public Boolean validateSmsCode(String mobile, String code) { public Boolean validateCode(String receiver, String type, String code) { // check if has already send validate code within 15min - - // Boolean result = - // pushRepository.existsByStatusAndTypeAndReceiverAndContent(StatusConsts.CODE_STATUS_PENDING, - // type, receiver, code); - // if (result) { - // // TODO: 更新状态 - // } - // return result; - // Optional pushOptional = findByStatusAndTypeAndReceiverAndContent(PushStatusEnum.PENDING, type, receiver, code); if (pushOptional.isPresent()) { @@ -189,6 +241,10 @@ public Optional findByStatusAndTypeAndReceiverAndContent(PushStatusEnum st return pushRepository.findByStatusAndTypeAndReceiverAndContent(status.name(), type, receiver, content); } + public Optional findByDeviceUid(String deviceUid) { + return pushRepository.findByDeviceUid(deviceUid); + } + public Boolean existsByStatusAndTypeAndReceiver(PushStatusEnum status, String type, String receiver) { return pushRepository.existsByStatusAndTypeAndReceiver(status.name(), type, receiver); } @@ -201,32 +257,38 @@ public Push save(Push push) { try { return pushRepository.save(push); } catch (Exception e) { - // TODO: handle exception + e.printStackTrace(); } return null; } // TODO: 更新缓存 - @Cacheable(value = "pushPending") + // @Cacheable(value = "pushPending") public List findStatusPending() { - // return pushRepository.findByStatus(StatusConsts.CODE_STATUS_PENDING); return pushRepository.findByStatus(PushStatusEnum.PENDING.name()); } // 自动过期 - // TODO: 频繁查库,待优化 @Async public void autoOutdateCode() { List pendingPushes = findStatusPending(); + // log.info("autoOutdateCode pendingPushes {}", pendingPushes.size()); pendingPushes.forEach(push -> { // 计算两个日期之间的毫秒差 long diffInMilliseconds = Math.abs(new Date().getTime() - push.getUpdatedAt().getTime()); // 转换为分钟 long diffInMinutes = TimeUnit.MILLISECONDS.toMinutes(diffInMilliseconds); - // 验证码有效时间15分钟 - if (diffInMinutes > 15) { - // TODO: 过期,清空缓存 - // push.setStatus(StatusConsts.CODE_STATUS_EXPIRED); + // log.info("autoOutdateCode diffInMinutes {} {}", push.getContent(), diffInMinutes); + // + if (push.getType().equals(TypeConsts.TYPE_SCAN)) { + // log.info("autoOutdateCode scan TypeConsts.TYPE_SCAN"); + // 扫码有效时间3分钟 + if (diffInMinutes > 3) { + push.setStatus(PushStatusEnum.EXPIRED.name()); + save(push); + } + } else if (diffInMinutes > 15) { + // 手机验证码有效时间15分钟 push.setStatus(PushStatusEnum.EXPIRED.name()); save(push); } diff --git a/modules/core/src/main/java/com/bytedesk/core/push/PushServiceImplAndroid.java b/modules/core/src/main/java/com/bytedesk/core/push/PushServiceImplAndroid.java index 7e750c6c..327b8086 100644 --- a/modules/core/src/main/java/com/bytedesk/core/push/PushServiceImplAndroid.java +++ b/modules/core/src/main/java/com/bytedesk/core/push/PushServiceImplAndroid.java @@ -22,8 +22,7 @@ import jakarta.servlet.http.HttpServletRequest; @Service -public class PushServiceImplAndroid extends Notifier { - +public class PushServiceImplAndroid extends PushNotifier { @Async @Override @@ -37,9 +36,8 @@ void send(String to, String content, HttpServletRequest request) { // TODO: 检测同一个ip是否短时间内有发送过验证码,如果短时间内发送过,则不发送 - // TODO Auto-generated method stub throw new UnsupportedOperationException("Unimplemented method 'send'"); } - + } 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 04ba8df4..34111bb6 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 @@ -38,7 +38,7 @@ */ @Slf4j @Service -public class PushServiceImplEmail extends Notifier { +public class PushServiceImplEmail extends PushNotifier { @Async @Override @@ -51,10 +51,10 @@ void notify(Message e) { @Override void send(String email, String content, HttpServletRequest request) { log.info("send email to {}, content {}", email, content); - // + // sendValidateCode(email, content); } - + @Value("${aliyun.access.key.id}") private String accessKeyId; @@ -80,7 +80,6 @@ public void sendValidateCode(String email, String code) { // TODO: 检测同一个ip是否短时间内有发送过验证码,如果短时间内发送过,则不发送 - // 如果是除杭州region外的其它region(如新加坡、澳洲Region),需要将下面的"cn-hangzhou"替换为"ap-southeast-1"、或"ap-southeast-2"。 IClientProfile profile = DefaultProfile.getProfile("cn-hangzhou", accessKeyId, accessKeySecret); // 如果是除杭州region外的其它region(如新加坡region), 需要做如下处理 @@ -121,5 +120,4 @@ public void sendValidateCode(String email, String code) { } } - } diff --git a/modules/core/src/main/java/com/bytedesk/core/push/PushServiceImplIos.java b/modules/core/src/main/java/com/bytedesk/core/push/PushServiceImplIos.java index 446d0f79..2318e467 100644 --- a/modules/core/src/main/java/com/bytedesk/core/push/PushServiceImplIos.java +++ b/modules/core/src/main/java/com/bytedesk/core/push/PushServiceImplIos.java @@ -22,7 +22,7 @@ import jakarta.servlet.http.HttpServletRequest; @Service -public class PushServiceImplIos extends Notifier { +public class PushServiceImplIos extends PushNotifier { @Async @Override @@ -35,9 +35,9 @@ void notify(Message e) { void send(String to, String content, HttpServletRequest request) { // TODO: 检测同一个ip是否短时间内有发送过验证码,如果短时间内发送过,则不发送 - + // TODO Auto-generated method stub throw new UnsupportedOperationException("Unimplemented method 'send'"); } - + } diff --git a/modules/core/src/main/java/com/bytedesk/core/push/PushServiceImplSms.java b/modules/core/src/main/java/com/bytedesk/core/push/PushServiceImplSms.java index 91c8ca3f..de64e63b 100644 --- a/modules/core/src/main/java/com/bytedesk/core/push/PushServiceImplSms.java +++ b/modules/core/src/main/java/com/bytedesk/core/push/PushServiceImplSms.java @@ -35,7 +35,7 @@ @Slf4j @Service -public class PushServiceImplSms extends Notifier { +public class PushServiceImplSms extends PushNotifier { // @Value("${bytedesk.debug}") // private Boolean debug; @@ -68,7 +68,7 @@ void send(String mobile, String content, HttpServletRequest request) { log.info("send sms to {}, content: {}", mobile, content); // TODO: 检测同一个ip是否短时间内有发送过验证码,如果短时间内发送过,则不发送 - + // not test mobile, send sms if (Utils.isTestMobile(mobile)) { return; @@ -82,12 +82,10 @@ void send(String mobile, String content, HttpServletRequest request) { sendValidateCode(mobile, content); } - - public void sendValidateCode(String phone, String code) { // if (debug) { - // return; + // return; // } DefaultProfile profile = DefaultProfile.getProfile("cn-hangzhou", accessKeyId, accessKeySecret); diff --git a/modules/core/src/main/java/com/bytedesk/core/push/PushSmsTypeEnum.java b/modules/core/src/main/java/com/bytedesk/core/push/PushSmsTypeEnum.java new file mode 100644 index 00000000..821c0b75 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/push/PushSmsTypeEnum.java @@ -0,0 +1,29 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-09 14:26:20 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-09 14: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.push; + +public enum PushSmsTypeEnum { + LOGIN, REGISTER, SCAN, FORGET, VERIFY; + + // 根据字符串查找对应的枚举常量 + public static PushSmsTypeEnum fromValue(String value) { + for (PushSmsTypeEnum type : PushSmsTypeEnum.values()) { + if (type.name().equalsIgnoreCase(value)) { + return type; + } + } + throw new IllegalArgumentException("No PushSmsTypeEnum constant with value: " + value); + } +} diff --git a/modules/core/src/main/java/com/bytedesk/core/push/PushStatusEnum.java b/modules/core/src/main/java/com/bytedesk/core/push/PushStatusEnum.java index 2307eeb1..7dbb9739 100644 --- a/modules/core/src/main/java/com/bytedesk/core/push/PushStatusEnum.java +++ b/modules/core/src/main/java/com/bytedesk/core/push/PushStatusEnum.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-05-25 10:40:08 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-26 06:58:25 + * @LastEditTime: 2024-09-09 16:41: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. @@ -16,6 +16,7 @@ public enum PushStatusEnum { PENDING, + SCANED, CONFIRMED, EXPIRED, SUCCESS, diff --git a/modules/core/src/main/java/com/bytedesk/core/push/PushToken.java b/modules/core/src/main/java/com/bytedesk/core/push/PushToken.java new file mode 100644 index 00000000..277be951 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/push/PushToken.java @@ -0,0 +1,53 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-11 09:21:23 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-11 09:21: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.push; + +import com.bytedesk.core.base.BaseEntity; + +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +/** + * 离线推送token + */ +@Data +@Entity +@Builder +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@AllArgsConstructor +@NoArgsConstructor +@Table(name = "core_push_token") +public class PushToken extends BaseEntity { + + + private String token; + + // dev or prod + @Column(name = "token_type") + private String type; + + // ios or android + private String device; + + private String userUid; +} diff --git a/modules/core/src/main/java/com/bytedesk/core/quartz/QuartzConfig.java b/modules/core/src/main/java/com/bytedesk/core/quartz/QuartzConfig.java index 625a14e3..bc8ae630 100644 --- a/modules/core/src/main/java/com/bytedesk/core/quartz/QuartzConfig.java +++ b/modules/core/src/main/java/com/bytedesk/core/quartz/QuartzConfig.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-28 13:05:47 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-05-17 11:39:54 + * @LastEditTime: 2024-09-09 16:28: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. @@ -22,7 +22,9 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import com.bytedesk.core.quartz.job.FiveMinJob; import com.bytedesk.core.quartz.job.FiveSecondJob; +import com.bytedesk.core.quartz.job.OneMinJob; /** * Cron使用方法: @@ -78,6 +80,58 @@ public Trigger fiveSecondJobTrigger() { .withSchedule(scheduleBuilder) .build(); } + + /** + * 每5分钟运行一次 + */ + @Bean + public JobDetail fiveMinJobJobDetail() { + return JobBuilder.newJob(FiveMinJob.class) + .withIdentity("FiveMinJob", "bytedesk") + .withDescription("每5分钟运行一次") + .storeDurably() + .build(); + } + + @Bean + public Trigger fiveMinJobTrigger() { + SimpleScheduleBuilder scheduleBuilder = SimpleScheduleBuilder + .simpleSchedule() + .withIntervalInMinutes(5) + .repeatForever(); + return TriggerBuilder.newTrigger() + .forJob(fiveMinJobJobDetail()) + .withIdentity("fiveMinJobTrigger", "bytedesk") + .withDescription("每隔5分钟检查一次") + .withSchedule(scheduleBuilder) + .build(); + } + + /** + * 每1分钟运行一次 + */ + @Bean + public JobDetail oneMinJobJobDetail() { + return JobBuilder.newJob(OneMinJob.class) + .withIdentity("OneMinJob", "bytedesk") + .withDescription("每1分钟运行一次") + .storeDurably() + .build(); + } + + @Bean + public Trigger oneMinJobTrigger() { + SimpleScheduleBuilder scheduleBuilder = SimpleScheduleBuilder + .simpleSchedule() + .withIntervalInMinutes(1) + .repeatForever(); + return TriggerBuilder.newTrigger() + .forJob(oneMinJobJobDetail()) + .withIdentity("oneMinJobTrigger", "bytedesk") + .withDescription("每隔1分钟检查一次") + .withSchedule(scheduleBuilder) + .build(); + } diff --git a/modules/core/src/main/java/com/bytedesk/core/quartz/event/QuartzFiveMinEvent.java b/modules/core/src/main/java/com/bytedesk/core/quartz/event/QuartzFiveMinEvent.java new file mode 100644 index 00000000..aa0119fb --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/quartz/event/QuartzFiveMinEvent.java @@ -0,0 +1,31 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-02-28 14:37:33 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-09 16:23: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.quartz.event; + +import org.springframework.context.ApplicationEvent; + +import lombok.Data; +import lombok.EqualsAndHashCode; + +@Data +@EqualsAndHashCode(callSuper = false) +public class QuartzFiveMinEvent extends ApplicationEvent { + + public QuartzFiveMinEvent(Object source) { + super(source); + //TODO Auto-generated constructor stub + } + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/quartz/QuartzFiveSecondEvent.java b/modules/core/src/main/java/com/bytedesk/core/quartz/event/QuartzFiveSecondEvent.java similarity index 96% rename from modules/core/src/main/java/com/bytedesk/core/quartz/QuartzFiveSecondEvent.java rename to modules/core/src/main/java/com/bytedesk/core/quartz/event/QuartzFiveSecondEvent.java index f2f8ff20..2507970b 100644 --- a/modules/core/src/main/java/com/bytedesk/core/quartz/QuartzFiveSecondEvent.java +++ b/modules/core/src/main/java/com/bytedesk/core/quartz/event/QuartzFiveSecondEvent.java @@ -12,7 +12,7 @@ * 联系:270580156@qq.com * Copyright (c) 2024 by bytedesk.com, All Rights Reserved. */ -package com.bytedesk.core.quartz; +package com.bytedesk.core.quartz.event; import org.springframework.context.ApplicationEvent; diff --git a/modules/core/src/main/java/com/bytedesk/core/quartz/event/QuartzOneMinEvent.java b/modules/core/src/main/java/com/bytedesk/core/quartz/event/QuartzOneMinEvent.java new file mode 100644 index 00000000..78e0bd5f --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/quartz/event/QuartzOneMinEvent.java @@ -0,0 +1,31 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-02-28 14:37:33 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-09 16:25: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.quartz.event; + +import org.springframework.context.ApplicationEvent; + +import lombok.Data; +import lombok.EqualsAndHashCode; + +@Data +@EqualsAndHashCode(callSuper = false) +public class QuartzOneMinEvent extends ApplicationEvent { + + public QuartzOneMinEvent(Object source) { + super(source); + //TODO Auto-generated constructor stub + } + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/quartz/job/FiveMinJob.java b/modules/core/src/main/java/com/bytedesk/core/quartz/job/FiveMinJob.java new file mode 100644 index 00000000..a4d3a2b5 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/quartz/job/FiveMinJob.java @@ -0,0 +1,51 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-02-28 13:07:58 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-09 20:29: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.quartz.job; + +import java.io.Serializable; + +import org.quartz.DisallowConcurrentExecution; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; +import org.springframework.lang.NonNull; +import org.springframework.scheduling.quartz.QuartzJobBean; + +import com.bytedesk.core.config.BytedeskEventPublisher; + +import lombok.AllArgsConstructor; + +// import lombok.extern.slf4j.Slf4j; + +/** + * 5 min job + * 5分钟定时任务 + * + */ +// @Slf4j +@AllArgsConstructor +@DisallowConcurrentExecution +public class FiveMinJob extends QuartzJobBean implements Serializable { + + private static final long serialVersionUID = 1L; + + private final BytedeskEventPublisher bytedeskEventPublisher; + + @Override + protected void executeInternal(@NonNull JobExecutionContext context) throws JobExecutionException { + // log.info("FiveMinJob"); + bytedeskEventPublisher.publishQuartzFiveMinEvent(); + } + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/quartz/job/OneMinJob.java b/modules/core/src/main/java/com/bytedesk/core/quartz/job/OneMinJob.java new file mode 100644 index 00000000..f0ac1baa --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/quartz/job/OneMinJob.java @@ -0,0 +1,51 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-02-28 13:07:58 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-09 20:28: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.quartz.job; + +import java.io.Serializable; + +import org.quartz.DisallowConcurrentExecution; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; +import org.springframework.lang.NonNull; +import org.springframework.scheduling.quartz.QuartzJobBean; + +import com.bytedesk.core.config.BytedeskEventPublisher; + +import lombok.AllArgsConstructor; + +// import lombok.extern.slf4j.Slf4j; + +/** + * 1 min job + * 1分钟定时任务 + * + */ +// @Slf4j +@AllArgsConstructor +@DisallowConcurrentExecution +public class OneMinJob extends QuartzJobBean implements Serializable { + + private static final long serialVersionUID = 1L; + + private final BytedeskEventPublisher bytedeskEventPublisher; + + @Override + protected void executeInternal(@NonNull JobExecutionContext context) throws JobExecutionException { + // log.info("OneMinJob"); + bytedeskEventPublisher.publishQuartzOneMinEvent(); + } + +} 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 a9dd74ad..bb594612 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 @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-12 16:56:29 + * @LastEditTime: 2024-09-08 15:50: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. @@ -52,17 +52,12 @@ public class AuthController { private AuthService authService; - private AuthenticationManager authenticationManager; - private PushService pushService; private KaptchaCacheService kaptchaCacheService; - /** - * - * @param userRequest - * @return - */ + private AuthenticationManager authenticationManager; + @ActionAnnotation(title = "auth", action = "register", description = "register") @PostMapping(value = "/register") public ResponseEntity register(@RequestBody UserRequest userRequest) { @@ -198,19 +193,9 @@ public ResponseEntity loginWithEmailCode(@RequestBody AuthRequest authRequest return ResponseEntity.ok(JsonResult.success(authResponse)); } + // TODO: 刷新token // @PostMapping("/refreshToken") - // public JwtResponse refreshToken(@RequestBody RefreshTokenRequest - // refreshTokenRequestDTO) { - // return refreshTokenService.findByToken(refreshTokenRequestDTO.getToken()) - // .map(refreshTokenService::verifyExpiration) - // .map(RefreshToken::getUser) - // .map(userInfo -> { - // String accessToken = jwtService.generateToken(userInfo.getUsername()); - // // String accessToken = jwtUtils.generateJwtToken(userInfo.getUsername()); - // return JwtResponse.builder() - // .access_token(accessToken) - // .refresh_token(refreshTokenRequestDTO.getToken()).build(); - // }).orElseThrow(() -> new RuntimeException("Refresh Token is not in DB..!!")); + // public JwtResponse refreshToken(@RequestBody RefreshTokenRequest refreshTokenRequestDTO) { // } } diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/auth/AuthEventListener.java b/modules/core/src/main/java/com/bytedesk/core/rbac/auth/AuthEventListener.java index 481df921..94fe067c 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/auth/AuthEventListener.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/auth/AuthEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-08-19 11:36:50 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-23 21:39:15 + * @LastEditTime: 2024-09-07 16:56: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. @@ -24,8 +24,9 @@ import com.bytedesk.core.constant.BdConstants; import com.bytedesk.core.constant.I18Consts; import com.bytedesk.core.message.MessageProtobuf; -import com.bytedesk.core.message.MessageService; +import com.bytedesk.core.message.MessageUtils; import com.bytedesk.core.rbac.user.User; +import com.bytedesk.core.uid.UidUtils; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -35,11 +36,13 @@ @AllArgsConstructor public class AuthEventListener { - private final MessageService messageService; + // private final MessageService messageService; + + private final UidUtils uidUtils; @EventListener public void onActionCreateEvent(ActionCreateEvent event) { - log.info("onActionCreateEvent Received event: {}", event.getAction().getTitle()); + log.info("onActionCreateEvent Received event: {}", event.toString()); // do something Action action = event.getAction(); // 监听登录action,发送登录系统消息,提醒相关用户 @@ -53,9 +56,11 @@ public void onActionCreateEvent(ActionCreateEvent event) { contentObject.put(I18Consts.I18N_NOTICE_CONTENT, action.getAction()); contentObject.put(I18Consts.I18N_NOTICE_IP, action.getIp()); contentObject.put(I18Consts.I18N_NOTICE_IPLOCATION, action.getIpLocation()); - MessageProtobuf messsage = messageService.createNoticeMessage(user, JSON.toJSONString(contentObject)); - // - messageService.notifyUser(messsage); + // + // MessageProtobuf messsage = messageService.createNoticeMessage(user, JSON.toJSONString(contentObject)); + MessageProtobuf messsage = MessageUtils.createNoticeMessage(uidUtils.getCacheSerialUid(), user.getUid(), user.getOrgUid(), + JSON.toJSONString(contentObject)); + MessageUtils.notifyUser(messsage); } } diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserExtra.java b/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserExtra.java index 9c9bfc72..09c3bd0a 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserExtra.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserExtra.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-07-26 10:01:53 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-26 10:01:55 + * @LastEditTime: 2024-09-07 09:39: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. diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserProtobuf.java b/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserProtobuf.java index 48bd25cf..694b91a2 100644 --- a/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserProtobuf.java +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserProtobuf.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-06-29 16:22:46 + * @LastEditTime: 2024-09-07 10:15: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. @@ -34,11 +34,15 @@ @EqualsAndHashCode(callSuper = true) public class UserProtobuf extends BaseResponse { - private static final long serialVersionUID = 1L; + private static final long serialVersionUID = 1L; private String nickname; - + private String avatar; + // ROBOT/AGENT/SYSTEM/USER/VISITOR + @Builder.Default + private String type = UserTypeEnum.VISITOR.name(); + private String extra; } diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserTypeEnum.java b/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserTypeEnum.java new file mode 100644 index 00000000..f764e978 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserTypeEnum.java @@ -0,0 +1,26 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-03 12:37:26 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-07 11:46: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.rbac.user; + +public enum UserTypeEnum { + AGENT, + SYSTEM, + VISITOR, + ROBOT, + MEMBER, + ASISTANT, + CHANNEL, + USER +} diff --git a/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserUtils.java b/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserUtils.java new file mode 100644 index 00000000..55e872f8 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/rbac/user/UserUtils.java @@ -0,0 +1,41 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-08-31 16:20:44 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-08-31 16:20: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.rbac.user; + +import com.bytedesk.core.constant.AvatarConsts; +import com.bytedesk.core.constant.BdConstants; +import com.bytedesk.core.constant.I18Consts; + +public class UserUtils { + + public static UserProtobuf getFileAsistantUser() { + UserProtobuf user = UserProtobuf.builder() + .nickname(I18Consts.I18N_FILE_ASISTANT_NAME) + .avatar(AvatarConsts.DEFAULT_FILE_ASISTANT_AVATAR_URL) + .build(); + user.setUid(BdConstants.DEFAULT_FILE_ASISTANT_UID); + return user; + } + + public static UserProtobuf getSystemChannelUser() { + UserProtobuf user = UserProtobuf.builder() + .nickname(I18Consts.I18N_SYSTEM_NOTIFICATION_NAME) + .avatar(AvatarConsts.DEFAULT_SYSTEM_NOTIFICATION_AVATAR_URL) + .build(); + user.setUid(BdConstants.DEFAULT_SYSTEM_UID); + return user; + } + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubController.java b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubController.java index b2c63c2d..4f4de9c5 100644 --- a/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubController.java +++ b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubController.java @@ -15,7 +15,7 @@ package com.bytedesk.core.redis.pubsub; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.redis.core.RedisTemplate; +// import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; @@ -39,8 +39,8 @@ public class RedisPubsubController { @Autowired private StringRedisTemplate stringRedisTemplate; - @Autowired - private RedisTemplate redisTemplate; + // @Autowired + // private RedisTemplate redisTemplate; /** * http://127.0.0.1:9003/redis/pubsub/send?message=hello @@ -64,17 +64,17 @@ public JsonResult publishText(@RequestParam String message) { * @param message * @return */ - @GetMapping("/send/object") - public JsonResult publishObject(@RequestParam String message) { - log.info("redisPubsub send: {}", message); - // - RedisPubsubMessage messageDto = RedisPubsubMessage.builder() - .type("text") - .content("pubsub") - .build(); - redisTemplate.convertAndSend(RedisPubsubConst.BYTEDESK_PUBSUB_CHANNEL_OBJECT, messageDto); + // @GetMapping("/send/object") + // public JsonResult publishObject(@RequestParam String message) { + // log.info("redisPubsub send: {}", message); + // // + // RedisPubsubMessage messageDto = RedisPubsubMessage.builder() + // .type("text") + // .fileUrl("pubsub").fileUid("").kbUid("") + // .build(); + // redisTemplate.convertAndSend(RedisPubsubConst.BYTEDESK_PUBSUB_CHANNEL_OBJECT, messageDto); - return new JsonResult<>("send object", 200, message); - } + // return new JsonResult<>("send object", 200, message); + // } } diff --git a/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubMessage.java b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubMessage.java index a693c9db..97e638a0 100644 --- a/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubMessage.java +++ b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubMessage.java @@ -1,3 +1,17 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-04-15 17:13:01 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-08-30 16:05: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.redis.pubsub; import java.io.Serializable; @@ -8,6 +22,7 @@ import lombok.NoArgsConstructor; import lombok.Data; +// java发送,python接收 @Data @Builder @AllArgsConstructor @@ -19,4 +34,5 @@ public class RedisPubsubMessage implements Serializable { private String type; private String content; + } diff --git a/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubMessageType.java b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubMessageType.java new file mode 100644 index 00000000..c7a87581 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubMessageType.java @@ -0,0 +1,42 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-08-28 14:45:30 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-08-30 16:42: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.redis.pubsub; + +public enum RedisPubsubMessageType { + PARSE_FILE, + PARSE_FILE_SUCCESS, + PARSE_FILE_ERROR, + // + DELETE_FILE, + DELETE_FILE_SUCCESS, + DELETE_FILE_ERROR, + // + QUESTION, + ANSWER, + ANSWER_FINISHED, + + ; + + // 根据字符串查找对应的枚举常量 + public static RedisPubsubMessageType fromValue(String value) { + for (RedisPubsubMessageType type : RedisPubsubMessageType.values()) { + if (type.name().equalsIgnoreCase(value)) { + return type; + } + } + throw new IllegalArgumentException("No RedisPubsubMessageType constant with value: " + value); + } + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubObjectListener.java b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubObjectListener.java index 4e18a6cd..a85a6e41 100644 --- a/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubObjectListener.java +++ b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubObjectListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-15 17:13:01 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-23 17:36:13 + * @LastEditTime: 2024-08-30 16:15: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. @@ -26,7 +26,8 @@ public void onMessage(RedisPubsubMessage message, String pattern) { log.info("redisPubsub receiveObject: topic: {} type {}, content: {} ", pattern, message.getType(), - message.getContent()); + message.getContent() + ); } } diff --git a/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubParseFileErrorEvent.java b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubParseFileErrorEvent.java new file mode 100644 index 00000000..c5c6da66 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubParseFileErrorEvent.java @@ -0,0 +1,37 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-08-30 17:38:05 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-08-30 17:39: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.redis.pubsub; + +import org.springframework.context.ApplicationEvent; + +import com.bytedesk.core.redis.pubsub.message.RedisPubsubMessageFile; + +import lombok.Data; +import lombok.EqualsAndHashCode; + +@Data +@EqualsAndHashCode(callSuper = false) +public class RedisPubsubParseFileErrorEvent extends ApplicationEvent { + + private static final long serialVersionUID = 1L; + + private RedisPubsubMessageFile messageFile; + + public RedisPubsubParseFileErrorEvent(Object source, RedisPubsubMessageFile messageFile) { + super(source); + this.messageFile = messageFile; + } + +} \ No newline at end of file diff --git a/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubParseFileSuccessEvent.java b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubParseFileSuccessEvent.java new file mode 100644 index 00000000..e37974a5 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubParseFileSuccessEvent.java @@ -0,0 +1,37 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-08-30 17:27:47 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-08-30 17:29: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.redis.pubsub; + +import org.springframework.context.ApplicationEvent; + +import com.bytedesk.core.redis.pubsub.message.RedisPubsubMessageFile; + +import lombok.Data; +import lombok.EqualsAndHashCode; + +@Data +@EqualsAndHashCode(callSuper = false) +public class RedisPubsubParseFileSuccessEvent extends ApplicationEvent { + + private static final long serialVersionUID = 1L; + + private RedisPubsubMessageFile messageFile; + + public RedisPubsubParseFileSuccessEvent(Object source, RedisPubsubMessageFile messageFile) { + super(source); + this.messageFile = messageFile; + } + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubService.java b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubService.java index ba0ef976..faa86599 100644 --- a/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubService.java +++ b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-08-23 19:25:35 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-23 19:25:39 + * @LastEditTime: 2024-08-31 08:06: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,11 +14,77 @@ */ package com.bytedesk.core.redis.pubsub; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.Service; +import com.alibaba.fastjson2.JSON; +import com.bytedesk.core.redis.pubsub.message.RedisPubsubMessageFile; +import com.bytedesk.core.redis.pubsub.message.RedisPubsubMessageQa; + @Service public class RedisPubsubService { + @Autowired + private StringRedisTemplate stringRedisTemplate; + + public void sendParseFileMessage(String fileUid, String fileUrl, String kbUid) { + // + RedisPubsubMessageFile messageFile = RedisPubsubMessageFile.builder() + .fileUid(fileUid) + .fileUrl(fileUrl) + .kbUid(kbUid) + .build(); + // + RedisPubsubMessage messageObject = RedisPubsubMessage.builder() + .type(RedisPubsubMessageType.PARSE_FILE.name()) + .content(JSON.toJSONString(messageFile)) + .build(); + // + stringRedisTemplate.convertAndSend( + RedisPubsubConst.BYTEDESK_PUBSUB_CHANNEL_STRING, + JSON.toJSONString(messageObject)); + } - + public void sendDeleteFileMessage(String fileUid, List docIds) { + // + RedisPubsubMessageFile messageFile = RedisPubsubMessageFile.builder() + .fileUid(fileUid) + .docIds(docIds) + .build(); + // + RedisPubsubMessage messageObject = RedisPubsubMessage.builder() + .type(RedisPubsubMessageType.DELETE_FILE.name()) + .content(JSON.toJSONString(messageFile)) + .build(); + // + stringRedisTemplate.convertAndSend( + RedisPubsubConst.BYTEDESK_PUBSUB_CHANNEL_STRING, + JSON.toJSONString(messageObject)); + } + + public void sendQuestionMessage(String uid, String threadTopic, String kbUid, String question) { + // + RedisPubsubMessageQa messageQa = RedisPubsubMessageQa.builder() + .uid(uid) + .threadTopic(threadTopic) + .kbUid(kbUid) + .question(question) + .build(); + // + RedisPubsubMessage messageObject = RedisPubsubMessage.builder() + .type(RedisPubsubMessageType.QUESTION.name()) + .content(JSON.toJSONString(messageQa)) + .build(); + // + stringRedisTemplate.convertAndSend( + RedisPubsubConst.BYTEDESK_PUBSUB_CHANNEL_STRING, + JSON.toJSONString(messageObject)); + } + + + + } diff --git a/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubStringListener.java b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubStringListener.java index e639bb97..3d0d7c8f 100644 --- a/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubStringListener.java +++ b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/RedisPubsubStringListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-15 17:13:01 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-23 17:36:36 + * @LastEditTime: 2024-09-07 17:11: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,21 +14,121 @@ */ package com.bytedesk.core.redis.pubsub; +import java.util.LinkedList; +import java.util.Queue; + import org.springframework.data.redis.connection.Message; import org.springframework.data.redis.connection.MessageListener; import org.springframework.stereotype.Service; + +import com.alibaba.fastjson2.JSON; +import com.bytedesk.core.config.BytedeskEventPublisher; +import com.bytedesk.core.event.GenericApplicationEvent; +import com.bytedesk.core.message.MessageCache; +import com.bytedesk.core.message.MessageProtobuf; +import com.bytedesk.core.message.MessageTypeEnum; +import com.bytedesk.core.message.MessageUtils; +import com.bytedesk.core.redis.pubsub.message.RedisPubsubMessageFile; +import com.bytedesk.core.redis.pubsub.message.RedisPubsubMessageQa; +import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; @Slf4j @Service +@AllArgsConstructor public class RedisPubsubStringListener implements MessageListener { + + private final BytedeskEventPublisher eventPublisher; + + private final MessageCache messageCache; + + // private final BytedeskEventPublisher bytedeskEventPublisher; + + private final Queue messageQueue = new LinkedList<>(); + @Override public void onMessage(Message message, byte[] pattern) { // log.info("onMessage,{}", message.toString()); String channel = new String(message.getChannel()); - // log.info("channel:" + channel); String messageContext = new String(message.getBody()); + // + RedisPubsubMessage redisPubsubMessage = JSON.parseObject(messageContext, RedisPubsubMessage.class); + log.info("redisPubsub receiveString: {}, type {}", channel, redisPubsubMessage.getType()); + // + if (redisPubsubMessage.getType().equals(RedisPubsubMessageType.PARSE_FILE_SUCCESS.name())) { + // 解析成功 + log.info("parse file success, content {}", redisPubsubMessage.getContent()); + RedisPubsubMessageFile messageFile = JSON.parseObject(redisPubsubMessage.getContent(), + RedisPubsubMessageFile.class); + log.info("fileUid {}, docIds {}", messageFile.getFileUid(), messageFile.getDocIds()); + // + eventPublisher.publishGenericApplicationEvent(new GenericApplicationEvent( + this, new RedisPubsubParseFileSuccessEvent(this, messageFile))); + + } else if (redisPubsubMessage.getType().equals(RedisPubsubMessageType.PARSE_FILE_ERROR.name())) { + // 解析失败 + log.info("parse file error, content {}", redisPubsubMessage.getContent()); + RedisPubsubMessageFile messageFile = JSON.parseObject(redisPubsubMessage.getContent(), + RedisPubsubMessageFile.class); + log.info("fileUid {}", messageFile.getFileUid()); + // + eventPublisher.publishGenericApplicationEvent(new GenericApplicationEvent( + this, new RedisPubsubParseFileErrorEvent(this, messageFile))); + + } else if (redisPubsubMessage.getType().equals(RedisPubsubMessageType.DELETE_FILE_SUCCESS.name())) { + // TODO: 删除成功 + log.info("delete file success, content {}", redisPubsubMessage.getContent()); + + } else if (redisPubsubMessage.getType().equals(RedisPubsubMessageType.DELETE_FILE_ERROR.name())) { + // TODO: 删除失败 + log.info("delete file error, content {}", redisPubsubMessage.getContent()); + + } else if (redisPubsubMessage.getType().equals(RedisPubsubMessageType.ANSWER.name())) { + // 回答 + // answer {"threadTopic": "org/robot/df_rt_uid/1463055175142405", "kbUid": + // "1461090177253570", "question": "\u4f60\u597d", "answer": + // "\u53ef\u4ee5\u5e2e\u52a9", "model": "glm-4-flash", "created": 1725063232} + log.info("answer {}", redisPubsubMessage.getContent()); + messageQueue.add(redisPubsubMessage); // 添加消息到队列 + // sendMessage(redisPubsubMessage); + processMessageQueue(); + // + } else if (redisPubsubMessage.getType().equals(RedisPubsubMessageType.ANSWER_FINISHED.name())) { + // TODO: 回答结束 + // answer finished {"threadTopic": "org/robot/df_rt_uid/1463055175142405", + // "kbUid": "1461090177253570", "question": "\u4f60\u597d", "answer": "", + // "model": "glm-4-flash", "created": 1725063232, "promptTokens": 525, + // "completionTokens": 9, "totalTokens": 534} + log.info("answer finished {}", redisPubsubMessage.getContent()); + messageQueue.add(redisPubsubMessage); // 添加消息到队列 + // sendMessage(redisPubsubMessage); + processMessageQueue(); + } + } + + // FIXME: 直接调用sendMessage会导致消息乱序,增加messageQueue,还是消息乱序,未解决 + private void processMessageQueue() { + while (!messageQueue.isEmpty()) { + RedisPubsubMessage redisPubsubMessage = messageQueue.poll(); + sendMessage(redisPubsubMessage); + } + } + + private void sendMessage(RedisPubsubMessage redisPubsubMessage) { + log.info("sendMessage, messageQa content {}", redisPubsubMessage.getContent()); + RedisPubsubMessageQa messageQa = JSON.parseObject(redisPubsubMessage.getContent(), + RedisPubsubMessageQa.class); + + log.info("sendMessage, messageQa Id {}", messageQa.getId()); + MessageProtobuf messageProtobuf = messageCache.get(messageQa.getUid()); + if (messageProtobuf == null) { + log.error("message not found, uid {}", messageQa.getUid()); + return; + } + // + messageProtobuf.setType(MessageTypeEnum.STREAM); + messageProtobuf.setContent(messageQa.getAnswer()); // - log.info("redisPubsub receiveString: {} content: {}", channel, messageContext); + MessageUtils.notifyUser(messageProtobuf); } -} \ No newline at end of file +} diff --git a/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/message/RedisPubsubMessageFile.java b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/message/RedisPubsubMessageFile.java new file mode 100644 index 00000000..780f86d5 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/message/RedisPubsubMessageFile.java @@ -0,0 +1,37 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-08-30 16:07:09 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-08-30 18:38: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.redis.pubsub.message; + +import java.util.List; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; + +@Data +@Builder +@AllArgsConstructor +public class RedisPubsubMessageFile { + + private String fileUid; + + private String fileUrl; + + private String kbUid; + + private List docIds; + + private String errorMsg; +} diff --git a/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/message/RedisPubsubMessageQa.java b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/message/RedisPubsubMessageQa.java new file mode 100644 index 00000000..5059848e --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/redis/pubsub/message/RedisPubsubMessageQa.java @@ -0,0 +1,57 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-08-30 16:09:19 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-08-31 10:19: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.redis.pubsub.message; + +import jakarta.validation.constraints.NotEmpty; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; + +@Data +@Builder +@AllArgsConstructor +public class RedisPubsubMessageQa { + + private Integer id; + + @NotEmpty + private String uid; + + private String threadTopic; + + // + private String kbUid; + + private String fileUid; + + // + private String question; + + private String answer; + + private String model; + + private Integer created; + + private String finishReason; + + // + private String promptTokens; + + private String completionTokens; + + private String totalTokens; + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/redis/stream/RedisStreamConfig.java b/modules/core/src/main/java/com/bytedesk/core/redis/stream/RedisStreamConfig.java index 8ad8cd71..647abdf1 100644 --- a/modules/core/src/main/java/com/bytedesk/core/redis/stream/RedisStreamConfig.java +++ b/modules/core/src/main/java/com/bytedesk/core/redis/stream/RedisStreamConfig.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-08-23 10:53:47 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-23 16:38:40 + * @LastEditTime: 2024-08-30 15:08: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. @@ -14,25 +14,8 @@ */ package com.bytedesk.core.redis.stream; -import java.net.InetAddress; -import java.net.UnknownHostException; -import java.time.Duration; - -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; -import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.data.redis.connection.RedisConnectionFactory; -import org.springframework.data.redis.connection.stream.Consumer; -import org.springframework.data.redis.connection.stream.ObjectRecord; -import org.springframework.data.redis.connection.stream.ReadOffset; -import org.springframework.data.redis.connection.stream.StreamOffset; -import org.springframework.data.redis.core.RedisTemplate; -import org.springframework.data.redis.stream.StreamMessageListenerContainer; -import org.springframework.data.redis.stream.Subscription; - -import com.bytedesk.core.redis.RedisEvent; - import lombok.extern.slf4j.Slf4j; // https://howtodoinjava.com/spring-data/redis-streams-processing/ @@ -43,54 +26,54 @@ public class RedisStreamConfig { @Value("${bytedesk.redis-stream-key}") private String streamKey; - @Autowired - private RedisStreamListener redisStreamListener; - - @Autowired - private RedisTemplate redisTemplate; - - @Bean - public Subscription subscription(RedisConnectionFactory redisConnectionFactory) throws UnknownHostException { - - String groupName = streamKey; - - try { - // redisConnectionFactory.getConnection().streamCommands() - // .xGroupCreate(streamKey.getBytes(), groupName, ReadOffset.from("0-0"), true); - redisTemplate.opsForStream().createGroup(streamKey, groupName); - } catch (Exception e) { - // 如果异常信息表明组已存在,则可以选择忽略或进行其他处理 - if (e.getMessage().contains("BUSYGROUP Consumer Group name already exists")) { - // 组已存在,根据业务需求选择是否要抛出异常或进行其他处理 - log.info("Consumer group '{}' already exists for stream '{}'", groupName, streamKey); - } else { - // 如果是其他异常,则重新抛出 - throw e; - } - } - - StreamOffset streamOffset = StreamOffset.create(streamKey, ReadOffset.lastConsumed()); - - StreamMessageListenerContainer.StreamMessageListenerContainerOptions> options = - StreamMessageListenerContainer.StreamMessageListenerContainerOptions - .builder() - .pollTimeout(Duration.ofMillis(100)) - .targetType(RedisEvent.class) - .build(); - - StreamMessageListenerContainer> container = StreamMessageListenerContainer - .create(redisConnectionFactory, options); - - String hostName = InetAddress.getLocalHost().getHostName(); - Subscription subscription = container.receive( - Consumer.from(streamKey, hostName), - streamOffset, redisStreamListener); - - log.info("container start, hostName: {}", hostName); - container.start(); - - return subscription; - } + // @Autowired + // private RedisStreamListener redisStreamListener; + + // @Autowired + // private RedisTemplate redisTemplate; + + // @Bean + // public Subscription subscription(RedisConnectionFactory redisConnectionFactory) throws UnknownHostException { + + // String groupName = streamKey; + + // try { + // // redisConnectionFactory.getConnection().streamCommands() + // // .xGroupCreate(streamKey.getBytes(), groupName, ReadOffset.from("0-0"), true); + // redisTemplate.opsForStream().createGroup(streamKey, groupName); + // } catch (Exception e) { + // // 如果异常信息表明组已存在,则可以选择忽略或进行其他处理 + // if (e.getMessage().contains("BUSYGROUP Consumer Group name already exists")) { + // // 组已存在,根据业务需求选择是否要抛出异常或进行其他处理 + // log.info("Consumer group '{}' already exists for stream '{}'", groupName, streamKey); + // } else { + // // 如果是其他异常,则重新抛出 + // throw e; + // } + // } + + // StreamOffset streamOffset = StreamOffset.create(streamKey, ReadOffset.lastConsumed()); + + // StreamMessageListenerContainer.StreamMessageListenerContainerOptions> options = + // StreamMessageListenerContainer.StreamMessageListenerContainerOptions + // .builder() + // .pollTimeout(Duration.ofMillis(100)) + // .targetType(RedisEvent.class) + // .build(); + + // StreamMessageListenerContainer> container = StreamMessageListenerContainer + // .create(redisConnectionFactory, options); + + // String hostName = InetAddress.getLocalHost().getHostName(); + // Subscription subscription = container.receive( + // Consumer.from(streamKey, hostName), + // streamOffset, redisStreamListener); + + // log.info("container start, hostName: {}", hostName); + // container.start(); + + // return subscription; + // } } diff --git a/modules/core/src/main/java/com/bytedesk/core/socket/connection/Connection.java b/modules/core/src/main/java/com/bytedesk/core/socket/connection/Connection.java new file mode 100644 index 00000000..2e8498c4 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/socket/connection/Connection.java @@ -0,0 +1,50 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-10 09:52:44 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-10 12:24: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.socket.connection; + +import com.bytedesk.core.base.BaseEntity; + +import jakarta.persistence.Entity; +import jakarta.persistence.Table; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +/** + * TODO: 持久化,当前客户端保持的长链接, + * 1. 便于在手机端查看pc客户端登录情况, + * 2. 在pc客户端查看手机端登录情况 + * http://127.0.0.1:9003/mqtt/api/v1/clientIds + * + * @{MqttController} + */ +@Data +@Entity +@Builder +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@AllArgsConstructor +@NoArgsConstructor +@Table(name = "core_connection") +public class Connection extends BaseEntity { + + // + + + private String userUid; +} diff --git a/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionController.java b/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionController.java new file mode 100644 index 00000000..bfdc2eb9 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionController.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-10 09:53:13 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-10 09:53: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.socket.connection; + +public class ConnectionController { + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionRepository.java b/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionRepository.java new file mode 100644 index 00000000..48d73f98 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionRepository.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-10 09:54:05 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-10 09:54: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.socket.connection; + +public interface ConnectionRepository { + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionRequest.java b/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionRequest.java new file mode 100644 index 00000000..967f2e1a --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionRequest.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-10 09:53:21 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-10 09:53: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.socket.connection; + +public class ConnectionRequest { + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionResponse.java b/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionResponse.java new file mode 100644 index 00000000..4a942711 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionResponse.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-10 09:53:30 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-10 09: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.core.socket.connection; + +public class ConnectionResponse { + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionService.java b/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionService.java new file mode 100644 index 00000000..cca47096 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionService.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-10 09:53:37 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-10 09:53: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.socket.connection; + +public class ConnectionService { + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionSpecification.java b/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionSpecification.java new file mode 100644 index 00000000..aabf8615 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/socket/connection/ConnectionSpecification.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-10 09:53:47 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-10 09:53:50 + * @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.core.socket.connection; + +public class ConnectionSpecification { + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/socket/mqtt/MqttController.java b/modules/core/src/main/java/com/bytedesk/core/socket/mqtt/MqttController.java index cf2f9ebf..cd2a8839 100644 --- a/modules/core/src/main/java/com/bytedesk/core/socket/mqtt/MqttController.java +++ b/modules/core/src/main/java/com/bytedesk/core/socket/mqtt/MqttController.java @@ -29,13 +29,13 @@ @RestController @AllArgsConstructor -@RequestMapping("/visitor/api/v1/mqtt") +@RequestMapping("/mqtt/api/v1") public class MqttController { private MqttSessionService mqttSessionService; /** - * http://127.0.0.1:9003/visitor/api/v1/mqtt/clientIds + * http://127.0.0.1:9003/mqtt/api/v1/clientIds * * @return */ diff --git a/modules/core/src/main/java/com/bytedesk/core/socket/mqtt/protocol/PubAck.java b/modules/core/src/main/java/com/bytedesk/core/socket/mqtt/protocol/PubAck.java index b7fea37a..fa72eadf 100755 --- a/modules/core/src/main/java/com/bytedesk/core/socket/mqtt/protocol/PubAck.java +++ b/modules/core/src/main/java/com/bytedesk/core/socket/mqtt/protocol/PubAck.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:46 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-08 18:46:07 + * @LastEditTime: 2024-09-11 11:16: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. @@ -28,7 +28,6 @@ @AllArgsConstructor public class PubAck { - public void processPubAck(Channel channel, MqttMessageIdVariableHeader variableHeader) { // String clientId = ChannelUtils.getClientId(channel); 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 3afadde0..784e42d7 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-08-27 14:34:30 + * @LastEditTime: 2024-09-11 08:50: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. @@ -17,11 +17,14 @@ import org.hibernate.annotations.JdbcTypeCode; import org.hibernate.type.SqlTypes; +import com.alibaba.fastjson2.JSON; import com.bytedesk.core.base.BaseEntity; import com.bytedesk.core.constant.BdConstants; import com.bytedesk.core.constant.TypeConsts; import com.bytedesk.core.enums.ClientEnum; import com.bytedesk.core.rbac.user.User; +import com.bytedesk.core.rbac.user.UserProtobuf; +import com.bytedesk.core.utils.ConvertUtils; import com.fasterxml.jackson.annotation.JsonIgnore; import jakarta.persistence.*; @@ -153,10 +156,9 @@ public class Thread extends BaseEntity { @ManyToOne(fetch = FetchType.LAZY) private User owner; - public Boolean isInit() { - return this.status == ThreadStatusEnum.NORMAL.name(); - // return !StringUtils.hasText(this.content); - } + // public Boolean isInit() { + // return this.status == ThreadStatusEnum.NORMAL.name(); + // } // public Boolean isClosed() { @@ -167,4 +169,16 @@ public Boolean isCustomerService() { return this.type == ThreadTypeEnum.AGENT.name() || this.type == ThreadTypeEnum.WORKGROUP.name(); } + public ThreadProtobuf toProtobuf() { + return ConvertUtils.convertToThreadProtobuf(this); + } + + public UserProtobuf getAgentProtobuf() { + return JSON.parseObject(this.agent, UserProtobuf.class); + } + + public UserProtobuf getUserProtobuf() { + return JSON.parseObject(this.user, UserProtobuf.class); + } + } diff --git a/modules/core/src/main/java/com/bytedesk/core/thread/ThreadController.java b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadController.java index dafe1150..a61cad30 100644 --- a/modules/core/src/main/java/com/bytedesk/core/thread/ThreadController.java +++ b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadController.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-04 15:37:39 + * @LastEditTime: 2024-09-07 16:41: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. @@ -92,6 +92,8 @@ public ResponseEntity update(@RequestBody ThreadRequest request) { @PostMapping("/close") public ResponseEntity close(@RequestBody ThreadRequest request) { + request.setStatus(ThreadStatusEnum.AGENT_CLOSED); + ThreadResponse threadResponse = threadService.close(request); return ResponseEntity.ok(JsonResult.success(threadResponse)); diff --git a/modules/core/src/main/java/com/bytedesk/core/thread/ThreadEventListener.java b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadEventListener.java index 5e7c4a8a..e9680205 100644 --- a/modules/core/src/main/java/com/bytedesk/core/thread/ThreadEventListener.java +++ b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-06-28 13:32:23 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-27 14:39:41 + * @LastEditTime: 2024-09-11 11:19:50 * @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,7 @@ */ package com.bytedesk.core.thread; +import java.util.List; import java.util.Optional; import org.springframework.context.event.EventListener; @@ -21,6 +22,8 @@ import com.bytedesk.core.message.Message; import com.bytedesk.core.message.MessageCreateEvent; +import com.bytedesk.core.message.MessageTypeEnum; +import com.bytedesk.core.quartz.event.QuartzOneMinEvent; import com.bytedesk.core.rbac.user.User; import com.bytedesk.core.topic.TopicCacheService; import com.bytedesk.core.topic.TopicRequest; @@ -40,16 +43,19 @@ public class ThreadEventListener { private final ThreadService threadService; + private final ThreadPersistCache threadPersistCache; + @EventListener public void onThreadCreateEvent(ThreadCreateEvent event) { Thread thread = event.getThread(); User user = thread.getOwner(); log.info("thread ThreadCreateEvent: {}", thread.getUid()); - + // // 机器人会话不需要订阅topic // if (event.getThread().getType().equals(ThreadTypeEnum.ROBOT)) { // return; // } + // 创建客服会话之后,需要订阅topic if (thread.getType().equals(ThreadTypeEnum.AGENT.name()) || thread.getType().equals(ThreadTypeEnum.WORKGROUP.name())) { @@ -60,9 +66,9 @@ public void onThreadCreateEvent(ThreadCreateEvent event) { .build(); topicService.create(request); } else if (thread.getType().equals(ThreadTypeEnum.MEMBER.name()) - || thread.getType().equals(ThreadTypeEnum.ASISTANT.name()) + || thread.getType().equals(ThreadTypeEnum.ASISTANT.name()) || thread.getType().equals(ThreadTypeEnum.CHANNEL.name())) { - // 文件助手、系统通知会话延迟订阅topic + // 文件助手、系统通知会话延迟订阅topic TopicRequest request = TopicRequest.builder() .topic(thread.getTopic()) .userUid(user.getUid()) @@ -77,8 +83,7 @@ public void onThreadUpdateEvent(ThreadUpdateEvent event) { User user = thread.getOwner(); log.info("topic onThreadUpdateEvent: {}", thread.getUid()); // TODO: 会话关闭之后,需要取消订阅 - // - // 文件助手、系统通知会话延迟订阅topic + if (thread.getType().equals(ThreadTypeEnum.AGENT.name()) || thread.getType().equals(ThreadTypeEnum.WORKGROUP.name())) { // 防止首次消息延迟,立即订阅 @@ -90,6 +95,7 @@ public void onThreadUpdateEvent(ThreadUpdateEvent event) { } else if (thread.getType().equals(ThreadTypeEnum.MEMBER.name()) || thread.getType().equals(ThreadTypeEnum.ASISTANT.name()) || thread.getType().equals(ThreadTypeEnum.CHANNEL.name())) { + // 文件助手、系统通知会话延迟订阅topic TopicRequest request = TopicRequest.builder() .topic(thread.getTopic()) .userUid(user.getUid()) @@ -105,18 +111,31 @@ public void onThreadUpdateEvent(ThreadUpdateEvent event) { } } - @EventListener public void onMessageCreateEvent(MessageCreateEvent event) { Message message = event.getMessage(); + if (message.getType().equals(MessageTypeEnum.STREAM.name())) { + return; + } // log.info("robot message unread create event: " + event); Optional threadOptional = threadService.findByTopic(message.getThreadTopic()); if (threadOptional.isPresent()) { Thread thread = threadOptional.get(); thread.setHide(false); thread.setContent(message.getContent()); - threadService.save(thread); + // threadService.save(thread); + threadPersistCache.pushForPersist(thread); } } + @EventListener + public void onQuartzOneMinEvent(QuartzOneMinEvent event) { + List threadList = threadPersistCache.getListForPersist(); + if (threadList != null) { + threadList.forEach(thread -> { + threadService.save(thread); + }); + } + + } } diff --git a/modules/core/src/main/java/com/bytedesk/core/thread/ThreadExtra.java b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadExtra.java new file mode 100644 index 00000000..9391f4e4 --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadExtra.java @@ -0,0 +1,23 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-07 08:11:16 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-07 08:11: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.thread; + +import java.io.Serializable; + +public class ThreadExtra implements Serializable { + + private static final long serialVersionUID = 1L; + +} diff --git a/modules/core/src/main/java/com/bytedesk/core/thread/ThreadPersistCache.java b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadPersistCache.java new file mode 100644 index 00000000..49818bbf --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadPersistCache.java @@ -0,0 +1,111 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-08-31 10:43:14 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-08-31 11:03: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.thread; + +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.TimeUnit; + +import org.springframework.stereotype.Component; + +import com.github.benmanes.caffeine.cache.Cache; +import com.github.benmanes.caffeine.cache.CacheLoader; +import com.github.benmanes.caffeine.cache.Caffeine; + +import jakarta.annotation.PostConstruct; + +@Component +public class ThreadPersistCache { + + // 假设我们使用"myList"作为缓存中的键 + String defaultPersistKey = "threadList"; + + // 创建一个缓存实例,设置过期时间为5天 + private Cache> threadCache; + + @PostConstruct + public void init() { + // 初始化caffeinecache,设置缓存的最大大小、过期时间等参数 + threadCache = Caffeine.newBuilder() + .expireAfterWrite(1, TimeUnit.DAYS) + .build(new CacheLoader>() { + @Override + public List load(String key) throws Exception { + // 当缓存中没有找到对应的键时,使用load方法初始化 + return new ArrayList<>(); + } + }); + } + + // 模拟 push 操作:向列表中添加元素 + public void pushForPersist(Thread thread) { + // 通过thread.uid判断defaultPersistKey中是否已经存在 则替换掉,不存在,则插入 + String uid = thread.getUid(); + List cachedList = threadCache.getIfPresent(defaultPersistKey); + if (cachedList == null) { + cachedList = new ArrayList<>(); + } + + boolean found = false; + for (int i = 0; i < cachedList.size(); i++) { + if (cachedList.get(i).getUid().equals(uid)) { + found = true; + cachedList.set(i, thread); // 替换已存在的Thread对象 + break; + } + } + + if (!found) { + cachedList.add(thread); + } + threadCache.put(defaultPersistKey, cachedList); + // push(defaultPersistKey, thread); + } + + // 模拟 pop 操作:从列表中移除元素 + public List getListForPersist() { + return getList(defaultPersistKey); + } + + // 模拟 push 操作:向列表中添加元素 + public void push(String listKey, Thread thread) { + List cachedList = threadCache.getIfPresent(listKey); + if (cachedList == null) { + // 如果缓存中没有找到对应的键,则使用load方法初始化 + cachedList = new ArrayList<>(); + } + cachedList.add(thread); + threadCache.put(listKey, cachedList); + } + + public List getList(String listKey) { + List cachedList = threadCache.getIfPresent(listKey); + if (cachedList != null && !cachedList.isEmpty()) { + // 只需要返回一次即可 + remove(listKey); + return cachedList; + } + return null; + } + + public void remove(String listKey) { + threadCache.invalidate(listKey); + } + + public void clear() { + threadCache.invalidateAll(); + } + +} 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 61db02f4..fe647d5d 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-08-26 06:56:56 + * @LastEditTime: 2024-09-04 09:24: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. @@ -45,16 +45,28 @@ public interface ThreadRepository extends JpaRepository, JpaSpecif Optional findFirstByTopicAndDeleted(String topic, Boolean deleted); + Optional findFirstByTopicAndStatusNotContainingAndDeleted(String topic, String status, Boolean deleted); + + // @Query(value = "select * from core_thread t where t.topic like ?1 and t.status not in ?2 and t.is_deleted = ?3", nativeQuery = true) + @Query(value = "select * from core_thread t where t.topic = ?1 and t.status not in ?2 and t.is_deleted = ?3", nativeQuery = true) + Optional findFirstTopicAndStatusesNotInAndDeleted(String topicWithWildcard, + List statuses, + Boolean deleted); + Page findByOwnerAndHideAndDeleted(User owner, Boolean hide, Boolean deleted, Pageable pageable); List findByTopic(String topic); + // FIXME: h2不兼容 JSON_EXTRACT // FIXME: PostgreSQL ERROR: function json_extract(json, unknown) does not exist - // @Query(value = "SELECT * FROM core_thread WHERE JSON_EXTRACT(extra,'$.closed') = false", nativeQuery = true) + // @Query(value = "SELECT * FROM core_thread WHERE + // JSON_EXTRACT(extra,'$.closed') = false", nativeQuery = true) List findByStatusAndDeleted(String status, Boolean deleted); @Query("SELECT t FROM Thread t WHERE t.status IN :statuses AND t.deleted = :deleted") List findByStatusesAndDeleted(@Param("statuses") List statuses, Boolean deleted); - // Page findByOrgUidAndDeleted(String orgUid, Boolean deleted, Pageable pageable); + @Query("SELECT t FROM Thread t WHERE t.type IN :types AND t.status not IN :statuses AND t.deleted = :deleted") + List findByTypesInAndStatusesNotInAndDeleted(@Param("types") List types, @Param("statuses") List statuses, Boolean deleted); + } 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 fd31cd1b..b740acbd 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-08-26 06:57:09 + * @LastEditTime: 2024-09-07 19:00: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. @@ -35,13 +35,16 @@ import com.alibaba.fastjson2.JSON; import com.bytedesk.core.base.BaseService; -import com.bytedesk.core.constant.AvatarConsts; -import com.bytedesk.core.constant.I18Consts; import com.bytedesk.core.enums.ClientEnum; +import com.bytedesk.core.message.MessageProtobuf; +import com.bytedesk.core.message.MessageTypeEnum; +import com.bytedesk.core.message.MessageUtils; import com.bytedesk.core.rbac.auth.AuthService; import com.bytedesk.core.rbac.user.User; import com.bytedesk.core.constant.BdConstants; +import com.bytedesk.core.constant.I18Consts; import com.bytedesk.core.rbac.user.UserProtobuf; +import com.bytedesk.core.rbac.user.UserUtils; import com.bytedesk.core.topic.TopicUtils; import com.bytedesk.core.uid.UidUtils; @@ -118,7 +121,7 @@ public ThreadResponse create(ThreadRequest request) { thread.setClient(ClientEnum.fromValue(request.getClient()).name()); thread.setOwner(owner); thread.setOrgUid(owner.getOrgUid()); - + // Thread savedThread = save(thread); if (savedThread == null) { @@ -127,7 +130,7 @@ public ThreadResponse create(ThreadRequest request) { // return convertToResponse(savedThread); } - + // 在group会话创建之后,自动为group成员members创建会话 // 同事群组会话:org/group/{group_uid} public ThreadResponse createGroupMemberThread(Thread thread, User owner) { @@ -159,7 +162,7 @@ public ThreadResponse createGroupMemberThread(Thread thread, User owner) { /** 文件助手会话:file/{user_uid} */ public ThreadResponse createFileAsistantThread(User user) { - // + // String topic = TopicUtils.TOPIC_FILE_PREFIX + user.getUid(); // Optional threadOptional = findByTopicAndOwner(topic, user); @@ -167,11 +170,7 @@ public ThreadResponse createFileAsistantThread(User user) { return convertToResponse(threadOptional.get()); } - UserProtobuf userSimple = UserProtobuf.builder() - .nickname(I18Consts.I18N_FILE_ASISTANT_NAME) - .avatar(AvatarConsts.DEFAULT_FILE_ASISTANT_AVATAR_URL) - .build(); - userSimple.setUid(BdConstants.DEFAULT_FILE_ASISTANT_UID); + UserProtobuf userSimple = UserUtils.getFileAsistantUser(); // Thread asistantThread = Thread.builder() .type(ThreadTypeEnum.ASISTANT.name()) @@ -199,19 +198,16 @@ public ThreadResponse createFileAsistantThread(User user) { // 系统通知会话:system/{user_uid} public ThreadResponse createSystemChannelThread(User user) { - // - String topic = TopicUtils.TOPIC_SYSTEM_PREFIX + user.getUid(); + // + // String topic = TopicUtils.TOPIC_SYSTEM_PREFIX + user.getUid(); + String topic = TopicUtils.getSystemTopic(user.getUid()); // Optional threadOptional = findByTopicAndOwner(topic, user); if (threadOptional.isPresent()) { return convertToResponse(threadOptional.get()); } - UserProtobuf userSimple = UserProtobuf.builder() - .nickname(I18Consts.I18N_SYSTEM_NOTIFICATION_NAME) - .avatar(AvatarConsts.DEFAULT_SYSTEM_NOTIFICATION_AVATAR_URL) - .build(); - userSimple.setUid(BdConstants.DEFAULT_SYSTEM_UID); + UserProtobuf userSimple = UserUtils.getSystemChannelUser(); // Thread noticeThread = Thread.builder() .type(ThreadTypeEnum.CHANNEL.name()) @@ -228,7 +224,7 @@ public ThreadResponse createSystemChannelThread(User user) { } else { noticeThread.setOrgUid(BdConstants.DEFAULT_ORGANIZATION_UID); } - // + // Thread updateThread = save(noticeThread); if (updateThread == null) { throw new RuntimeException("thread save failed"); @@ -238,9 +234,10 @@ public ThreadResponse createSystemChannelThread(User user) { } public ThreadResponse update(ThreadRequest threadRequest) { - Optional threadOptional = findByUid(threadRequest.getUid()); + // Optional threadOptional = findByUid(threadRequest.getUid()); + Optional threadOptional = findByTopic(threadRequest.getTopic()); if (!threadOptional.isPresent()) { - throw new RuntimeException("thread not found"); + throw new RuntimeException("update thread " + threadRequest.getTopic() + " not found"); } // Thread thread = threadOptional.get(); @@ -260,25 +257,44 @@ public ThreadResponse update(ThreadRequest threadRequest) { return convertToResponse(updateThread); } + public ThreadResponse autoClose(Thread thread) { + // log.info(thread.getUid() + "自动关闭"); + // thread.setStatus(ThreadStatusEnum.AUTO_CLOSED.name()); + // return save(thread); + ThreadRequest threadRequest = ThreadRequest.builder() + .topic(thread.getTopic()) + .status(ThreadStatusEnum.AUTO_CLOSED) + .build(); + return close(threadRequest); + } + public ThreadResponse close(ThreadRequest threadRequest) { - Optional threadOptional = findByUid(threadRequest.getUid()); + // Optional threadOptional = findByUid(threadRequest.getUid()); + Optional threadOptional = findByTopic(threadRequest.getTopic()); if (!threadOptional.isPresent()) { - throw new RuntimeException("thread not found"); + throw new RuntimeException("close thread " + threadRequest.getTopic() + " not found"); } // Thread thread = threadOptional.get(); // - if (ThreadStatusEnum.AGENT_CLOSED.equals(thread.getStatus()) - || ThreadStatusEnum.AUTO_CLOSED.equals(thread.getStatus())) { + if (ThreadStatusEnum.AGENT_CLOSED.name().equals(thread.getStatus()) + || ThreadStatusEnum.AUTO_CLOSED.name().equals(thread.getStatus())) { // log.info("thread {} is already closed", uid); throw new RuntimeException("thread is already closed"); } - thread.setStatus(ThreadStatusEnum.AGENT_CLOSED.name()); + // thread.setStatus(ThreadStatusEnum.AGENT_CLOSED.name()); + thread.setStatus(threadRequest.getStatus().name()); // Thread updateThread = save(thread); if (updateThread == null) { throw new RuntimeException("thread save failed"); } + // 发布关闭消息, 通知用户 + String content = threadRequest.getStatus().equals(ThreadStatusEnum.AUTO_CLOSED) ? I18Consts.I18N_AUTO_CLOSED : I18Consts.I18N_AGENT_CLOSED; + MessageProtobuf messageProtobuf = MessageUtils.createThreadMessage(uidUtils.getCacheSerialUid(), updateThread, + MessageTypeEnum.fromValue(threadRequest.getStatus().name()), + content); + MessageUtils.notifyUser(messageProtobuf); // return convertToResponse(updateThread); } @@ -318,6 +334,21 @@ public Optional findByTopic(String topic) { return threadRepository.findFirstByTopicAndDeleted(topic, false); } + // 找到某个访客对应某个一对一客服未关闭会话 + @Cacheable(value = "thread", key = "#topic", unless = "#result == null") + public Optional findByTopicNotClosed(String topic, String status) { + return threadRepository.findFirstByTopicAndStatusNotContainingAndDeleted(topic, "CLOSED", false); + } + + // 找到某个访客当前对应某技能组未关闭会话 + @Cacheable(value = "thread", key = "#workgroupUid + '-' + #visitorUid", unless = "#result == null") + public Optional findByWgTopicNotClosed(String topic) { + // String likeTopic = TopicUtils.TOPIC_ORG_WORKGROUP_PREFIX + workgroupUid + "/%/" + visitorUid; + List statuses = Arrays + .asList(new String[] { ThreadStatusEnum.AGENT_CLOSED.name(), ThreadStatusEnum.AUTO_CLOSED.name() }); + return threadRepository.findFirstTopicAndStatusesNotInAndDeleted(topic, statuses, false); + } + // TODO: how to cacheput or cacheevict? @Cacheable(value = "thread", key = "#user.uid-#pageable.getPageNumber()", unless = "#result == null") public Page findByOwner(User user, Pageable pageable) { @@ -327,14 +358,15 @@ public Page findByOwner(User user, Pageable pageable) { // TODO: 更新缓存 // @Cacheable(value = "threadOpen") public List findStatusOpen() { + List types = Arrays.asList(new String[] { ThreadTypeEnum.AGENT.name(), ThreadTypeEnum.WORKGROUP.name(), ThreadTypeEnum.ROBOT.name() }); List statuses = Arrays - .asList(new String[] { ThreadStatusEnum.NORMAL.name(), ThreadStatusEnum.CONTINUE.name() }); - return threadRepository.findByStatusesAndDeleted(statuses, false); + .asList(new String[] { ThreadStatusEnum.AUTO_CLOSED.name(), ThreadStatusEnum.AGENT_CLOSED.name() }); + return threadRepository.findByTypesInAndStatusesNotInAndDeleted(types, statuses, false); } public Boolean isClosed(Thread thread) { - return ThreadStatusEnum.AGENT_CLOSED.equals(thread.getStatus()) - || ThreadStatusEnum.AUTO_CLOSED.equals(thread.getStatus()); + return ThreadStatusEnum.AGENT_CLOSED.name().equals(thread.getStatus()) + || ThreadStatusEnum.AUTO_CLOSED.name().equals(thread.getStatus()); } // public Thread reenter(Thread thread) { @@ -346,10 +378,7 @@ public Boolean isClosed(Thread thread) { // return save(thread); // } - public Thread autoClose(Thread thread) { - thread.setStatus(ThreadStatusEnum.AUTO_CLOSED.name()); - return save(thread); - } + // public Thread agentClose(Thread thread) { // thread.setStatus(ThreadStatusEnum.AGENT_CLOSED); @@ -376,7 +405,8 @@ public Thread save(@NonNull Thread thread) { }) public void delete(@NonNull Thread entity) { // threadRepository.delete(thread); - Optional threadOptional = findByUid(entity.getUid()); + // Optional threadOptional = findByUid(entity.getUid()); + Optional threadOptional = findByTopic(entity.getTopic()); threadOptional.ifPresent(thread -> { thread.setDeleted(true); save(thread); diff --git a/modules/core/src/main/java/com/bytedesk/core/thread/ThreadTypeEnum.java b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadTypeEnum.java index 0f9d714d..93d25c46 100644 --- a/modules/core/src/main/java/com/bytedesk/core/thread/ThreadTypeEnum.java +++ b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadTypeEnum.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-05-29 16:32:15 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-01 18:33:38 + * @LastEditTime: 2024-08-30 11:13: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. @@ -26,7 +26,11 @@ public enum ThreadTypeEnum { CHANNEL(8), LOCAL(9), FRIEND(10), - TICKET(11); + TICKET(11), + KB(12), + KBDOC(13), + AGENTASISTANT(14), + ; private final int value; diff --git a/modules/core/src/main/java/com/bytedesk/core/thread/ThreadUtils.java b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadUtils.java new file mode 100644 index 00000000..3408859a --- /dev/null +++ b/modules/core/src/main/java/com/bytedesk/core/thread/ThreadUtils.java @@ -0,0 +1,28 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-07-28 06:48:10 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-08-31 17:01: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.core.thread; + +import com.bytedesk.core.rbac.user.UserProtobuf; + +public class ThreadUtils { + + public static ThreadProtobuf getThreadProtobuf(String topic, ThreadTypeEnum type, UserProtobuf user) { + return ThreadProtobuf.builder() + .topic(topic) + .type(type) + .user(user) + .build(); + } +} 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 fcb68737..4a32acfe 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-07-03 07:22:42 + * @LastEditTime: 2024-09-07 12:51: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. @@ -54,6 +54,12 @@ public class Topic extends BaseEntityNoOrg { private Set topics = new HashSet<>(); // private String topic; + // 管理员监控的topic + @Builder.Default + @Column(columnDefinition = TypeConsts.COLUMN_TYPE_TEXT) + @Convert(converter = StringSetConverter.class) + private Set monitorTopics = new HashSet<>(); + // 每个用户仅存在一条记录 // user, no need map, just uid @NotBlank diff --git a/modules/core/src/main/java/com/bytedesk/core/topic/TopicCacheService.java b/modules/core/src/main/java/com/bytedesk/core/topic/TopicCacheService.java index 0afb8625..789d208e 100644 --- a/modules/core/src/main/java/com/bytedesk/core/topic/TopicCacheService.java +++ b/modules/core/src/main/java/com/bytedesk/core/topic/TopicCacheService.java @@ -25,12 +25,22 @@ import com.github.benmanes.caffeine.cache.CacheLoader; import com.github.benmanes.caffeine.cache.Caffeine; +import jakarta.annotation.PostConstruct; + @Service public class TopicCacheService { + // 假设我们使用"myList"作为缓存中的键 + String defaultCacheKey = "topicList"; + // 创建一个缓存实例,设置过期时间为5天 - Cache> topicCache = Caffeine.newBuilder() - .expireAfterWrite(5, TimeUnit.DAYS) + private Cache> topicCache; + + @PostConstruct + public void init() { + // 初始化caffeinecache,设置缓存的最大大小、过期时间等参数 + topicCache = Caffeine.newBuilder() + .expireAfterWrite(1, TimeUnit.DAYS) .build(new CacheLoader>() { @Override public List load(String key) throws Exception { @@ -38,9 +48,7 @@ public List load(String key) throws Exception { return new ArrayList<>(); } }); - - // 假设我们使用"myList"作为缓存中的键 - String defaultCacheKey = "topicList"; + } // 模拟 push 操作:向列表中添加元素 public void push(String messageJSON) { diff --git a/modules/core/src/main/java/com/bytedesk/core/topic/TopicEventListener.java b/modules/core/src/main/java/com/bytedesk/core/topic/TopicEventListener.java index be513214..29adf286 100644 --- a/modules/core/src/main/java/com/bytedesk/core/topic/TopicEventListener.java +++ b/modules/core/src/main/java/com/bytedesk/core/topic/TopicEventListener.java @@ -19,7 +19,8 @@ import org.springframework.context.event.EventListener; import org.springframework.stereotype.Component; import com.alibaba.fastjson2.JSON; -import com.bytedesk.core.quartz.QuartzFiveSecondEvent; +import com.bytedesk.core.quartz.event.QuartzFiveSecondEvent; + import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; 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 839181cc..a00d3e29 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-05-04 10:42:57 + * @LastEditTime: 2024-09-07 12:52: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. @@ -40,8 +40,10 @@ public class TopicResponse extends BaseResponse { // private String uid; @Builder.Default - // private String topic; private Set topics = new HashSet<>(); + + @Builder.Default + private Set monitorTopics = new HashSet<>(); private String userUid; diff --git a/modules/core/src/main/java/com/bytedesk/core/topic/TopicUtils.java b/modules/core/src/main/java/com/bytedesk/core/topic/TopicUtils.java index 6216c815..c88fc301 100644 --- a/modules/core/src/main/java/com/bytedesk/core/topic/TopicUtils.java +++ b/modules/core/src/main/java/com/bytedesk/core/topic/TopicUtils.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-26 21:51:31 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-05 13:33:35 + * @LastEditTime: 2024-09-06 23:07: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. @@ -38,6 +38,8 @@ private TopicUtils() { public static final String TOPIC_ORG_ROBOT_PREFIX = "org/robot/"; public static final String TOPIC_ORG_AGENT_PREFIX = "org/agent/"; public static final String TOPIC_ORG_WORKGROUP_PREFIX = "org/workgroup/"; + public static final String TOPIC_ORG_KB_PREFIX = "org/kb/"; + public static final String TOPIC_ORG_KBDOC_PREFIX = "org/kbdoc/"; // topic格式定义: // 注意:开头没有 '/' ,防止stomp主题中将 '/' 替换为 '.'之后,在最前面多余一个 '.' @@ -69,16 +71,20 @@ private TopicUtils() { private static final String TOPIC_ORG_DEPARTMENT_PATTERN = TOPIC_ORG_DEPARTMENT_PREFIX + "%s"; // "org/department/%s"; private static final String TOPIC_ORG_GROUP_PATTERN = TOPIC_ORG_GROUP_PREFIX + "%s"; // "org/group/%s"; private static final String TOPIC_ORG_ROBOT_THREAD_PATTERN = TOPIC_ORG_ROBOT_PREFIX + "%s/%s"; // "org/robot/%s/%s"; + private static final String TOPIC_ORG_KB_THREAD_PATTERN = TOPIC_ORG_KB_PREFIX + "%s/%s"; // "org/kb/%s/%s"; + private static final String TOPIC_ORG_KBDOC_THREAD_PATTERN = TOPIC_ORG_KBDOC_PREFIX + "%s/%s"; // "org/kbdoc/%s/%s"; // 客服: // 用户默认订阅客服uid:org/agent/{agent_uid} // 一对一客服会话:org/agent/{agent_uid}/{visitor_uid} // 用户默认订阅技能组uid:org/workgroup/{workgroup_uid} - // 技能组客服会话:org/workgroup/{workgroup_uid}/{agent_uid}/{visitor_uid} + // 废弃:技能组客服会话:org/workgroup/{workgroup_uid}/{agent_uid}/{visitor_uid} + // 技能组客服会话:org/workgroup/{workgroup_uid}/{visitor_uid} private static final String TOPIC_ORG_AGENT_PATTERN = TOPIC_ORG_AGENT_PREFIX + "%s"; // "org/agent/%s"; private static final String TOPIC_ORG_AGENT_THREAD_PATTERN = TOPIC_ORG_AGENT_PREFIX + "%s/%s"; // "org/agent/%s/%s"; private static final String TOPIC_ORG_WORKGROUP_PATTERN = TOPIC_ORG_WORKGROUP_PREFIX + "%s"; // "org/workgroup/%s"; - private static final String TOPIC_ORG_WORKGROUP_THREAD_PATTERN = TOPIC_ORG_WORKGROUP_PREFIX + "%s/%s/%s"; // "org/workgroup/%s/%s/%s"; + // private static final String TOPIC_ORG_WORKGROUP_THREAD_PATTERN = TOPIC_ORG_WORKGROUP_PREFIX + "%s/%s/%s"; // "org/workgroup/%s/%s/%s"; + private static final String TOPIC_ORG_WORKGROUP_THREAD_PATTERN = TOPIC_ORG_WORKGROUP_PREFIX + "%s/%s"; // "org/workgroup/%s/%s"; // public static String getUserTopic(String userUid) { @@ -120,6 +126,7 @@ public static String formatOrgDepartmentTopic(String departmentUid) { public static Boolean isOrgMemberTopic(String topic) { return topic.startsWith(TOPIC_ORG_MEMBER_PATTERN); } + public static String formatOrgMemberTopic(String memberUid) { return String.format(TOPIC_ORG_MEMBER_PATTERN, memberUid); } @@ -145,10 +152,9 @@ public static Boolean isOrgGroupTopic(String topic) { public static String getOrgGroupTopic(String groupUid) { return String.format(TOPIC_ORG_GROUP_PATTERN, groupUid); } - + ////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////// public static Boolean isOrgRobotTopic(String topic) { @@ -161,6 +167,26 @@ public static String formatOrgRobotThreadTopic(String robotUid, String visitorUi ////////////////////////////////////////////////////////////////////////// + public static Boolean isOrgKbTopic(String topic) { + return topic.startsWith(TOPIC_ORG_KB_PREFIX); + } + + public static String formatOrgKbThreadTopic(String kbUid, String visitorUid) { + return String.format(TOPIC_ORG_KB_THREAD_PATTERN, kbUid, visitorUid); + } + + ////////////////////////////////////////////////////////////////////////// + + public static Boolean isOrgKbdocTopic(String topic) { + return topic.startsWith(TOPIC_ORG_KBDOC_PREFIX); + } + + public static String formatOrgKbdocThreadTopic(String kbdocUid, String visitorUid) { + return String.format(TOPIC_ORG_KBDOC_THREAD_PATTERN, kbdocUid, visitorUid); + } + + ////////////////////////////////////////////////////////////////////////// + public static Boolean isOrgAgentTopic(String topic) { return topic.startsWith(TOPIC_ORG_AGENT_PREFIX); } @@ -183,8 +209,10 @@ public static String getOrgWorkgroupTopic(String workgroupUid) { return String.format(TOPIC_ORG_WORKGROUP_PATTERN, workgroupUid); } - public static String formatOrgWorkgroupThreadTopic(String workgroupUid, String agentUid, String visitorUid) { - return String.format(TOPIC_ORG_WORKGROUP_THREAD_PATTERN, workgroupUid, agentUid, visitorUid); + // public static String formatOrgWorkgroupThreadTopic(String workgroupUid, String agentUid, String visitorUid) { + // return String.format(TOPIC_ORG_WORKGROUP_THREAD_PATTERN, workgroupUid, agentUid, visitorUid); + // } + public static String formatOrgWorkgroupThreadTopic(String workgroupUid, String visitorUid) { + return String.format(TOPIC_ORG_WORKGROUP_THREAD_PATTERN, workgroupUid, visitorUid); } - } diff --git a/modules/core/src/main/java/com/bytedesk/core/uid/UidUtils.java b/modules/core/src/main/java/com/bytedesk/core/uid/UidUtils.java index c4caf0b1..701a132c 100644 --- a/modules/core/src/main/java/com/bytedesk/core/uid/UidUtils.java +++ b/modules/core/src/main/java/com/bytedesk/core/uid/UidUtils.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-04-07 15:39:15 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-09 17:49:09 + * @LastEditTime: 2024-08-30 10:55: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. @@ -20,6 +20,8 @@ import com.bytedesk.core.uid.impl.CachedUidGenerator; import com.bytedesk.core.uid.impl.DefaultUidGenerator; +import jakarta.annotation.PostConstruct; + // import lombok.extern.slf4j.Slf4j; /** @@ -36,6 +38,18 @@ public class UidUtils { @Autowired private CachedUidGenerator cachedUidGenerator; + private static UidUtils instance; + + @PostConstruct + public void init() { + instance = this; + } + + // 使用方法:String uid = UidUtils.getInstance().getDefaultSerialUid(); + public static UidUtils getInstance() { + return instance; + } + /** * 实时生成 * 性能有损耗 diff --git a/modules/core/src/main/java/com/bytedesk/core/utils/Utils.java b/modules/core/src/main/java/com/bytedesk/core/utils/Utils.java index 8644cda8..90545ccd 100644 --- a/modules/core/src/main/java/com/bytedesk/core/utils/Utils.java +++ b/modules/core/src/main/java/com/bytedesk/core/utils/Utils.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-01 10:22:19 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-23 18:08:54 + * @LastEditTime: 2024-09-09 16:21: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. @@ -79,7 +79,7 @@ public static boolean isTestEmail(String email) { * * @return */ - public static String getRandomCode(String key) { + public static String getRandomCode() { int min = 100001; int max = 999998; int code = new Random().nextInt(max) % (max - min + 1) + min; diff --git a/modules/core/src/main/proto/user.proto b/modules/core/src/main/proto/user.proto index 88c47556..8563150d 100644 --- a/modules/core/src/main/proto/user.proto +++ b/modules/core/src/main/proto/user.proto @@ -26,6 +26,8 @@ message User { string nickname = 2; // 头像 string avatar = 3; + // 类型 + string type = 4; // 自定义扩展/附加信息 - string extra = 4; + string extra = 5; } diff --git a/modules/kbase/pom.xml b/modules/kbase/pom.xml index 06546981..0d56007c 100644 --- a/modules/kbase/pom.xml +++ b/modules/kbase/pom.xml @@ -70,6 +70,8 @@ + + diff --git a/modules/kbase/src/main/java/com/bytedesk/kbase/auto_reply/AutoReplyEventListener.java b/modules/kbase/src/main/java/com/bytedesk/kbase/auto_reply/AutoReplyEventListener.java new file mode 100644 index 00000000..de0c652c --- /dev/null +++ b/modules/kbase/src/main/java/com/bytedesk/kbase/auto_reply/AutoReplyEventListener.java @@ -0,0 +1,23 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-07 16:17:49 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-07 16:17: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.kbase.auto_reply; + +/** + * 迁移至 AutoReplyVipEventListener + * 此处不做实现 + */ +public class AutoReplyEventListener { + +} diff --git a/modules/kbase/src/main/java/com/bytedesk/kbase/faq/FaqEventListener.java b/modules/kbase/src/main/java/com/bytedesk/kbase/faq/FaqEventListener.java new file mode 100644 index 00000000..ed2019fb --- /dev/null +++ b/modules/kbase/src/main/java/com/bytedesk/kbase/faq/FaqEventListener.java @@ -0,0 +1,23 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-07 15:42:23 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-07 16:16: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.kbase.faq; + +/** + * 迁移至 FaqVipEventListener + * 此处不做实现 + */ +public class FaqEventListener { + +} diff --git a/modules/kbase/src/main/java/com/bytedesk/kbase/keyword/KeywordEventListener.java b/modules/kbase/src/main/java/com/bytedesk/kbase/keyword/KeywordEventListener.java new file mode 100644 index 00000000..535c2295 --- /dev/null +++ b/modules/kbase/src/main/java/com/bytedesk/kbase/keyword/KeywordEventListener.java @@ -0,0 +1,23 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-07 16:19:24 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-07 16:20:35 + * @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.kbase.keyword; + +/** + * 迁移至 KeywordVipEventListener + * 此处不做实现 + */ +public class KeywordEventListener { + +} diff --git a/modules/kbase/src/main/java/com/bytedesk/kbase/knowledge_base/KnowledgebaseEventListener.java b/modules/kbase/src/main/java/com/bytedesk/kbase/knowledge_base/KnowledgebaseEventListener.java index 0e9a8c91..e0d21ceb 100644 --- a/modules/kbase/src/main/java/com/bytedesk/kbase/knowledge_base/KnowledgebaseEventListener.java +++ b/modules/kbase/src/main/java/com/bytedesk/kbase/knowledge_base/KnowledgebaseEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-08-27 13:53:22 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-27 15:09:54 + * @LastEditTime: 2024-09-07 17:11: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. @@ -14,12 +14,38 @@ */ package com.bytedesk.kbase.knowledge_base; +import java.io.IOException; +import java.util.Date; +import java.util.Optional; + import org.springframework.context.event.EventListener; import org.springframework.stereotype.Component; +import org.springframework.util.SerializationUtils; +import org.springframework.util.StringUtils; +import com.alibaba.fastjson2.JSON; +import com.alibaba.fastjson2.JSONObject; +import com.bytedesk.core.config.BytedeskProperties; +import com.bytedesk.core.enums.ClientEnum; import com.bytedesk.core.enums.LanguageEnum; +import com.bytedesk.core.message.MessageCache; +import com.bytedesk.core.message.MessageExtra; +import com.bytedesk.core.message.MessageJsonEvent; +import com.bytedesk.core.message.MessageProtoEvent; +import com.bytedesk.core.message.MessageProtobuf; +import com.bytedesk.core.message.MessageStatusEnum; +import com.bytedesk.core.message.MessageTypeEnum; +import com.bytedesk.core.message.MessageUtils; import com.bytedesk.core.rbac.organization.Organization; import com.bytedesk.core.rbac.organization.OrganizationCreateEvent; +import com.bytedesk.core.rbac.user.UserProtobuf; +import com.bytedesk.core.redis.pubsub.RedisPubsubService; +import com.bytedesk.core.socket.protobuf.model.MessageProto; +import com.bytedesk.core.thread.ThreadProtobuf; +import com.bytedesk.core.thread.ThreadTypeEnum; +import com.bytedesk.core.uid.UidUtils; +import com.bytedesk.core.utils.MessageConvertUtils; +import com.google.protobuf.InvalidProtocolBufferException; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -29,85 +55,199 @@ @AllArgsConstructor public class KnowledgebaseEventListener { - private final KnowledgebaseService knowledgebaseService; - - // BdConstants.DEFAULT_ORGANIZATION_UID - @EventListener - public void onOrganizationCreateEvent(OrganizationCreateEvent event) { - Organization organization = (Organization) event.getSource(); - String orgUid = organization.getUid(); - log.info("onOrganizationCreateEvent: orgUid {}", orgUid); - // - KnowledgebaseRequest kownledgebaseRequestHelpdoc = KnowledgebaseRequest.builder() - .name(KnowledgebaseConsts.KB_HELPDOC_NAME) - .descriptionHtml(KnowledgebaseConsts.KB_DESCRIPTION) - .language(LanguageEnum.ZH_CN.name()) - .build(); - kownledgebaseRequestHelpdoc.setType(KnowledgebaseTypeEnum.HELPDOC.name()); - kownledgebaseRequestHelpdoc.setOrgUid(orgUid); - knowledgebaseService.create(kownledgebaseRequestHelpdoc); - // - KnowledgebaseRequest kownledgebaseRequestLlm = KnowledgebaseRequest.builder() - .name(KnowledgebaseConsts.KB_LLM_NAME) - .descriptionHtml(KnowledgebaseConsts.KB_DESCRIPTION) - .language(LanguageEnum.ZH_CN.name()) - .build(); - kownledgebaseRequestLlm.setType(KnowledgebaseTypeEnum.LLM.name()); - kownledgebaseRequestLlm.setOrgUid(orgUid); - knowledgebaseService.create(kownledgebaseRequestLlm); - // - KnowledgebaseRequest kownledgebaseRequestKeyword = KnowledgebaseRequest.builder() - .name(KnowledgebaseConsts.KB_KEYWORD_NAME) - .descriptionHtml(KnowledgebaseConsts.KB_DESCRIPTION) - .language(LanguageEnum.ZH_CN.name()) - .build(); - kownledgebaseRequestKeyword.setType(KnowledgebaseTypeEnum.KEYWORD.name()); - kownledgebaseRequestKeyword.setOrgUid(orgUid); - knowledgebaseService.create(kownledgebaseRequestKeyword); - // - KnowledgebaseRequest kownledgebaseRequeqstFaq = KnowledgebaseRequest.builder() - .name(KnowledgebaseConsts.KB_FAQ_NAME) - .descriptionHtml(KnowledgebaseConsts.KB_DESCRIPTION) - .language(LanguageEnum.ZH_CN.name()) - .build(); - kownledgebaseRequeqstFaq.setType(KnowledgebaseTypeEnum.FAQ.name()); - kownledgebaseRequeqstFaq.setOrgUid(orgUid); - knowledgebaseService.create(kownledgebaseRequeqstFaq); - // - KnowledgebaseRequest kownledgebaseRequeqstAutoReply = KnowledgebaseRequest.builder() - .name(KnowledgebaseConsts.KB_AUTOREPLY_NAME) - .descriptionHtml(KnowledgebaseConsts.KB_DESCRIPTION) - .language(LanguageEnum.ZH_CN.name()) - .build(); - kownledgebaseRequeqstAutoReply.setType(KnowledgebaseTypeEnum.AUTOREPLY.name()); - kownledgebaseRequeqstAutoReply.setOrgUid(orgUid); - knowledgebaseService.create(kownledgebaseRequeqstAutoReply); - // - KnowledgebaseRequest kownledgebaseRequeqstQuickReply = KnowledgebaseRequest.builder() - .name(KnowledgebaseConsts.KB_QUICKREPLY_NAME) - .descriptionHtml(KnowledgebaseConsts.KB_DESCRIPTION) - .language(LanguageEnum.ZH_CN.name()) - .build(); - kownledgebaseRequeqstQuickReply.setType(KnowledgebaseTypeEnum.QUICKREPLY.name()); - kownledgebaseRequeqstQuickReply.setOrgUid(orgUid); - knowledgebaseService.create(kownledgebaseRequeqstQuickReply); - // - KnowledgebaseRequest kownledgebaseRequestTaboo = KnowledgebaseRequest.builder() - .name(KnowledgebaseConsts.KB_TABOO_NAME) - .descriptionHtml(KnowledgebaseConsts.KB_DESCRIPTION) - .language(LanguageEnum.ZH_CN.name()) - .build(); - kownledgebaseRequestTaboo.setType(KnowledgebaseTypeEnum.TABOO.name()); - kownledgebaseRequestTaboo.setOrgUid(orgUid); - knowledgebaseService.create(kownledgebaseRequestTaboo); - // - // - - - - - } - + private final KnowledgebaseService knowledgebaseService; + + // private final ZhipuaiService zhipuaiService; + + // private final BytedeskEventPublisher bytedeskEventPublisher; + + private final UidUtils uidUtils; + + private final RedisPubsubService redisPubsubService; + + private final BytedeskProperties bytedeskProperties; + + private final MessageCache messageCache; + + // BdConstants.DEFAULT_ORGANIZATION_UID + @EventListener + public void onOrganizationCreateEvent(OrganizationCreateEvent event) { + Organization organization = (Organization) event.getSource(); + String orgUid = organization.getUid(); + log.info("onOrganizationCreateEvent: orgUid {}", orgUid); + // + KnowledgebaseRequest kownledgebaseRequestHelpdoc = KnowledgebaseRequest.builder() + .name(KnowledgebaseConsts.KB_HELPDOC_NAME) + .descriptionHtml(KnowledgebaseConsts.KB_DESCRIPTION) + .language(LanguageEnum.ZH_CN.name()) + .build(); + kownledgebaseRequestHelpdoc.setType(KnowledgebaseTypeEnum.HELPDOC.name()); + kownledgebaseRequestHelpdoc.setOrgUid(orgUid); + knowledgebaseService.create(kownledgebaseRequestHelpdoc); + // + KnowledgebaseRequest kownledgebaseRequestLlm = KnowledgebaseRequest.builder() + .name(KnowledgebaseConsts.KB_LLM_NAME) + .descriptionHtml(KnowledgebaseConsts.KB_DESCRIPTION) + .language(LanguageEnum.ZH_CN.name()) + .build(); + kownledgebaseRequestLlm.setType(KnowledgebaseTypeEnum.LLM.name()); + kownledgebaseRequestLlm.setOrgUid(orgUid); + knowledgebaseService.create(kownledgebaseRequestLlm); + // + KnowledgebaseRequest kownledgebaseRequestKeyword = KnowledgebaseRequest.builder() + .name(KnowledgebaseConsts.KB_KEYWORD_NAME) + .descriptionHtml(KnowledgebaseConsts.KB_DESCRIPTION) + .language(LanguageEnum.ZH_CN.name()) + .build(); + kownledgebaseRequestKeyword.setType(KnowledgebaseTypeEnum.KEYWORD.name()); + kownledgebaseRequestKeyword.setOrgUid(orgUid); + knowledgebaseService.create(kownledgebaseRequestKeyword); + // + KnowledgebaseRequest kownledgebaseRequeqstFaq = KnowledgebaseRequest.builder() + .name(KnowledgebaseConsts.KB_FAQ_NAME) + .descriptionHtml(KnowledgebaseConsts.KB_DESCRIPTION) + .language(LanguageEnum.ZH_CN.name()) + .build(); + kownledgebaseRequeqstFaq.setType(KnowledgebaseTypeEnum.FAQ.name()); + kownledgebaseRequeqstFaq.setOrgUid(orgUid); + knowledgebaseService.create(kownledgebaseRequeqstFaq); + // + KnowledgebaseRequest kownledgebaseRequeqstAutoReply = KnowledgebaseRequest.builder() + .name(KnowledgebaseConsts.KB_AUTOREPLY_NAME) + .descriptionHtml(KnowledgebaseConsts.KB_DESCRIPTION) + .language(LanguageEnum.ZH_CN.name()) + .build(); + kownledgebaseRequeqstAutoReply.setType(KnowledgebaseTypeEnum.AUTOREPLY.name()); + kownledgebaseRequeqstAutoReply.setOrgUid(orgUid); + knowledgebaseService.create(kownledgebaseRequeqstAutoReply); + // + KnowledgebaseRequest kownledgebaseRequeqstQuickReply = KnowledgebaseRequest.builder() + .name(KnowledgebaseConsts.KB_QUICKREPLY_NAME) + .descriptionHtml(KnowledgebaseConsts.KB_DESCRIPTION) + .language(LanguageEnum.ZH_CN.name()) + .build(); + kownledgebaseRequeqstQuickReply.setType(KnowledgebaseTypeEnum.QUICKREPLY.name()); + kownledgebaseRequeqstQuickReply.setOrgUid(orgUid); + knowledgebaseService.create(kownledgebaseRequeqstQuickReply); + // + KnowledgebaseRequest kownledgebaseRequestTaboo = KnowledgebaseRequest.builder() + .name(KnowledgebaseConsts.KB_TABOO_NAME) + .descriptionHtml(KnowledgebaseConsts.KB_DESCRIPTION) + .language(LanguageEnum.ZH_CN.name()) + .build(); + kownledgebaseRequestTaboo.setType(KnowledgebaseTypeEnum.TABOO.name()); + kownledgebaseRequestTaboo.setOrgUid(orgUid); + knowledgebaseService.create(kownledgebaseRequestTaboo); + // + // + + } + + @EventListener + public void onMessageJsonEvent(MessageJsonEvent event) { + // log.info("MessageJsonEvent {}", event.getJson()); + String messageJson = event.getJson(); + // + processMessage(messageJson); + } + + @EventListener + public void onMessageProtoEvent(MessageProtoEvent event) { + // log.info("MessageProtoEvent"); + try { + MessageProto.Message messageProto = MessageProto.Message.parseFrom(event.getMessageBytes()); + // + try { + String messageJson = MessageConvertUtils.toJson(messageProto); + // + processMessage(messageJson); + + } catch (IOException e) { + e.printStackTrace(); + } + } catch (InvalidProtocolBufferException e) { + e.printStackTrace(); + } + } + + private void processMessage(String messageJson) { + MessageProtobuf messageProtobuf = JSON.parseObject(messageJson, MessageProtobuf.class); + MessageTypeEnum messageType = messageProtobuf.getType(); + if (messageType.equals(MessageTypeEnum.STREAM)) { + // ai回答暂不处理 + return; + } + String query = messageProtobuf.getContent(); + log.info("kb processMessage {}", query); + // + ThreadProtobuf thread = messageProtobuf.getThread(); + if (thread == null) { + throw new RuntimeException("thread is null"); + } + // 仅针对文本类型自动回复 + if (!messageType.equals(MessageTypeEnum.TEXT)) { + return; + } + // + String threadTopic = thread.getTopic(); + if (thread.getType().equals(ThreadTypeEnum.KB)) { + log.info("knowledge_base threadTopic {}, thread.type {}", threadTopic, thread.getType()); + // 机器人回复 + log.info("knowledge_base thread reply"); + // 机器人客服消息 org/kb/default_kb_uid/1420995827073219 + String[] splits = threadTopic.split("/"); + if (splits.length < 4) { + throw new RuntimeException("kb topic format error"); + } + String kbUid = splits[2]; + if (!StringUtils.hasText(kbUid)) { + throw new RuntimeException("kbUid is null"); + } + Optional kbOptional = knowledgebaseService.findByUid(kbUid); + if (kbOptional.isPresent()) { + Knowledgebase kb = kbOptional.get(); + // + UserProtobuf user = UserProtobuf.builder().build(); + user.setUid(kbUid); + user.setNickname(kb.getName()); + user.setAvatar(kb.getLogoUrl()); + // + MessageExtra extra = MessageUtils.getMessageExtra(kb.getOrgUid()); + // + String messageUid = uidUtils.getCacheSerialUid(); + MessageProtobuf message = MessageProtobuf.builder() + .uid(messageUid) + .status(MessageStatusEnum.SUCCESS) + .thread(thread) + .user(user) + .client(ClientEnum.SYSTEM_AUTO) + .extra(JSONObject.toJSONString(extra)) + .createdAt(new Date()) + .build(); + // 返回一个输入中消息,让访客端显示输入中 + MessageProtobuf clonedMessage = SerializationUtils.clone(message); + clonedMessage.setUid(uidUtils.getCacheSerialUid()); + clonedMessage.setType(MessageTypeEnum.PROCESSING); + // + MessageUtils.notifyUser(clonedMessage); + // String json = JSON.toJSONString(clonedMessage); + // bytedeskEventPublisher.publishMessageJsonEvent(json); + // 知识库 + // if (bytedeskProperties.getJavaai()) { + // zhipuaiService.sendWsRobotMessage(query, kb.getKbUid(), kb, message); + // } + // 通知python ai模块处理回答 + if (bytedeskProperties.getPythonai()) { + messageCache.put(messageUid, message); + redisPubsubService.sendQuestionMessage(messageUid, threadTopic, + kb.getUid(), + query); + } + } else { + log.error("kb not found"); + } + } + } } diff --git a/modules/kbase/src/main/java/com/bytedesk/kbase/quick_reply/QuickReplyEventListener.java b/modules/kbase/src/main/java/com/bytedesk/kbase/quick_reply/QuickReplyEventListener.java new file mode 100644 index 00000000..d6fcc124 --- /dev/null +++ b/modules/kbase/src/main/java/com/bytedesk/kbase/quick_reply/QuickReplyEventListener.java @@ -0,0 +1,23 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-07 16:19:48 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-07 16:19: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.kbase.quick_reply; + +/** + * 迁移至 QuickReplyVipEventListener + * 此处不做实现 + */ +public class QuickReplyEventListener { + +} diff --git a/modules/kbase/src/main/java/com/bytedesk/kbase/taboo/TabooEventListener.java b/modules/kbase/src/main/java/com/bytedesk/kbase/taboo/TabooEventListener.java new file mode 100644 index 00000000..0d30822b --- /dev/null +++ b/modules/kbase/src/main/java/com/bytedesk/kbase/taboo/TabooEventListener.java @@ -0,0 +1,23 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-07 16:20:02 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-07 16:20: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.kbase.taboo; + +/** + * 迁移至 TabooVipEventListener + * 此处不做实现 + */ +public class TabooEventListener { + +} diff --git a/modules/kbase/src/main/java/com/bytedesk/kbase/upload/Upload.java b/modules/kbase/src/main/java/com/bytedesk/kbase/upload/Upload.java index ee6d71ef..4567f63b 100644 --- a/modules/kbase/src/main/java/com/bytedesk/kbase/upload/Upload.java +++ b/modules/kbase/src/main/java/com/bytedesk/kbase/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-08-26 06:30:23 + * @LastEditTime: 2024-08-31 15:47: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. @@ -83,7 +83,7 @@ public class Upload extends BaseEntity { private String kbUid; // 所属知识库 - // 存储用户信息:包括客服、访客、群聊、同事等 + // 上传用户 @Builder.Default @Column(name = "upload_user", columnDefinition = TypeConsts.COLUMN_TYPE_JSON) @JdbcTypeCode(SqlTypes.JSON) diff --git a/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadController.java b/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadController.java index 7237a804..612416c2 100644 --- a/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadController.java +++ b/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadController.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-15 11:35:53 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-31 15:21:10 + * @LastEditTime: 2024-08-30 18:02: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. @@ -138,7 +138,7 @@ public ResponseEntity update(UploadRequest request) { throw new UnsupportedOperationException("Unimplemented method 'update'"); } - @ActionAnnotation(title = "upload", action = "delete", description = "create upload") + @ActionAnnotation(title = "upload", action = "delete", description = "delete upload") @Override public ResponseEntity delete(UploadRequest request) { // 更新数据库 diff --git a/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadControllerVisitor.java b/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadControllerVisitor.java index 315c89a2..cdc27555 100644 --- a/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadControllerVisitor.java +++ b/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadControllerVisitor.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-07-18 19:21:06 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-30 22:54:38 + * @LastEditTime: 2024-08-28 11:09: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. @@ -22,7 +22,9 @@ import org.springframework.web.bind.annotation.RestController; import org.springframework.web.multipart.MultipartFile; +import com.alibaba.fastjson2.JSON; import com.bytedesk.core.config.BytedeskProperties; +import com.bytedesk.core.rbac.user.UserProtobuf; import com.bytedesk.core.utils.JsonResult; import lombok.AllArgsConstructor; @@ -46,17 +48,41 @@ public class UploadControllerVisitor { public ResponseEntity upload( @RequestParam("file") MultipartFile file, @RequestParam("file_name") String fileName, - @RequestParam("file_type") String type) { - log.info("fileName {}, type {}", fileName, type); + @RequestParam("file_type") String fileType, + @RequestParam(name = "kb_type", required = false) String kbType, + @RequestParam(name = "visitor_uid", required = false) String visitorUid, + @RequestParam(name = "nickname", required = false) String visitorNickname, + @RequestParam(name = "avatar", required = false) String visitorAvatar, + @RequestParam(name = "org_uid", required = false) String orgUid, + @RequestParam(name = "client", required = false) String client) { + log.info("fileName {}, fileType {}", fileName, fileType); // TODO: image/avatar/file/video/voice // http://localhost:9003/file/20240319162820_img-service2.png String uploadPath = uploadService.store(file, fileName); // http://localhost:9003 - String url = String.format("%s/file/%s", bytedeskProperties.getUploadUrl(), uploadPath); + String fileUrl = String.format("%s/file/%s", bytedeskProperties.getUploadUrl(), uploadPath); + // + UserProtobuf visitorProtobuf = UserProtobuf.builder() + .nickname(visitorNickname) + .avatar(visitorAvatar) + .build(); + visitorProtobuf.setUid(visitorUid); + // + UploadRequest uploadRequest = UploadRequest.builder() + .fileName(fileName) + .fileSize(String.valueOf(file.getSize())) + .fileUrl(fileUrl) + .fileType(fileType) + .client(client) + .user(JSON.toJSONString(visitorProtobuf)) + .build(); + uploadRequest.setType(kbType); + uploadRequest.setOrgUid(orgUid); + uploadService.create(uploadRequest); - return ResponseEntity.ok(JsonResult.success("upload success", url)); + return ResponseEntity.ok(JsonResult.success("upload success", fileUrl)); } } diff --git a/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadEventListener.java b/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadEventListener.java index 4a72e259..3a3fdae6 100644 --- a/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadEventListener.java +++ b/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-07-28 06:48:10 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-24 08:00:43 + * @LastEditTime: 2024-09-07 16:56: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,23 @@ package com.bytedesk.kbase.upload; import java.io.IOException; - import org.springframework.context.event.EventListener; import org.springframework.core.io.Resource; import org.springframework.stereotype.Component; import com.alibaba.excel.EasyExcel; +import com.alibaba.fastjson2.JSON; +import com.alibaba.fastjson2.JSONObject; +import com.bytedesk.core.constant.I18Consts; import com.bytedesk.core.event.GenericApplicationEvent; +import com.bytedesk.core.message.MessageProtobuf; +import com.bytedesk.core.message.MessageUtils; +import com.bytedesk.core.rbac.user.UserProtobuf; +import com.bytedesk.core.redis.pubsub.RedisPubsubParseFileErrorEvent; +import com.bytedesk.core.redis.pubsub.RedisPubsubParseFileSuccessEvent; +import com.bytedesk.core.redis.pubsub.RedisPubsubService; +import com.bytedesk.core.redis.pubsub.message.RedisPubsubMessageFile; +import com.bytedesk.core.uid.UidUtils; import com.bytedesk.kbase.auto_reply.AutoReplyExcel; import com.bytedesk.kbase.auto_reply.AutoReplyExcelListener; import com.bytedesk.kbase.auto_reply.AutoReplyService; @@ -58,7 +68,11 @@ public class UploadEventListener { private final TabooService tabooService; - private final UploadVectorStore uploadVectorStore; + private final RedisPubsubService redisPubsubService; + + // private final MessageService messageService; + + private final UidUtils uidUtils; @EventListener public void onUploadCreateEvent(GenericApplicationEvent event) throws IOException { @@ -66,7 +80,12 @@ public void onUploadCreateEvent(GenericApplicationEvent event log.info("UploadEventListener create: {}", upload.toString()); // etl分块处理 if (upload.getType().equals(UploadTypeEnum.LLM.name())) { - uploadVectorStore.readSplitWriteToVectorStore(upload); + // 通知python ai模块处理 + // uploadVectorStore.readSplitWriteToVectorStore(upload); + redisPubsubService.sendParseFileMessage( + upload.getUid(), + upload.getFileUrl(), + upload.getKbUid()); return; } // 导入Excel文件 @@ -126,7 +145,6 @@ public void onUploadCreateEvent(GenericApplicationEvent event // MemberExcelListener(memberService)).sheet().doRead(); } } - } @EventListener @@ -135,9 +153,54 @@ public void onUploadUpdateEvent(GenericApplicationEvent event log.info("UploadEventListener update: {}", upload.toString()); // 后台删除文件记录 if (upload.isDeleted()) { + // 通知python ai模块处理 + redisPubsubService.sendDeleteFileMessage(upload.getUid(), upload.getDocIdList()); // 删除redis中缓存的document - uploadVectorStore.deleteDoc(upload.getDocIdList()); + // uploadVectorStore.deleteDoc(upload.getDocIdList()); } } + @EventListener + public void onRedisPubsubParseFileSuccessEvent(GenericApplicationEvent event) { + RedisPubsubMessageFile messageFile = event.getObject().getMessageFile(); + log.info("UploadEventListener RedisPubsubParseFileSuccessEvent: {}", messageFile.toString()); + // + Upload upload = uploadService.findByUid(messageFile.getFileUid()) + .orElseThrow(() -> new RuntimeException("upload not found by uid: " + messageFile.getFileUid())); + upload.setDocIdList(messageFile.getDocIds()); + upload.setStatus(UploadStatusEnum.PARSE_FILE_SUCCESS.name()); + uploadService.save(upload); + // + String user = upload.getUser(); + UserProtobuf uploadUser = JSON.parseObject(user, UserProtobuf.class); + + // 通知前端 + JSONObject contentObject = new JSONObject(); + contentObject.put(I18Consts.I18N_NOTICE_TITLE, I18Consts.I18N_NOTICE_PARSE_FILE_SUCCESS); + // + MessageProtobuf message = MessageUtils.createNoticeMessage(uidUtils.getCacheSerialUid(), uploadUser.getUid(), upload.getOrgUid(), + JSON.toJSONString(contentObject)); + MessageUtils.notifyUser(message); + } + + @EventListener + public void onRedisPubsubParseFileErrorEvent(GenericApplicationEvent event) { + RedisPubsubMessageFile messageFile = event.getObject().getMessageFile(); + log.info("UploadEventListener RedisPubsubParseFileErrorEvent: {}", messageFile.toString()); + Upload upload = uploadService.findByUid(messageFile.getFileUid()) + .orElseThrow(() -> new RuntimeException("upload not found by uid: " + messageFile.getFileUid())); + upload.setStatus(UploadStatusEnum.PARSE_FILE_ERROR.name()); + uploadService.save(upload); + // + String user = upload.getUser(); + UserProtobuf uploadUser = JSON.parseObject(user, UserProtobuf.class); + // 通知前端 + JSONObject contentObject = new JSONObject(); + contentObject.put(I18Consts.I18N_NOTICE_TITLE, I18Consts.I18N_NOTICE_PARSE_FILE_ERROR); + // + MessageProtobuf message = MessageUtils.createNoticeMessage(uidUtils.getCacheSerialUid(), uploadUser.getUid(), upload.getOrgUid(), + JSON.toJSONString(contentObject)); + MessageUtils.notifyUser(message); + } + } diff --git a/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadService.java b/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadService.java index b944c59f..2318eeb6 100755 --- a/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadService.java +++ b/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-03-15 11:35:53 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-26 06:47:14 + * @LastEditTime: 2024-08-31 16:03: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. @@ -62,7 +62,11 @@ public UploadResponse create(UploadRequest request) { upload.setUid(uidUtils.getCacheSerialUid()); upload.setClient(ClientEnum.fromValue(request.getClient()).name()); upload.setType(UploadTypeEnum.fromValue(request.getType()).name()); - upload.setStatus(UploadStatusEnum.UPLOADED.name()); + if (upload.getType().equals(UploadTypeEnum.LLM.name())) { + upload.setStatus(UploadStatusEnum.PARSING.name()); + } else { + upload.setStatus(UploadStatusEnum.UPLOADED.name()); + } // Upload savedUpload = save(upload); if (savedUpload == null) { diff --git a/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadStatusEnum.java b/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadStatusEnum.java index 0b9f05f9..e7616b73 100644 --- a/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadStatusEnum.java +++ b/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadStatusEnum.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-07-26 14:40:46 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-28 06:36:46 + * @LastEditTime: 2024-08-31 15:56: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. @@ -18,14 +18,10 @@ // https://docs.spring.io/spring-ai/reference/api/etl-pipeline.html public enum UploadStatusEnum { UPLOADED, - EXTRACTING, - EXTRATED, - TRANSFORMING, - TRANSFORMED, - LOADING, - LOADED, - FAILED, - ABORTED; + PARSING, + PARSE_FILE_SUCCESS, + PARSE_FILE_ERROR + ; // 根据字符串查找对应的枚举常量 public static UploadStatusEnum fromValue(String value) { diff --git a/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadVectorStore.java b/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadVectorStore.java index 7dd3c6fc..eaacdaf0 100644 --- a/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadVectorStore.java +++ b/modules/kbase/src/main/java/com/bytedesk/kbase/upload/UploadVectorStore.java @@ -198,7 +198,7 @@ private void storeDocuments(List docList, Upload upload) { doc.getMetadata().put(KbaseConst.KBASE_KB_UID, upload.getKbUid()); } upload.setDocIdList(docIdList); - upload.setStatus(UploadStatusEnum.EXTRATED.name()); + upload.setStatus(UploadStatusEnum.PARSE_FILE_SUCCESS.name()); // FIXME: ObjectOptimisticLockingFailureException: Row was updated or deleted by // another transaction (or unsaved-value mapping was incorrect) : // [com.bytedesk.kbase.upload.Upload#52] @@ -233,9 +233,9 @@ public List searchText(String query, String kbUid) { // SearchRequest searchRequest = SearchRequest.query(query) .withFilterExpression(expression); - // .withTopK(2); - // .withSimilarityThreshold(0.5) - // .withFilterExpression(expression); + // .withTopK(2); + // .withSimilarityThreshold(0.5) + // .withFilterExpression(expression); List similarDocuments = vectorStore.similaritySearch(searchRequest); List contentList = similarDocuments.stream().map(Document::getContent).toList(); log.info("kbUid {}, query: {} , contentList.size: {}", kbUid, query, contentList.size()); diff --git a/modules/pom.xml b/modules/pom.xml index 059ac4b9..f83afc60 100644 --- a/modules/pom.xml +++ b/modules/pom.xml @@ -186,6 +186,14 @@ provided + + + com.google.protobuf + protobuf-java + 3.25.2 + provided + + diff --git a/modules/service/.DS_Store b/modules/service/.DS_Store index d41c78b9..3ba66e08 100644 Binary files a/modules/service/.DS_Store and b/modules/service/.DS_Store differ diff --git a/modules/service/pom.xml b/modules/service/pom.xml index 833195be..b498a5c3 100644 --- a/modules/service/pom.xml +++ b/modules/service/pom.xml @@ -55,14 +55,6 @@ - - - com.google.protobuf - protobuf-java - 3.25.2 - provided - - diff --git a/modules/service/src/main/java/com/bytedesk/service/agent/AgentEventListener.java b/modules/service/src/main/java/com/bytedesk/service/agent/AgentEventListener.java index 52d683bc..6fa82755 100644 --- a/modules/service/src/main/java/com/bytedesk/service/agent/AgentEventListener.java +++ b/modules/service/src/main/java/com/bytedesk/service/agent/AgentEventListener.java @@ -27,7 +27,7 @@ import com.bytedesk.core.enums.LanguageEnum; import com.bytedesk.core.enums.LevelEnum; import com.bytedesk.core.event.GenericApplicationEvent; -import com.bytedesk.core.quartz.QuartzFiveSecondEvent; +import com.bytedesk.core.quartz.event.QuartzFiveSecondEvent; import com.bytedesk.core.rbac.organization.Organization; import com.bytedesk.core.rbac.organization.OrganizationCreateEvent; import com.bytedesk.core.rbac.user.User; diff --git a/modules/service/src/main/java/com/bytedesk/service/agent/AgentQuartzListener.java b/modules/service/src/main/java/com/bytedesk/service/agent/AgentQuartzListener.java index 04566830..0c5a32d0 100644 --- a/modules/service/src/main/java/com/bytedesk/service/agent/AgentQuartzListener.java +++ b/modules/service/src/main/java/com/bytedesk/service/agent/AgentQuartzListener.java @@ -17,7 +17,7 @@ import org.springframework.context.ApplicationListener; import org.springframework.stereotype.Component; -import com.bytedesk.core.quartz.QuartzFiveSecondEvent; +import com.bytedesk.core.quartz.event.QuartzFiveSecondEvent; import lombok.AllArgsConstructor; // import lombok.extern.slf4j.Slf4j; 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 deleted file mode 100644 index 90963f6e..00000000 --- a/modules/service/src/main/java/com/bytedesk/service/agent/AgentResponseSimple.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * @Author: jackning 270580156@qq.com - * @Date: 2024-02-06 10:17:01 - * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-05-31 14:06:43 - * @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.agent; - -import com.bytedesk.core.base.BaseResponse; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.Accessors; - -@Data -@Builder -@Accessors(chain = true) -@AllArgsConstructor -@NoArgsConstructor -@EqualsAndHashCode(callSuper = true) -public class AgentResponseSimple extends BaseResponse { - - private static final long serialVersionUID = 1L; - - private String nickname; - - private String avatar; -} diff --git a/modules/service/src/main/java/com/bytedesk/service/agent_message/AgentMessageEventListener.java b/modules/service/src/main/java/com/bytedesk/service/agent_message/AgentMessageEventListener.java index eabffcc4..c64c70ce 100644 --- a/modules/service/src/main/java/com/bytedesk/service/agent_message/AgentMessageEventListener.java +++ b/modules/service/src/main/java/com/bytedesk/service/agent_message/AgentMessageEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-07-05 11:07:05 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-05 11:09:53 + * @LastEditTime: 2024-09-07 16:15: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. @@ -14,27 +14,23 @@ */ package com.bytedesk.service.agent_message; -import org.springframework.context.event.EventListener; import org.springframework.stereotype.Component; -import com.bytedesk.core.message.MessageCreateEvent; -import com.bytedesk.core.message.MessageUpdateEvent; - // import lombok.extern.slf4j.Slf4j; // @Slf4j @Component public class AgentMessageEventListener { - @EventListener - public void onMessageCreateEvent(MessageCreateEvent event) { - // log.info("visitor message unread create event: " + event); + // @EventListener + // public void onMessageCreateEvent(MessageCreateEvent event) { + // // log.info("visitor message unread create event: " + event); - } + // } - @EventListener - public void onMessageUpdateEvent(MessageUpdateEvent event) { - // log.info("visitor message unread update event: " + event); - } + // @EventListener + // public void onMessageUpdateEvent(MessageUpdateEvent event) { + // // log.info("visitor message unread update event: " + event); + // } } diff --git a/modules/service/src/main/java/com/bytedesk/service/complaint/Complaint.java b/modules/service/src/main/java/com/bytedesk/service/complaint/Complaint.java new file mode 100644 index 00000000..e1953fc7 --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/complaint/Complaint.java @@ -0,0 +1,20 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-03 09:50:20 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-03 09:50: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.complaint; + +// 投诉,如:对在线人工客服进行投诉 +public class Complaint { + +} diff --git a/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintController.java b/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintController.java new file mode 100644 index 00000000..3d1c548a --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintController.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-03 09:50:58 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-03 09:51: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.complaint; + +public class ComplaintController { + +} diff --git a/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintRepository.java b/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintRepository.java new file mode 100644 index 00000000..ae2013bb --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintRepository.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-03 09:51:46 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-03 09:51: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.complaint; + +public class ComplaintRepository { + +} diff --git a/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintRequest.java b/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintRequest.java new file mode 100644 index 00000000..42fb9a03 --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintRequest.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-03 09:51:19 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-03 09:51: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.complaint; + +public class ComplaintRequest { + +} diff --git a/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintResponse.java b/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintResponse.java new file mode 100644 index 00000000..3d74d041 --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintResponse.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-03 09:51:28 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-03 09:51: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.complaint; + +public class ComplaintResponse { + +} diff --git a/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintService.java b/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintService.java new file mode 100644 index 00000000..a270abe8 --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintService.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-03 09:51:08 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-03 09:51: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.complaint; + +public class ComplaintService { + +} diff --git a/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintSpecification.java b/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintSpecification.java new file mode 100644 index 00000000..07a24c86 --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/complaint/ComplaintSpecification.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-03 09:52:03 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-03 09:52: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.complaint; + +public class ComplaintSpecification { + +} diff --git a/modules/service/src/main/java/com/bytedesk/service/leave_msg/LeaveMsgEventListener.java b/modules/service/src/main/java/com/bytedesk/service/leave_msg/LeaveMsgEventListener.java index 1c535b4a..8f1c1888 100644 --- a/modules/service/src/main/java/com/bytedesk/service/leave_msg/LeaveMsgEventListener.java +++ b/modules/service/src/main/java/com/bytedesk/service/leave_msg/LeaveMsgEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-07-18 11:45:43 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-05 21:30:50 + * @LastEditTime: 2024-08-31 10:22:20 * @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 @@ public class LeaveMsgEventListener { @EventListener public void onMessageUpdateEvent(MessageUpdateEvent event) { Message message = event.getMessage(); - log.info("message leave_msg update event: {}", message); + // log.info("message leave_msg update event: {}", message); // - if (message.getStatus().equals(MessageStatusEnum.LEAVE_MSG_SUBMIT)) { + if (message.getStatus().equals(MessageStatusEnum.LEAVE_MSG_SUBMIT.name())) { LeaveMsgExtra extra = JSON.parseObject(message.getContent(), LeaveMsgExtra.class); // LeaveMsgRequest request = LeaveMsgRequest.builder() diff --git a/modules/service/src/main/java/com/bytedesk/service/settings/ServiceSettings.java b/modules/service/src/main/java/com/bytedesk/service/settings/ServiceSettings.java index 9c520bdb..e6d15059 100644 --- a/modules/service/src/main/java/com/bytedesk/service/settings/ServiceSettings.java +++ b/modules/service/src/main/java/com/bytedesk/service/settings/ServiceSettings.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-05-29 13:57:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-26 07:41:24 + * @LastEditTime: 2024-09-03 10:37: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. @@ -79,4 +79,19 @@ public boolean isWorkTime() { } return this.worktimes.stream().anyMatch(w -> w.isWorkTime()); } + + // + public Boolean shouldTransferToRobot(Boolean isOffline) { + if (this.defaultRobot) { + // 默认机器人优先接待 + return true; + } else if (isOffline && this.offlineRobot) { + // 所有客服离线,且设置机器人离线优先接待 + return true; + } else if (this.nonWorktimeRobot && !isWorkTime()) { + // 设置非工作时间机器人接待,且当前非工作时间,转机器人 + return true; + } + return false; + } } 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 ad6028ee..136e7697 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-08-26 06:32:59 + * @LastEditTime: 2024-09-06 16:41: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. @@ -56,11 +56,6 @@ public class ThreadLog extends BaseEntity { private static final long serialVersionUID = 1L; - // @NotBlank - // private String title; - // @NotBlank - // private String avatar; - /** * @{TopicConsts} */ @@ -102,7 +97,6 @@ public class ThreadLog extends BaseEntity { @JdbcTypeCode(SqlTypes.JSON) private String extra = BdConstants.EMPTY_JSON_STRING; - // // h2 db 不能使用 user, 所以重定义为 _user @Builder.Default @Column(name = "thread_user", columnDefinition = TypeConsts.COLUMN_TYPE_JSON) diff --git a/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogEventListener.java b/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogEventListener.java index b333f315..dee90675 100644 --- a/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogEventListener.java +++ b/modules/service/src/main/java/com/bytedesk/service/thread_log/ThreadLogEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-05-29 15:09:26 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-02 23:05:32 + * @LastEditTime: 2024-09-10 23:21: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. @@ -17,9 +17,9 @@ import org.springframework.context.event.EventListener; import org.springframework.stereotype.Component; -import com.bytedesk.core.quartz.QuartzFiveSecondEvent; import com.bytedesk.core.thread.ThreadCreateEvent; import com.bytedesk.core.thread.ThreadUpdateEvent; +import com.bytedesk.core.quartz.event.QuartzOneMinEvent; import com.bytedesk.core.thread.Thread; import lombok.AllArgsConstructor; @@ -35,7 +35,7 @@ public class ThreadLogEventListener { @EventListener public void onThreadCreateEvent(ThreadCreateEvent event) { Thread thread = event.getThread(); - log.info("thread log ThreadCreateEvent: {}", thread.getUid()); + // log.info("thread log ThreadCreateEvent: {}", thread.getUid()); // threadLogService.create(thread); } @@ -54,7 +54,7 @@ public void onThreadUpdateEvent(ThreadUpdateEvent event) { } @EventListener - public void onQuartzFiveSecondEvent(QuartzFiveSecondEvent event) { + public void onQuartzOneMinEvent(QuartzOneMinEvent event) { // log.info("threadlog quartz five second event: " + event); // auto close thread threadLogService.autoCloseThread(); 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 e9b08878..81a25b70 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-08-26 06:47:41 + * @LastEditTime: 2024-09-06 16:42:43 * @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,9 +34,9 @@ import com.bytedesk.kbase.service_settings.ServiceSettingsResponseVisitor; import lombok.AllArgsConstructor; -// import lombok.extern.slf4j.Slf4j; +import lombok.extern.slf4j.Slf4j; -// @Slf4j +@Slf4j @Service @AllArgsConstructor public class ThreadLogService { @@ -54,9 +54,8 @@ public Page queryByOrg(ThreadLogRequest threadLogRequest) { "updatedAt"); Specification spec = ThreadLogSpecification.search(threadLogRequest); + Page threadLogPage = threadLogRepository.findAll(spec, pageable); - // Page threadLogPage = - // threadLogRepository.findByOrgUid(threadLogRequest.getOrgUid(), pageable); return threadLogPage.map(this::convertThreadLogResponse); } @@ -89,21 +88,30 @@ public void autoCloseThread() { long diffInMilliseconds = Math.abs(new Date().getTime() - thread.getUpdatedAt().getTime()); // 转换为分钟 long diffInMinutes = TimeUnit.MILLISECONDS.toMinutes(diffInMilliseconds); - if (thread.getType() == ThreadTypeEnum.WORKGROUP.name() || thread.getType() == ThreadTypeEnum.AGENT.name()) { - ServiceSettingsResponseVisitor settings = JSON.parseObject(thread.getExtra(), - ServiceSettingsResponseVisitor.class); - Double autoCloseMinites = settings.getAutoCloseMin(); - if (diffInMinutes > autoCloseMinites) { - threadService.autoClose(thread); - } - } else if (thread.getType() == ThreadTypeEnum.ROBOT.name()) { + // log.info("1.autoCloseThread threadUid {} threadType {} threadId {} diffInMinutes {}", thread.getUid(), thread.getType(), + // thread.getUid(), diffInMinutes); + // + // log.info("{}, {}, {} ", ThreadTypeEnum.WORKGROUP.name(), ThreadTypeEnum.AGENT.name(), ThreadTypeEnum.ROBOT.name()); + if (thread.getType().equals(ThreadTypeEnum.WORKGROUP.name()) + || thread.getType().equals(ThreadTypeEnum.AGENT.name()) + || thread.getType().equals(ThreadTypeEnum.ROBOT.name())) { ServiceSettingsResponseVisitor settings = JSON.parseObject(thread.getExtra(), ServiceSettingsResponseVisitor.class); Double autoCloseMinites = settings.getAutoCloseMin(); + // log.info("2. autoCloseThread threadUid {} threadType {} autoCloseMinites {}, diffInMinutes {}", + // thread.getUid(), thread.getType(), autoCloseMinites, diffInMinutes); if (diffInMinutes > autoCloseMinites) { threadService.autoClose(thread); } } + // else if (thread.getType() == ThreadTypeEnum.ROBOT.name()) { + // ServiceSettingsResponseVisitor settings = JSON.parseObject(thread.getExtra(), + // ServiceSettingsResponseVisitor.class); + // Double autoCloseMinites = settings.getAutoCloseMin(); + // if (diffInMinutes > autoCloseMinites) { + // threadService.autoClose(thread); + // } + // } }); } diff --git a/modules/service/src/main/java/com/bytedesk/service/utils/ConvertServiceUtils.java b/modules/service/src/main/java/com/bytedesk/service/utils/ConvertServiceUtils.java index 9689fe15..c6240f81 100644 --- a/modules/service/src/main/java/com/bytedesk/service/utils/ConvertServiceUtils.java +++ b/modules/service/src/main/java/com/bytedesk/service/utils/ConvertServiceUtils.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-06-04 11:25:45 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-04 20:28:24 + * @LastEditTime: 2024-09-07 10:24: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. @@ -24,18 +24,16 @@ import com.bytedesk.core.message.MessageProtobuf; import com.bytedesk.core.message.MessageResponse; import com.bytedesk.core.rbac.user.UserProtobuf; +import com.bytedesk.core.rbac.user.UserTypeEnum; import com.bytedesk.service.agent.Agent; import com.bytedesk.service.agent.AgentResponse; -import com.bytedesk.service.agent.AgentResponseSimple; import com.bytedesk.kbase.service_settings.ServiceSettingsResponseVisitor; import com.bytedesk.service.settings.ServiceSettings; import com.bytedesk.service.visitor.Visitor; import com.bytedesk.service.visitor.VisitorRequest; import com.bytedesk.service.visitor.VisitorResponse; -import com.bytedesk.service.visitor.VisitorProtobuf; import com.bytedesk.service.workgroup.Workgroup; import com.bytedesk.service.workgroup.WorkgroupResponse; -import com.bytedesk.service.workgroup.WorkgroupResponseSimple; public class ConvertServiceUtils { private ConvertServiceUtils() { @@ -46,19 +44,22 @@ public static VisitorResponse convertToVisitorResponse(Visitor visitor) { return new ModelMapper().map(visitor, VisitorResponse.class); } - public static VisitorProtobuf convertToVisitorProtobuf(Visitor visitor) { - return new ModelMapper().map(visitor, VisitorProtobuf.class); + public static UserProtobuf convertToUserProtobuf(Visitor visitor) { + return new ModelMapper().map(visitor, UserProtobuf.class); } - public static VisitorProtobuf convertToVisitorProtobuf(VisitorRequest visitorRequest) { - return new ModelMapper().map(visitorRequest, VisitorProtobuf.class); + public static UserProtobuf convertToUserProtobuf(VisitorRequest visitorRequest) { + UserProtobuf userProtobuf = new ModelMapper().map(visitorRequest, UserProtobuf.class); + userProtobuf.setType(UserTypeEnum.VISITOR.name()); + return userProtobuf; } - public static UserProtobuf convertToUserResponseSimple(AgentResponseSimple agentResponseSimple) { - return new ModelMapper().map(agentResponseSimple, UserProtobuf.class); - } + // public static UserProtobuf convertToUserResponseSimple(AgentResponseSimple + // agentResponseSimple) { + // return new ModelMapper().map(agentResponseSimple, UserProtobuf.class); + // } - public static UserProtobuf convertToUserResponseSimple(VisitorProtobuf visitorResponseSimple) { + public static UserProtobuf convertToUserResponseSimple(UserProtobuf visitorResponseSimple) { return new ModelMapper().map(visitorResponseSimple, UserProtobuf.class); } @@ -95,8 +96,10 @@ public static AgentResponse convertToAgentResponse(Agent agent) { return new ModelMapper().map(agent, AgentResponse.class); } - public static AgentResponseSimple convertToAgentResponseSimple(Agent agent) { - return new ModelMapper().map(agent, AgentResponseSimple.class); + public static UserProtobuf convertToUserProtobuf(Agent agent) { + UserProtobuf userProtobuf = new ModelMapper().map(agent, UserProtobuf.class); + userProtobuf.setType(UserTypeEnum.AGENT.name()); + return userProtobuf; } // @@ -104,9 +107,10 @@ public static WorkgroupResponse convertToWorkgroupResponse(Workgroup workgroup) return new ModelMapper().map(workgroup, WorkgroupResponse.class); } - public static WorkgroupResponseSimple convertToWorkgroupResponseSimple(Workgroup workgroup) { - return new ModelMapper().map(workgroup, WorkgroupResponseSimple.class); - } + // public static WorkgroupResponseSimple + // convertToWorkgroupResponseSimple(Workgroup workgroup) { + // return new ModelMapper().map(workgroup, WorkgroupResponseSimple.class); + // } // public static ServiceSettingsResponseVisitor convertToServiceSettingsResponseVisitor( 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 78c2b345..f38d117f 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-08-26 06:34:03 + * @LastEditTime: 2024-09-07 13:03: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. @@ -38,7 +38,6 @@ @EqualsAndHashCode(callSuper = false) @AllArgsConstructor @NoArgsConstructor -// @DiscriminatorValue("Visitor") @Table(name = "service_visitor") public class Visitor extends BaseEntity { @@ -69,5 +68,8 @@ public class Visitor extends BaseEntity { // @Enumerated(EnumType.STRING) // private ClientEnum client; private String client = ClientEnum.WEB.name(); + + @Builder.Default + private String status = VisitorStatusEnum.OFFLINE.name(); } \ No newline at end of file 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 0061b738..23af1df7 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-08-04 10:46:45 + * @LastEditTime: 2024-09-07 13:07: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. @@ -29,6 +29,7 @@ import com.bytedesk.core.message.MessageProtobuf; import com.bytedesk.core.message.MessageResponse; import com.bytedesk.core.message_unread.MessageUnreadService; +import com.bytedesk.core.rbac.user.UserProtobuf; import com.bytedesk.core.socket.MqService; import com.bytedesk.core.utils.JsonResult; import jakarta.servlet.http.HttpServletRequest; @@ -85,7 +86,7 @@ public ResponseEntity pre(HttpServletRequest request) { @GetMapping("/init") public ResponseEntity init(VisitorRequest visitorRequest, HttpServletRequest request) { // - VisitorProtobuf visitor = visitorService.create(visitorRequest, request); + UserProtobuf visitor = visitorService.create(visitorRequest, request); if (visitor == null) { return ResponseEntity.ok(JsonResult.error("init visitor failed", -1)); } @@ -125,6 +126,8 @@ public ResponseEntity query(VisitorRequest visitorRequest) { @GetMapping("/ping") public ResponseEntity ping(VisitorRequest request) { + visitorService.updateStatus(request.getUid(), VisitorStatusEnum.ONLINE.name()); + int count = messageUnreadService.getUnreadCount(request.getUid()); return ResponseEntity.ok(JsonResult.success("pong", count)); @@ -158,30 +161,34 @@ public ResponseEntity sendRestMessage(@RequestBody Map map) { // 机器人关键词问答 // TODO: 写入聊天记录 - // @VisitorAnnotation(title = "visitor", action = "sendKeywordMessage", description = "sendKeywordMessage") + // @VisitorAnnotation(title = "visitor", action = "sendKeywordMessage", + // description = "sendKeywordMessage") // @PostMapping("/message/keyword") - // public ResponseEntity sendKeywordMessage(@RequestBody VisitorRequest request) { - // // - // String keyword = request.getContent(); - // String robotUid = request.getSid(); - // String orgUid = request.getOrgUid(); - // List keywordList = keywordService.ask(keyword, robotUid, orgUid); - - // // 随机从keywordList中选择一个元素 - // Random random = new Random(); - // KeywordResponse randomKeywordResponse = null; - // if (!keywordList.isEmpty()) { - // int randomIndex = random.nextInt(keywordList.size()); - // randomKeywordResponse = keywordList.get(randomIndex); - // } - - // // 返回随机选择的元素或空列表(如果keywordList为空) - // if (randomKeywordResponse != null) { - // return ResponseEntity.ok(JsonResult.success(randomKeywordResponse.getReply())); - // } else { - // // 如果keywordList为空,你可以根据需要返回适当的信息,比如一个空对象或者错误信息 - // return ResponseEntity.ok(JsonResult.error()); - // } + // public ResponseEntity sendKeywordMessage(@RequestBody VisitorRequest + // request) { + // // + // String keyword = request.getContent(); + // String robotUid = request.getSid(); + // String orgUid = request.getOrgUid(); + // List keywordList = keywordService.ask(keyword, robotUid, + // orgUid); + + // // 随机从keywordList中选择一个元素 + // Random random = new Random(); + // KeywordResponse randomKeywordResponse = null; + // if (!keywordList.isEmpty()) { + // int randomIndex = random.nextInt(keywordList.size()); + // randomKeywordResponse = keywordList.get(randomIndex); + // } + + // // 返回随机选择的元素或空列表(如果keywordList为空) + // if (randomKeywordResponse != null) { + // return + // ResponseEntity.ok(JsonResult.success(randomKeywordResponse.getReply())); + // } else { + // // 如果keywordList为空,你可以根据需要返回适当的信息,比如一个空对象或者错误信息 + // return ResponseEntity.ok(JsonResult.error()); + // } // } // TODO: 访客输入关联/联想 diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorEntityListener.java b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorEntityListener.java new file mode 100644 index 00000000..c098b201 --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorEntityListener.java @@ -0,0 +1,19 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-07 13:17:13 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-07 13:17: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.visitor; + +public class VisitorEntityListener { + +} diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorEventListener.java b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorEventListener.java new file mode 100644 index 00000000..125fbc1a --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorEventListener.java @@ -0,0 +1,50 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-07 13:16:52 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-07 14:54: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.visitor; + +import java.util.List; + +import org.springframework.context.event.EventListener; +import org.springframework.stereotype.Component; + +import com.bytedesk.core.quartz.event.QuartzFiveMinEvent; + +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +@Slf4j +@Component +@AllArgsConstructor +public class VisitorEventListener { + + private final VisitorService visitorService; + + // 更新访客在线状态:检测updatedAt时间戳,如果超过五分钟则更新为离线状态 + @EventListener + public void onQuartzFiveMinEvent(QuartzFiveMinEvent event) { + // log.info("visitor quartz five min event"); + // + List visitorList = visitorService.findByStatus(VisitorStatusEnum.ONLINE.name()); + visitorList.forEach(visitor -> { + log.info("visitor: {}", visitor.getUid()); + if (System.currentTimeMillis() - visitor.getUpdatedAt().getTime() > 5 * 60 * 1000) { + log.info("visitor: {} offline", visitor.getUid()); + visitorService.updateStatus(visitor.getUid(), VisitorStatusEnum.OFFLINE.name()); + } + }); + + } + +} diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorExtra.java b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorExtra.java deleted file mode 100644 index 8ec6762b..00000000 --- a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorExtra.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * @Author: jackning 270580156@qq.com - * @Date: 2024-04-08 12:03:27 - * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-06-04 17:22: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. - * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.visitor; - -// import com.bytedesk.service.common.ServiceSettings; -// import lombok.AllArgsConstructor; -// import lombok.Builder; -// import lombok.Data; -// import lombok.EqualsAndHashCode; -// import lombok.NoArgsConstructor; -// import lombok.experimental.Accessors; - -/** - * used for visitor thread extra info - */ -// @Data -// @Builder -// @Accessors(chain = true) -// @EqualsAndHashCode(callSuper = false) -// @AllArgsConstructor -// @NoArgsConstructor -// public class VisitorExtra { - -// // @Builder.Default -// // private String welcomeTip = I18Consts.I18N_WELCOME_TIP; - -// // visitor_vid -// // private String uid; -// // private VisitorResponseSimple visitor; - -// // private AgentResponseSimple agent; - -// // private ServiceSettings serviceSettings; - -// // whether thread is closed -// // @Builder.Default -// // private boolean isClosed = false; - -// /** auto close time in min - 默认自动关闭时间,单位分钟 */ -// @Builder.Default -// private Double autoCloseMin = Double.valueOf(25); - -// } diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorProtobuf.java b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorProtobuf.java deleted file mode 100644 index a5ae8b1f..00000000 --- a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorProtobuf.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * @Author: jackning 270580156@qq.com - * @Date: 2024-04-04 17:05:59 - * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-04 18:05: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. - * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.visitor; - -import com.bytedesk.core.base.BaseResponse; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.Accessors; - - -/** - * used for user.proto protobuf - */ -@Data -@Builder -@Accessors(chain = true) -@AllArgsConstructor -@NoArgsConstructor -@EqualsAndHashCode(callSuper = true) -public class VisitorProtobuf extends BaseResponse { - - private static final long serialVersionUID = 1L; - - private String nickname; - - private String avatar; - - private String orgUid; -} diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorRepository.java b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorRepository.java index 9720bb39..7b5daee8 100644 --- a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorRepository.java +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorRepository.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:21:24 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-06-04 15:48:03 + * @LastEditTime: 2024-09-07 13:06: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. @@ -14,17 +14,25 @@ */ package com.bytedesk.service.visitor; +import java.util.List; import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; +import org.springframework.transaction.annotation.Transactional; -/** - * - */ @Repository public interface VisitorRepository extends JpaRepository, JpaSpecificationExecutor { Optional findByUidAndDeleted(String uid, Boolean deleted); + + List findByStatusAndDeleted(String status, Boolean deleted); + + @Modifying + @Transactional + @Query("UPDATE Visitor v SET v.status = :status WHERE v.uid = :uid") + int updateStatusByUid(String uid, String status); } 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 79baa610..20b6299a 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-07-04 18:26:13 + * @LastEditTime: 2024-09-07 13:02: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. @@ -58,15 +58,12 @@ public class VisitorRequest extends BaseRequest { private String note; // for thread request - // private String type; // use super.type private String sid; - // private String orgUid; - // public String formatTopic() { - // // 格式化topic,sid/uid, 其中:sid为agentUid或者workgroupUid, uid为访客visitorUid - // return this.sid + "/" + super.uid; - // // return formatType() + "/" + this.sid + "/" + uid; - // } + // 强制转人工服务,默认false + private Boolean forceAgent = false; + + private String status; public ThreadTypeEnum formatType() { int typeInt; 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 67fda28c..08e66e66 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-07-10 10:52:28 + * @LastEditTime: 2024-09-07 13:02: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. @@ -61,4 +61,6 @@ public class VisitorResponse extends BaseResponse { private Date updatedAt; + private String status; + } 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 759cbc89..c979394b 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-08-26 06:49:05 + * @LastEditTime: 2024-09-07 14:53:50 * @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,7 +14,7 @@ */ package com.bytedesk.service.visitor; -import java.util.Date; +import java.util.List; import java.util.Optional; import org.modelmapper.ModelMapper; import org.springframework.cache.annotation.Cacheable; @@ -27,38 +27,17 @@ import org.springframework.orm.ObjectOptimisticLockingFailureException; import org.springframework.cache.annotation.CachePut; import org.springframework.stereotype.Service; -// import org.springframework.util.SerializationUtils; import org.springframework.util.StringUtils; -import com.alibaba.fastjson2.JSON; -import com.alibaba.fastjson2.JSONObject; -import com.bytedesk.ai.robot.Robot; -import com.bytedesk.ai.robot.RobotService; -import com.bytedesk.ai.utils.ConvertAiUtils; import com.bytedesk.core.base.BaseService; import com.bytedesk.core.constant.AvatarConsts; -import com.bytedesk.core.constant.I18Consts; import com.bytedesk.core.enums.ClientEnum; import com.bytedesk.core.ip.IpService; -import com.bytedesk.core.message.Message; -import com.bytedesk.core.message.MessageExtra; import com.bytedesk.core.message.MessageProtobuf; -import com.bytedesk.core.message.MessageService; -import com.bytedesk.core.message.MessageStatusEnum; -import com.bytedesk.core.message.MessageTypeEnum; import com.bytedesk.core.rbac.user.UserProtobuf; -import com.bytedesk.core.thread.Thread; -import com.bytedesk.core.thread.ThreadService; -import com.bytedesk.core.thread.ThreadStatusEnum; -import com.bytedesk.core.thread.ThreadTypeEnum; -import com.bytedesk.core.topic.TopicUtils; import com.bytedesk.core.uid.UidUtils; -import com.bytedesk.service.agent.Agent; -import com.bytedesk.service.agent.AgentService; import com.bytedesk.service.utils.ConvertServiceUtils; -import com.bytedesk.service.workgroup.Workgroup; -import com.bytedesk.service.workgroup.WorkgroupService; - +import com.bytedesk.service.visitor.strategy.CsThreadCreationContext; import jakarta.servlet.http.HttpServletRequest; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -76,15 +55,7 @@ public class VisitorService extends BaseService queryByOrg(VisitorRequest request) { @@ -103,7 +74,6 @@ public VisitorResponse query(VisitorRequest visitorRequest) { if (!visitorOptional.isPresent()) { throw new RuntimeException("visitor not found"); } - return ConvertServiceUtils.convertToVisitorResponse(visitorOptional.get()); } @@ -113,14 +83,14 @@ public VisitorResponse query(VisitorRequest visitorRequest) { * @param visitorRequest * @return */ - public VisitorProtobuf create(VisitorRequest visitorRequest, HttpServletRequest request) { + public UserProtobuf create(VisitorRequest visitorRequest, HttpServletRequest request) { // String uid = visitorRequest.getUid(); log.info("visitor init, uid: {}", uid); // Visitor visitor = findByUid(uid).orElse(null); if (visitor != null) { - return ConvertServiceUtils.convertToVisitorProtobuf(visitor); + return ConvertServiceUtils.convertToUserProtobuf(visitor); } // if (!StringUtils.hasText(visitorRequest.getNickname())) { @@ -150,431 +120,25 @@ public VisitorProtobuf create(VisitorRequest visitorRequest, HttpServletRequest throw new RuntimeException("visitor not saved"); } // - return ConvertServiceUtils.convertToVisitorProtobuf(savedVisitor); + return ConvertServiceUtils.convertToUserProtobuf(savedVisitor); } - // private Map strategyMap = new - // HashMap<>(); - - // public VisitorService() { - // // 在构造函数中初始化策略映射 - // strategyMap.put(ThreadTypeEnum.AGENT, new AgentCsThreadCreationStrategy()); - // strategyMap.put(ThreadTypeEnum.WORKGROUP, new - // WorkgroupCsThreadCreationStrategy()); - // strategyMap.put(ThreadTypeEnum.ROBOT, new RobotCsThreadCreationStrategy()); - // } - - // public MessageProtobuf createCsThread(VisitorRequest visitorRequest) { - // ThreadTypeEnum type = visitorRequest.formatType(); - // CsThreadCreationStrategy strategy = strategyMap.get(type); - // if (strategy == null) { - // throw new RuntimeException("Thread type " + type.name() + " not supported"); - // } - // return strategy.createCsThread(visitorRequest); - // } - - /** TODO: 重构策略模式? */ + /** 策略模式 */ public MessageProtobuf createCsThread(VisitorRequest visitorRequest) { - // - ThreadTypeEnum type = visitorRequest.formatType(); - // - if (type.equals(ThreadTypeEnum.AGENT)) { - // 一对一客服 - return createAgentCsThread(visitorRequest); - // - } else if (type.equals(ThreadTypeEnum.WORKGROUP)) { - // 技能组 - return createWorkgroupCsThread(visitorRequest); - // - } else if (type.equals(ThreadTypeEnum.ROBOT)) { - // 机器人对话 - return createRobotCsThread(visitorRequest); - // - } else { - throw new RuntimeException("Thread type " + type.name() + " not supported"); - } - } - - ////////////////// Agent///////////////////// - - public MessageProtobuf createAgentCsThread(VisitorRequest visitorRequest) { - // - String agentUid = visitorRequest.getSid(); - Agent agent = agentService.findByUid(agentUid) - .orElseThrow(() -> new RuntimeException("Agent uid " + agentUid + " not found")); - // - boolean transferToRobot = false; - if (agent.getServiceSettings().isDefaultRobot()) { - // 默认转机器人优先接待 - transferToRobot = true; - } else if (agent.getServiceSettings().isOfflineRobot()) { - // 设置客服离线机器人,且当前客服离线,转机器人 - if (!agent.isConnected() || !agent.isAvailable()) { - // 离线转机器人 - transferToRobot = true; - } - } else if (!agent.getServiceSettings().isWorkTime() - && agent.getServiceSettings().isNonWorktimeRobot()) { - // 当前非工作时间,且设置非工作时间转机器人,转机器人 - transferToRobot = true; - } - // - if (transferToRobot) { - // 转机器人 - Robot robot = agent.getServiceSettings().getRobot(); - if (robot != null) { - Thread thread = getRobotThread(visitorRequest, robot); - return getRobotMessage(visitorRequest, thread, robot); - } else { - throw new RuntimeException("route " + agentUid + " to a robot"); - } - } - // 下面进入人工接待 - - // TODO: 判断是否达到最大接待人数,如果达到则进入排队 - - Thread thread = getAgentThread(visitorRequest, agent); - // - MessageProtobuf messageProtobuf = getAgentMessage(visitorRequest, thread, agent); - // 广播消息,由消息通道统一处理 - messageService.notifyUser(messageProtobuf); - // - // if (agent.isConnected() && agent.isAvailable()) { - // // notify agent - 通知客服 - // notifyAgent(messageProtobuf); - // } else { - // // 离线状态 - // } - // else if (agent.isAvailable()) { - // // TODO: 断开连接,但是接待状态,判断是否有客服移动端token,有则发送通知 - // } - - return messageProtobuf; - } - - private Thread getAgentThread(VisitorRequest visitorRequest, Agent agent) { - // - String topic = TopicUtils.formatOrgAgentThreadTopic(visitorRequest.getSid(), visitorRequest.getUid()); - // TODO: 到visitor thread表中拉取 - Optional threadOptional = threadService.findByTopic(topic); - if (threadOptional.isPresent()) { - return threadOptional.get(); - } - // - Thread thread = Thread.builder().build(); - thread.setUid(uidUtils.getCacheSerialUid()); - thread.setTopic(topic); - thread.setType(ThreadTypeEnum.AGENT.name()); - thread.setClient(ClientEnum.fromValue(visitorRequest.getClient()).name()); - // - VisitorProtobuf visitor = ConvertServiceUtils.convertToVisitorProtobuf(visitorRequest); - thread.setUser(JSON.toJSONString(visitor)); - // - thread.setOwner(agent.getMember().getUser()); - thread.setOrgUid(agent.getOrgUid()); - thread.setExtra(JSON - .toJSONString(ConvertServiceUtils.convertToServiceSettingsResponseVisitor(agent.getServiceSettings()))); - thread.setAgent(JSON.toJSONString(ConvertServiceUtils.convertToAgentResponseSimple(agent))); - // - return thread; - } - - private MessageProtobuf getAgentMessage(VisitorRequest visitorRequest, Thread thread, Agent agent) { - // - if (thread == null) { - throw new RuntimeException("Thread cannot be null"); - } - if (agent == null) { - throw new RuntimeException("Agent cannot be null"); - } - // - boolean isReenter = true; - if (thread.isInit()) { - // 访客首次进入会话 - isReenter = false; - } - // - if (!agent.isConnected() || !agent.isAvailable()) { - // 离线状态永远显示离线提示语,不显示“继续会话” - isReenter = false; - // 客服离线 或 非接待状态 - thread.setContent(agent.getServiceSettings().getLeavemsgTip()); - thread.setStatus(ThreadStatusEnum.OFFLINE.name()); - } else { - // 客服在线 且 接待状态 - thread.setUnreadCount(1); - thread.setContent(agent.getServiceSettings().getWelcomeTip()); - thread.setExtra(JSON.toJSONString( - ConvertServiceUtils.convertToServiceSettingsResponseVisitor(agent.getServiceSettings()))); - thread.setAgent(JSON.toJSONString(ConvertServiceUtils.convertToAgentResponseSimple(agent))); - // if thread is closed, reopen it and then create a new message - if (thread.isClosed()) { - // 访客会话关闭之后,重新进入 - isReenter = false; - thread.setStatus(ThreadStatusEnum.REOPEN.name()); - } else { - thread.setStatus(isReenter ? ThreadStatusEnum.CONTINUE.name() : ThreadStatusEnum.NORMAL.name()); - } - } - threadService.save(thread); - // - UserProtobuf user = modelMapper.map(agent, UserProtobuf.class); - // - return getThreadMessage(user, thread, isReenter); + return csThreadCreationContext.createCsThread(visitorRequest); } - ///////////////////// Workgroup/////////////////// - - public MessageProtobuf createWorkgroupCsThread(VisitorRequest visitorRequest) { - // - String workgroupUid = visitorRequest.getSid(); - Workgroup workgroup = workgroupService.findByUid(workgroupUid) - .orElseThrow(() -> new RuntimeException("Workgroup uid " + workgroupUid + " not found")); - // - boolean transferToRobot = false; - if (workgroup.getServiceSettings().isDefaultRobot()) { - // 默认机器人优先接待 - transferToRobot = true; - } else if (!workgroup.isConnected() - && workgroup.getServiceSettings().isOfflineRobot()) { - // 所有客服离线,且设置机器人离线优先接待 - transferToRobot = true; - } else if (!workgroup.getServiceSettings().isWorkTime() - && workgroup.getServiceSettings().isNonWorktimeRobot()) { - // 设置非工作时间机器人接待,且当前非工作时间,转机器人 - transferToRobot = true; - } - // - if (transferToRobot) { - // 转机器人 - Robot robot = workgroup.getServiceSettings().getRobot(); - if (robot != null) { - Thread thread = getRobotThread(visitorRequest, robot); - return getRobotMessage(visitorRequest, thread, robot); - } else { - throw new RuntimeException("route " + workgroupUid + " to a robot"); - } - } - // 下面人工接待 - // TODO: 所有客服都达到最大接待人数,则进入排队 - - if (workgroup.getAgents().isEmpty()) { - throw new RuntimeException("No agents found in workgroup with uid " + workgroupUid); - } - // - Agent agent = workgroup.nextAgent(); - if (agent == null) { - throw new RuntimeException("No available agent found in workgroup with uid " + workgroupUid); - } - // - Thread thread = getWorkgroupThread(visitorRequest, agent, workgroup); - // - MessageProtobuf messageProtobuf = getWorkgroupMessage(visitorRequest, thread, agent, workgroup); - // 广播消息,由消息通道统一处理 - messageService.notifyUser(messageProtobuf); - // if (agent.isConnected() && agent.isAvailable()) { - // log.info("agent is connected and available"); - // // notify agent - 通知客服 - // notifyAgent(messageProtobuf); - // } - // else if (agent.isAvailable()) { - // // TODO: 断开连接,但是接待状态,判断是否有客服移动端token,有则发送通知 - // log.info("agent is available"); - // cacheService.pushForPersist(JSON.toJSONString(messageProtobuf)); - // } else { - // cacheService.pushForPersist(JSON.toJSONString(messageProtobuf)); - // } - // - return messageProtobuf; - } - - private Thread getWorkgroupThread(VisitorRequest visitorRequest, Agent agent, Workgroup workgroup) { - // - String topic = TopicUtils.formatOrgWorkgroupThreadTopic(workgroup.getUid(), agent.getUid(), - visitorRequest.getUid()); - // TODO: 到visitor thread表中拉取 - Optional threadOptional = threadService.findByTopic(topic); - if (threadOptional.isPresent()) { - return threadOptional.get(); - } - // - Thread thread = Thread.builder().build(); - thread.setUid(uidUtils.getCacheSerialUid()); - thread.setTopic(topic); - thread.setType(ThreadTypeEnum.WORKGROUP.name()); - thread.setClient(ClientEnum.fromValue(visitorRequest.getClient()).name()); - // - VisitorProtobuf visitor = ConvertServiceUtils.convertToVisitorProtobuf(visitorRequest); - thread.setUser(JSON.toJSONString(visitor)); - // - thread.setOwner(agent.getMember().getUser()); - thread.setOrgUid(agent.getOrgUid()); - thread.setExtra(JSON.toJSONString( - ConvertServiceUtils.convertToServiceSettingsResponseVisitor(workgroup.getServiceSettings()))); - thread.setAgent(JSON.toJSONString(ConvertServiceUtils.convertToWorkgroupResponseSimple(workgroup))); - // - return thread; - } - - private MessageProtobuf getWorkgroupMessage(VisitorRequest visitorRequest, Thread thread, Agent agent, - Workgroup workgroup) { - if (thread == null) { - throw new RuntimeException("Thread cannot be null"); - } - if (agent == null) { - throw new RuntimeException("Agent cannot be null"); - } - if (workgroup == null) { - throw new RuntimeException("Workgroup cannot be null"); - } - // - boolean isReenter = true; - if (thread.isInit()) { - // 访客首次进入会话 - isReenter = false; - } - // - if (!agent.isConnected() || !agent.isAvailable()) { - // 离线状态永远显示离线提示语,不显示“继续会话” - isReenter = false; - // 客服离线 或 非接待状态 - thread.setContent(workgroup.getServiceSettings().getLeavemsgTip()); - thread.setStatus(ThreadStatusEnum.OFFLINE.name()); - } else { - // 客服在线 且 接待状态 - thread.setUnreadCount(1); - thread.setContent(workgroup.getServiceSettings().getWelcomeTip()); - thread.setExtra(JSON.toJSONString( - ConvertServiceUtils.convertToServiceSettingsResponseVisitor(workgroup.getServiceSettings()))); - thread.setAgent(JSON.toJSONString(ConvertServiceUtils.convertToWorkgroupResponseSimple(workgroup))); - // if thread is closed, reopen it and then create a new message - if (thread.isClosed()) { - // 访客会话关闭之后,重新进入 - isReenter = false; - thread.setStatus(ThreadStatusEnum.REOPEN.name()); - } else { - thread.setStatus(isReenter ? ThreadStatusEnum.CONTINUE.name() : ThreadStatusEnum.NORMAL.name()); - } - } - threadService.save(thread); - // - UserProtobuf user = modelMapper.map(agent, UserProtobuf.class); - // - return getThreadMessage(user, thread, isReenter); - } - - //////////////////// Robot///////////////////////// - - public MessageProtobuf createRobotCsThread(VisitorRequest visitorRequest) { - // - String robotUid = visitorRequest.getSid(); - Robot robot = robotService.findByUid(robotUid) - .orElseThrow(() -> new RuntimeException("Robot uid " + robotUid + " not found")); - // - Thread thread = getRobotThread(visitorRequest, robot); - // - return getRobotMessage(visitorRequest, thread, robot); - } - - private Thread getRobotThread(VisitorRequest visitorRequest, Robot robot) { - if (robot == null) { - throw new RuntimeException("Robot cannot be null"); - } - // - String topic = TopicUtils.formatOrgRobotThreadTopic(robot.getUid(), visitorRequest.getUid()); - // TODO: 到visitor thread表中拉取 - Optional threadOptional = threadService.findByTopic(topic); - if (threadOptional.isPresent()) { - return threadOptional.get(); - } - // - Thread thread = Thread.builder().build(); - thread.setUid(uidUtils.getCacheSerialUid()); - thread.setTopic(topic); - thread.setType(ThreadTypeEnum.ROBOT.name()); - thread.setUnreadCount(0); - thread.setClient(ClientEnum.fromValue(visitorRequest.getClient()).name()); - // - VisitorProtobuf visitor = ConvertServiceUtils.convertToVisitorProtobuf(visitorRequest); - thread.setUser(JSON.toJSONString(visitor)); - // - thread.setOrgUid(robot.getOrgUid()); - thread.setExtra(JSON.toJSONString(ConvertAiUtils.convertToServiceSettingsResponseVisitor( - robot.getServiceSettings()))); - thread.setAgent(JSON.toJSONString(ConvertAiUtils.convertToRobotProtobuf(robot))); - // - return thread; - } - - private MessageProtobuf getRobotMessage(VisitorRequest visitorRequest, Thread thread, Robot robot) { - if (thread == null) { - throw new RuntimeException("Thread cannot be null"); - } - if (robot == null) { - throw new RuntimeException("Robot cannot be null"); - } - thread.setContent(robot.getServiceSettings().getWelcomeTip()); - // - boolean isReenter = true; - if (thread.isInit()) { - isReenter = false; - } - // 更新机器人配置+大模型相关信息 - thread.setExtra(JSON.toJSONString(ConvertAiUtils.convertToServiceSettingsResponseVisitor( - robot.getServiceSettings()))); - thread.setAgent(JSON.toJSONString(ConvertAiUtils.convertToRobotProtobuf(robot))); - thread.setContent(robot.getServiceSettings().getWelcomeTip()); - // if thread is closed, reopen it and then create a new message - if (thread.isClosed()) { - isReenter = false; - thread.setStatus(ThreadStatusEnum.REOPEN.name()); - } else { - thread.setStatus(isReenter ? ThreadStatusEnum.CONTINUE.name() : ThreadStatusEnum.NORMAL.name()); - } - threadService.save(thread); - // - UserProtobuf user = modelMapper.map(robot, UserProtobuf.class); - // - JSONObject userExtra = new JSONObject(); - userExtra.put("llm", robot.getLlm().isEnabled()); - userExtra.put("defaultReply", robot.getDefaultReply()); - user.setExtra(JSON.toJSONString(userExtra)); - // - return getThreadMessage(user, thread, isReenter); + @Cacheable(value = "visitor", key = "#uid", unless = "#result == null") + public Optional findByUid(String uid) { + return visitorRepository.findByUidAndDeleted(uid, false); } - //////////////////// Common ///////////////////////// - - // thread - private MessageProtobuf getThreadMessage(UserProtobuf user, Thread thread, boolean isReenter) { - // - Message message = Message.builder() - .content(isReenter ? I18Consts.I18N_REENTER_TIP : thread.getContent()) - .type(isReenter ? MessageTypeEnum.CONTINUE.name() : MessageTypeEnum.WELCOME.name()) - .status(MessageStatusEnum.READ.name()) - .client(ClientEnum.SYSTEM.name()) - .user(JSON.toJSONString(user)) - .build(); - message.setUid(uidUtils.getCacheSerialUid()); - message.setOrgUid(thread.getOrgUid()); - message.setCreatedAt(new Date()); - message.setUpdatedAt(new Date()); - // - if (thread.getStatus().equals(ThreadStatusEnum.OFFLINE)) { - message.setType(MessageTypeEnum.LEAVE_MSG.name()); - } - // message.getThreads().add(thread); - message.setThreadTopic(thread.getTopic()); - // - MessageExtra extraObject = MessageExtra.builder().orgUid(thread.getOrgUid()).build(); - message.setExtra(JSON.toJSONString(extraObject)); - // - return ConvertServiceUtils.convertToMessageProtobuf(message, thread); + public List findByStatus(String status) { + return visitorRepository.findByStatusAndDeleted(status, false); } - @Cacheable(value = "visitor", key = "#uid", unless = "#result == null") - public Optional findByUid(String uid) { - return visitorRepository.findByUidAndDeleted(uid, false); + public int updateStatus(String uid, String newStatus) { + return visitorRepository.updateStatusByUid(uid, newStatus); } @Caching(put = { diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorStatusEnum.java b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorStatusEnum.java new file mode 100644 index 00000000..a2cdddb4 --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/VisitorStatusEnum.java @@ -0,0 +1,20 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-09-07 13:01:32 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-07 13:01:36 + * @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.visitor; + +public enum VisitorStatusEnum { + ONLINE, + OFFLINE +} diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/AgentCsThreadCreationStrategy.java b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/AgentCsThreadCreationStrategy.java index 6b48d093..8feac4c3 100644 --- a/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/AgentCsThreadCreationStrategy.java +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/AgentCsThreadCreationStrategy.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-07-15 15:58:11 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-15 15:59:36 + * @LastEditTime: 2024-09-11 08:50: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. @@ -14,13 +14,246 @@ */ package com.bytedesk.service.visitor.strategy; +import java.util.Optional; + +import org.springframework.stereotype.Component; + +import com.alibaba.fastjson2.JSON; +import com.bytedesk.ai.robot.Robot; +import com.bytedesk.ai.utils.ConvertAiUtils; +import com.bytedesk.core.enums.ClientEnum; import com.bytedesk.core.message.MessageProtobuf; +import com.bytedesk.core.message.MessageUtils; +import com.bytedesk.core.rbac.user.UserProtobuf; +import com.bytedesk.core.thread.ThreadService; +import com.bytedesk.core.thread.ThreadStatusEnum; +import com.bytedesk.core.thread.ThreadTypeEnum; +import com.bytedesk.core.topic.TopicUtils; +import com.bytedesk.core.uid.UidUtils; +import com.bytedesk.service.agent.Agent; +import com.bytedesk.service.agent.AgentService; +import com.bytedesk.service.utils.ConvertServiceUtils; import com.bytedesk.service.visitor.VisitorRequest; +import jakarta.annotation.Nonnull; + +import com.bytedesk.core.thread.Thread; + +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +// 一对一客服对话 +@Slf4j +@Component("agentCsThreadStrategy") +@AllArgsConstructor public class AgentCsThreadCreationStrategy implements CsThreadCreationStrategy { + + private final AgentService agentService; + + private final ThreadService threadService; + + // private final MessageService messageService; + + private final UidUtils uidUtils; + + // private final ModelMapper modelMapper; + @Override public MessageProtobuf createCsThread(VisitorRequest visitorRequest) { - // return createAgentCsThread(visitorRequest); + return createAgentCsThread(visitorRequest); + } + + public MessageProtobuf createAgentCsThread(VisitorRequest visitorRequest) { + // + String agentUid = visitorRequest.getSid(); + // + String topic = TopicUtils.formatOrgAgentThreadTopic(visitorRequest.getSid(), visitorRequest.getUid()); + // 是否已经存在进行中会话 + Thread thread = getProcessingThread(topic); + if (thread != null && !visitorRequest.getForceAgent()) { + log.info("Already have a processing thread " + JSON.toJSONString(thread)); + return getAgentProcessingMessage(visitorRequest, thread); + } + // + Agent agent = agentService.findByUid(agentUid) + .orElseThrow(() -> new RuntimeException("Agent uid " + agentUid + " not found")); + // + thread = getAgentThread(visitorRequest, agent, topic); + + // 未强制转人工的情况下,判断是否转机器人 + if (!visitorRequest.getForceAgent()) { + // 判断是否需要转机器人 + Boolean isOffline = !agent.isConnected() || !agent.isAvailable(); + Boolean transferToRobot = agent.getServiceSettings().shouldTransferToRobot(isOffline); + if (transferToRobot) { + // 转机器人 + // TODO: 将robot设置为agent + Robot robot = agent.getServiceSettings().getRobot(); + if (robot != null) { + // visitorRequest.setSid(robot.getUid()); + // return robotCsThreadCreationStrategy.createCsThread(visitorRequest); + // + thread.setContent(robot.getServiceSettings().getWelcomeTip()); + // 使用agent的serviceSettings配置 + // thread.setExtra(JSON.toJSONString(ConvertAiUtils.convertToServiceSettingsResponseVisitor( + // robot.getServiceSettings()))); + UserProtobuf agenProtobuf = ConvertAiUtils.convertToUserProtobuf(robot); + // thread.setAgentProtobuf(agenProtobuf); + thread.setAgent(JSON.toJSONString(agenProtobuf)); + // + return getRobotMessage(visitorRequest, thread, agenProtobuf); + // + } else { + throw new RuntimeException("please set robot for " + agent.getNickname() + " in the admin panel first"); + } + } + } + // TODO: 判断是否达到最大接待人数,如果达到则进入排队 + + return getAgentMessage(visitorRequest, thread, agent); + } + + // 是否存在未关闭的会话 + private Thread getProcessingThread(String topic) { + // TODO: 到visitor thread表中拉取 + // 拉取未关闭会话 + Optional threadOptional = threadService.findByTopicNotClosed(topic, "CLOSED"); + if (threadOptional.isPresent()) { + return threadOptional.get(); + } return null; } + + private Thread getAgentThread(VisitorRequest visitorRequest, Agent agent, String topic) { + // TODO: 到visitor thread表中拉取 + Thread thread = Thread.builder().build(); + Optional threadOptional = threadService.findByTopic(topic); + if (threadOptional.isPresent()) { + // return threadOptional.get(); + thread = threadOptional.get(); + } else { + // + thread = Thread.builder().build(); + thread.setUid(uidUtils.getCacheSerialUid()); + thread.setTopic(topic); + thread.setType(ThreadTypeEnum.AGENT.name()); + thread.setClient(ClientEnum.fromValue(visitorRequest.getClient()).name()); + // + UserProtobuf visitor = ConvertServiceUtils.convertToUserProtobuf(visitorRequest); + thread.setUser(JSON.toJSONString(visitor)); + // + thread.setOwner(agent.getMember().getUser()); + thread.setOrgUid(agent.getOrgUid()); + } + // 考虑到配置可能变化,更新配置 + thread.setExtra(JSON + .toJSONString( + ConvertServiceUtils.convertToServiceSettingsResponseVisitor(agent.getServiceSettings()))); + // 考虑到客服信息发生变化,更新客服信息 + UserProtobuf agentProtobuf = ConvertServiceUtils.convertToUserProtobuf(agent); + thread.setAgent(JSON.toJSONString(agentProtobuf)); + // + return thread; + } + + private MessageProtobuf getAgentMessage(VisitorRequest visitorRequest, @Nonnull Thread thread, @Nonnull Agent agent) { + // + boolean isReenter = true; + if (thread.getStatus() == ThreadStatusEnum.NORMAL.name()) { + // 访客首次进入会话 + isReenter = false; + } + // + if (!agent.isConnected() || !agent.isAvailable()) { + // 离线状态永远显示离线提示语,不显示“继续会话” + isReenter = false; + // 客服离线 或 非接待状态 + thread.setContent(agent.getServiceSettings().getLeavemsgTip()); + thread.setStatus(ThreadStatusEnum.OFFLINE.name()); + } else { + // 客服在线 且 接待状态 + thread.setUnreadCount(1); + thread.setContent(agent.getServiceSettings().getWelcomeTip()); + // thread.setExtra(JSON.toJSONString( + // ConvertServiceUtils.convertToServiceSettingsResponseVisitor(agent.getServiceSettings()))); + // thread.setAgent(JSON.toJSONString(ConvertServiceUtils.convertToAgentResponseSimple(agent))); + // if thread is closed, reopen it and then create a new message + if (visitorRequest.getForceAgent()) { + isReenter = false; + thread.setStatus(ThreadStatusEnum.NORMAL.name()); + } else if (thread.isClosed()) { + // 访客会话关闭之后,重新进入 + isReenter = false; + thread.setStatus(ThreadStatusEnum.REOPEN.name()); + } else { + thread.setStatus(isReenter ? ThreadStatusEnum.CONTINUE.name() : ThreadStatusEnum.NORMAL.name()); + } + } + threadService.save(thread); + // + // UserProtobuf user = modelMapper.map(agent, UserProtobuf.class); + UserProtobuf user = ConvertServiceUtils.convertToUserProtobuf(agent); + // + MessageProtobuf messageProtobuf = ThreadMessageUtil.getThreadMessage(user, thread, isReenter); + // 广播消息,由消息通道统一处理 + MessageUtils.notifyUser(messageProtobuf); + + return messageProtobuf; + } + + private MessageProtobuf getRobotMessage(VisitorRequest visitorRequest, Thread thread, UserProtobuf user) { + if (thread == null) { + throw new RuntimeException("Thread cannot be null"); + } + // 客服在线 且 接待状态 + thread.setUnreadCount(0); + thread.setStatus(ThreadStatusEnum.NORMAL.name()); + threadService.save(thread); + // log.info("getAgentProcessingMessage agent: {}", thread.getAgent()); + // + MessageProtobuf messageProtobuf = ThreadMessageUtil.getThreadMessage(user, thread, false); + // 广播消息,由消息通道统一处理 + // messageService.notifyUser(messageProtobuf); + + return messageProtobuf; + } + + private MessageProtobuf getAgentProcessingMessage(VisitorRequest visitorRequest, Thread thread) { + if (thread == null) { + throw new RuntimeException("Thread cannot be null"); + } + // 客服在线 且 接待状态 + thread.setUnreadCount(1); + thread.setStatus(ThreadStatusEnum.CONTINUE.name()); + threadService.save(thread); + // + UserProtobuf user = JSON.parseObject(thread.getAgent(), UserProtobuf.class); + // + MessageProtobuf messageProtobuf = ThreadMessageUtil.getThreadMessage(user, thread, true); + // 广播消息,由消息通道统一处理 + MessageUtils.notifyUser(messageProtobuf); + + return messageProtobuf; + } + + // private MessageProtobuf notifyAgent(MessageProtobuf message) { + // // + // MessageProtobuf messageProtobuf = getAgentMessage(visitorRequest, thread, + // agent); + // // 广播消息,由消息通道统一处理 + // messageService.notifyUser(messageProtobuf); + // // + // // if (agent.isConnected() && agent.isAvailable()) { + // // // notify agent - 通知客服 + // // notifyAgent(messageProtobuf); + // // } else { + // // // 离线状态 + // // } + // // else if (agent.isAvailable()) { + // // // TODO: 断开连接,但是接待状态,判断是否有客服移动端token,有则发送通知 + // // } + + // return messageProtobuf; + // } + } \ No newline at end of file diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/AgentasistantThreadCreationStrategy.java b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/AgentasistantThreadCreationStrategy.java new file mode 100644 index 00000000..f9e30a07 --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/AgentasistantThreadCreationStrategy.java @@ -0,0 +1,123 @@ +package com.bytedesk.service.visitor.strategy; + +import java.util.Optional; + +import org.modelmapper.ModelMapper; +import org.springframework.stereotype.Component; + +import com.alibaba.fastjson2.JSON; +import com.alibaba.fastjson2.JSONObject; +import com.bytedesk.ai.robot.Robot; +import com.bytedesk.ai.robot.RobotService; +import com.bytedesk.ai.utils.ConvertAiUtils; +import com.bytedesk.core.enums.ClientEnum; +import com.bytedesk.core.message.MessageProtobuf; +import com.bytedesk.core.rbac.user.UserProtobuf; +import com.bytedesk.core.thread.ThreadService; +import com.bytedesk.core.thread.ThreadStatusEnum; +import com.bytedesk.core.thread.ThreadTypeEnum; +import com.bytedesk.core.topic.TopicUtils; +import com.bytedesk.core.uid.UidUtils; +import com.bytedesk.service.utils.ConvertServiceUtils; +import com.bytedesk.service.visitor.VisitorRequest; +import com.bytedesk.core.thread.Thread; + +import lombok.AllArgsConstructor; + +// 客服助手会话 +@Component("agentasistantCsThreadStrategy") +@AllArgsConstructor +public class AgentasistantThreadCreationStrategy implements CsThreadCreationStrategy { + + private final RobotService robotService; + + private final ThreadService threadService; + + private final UidUtils uidUtils; + + private final ModelMapper modelMapper; + + @Override + public MessageProtobuf createCsThread(VisitorRequest visitorRequest) { + return createAgentasistantCsThread(visitorRequest); + } + + public MessageProtobuf createAgentasistantCsThread(VisitorRequest visitorRequest) { + + String agentAsistantRobotUid = visitorRequest.getSid(); + Robot robot = robotService.findByUid(agentAsistantRobotUid) + .orElseThrow( + () -> new RuntimeException("agentAsistantRobotUid " + agentAsistantRobotUid + " not found")); + // + Thread thread = getAgentasistantThread(visitorRequest, robot); + // + return getAgentasistantMessage(visitorRequest, thread, robot); + } + + private Thread getAgentasistantThread(VisitorRequest visitorRequest, Robot robot) { + if (robot == null) { + throw new RuntimeException("Robot cannot be null"); + } + // + String topic = TopicUtils.formatOrgRobotThreadTopic(robot.getUid(), visitorRequest.getUid()); + Optional threadOptional = threadService.findByTopic(topic); + if (threadOptional.isPresent()) { + return threadOptional.get(); + } + // + Thread thread = Thread.builder().build(); + thread.setUid(uidUtils.getCacheSerialUid()); + thread.setTopic(topic); + thread.setType(ThreadTypeEnum.AGENTASISTANT.name()); + thread.setUnreadCount(0); + thread.setClient(ClientEnum.fromValue(visitorRequest.getClient()).name()); + // + UserProtobuf visitor = ConvertServiceUtils.convertToUserProtobuf(visitorRequest); + thread.setUser(JSON.toJSONString(visitor)); + // + thread.setOrgUid(robot.getOrgUid()); + thread.setExtra(JSON.toJSONString(ConvertAiUtils.convertToServiceSettingsResponseVisitor( + robot.getServiceSettings()))); + thread.setAgent(JSON.toJSONString(ConvertAiUtils.convertToRobotProtobuf(robot))); + // + return thread; + } + + private MessageProtobuf getAgentasistantMessage(VisitorRequest visitorRequest, Thread thread, Robot robot) { + if (thread == null) { + throw new RuntimeException("Thread cannot be null"); + } + if (robot == null) { + throw new RuntimeException("Robot cannot be null"); + } + thread.setContent(robot.getServiceSettings().getWelcomeTip()); + // + boolean isReenter = true; + if (thread.getStatus() == ThreadStatusEnum.NORMAL.name()) { + isReenter = false; + } + // 更新机器人配置+大模型相关信息 + thread.setExtra(JSON.toJSONString(ConvertAiUtils.convertToServiceSettingsResponseVisitor( + robot.getServiceSettings()))); + thread.setAgent(JSON.toJSONString(ConvertAiUtils.convertToRobotProtobuf(robot))); + thread.setContent(robot.getServiceSettings().getWelcomeTip()); + // if thread is closed, reopen it and then create a new message + if (thread.isClosed()) { + isReenter = false; + thread.setStatus(ThreadStatusEnum.REOPEN.name()); + } else { + thread.setStatus(isReenter ? ThreadStatusEnum.CONTINUE.name() : ThreadStatusEnum.NORMAL.name()); + } + threadService.save(thread); + // + UserProtobuf user = modelMapper.map(robot, UserProtobuf.class); + // + JSONObject userExtra = new JSONObject(); + userExtra.put("llm", robot.getLlm().isEnabled()); + userExtra.put("defaultReply", robot.getDefaultReply()); + user.setExtra(JSON.toJSONString(userExtra)); + // + return ThreadMessageUtil.getThreadMessage(user, thread, isReenter); + } + +} diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/CsThreadCreationContext.java b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/CsThreadCreationContext.java new file mode 100644 index 00000000..168b4283 --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/CsThreadCreationContext.java @@ -0,0 +1,59 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-08-29 22:07:52 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-06 19:03: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.visitor.strategy; + +import java.util.EnumMap; +import java.util.List; +import java.util.Map; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import com.bytedesk.core.message.MessageProtobuf; +import com.bytedesk.core.thread.ThreadTypeEnum; +import com.bytedesk.service.visitor.VisitorRequest; + +/** + * 创建新策略: + * 1. 创建一个策略接口,定义创建线程的方法 + * 2. 按照此格式命名策略:ThreadTypeEnum.**.name() + CsThreadStrategy + */ +@Component +public class CsThreadCreationContext { + + // 策略模式,将每个策略都封装起来 + private final Map strategyMap; + + @Autowired + public CsThreadCreationContext(List strategies) { + strategyMap = new EnumMap<>(ThreadTypeEnum.class); + for (CsThreadCreationStrategy strategy : strategies) { + // 假设每个策略类都有一个与之对应的Bean名称,可以通过Bean名称和枚举值进行匹配。 + // 在实际应用中,可能需要其他机制来确保策略与枚举的正确匹配。 + String beanName = strategy.getClass().getAnnotation(Component.class).value(); + ThreadTypeEnum type = ThreadTypeEnum.valueOf(beanName.toUpperCase().replace("CSTHREADSTRATEGY", "")); + strategyMap.put(type, strategy); + } + } + + public MessageProtobuf createCsThread(VisitorRequest visitorRequest) { + ThreadTypeEnum type = visitorRequest.formatType(); + CsThreadCreationStrategy strategy = strategyMap.get(type); + if (strategy == null) { + throw new RuntimeException("Thread type " + type.name() + " not supported"); + } + return strategy.createCsThread(visitorRequest); + } +} \ No newline at end of file diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/CsThreadCreationStrategy.java b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/CsThreadCreationStrategy.java index 03145c6d..c18a9fa7 100644 --- a/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/CsThreadCreationStrategy.java +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/CsThreadCreationStrategy.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-07-15 15:57:29 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-15 16:01:17 + * @LastEditTime: 2024-08-29 22:25: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. @@ -18,6 +18,8 @@ import com.bytedesk.service.visitor.VisitorRequest; public interface CsThreadCreationStrategy { + MessageProtobuf createCsThread(VisitorRequest visitorRequest); + } \ No newline at end of file diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/FeedbackCsThreadCreationStrategy.java b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/FeedbackCsThreadCreationStrategy.java new file mode 100644 index 00000000..7c9f5d05 --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/FeedbackCsThreadCreationStrategy.java @@ -0,0 +1,34 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-08-29 23:01:49 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-08-29 23:02: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.visitor.strategy; + +import org.springframework.stereotype.Component; + +import com.bytedesk.core.message.MessageProtobuf; +import com.bytedesk.service.visitor.VisitorRequest; + +@Component("feedbackCsThreadStrategy") +public class FeedbackCsThreadCreationStrategy implements CsThreadCreationStrategy { + + @Override + public MessageProtobuf createCsThread(VisitorRequest visitorRequest) { + return createFeedbackCsThread(visitorRequest); + } + + public MessageProtobuf createFeedbackCsThread(VisitorRequest visitorRequest) { + // TODO Auto-generated method stub + throw new UnsupportedOperationException("Unimplemented method 'createCsThread'"); + } +} diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/KbCsThreadCreationStrategy.java b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/KbCsThreadCreationStrategy.java new file mode 100644 index 00000000..1dd3e9be --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/KbCsThreadCreationStrategy.java @@ -0,0 +1,135 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-08-29 22:59:36 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-07 09:45: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.visitor.strategy; + +import java.util.Optional; + +import org.springframework.stereotype.Component; + +import com.alibaba.fastjson2.JSON; +import com.bytedesk.core.enums.ClientEnum; +import com.bytedesk.core.message.MessageProtobuf; +import com.bytedesk.core.rbac.user.UserProtobuf; +import com.bytedesk.core.thread.ThreadService; +import com.bytedesk.core.thread.ThreadStatusEnum; +import com.bytedesk.core.thread.ThreadTypeEnum; +import com.bytedesk.core.topic.TopicUtils; +import com.bytedesk.core.uid.UidUtils; +import com.bytedesk.kbase.knowledge_base.Knowledgebase; +import com.bytedesk.kbase.knowledge_base.KnowledgebaseService; +import com.bytedesk.service.utils.ConvertServiceUtils; +import com.bytedesk.service.visitor.VisitorRequest; +import com.bytedesk.core.thread.Thread; + +import lombok.AllArgsConstructor; + +// 知识库对话 +@Component("kbCsThreadStrategy") +@AllArgsConstructor +public class KbCsThreadCreationStrategy implements CsThreadCreationStrategy { + + private final KnowledgebaseService knowledgebaseService; + + private final ThreadService threadService; + + private final UidUtils uidUtils; + + @Override + public MessageProtobuf createCsThread(VisitorRequest visitorRequest) { + return createKbCsThread(visitorRequest); + } + + public MessageProtobuf createKbCsThread(VisitorRequest visitorRequest) { + + String kbUid = visitorRequest.getSid(); + Knowledgebase knowledgebase = knowledgebaseService.findByUid(kbUid) + .orElseThrow(() -> new RuntimeException("Knowledgebase " + kbUid + " not found")); + // + Thread thread = getKbThread(visitorRequest, knowledgebase); + // + return getKbMessage(visitorRequest, thread, knowledgebase); + } + + private Thread getKbThread(VisitorRequest visitorRequest, Knowledgebase kb) { + if (kb == null) { + throw new RuntimeException("Knowledgebase cannot be null"); + } + // + String topic = TopicUtils.formatOrgKbThreadTopic(kb.getUid(), visitorRequest.getUid()); + Optional threadOptional = threadService.findByTopic(topic); + if (threadOptional.isPresent()) { + return threadOptional.get(); + } + // + Thread thread = Thread.builder().build(); + thread.setUid(uidUtils.getCacheSerialUid()); + thread.setTopic(topic); + thread.setType(ThreadTypeEnum.KB.name()); + thread.setUnreadCount(0); + thread.setClient(ClientEnum.fromValue(visitorRequest.getClient()).name()); + // + UserProtobuf visitor = ConvertServiceUtils.convertToUserProtobuf(visitorRequest); + thread.setUser(JSON.toJSONString(visitor)); + // + thread.setOrgUid(kb.getOrgUid()); + // thread.setExtra(JSON.toJSONString(ConvertAiUtils.convertToServiceSettingsResponseVisitor( + // robot.getServiceSettings()))); + // thread.setAgent(JSON.toJSONString(ConvertAiUtils.convertToRobotProtobuf(robot))); + // + return thread; + } + + private MessageProtobuf getKbMessage(VisitorRequest visitorRequest, Thread thread, Knowledgebase kb) { + if (thread == null) { + throw new RuntimeException("Thread cannot be null"); + } + if (kb == null) { + throw new RuntimeException("Knowledgebase cannot be null"); + } + thread.setContent(kb.getName()); + // + boolean isReenter = true; + if (thread.getStatus() == ThreadStatusEnum.NORMAL.name()) { + isReenter = false; + } + // 更新机器人配置+大模型相关信息 + // thread.setExtra(JSON.toJSONString(ConvertAiUtils.convertToServiceSettingsResponseVisitor( + // robot.getServiceSettings()))); + // thread.setAgent(JSON.toJSONString(ConvertAiUtils.convertToRobotProtobuf(robot))); + // + // if thread is closed, reopen it and then create a new message + if (thread.isClosed()) { + isReenter = false; + thread.setStatus(ThreadStatusEnum.REOPEN.name()); + } else { + thread.setStatus(isReenter ? ThreadStatusEnum.CONTINUE.name() : ThreadStatusEnum.NORMAL.name()); + } + threadService.save(thread); + // + UserProtobuf user = UserProtobuf.builder() + .nickname(kb.getName()) + .avatar(kb.getLogoUrl()) + .build(); + user.setUid(kb.getUid()); + // + // JSONObject userExtra = new JSONObject(); + // userExtra.put("llm", robot.getLlm().isEnabled()); + // userExtra.put("defaultReply", robot.getDefaultReply()); + // user.setExtra(JSON.toJSONString(userExtra)); + // + return ThreadMessageUtil.getThreadMessage(user, thread, isReenter); + } + +} diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/KbdocCsThreadCreationStrategy.java b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/KbdocCsThreadCreationStrategy.java new file mode 100644 index 00000000..11aa5719 --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/KbdocCsThreadCreationStrategy.java @@ -0,0 +1,135 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-08-29 23:00:00 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-07 09:45: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.visitor.strategy; + +import java.util.Optional; + +import org.springframework.stereotype.Component; + +import com.alibaba.fastjson2.JSON; +import com.bytedesk.core.enums.ClientEnum; +import com.bytedesk.core.message.MessageProtobuf; +import com.bytedesk.core.rbac.user.UserProtobuf; +import com.bytedesk.core.thread.ThreadService; +import com.bytedesk.core.thread.ThreadStatusEnum; +import com.bytedesk.core.thread.ThreadTypeEnum; +import com.bytedesk.core.topic.TopicUtils; +import com.bytedesk.core.uid.UidUtils; +import com.bytedesk.kbase.upload.Upload; +import com.bytedesk.kbase.upload.UploadService; +import com.bytedesk.service.utils.ConvertServiceUtils; +import com.bytedesk.service.visitor.VisitorRequest; +import com.bytedesk.core.thread.Thread; + +import lombok.AllArgsConstructor; + +// 知识库某一个文档对话 +@Component("kbdocCsThreadStrategy") +@AllArgsConstructor +public class KbdocCsThreadCreationStrategy implements CsThreadCreationStrategy { + + private final UploadService uploadService; + + private final ThreadService threadService; + + private final UidUtils uidUtils; + + @Override + public MessageProtobuf createCsThread(VisitorRequest visitorRequest) { + return createKbdocCsThread(visitorRequest); + } + + public MessageProtobuf createKbdocCsThread(VisitorRequest visitorRequest) { + + String uploadUid = visitorRequest.getSid(); + Upload upload = uploadService.findByUid(uploadUid) + .orElseThrow(() -> new RuntimeException("Upload " + uploadUid + " not found")); + // + Thread thread = getKbdocThread(visitorRequest, upload); + // + return getKbdocMessage(visitorRequest, thread, upload); + } + + private Thread getKbdocThread(VisitorRequest visitorRequest, Upload upload) { + if (upload == null) { + throw new RuntimeException("Upload cannot be null"); + } + // + String topic = TopicUtils.formatOrgKbdocThreadTopic(upload.getUid(), visitorRequest.getUid()); + Optional threadOptional = threadService.findByTopic(topic); + if (threadOptional.isPresent()) { + return threadOptional.get(); + } + // + Thread thread = Thread.builder().build(); + thread.setUid(uidUtils.getCacheSerialUid()); + thread.setTopic(topic); + thread.setType(ThreadTypeEnum.KBDOC.name()); + thread.setUnreadCount(0); + thread.setClient(ClientEnum.fromValue(visitorRequest.getClient()).name()); + // + UserProtobuf visitor = ConvertServiceUtils.convertToUserProtobuf(visitorRequest); + thread.setUser(JSON.toJSONString(visitor)); + // + thread.setOrgUid(upload.getOrgUid()); + // thread.setExtra(JSON.toJSONString(ConvertAiUtils.convertToServiceSettingsResponseVisitor( + // robot.getServiceSettings()))); + // thread.setAgent(JSON.toJSONString(ConvertAiUtils.convertToRobotProtobuf(robot))); + // + return thread; + } + + private MessageProtobuf getKbdocMessage(VisitorRequest visitorRequest, Thread thread, Upload upload) { + if (thread == null) { + throw new RuntimeException("Thread cannot be null"); + } + if (upload == null) { + throw new RuntimeException("Robot cannot be null"); + } + // thread.setContent(robot.getServiceSettings().getWelcomeTip()); + // + boolean isReenter = true; + if (thread.getStatus() == ThreadStatusEnum.NORMAL.name()) { + isReenter = false; + } + // 更新机器人配置+大模型相关信息 + // thread.setExtra(JSON.toJSONString(ConvertAiUtils.convertToServiceSettingsResponseVisitor( + // robot.getServiceSettings()))); + // thread.setAgent(JSON.toJSONString(ConvertAiUtils.convertToRobotProtobuf(robot))); + // thread.setContent(robot.getServiceSettings().getWelcomeTip()); + // if thread is closed, reopen it and then create a new message + if (thread.isClosed()) { + isReenter = false; + thread.setStatus(ThreadStatusEnum.REOPEN.name()); + } else { + thread.setStatus(isReenter ? ThreadStatusEnum.CONTINUE.name() : ThreadStatusEnum.NORMAL.name()); + } + threadService.save(thread); + // + UserProtobuf user = UserProtobuf.builder() + // .nickname(upload.getName()) + // .avatar(kb.getLogoUrl()) + .build(); + user.setUid(upload.getUid()); + // + // JSONObject userExtra = new JSONObject(); + // userExtra.put("llm", robot.getLlm().isEnabled()); + // userExtra.put("defaultReply", robot.getDefaultReply()); + // user.setExtra(JSON.toJSONString(userExtra)); + // + return ThreadMessageUtil.getThreadMessage(user, thread, isReenter); + } + +} diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/RobotCsThreadCreationStrategy.java b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/RobotCsThreadCreationStrategy.java index f51ed9a2..b8f3b917 100644 --- a/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/RobotCsThreadCreationStrategy.java +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/RobotCsThreadCreationStrategy.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-07-15 15:58:33 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-15 16:00:16 + * @LastEditTime: 2024-09-07 22:42: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. @@ -14,13 +14,113 @@ */ package com.bytedesk.service.visitor.strategy; +import java.util.Optional; + +import org.springframework.stereotype.Component; + +import com.alibaba.fastjson2.JSON; +import com.alibaba.fastjson2.JSONObject; +import com.bytedesk.ai.robot.Robot; +import com.bytedesk.ai.robot.RobotService; +import com.bytedesk.ai.utils.ConvertAiUtils; +import com.bytedesk.core.enums.ClientEnum; import com.bytedesk.core.message.MessageProtobuf; +import com.bytedesk.core.rbac.user.UserProtobuf; +import com.bytedesk.core.thread.ThreadService; +import com.bytedesk.core.thread.ThreadStatusEnum; +import com.bytedesk.core.thread.ThreadTypeEnum; +import com.bytedesk.core.topic.TopicUtils; +import com.bytedesk.core.uid.UidUtils; +import com.bytedesk.service.utils.ConvertServiceUtils; import com.bytedesk.service.visitor.VisitorRequest; +import com.bytedesk.core.thread.Thread; +import lombok.AllArgsConstructor; + +// 机器人对话 +@Component("robotCsThreadStrategy") +@AllArgsConstructor public class RobotCsThreadCreationStrategy implements CsThreadCreationStrategy { + + private final RobotService robotService; + + private final ThreadService threadService; + + private final UidUtils uidUtils; + @Override public MessageProtobuf createCsThread(VisitorRequest visitorRequest) { - // return createRobotCsThread(visitorRequest); - return null; + return createRobotCsThread(visitorRequest); } + + public MessageProtobuf createRobotCsThread(VisitorRequest visitorRequest) { + // + String robotUid = visitorRequest.getSid(); + Robot robot = robotService.findByUid(robotUid) + .orElseThrow(() -> new RuntimeException("Robot uid " + robotUid + " not found")); + // + Thread thread = getRobotThread(visitorRequest, robot); + // + return getRobotMessage(visitorRequest, thread, robot); + } + + private Thread getRobotThread(VisitorRequest visitorRequest, Robot robot) { + // + String topic = TopicUtils.formatOrgRobotThreadTopic(robot.getUid(), visitorRequest.getUid()); + // TODO: 到visitor thread表中拉取 + Thread thread = Thread.builder().build(); + Optional threadOptional = threadService.findByTopic(topic); + if (threadOptional.isPresent()) { + thread = threadOptional.get(); + } else { + // + thread = Thread.builder().build(); + thread.setUid(uidUtils.getCacheSerialUid()); + thread.setTopic(topic); + thread.setType(ThreadTypeEnum.ROBOT.name()); + thread.setUnreadCount(0); + thread.setClient(ClientEnum.fromValue(visitorRequest.getClient()).name()); + thread.setOrgUid(robot.getOrgUid()); + // + UserProtobuf visitor = ConvertServiceUtils.convertToUserProtobuf(visitorRequest); + thread.setUser(JSON.toJSONString(visitor)); + } + // + thread.setExtra(JSON.toJSONString(ConvertAiUtils.convertToServiceSettingsResponseVisitor( + robot.getServiceSettings()))); + // + UserProtobuf agenProtobuf = ConvertAiUtils.convertToUserProtobuf(robot); + thread.setAgent(JSON.toJSONString(agenProtobuf)); + // + return thread; + } + + private MessageProtobuf getRobotMessage(VisitorRequest visitorRequest, Thread thread, Robot robot) { + // + thread.setContent(robot.getServiceSettings().getWelcomeTip()); + // + boolean isReenter = true; + if (thread.getStatus() == ThreadStatusEnum.NORMAL.name()) { + isReenter = false; + } + // if thread is closed, reopen it and then create a new message + if (thread.isClosed()) { + isReenter = false; + thread.setStatus(ThreadStatusEnum.REOPEN.name()); + } else { + thread.setStatus(isReenter ? ThreadStatusEnum.CONTINUE.name() : ThreadStatusEnum.NORMAL.name()); + } + threadService.save(thread); + // + // UserProtobuf user = modelMapper.map(robot, UserProtobuf.class); + UserProtobuf user = ConvertAiUtils.convertToUserProtobuf(robot); + // + JSONObject userExtra = new JSONObject(); + userExtra.put("llm", robot.getLlm().isEnabled()); + userExtra.put("defaultReply", robot.getDefaultReply()); + user.setExtra(JSON.toJSONString(userExtra)); + // + return ThreadMessageUtil.getThreadMessage(user, thread, isReenter); + } + } \ No newline at end of file diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/ThreadMessageUtil.java b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/ThreadMessageUtil.java new file mode 100644 index 00000000..f9cbf975 --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/ThreadMessageUtil.java @@ -0,0 +1,73 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-08-29 22:22:38 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-07 22:35: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.visitor.strategy; + +import com.alibaba.fastjson2.JSON; +import com.bytedesk.core.constant.I18Consts; +import com.bytedesk.core.enums.ClientEnum; +import com.bytedesk.core.message.Message; +import com.bytedesk.core.message.MessageExtra; +import com.bytedesk.core.message.MessageProtobuf; +import com.bytedesk.core.message.MessageStatusEnum; +import com.bytedesk.core.message.MessageTypeEnum; +import com.bytedesk.core.message.MessageUtils; +import com.bytedesk.core.rbac.user.UserProtobuf; +import com.bytedesk.core.rbac.user.UserTypeEnum; +import com.bytedesk.core.thread.Thread; +import com.bytedesk.core.thread.ThreadStatusEnum; +import com.bytedesk.core.uid.UidUtils; +import com.bytedesk.service.utils.ConvertServiceUtils; + +import java.util.Date; + +// import org.modelmapper.ModelMapper; + +// 可以根据需要选择是否使用 @Component 注解 +// 如果该方法不需要被Spring容器管理,则不需要此注解 +public class ThreadMessageUtil { + + // 将此方法设为静态,以便在没有实例化类的情况下调用 + public static MessageProtobuf getThreadMessage(UserProtobuf user, Thread thread, boolean isReenter) { + // ... 方法的实现保持不变 ... + Message message = Message.builder() + .content(isReenter ? I18Consts.I18N_REENTER_TIP : thread.getContent()) + .type(isReenter ? MessageTypeEnum.CONTINUE.name() : MessageTypeEnum.WELCOME.name()) + .status(MessageStatusEnum.READ.name()) + .client(ClientEnum.SYSTEM.name()) + .user(JSON.toJSONString(user)) + .build(); + // message.setUid(uidUtils.getCacheSerialUid()); + // message.setUid(Utils.getUid()); + message.setUid(UidUtils.getInstance().getDefaultSerialUid()); + message.setOrgUid(thread.getOrgUid()); + message.setCreatedAt(new Date()); + message.setUpdatedAt(new Date()); + // + if (user.getType().equals(UserTypeEnum.ROBOT.name())) { + message.setType(MessageTypeEnum.WELCOME.name()); + message.setContent(thread.getContent()); + } + // + if (thread.getStatus().equals(ThreadStatusEnum.OFFLINE.name())) { + message.setType(MessageTypeEnum.LEAVE_MSG.name()); + } + message.setThreadTopic(thread.getTopic()); + // + MessageExtra extra = MessageUtils.getMessageExtra(thread.getOrgUid()); + message.setExtra(JSON.toJSONString(extra)); + // + return ConvertServiceUtils.convertToMessageProtobuf(message, thread); + } +} \ No newline at end of file diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/TicketCsThreadCreationStrategy.java b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/TicketCsThreadCreationStrategy.java new file mode 100644 index 00000000..9cdd518e --- /dev/null +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/TicketCsThreadCreationStrategy.java @@ -0,0 +1,122 @@ +package com.bytedesk.service.visitor.strategy; + +import java.util.Optional; + +import org.modelmapper.ModelMapper; +import org.springframework.stereotype.Component; + +import com.alibaba.fastjson2.JSON; +import com.alibaba.fastjson2.JSONObject; +import com.bytedesk.ai.robot.Robot; +import com.bytedesk.ai.robot.RobotService; +import com.bytedesk.ai.utils.ConvertAiUtils; +import com.bytedesk.core.enums.ClientEnum; +import com.bytedesk.core.message.MessageProtobuf; +import com.bytedesk.core.rbac.user.UserProtobuf; +import com.bytedesk.core.thread.ThreadService; +import com.bytedesk.core.thread.ThreadStatusEnum; +import com.bytedesk.core.thread.ThreadTypeEnum; +import com.bytedesk.core.topic.TopicUtils; +import com.bytedesk.core.uid.UidUtils; +import com.bytedesk.service.utils.ConvertServiceUtils; +import com.bytedesk.service.visitor.VisitorRequest; +import com.bytedesk.core.thread.Thread; + +import lombok.AllArgsConstructor; + +// 工单会话 +@Component("ticketCsThreadStrategy") +@AllArgsConstructor +public class TicketCsThreadCreationStrategy implements CsThreadCreationStrategy { + + private final RobotService robotService; + + private final ThreadService threadService; + + private final UidUtils uidUtils; + + private final ModelMapper modelMapper; + + @Override + public MessageProtobuf createCsThread(VisitorRequest visitorRequest) { + return createTicketCsThread(visitorRequest); + } + + public MessageProtobuf createTicketCsThread(VisitorRequest visitorRequest) { + String agentAsistantRobotUid = visitorRequest.getSid(); + Robot robot = robotService.findByUid(agentAsistantRobotUid) + .orElseThrow( + () -> new RuntimeException("agentAsistantRobotUid " + agentAsistantRobotUid + " not found")); + // + Thread thread = getAgentasistantThread(visitorRequest, robot); + // + return getAgentasistantMessage(visitorRequest, thread, robot); + } + + private Thread getAgentasistantThread(VisitorRequest visitorRequest, Robot robot) { + if (robot == null) { + throw new RuntimeException("Robot cannot be null"); + } + // + String topic = TopicUtils.formatOrgRobotThreadTopic(robot.getUid(), visitorRequest.getUid()); + Optional threadOptional = threadService.findByTopic(topic); + if (threadOptional.isPresent()) { + return threadOptional.get(); + } + // + Thread thread = Thread.builder().build(); + thread.setUid(uidUtils.getCacheSerialUid()); + thread.setTopic(topic); + thread.setType(ThreadTypeEnum.TICKET.name()); + thread.setUnreadCount(0); + thread.setClient(ClientEnum.fromValue(visitorRequest.getClient()).name()); + // + UserProtobuf visitor = ConvertServiceUtils.convertToUserProtobuf(visitorRequest); + thread.setUser(JSON.toJSONString(visitor)); + // + thread.setOrgUid(robot.getOrgUid()); + thread.setExtra(JSON.toJSONString(ConvertAiUtils.convertToServiceSettingsResponseVisitor( + robot.getServiceSettings()))); + thread.setAgent(JSON.toJSONString(ConvertAiUtils.convertToRobotProtobuf(robot))); + // + return thread; + } + + private MessageProtobuf getAgentasistantMessage(VisitorRequest visitorRequest, Thread thread, Robot robot) { + if (thread == null) { + throw new RuntimeException("Thread cannot be null"); + } + if (robot == null) { + throw new RuntimeException("Robot cannot be null"); + } + thread.setContent(robot.getServiceSettings().getWelcomeTip()); + // + boolean isReenter = true; + if (thread.getStatus() == ThreadStatusEnum.NORMAL.name()) { + isReenter = false; + } + // 更新机器人配置+大模型相关信息 + thread.setExtra(JSON.toJSONString(ConvertAiUtils.convertToServiceSettingsResponseVisitor( + robot.getServiceSettings()))); + thread.setAgent(JSON.toJSONString(ConvertAiUtils.convertToRobotProtobuf(robot))); + thread.setContent(robot.getServiceSettings().getWelcomeTip()); + // if thread is closed, reopen it and then create a new message + if (thread.isClosed()) { + isReenter = false; + thread.setStatus(ThreadStatusEnum.REOPEN.name()); + } else { + thread.setStatus(isReenter ? ThreadStatusEnum.CONTINUE.name() : ThreadStatusEnum.NORMAL.name()); + } + threadService.save(thread); + // + UserProtobuf user = modelMapper.map(robot, UserProtobuf.class); + // + JSONObject userExtra = new JSONObject(); + userExtra.put("llm", robot.getLlm().isEnabled()); + userExtra.put("defaultReply", robot.getDefaultReply()); + user.setExtra(JSON.toJSONString(userExtra)); + // + return ThreadMessageUtil.getThreadMessage(user, thread, isReenter); + } + +} diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/WorkgroupCsThreadCreationStrategy.java b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/WorkgroupCsThreadCreationStrategy.java index 93d4f5ca..6767299d 100644 --- a/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/WorkgroupCsThreadCreationStrategy.java +++ b/modules/service/src/main/java/com/bytedesk/service/visitor/strategy/WorkgroupCsThreadCreationStrategy.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-07-15 15:58:23 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-15 15:59:48 + * @LastEditTime: 2024-09-11 08:50: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,13 +14,238 @@ */ package com.bytedesk.service.visitor.strategy; +import java.util.Optional; + +import org.springframework.stereotype.Component; + +import com.alibaba.fastjson2.JSON; +import com.bytedesk.ai.robot.Robot; +import com.bytedesk.ai.utils.ConvertAiUtils; +import com.bytedesk.core.enums.ClientEnum; import com.bytedesk.core.message.MessageProtobuf; +import com.bytedesk.core.message.MessageUtils; +import com.bytedesk.core.rbac.user.UserProtobuf; +import com.bytedesk.core.thread.ThreadService; +import com.bytedesk.core.thread.ThreadStatusEnum; +import com.bytedesk.core.thread.ThreadTypeEnum; +import com.bytedesk.core.topic.TopicUtils; +import com.bytedesk.core.uid.UidUtils; +import com.bytedesk.service.agent.Agent; +import com.bytedesk.service.utils.ConvertServiceUtils; import com.bytedesk.service.visitor.VisitorRequest; +import com.bytedesk.service.workgroup.Workgroup; +import com.bytedesk.service.workgroup.WorkgroupService; +import com.bytedesk.core.thread.Thread; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +// 技能组会话 +@Slf4j +@Component("workgroupCsThreadStrategy") +@AllArgsConstructor public class WorkgroupCsThreadCreationStrategy implements CsThreadCreationStrategy { + + private final WorkgroupService workgroupService; + + private final ThreadService threadService; + + private final UidUtils uidUtils; + @Override public MessageProtobuf createCsThread(VisitorRequest visitorRequest) { - // return createWorkgroupCsThread(visitorRequest); + return createWorkgroupCsThread(visitorRequest); + } + + public MessageProtobuf createWorkgroupCsThread(VisitorRequest visitorRequest) { + // + String workgroupUid = visitorRequest.getSid(); + // + String topic = TopicUtils.formatOrgWorkgroupThreadTopic(workgroupUid, visitorRequest.getUid()); + // 是否已经存在进行中会话 + Thread thread = getProcessingThread(topic); + if (thread != null && !visitorRequest.getForceAgent()) { + log.info("Already have a processing thread " + JSON.toJSONString(thread)); + return getWorkgroupProcessingMessage(visitorRequest, thread); + } + // + Workgroup workgroup = workgroupService.findByUid(workgroupUid) + .orElseThrow(() -> new RuntimeException("Workgroup uid " + workgroupUid + " not found")); + // + thread = getWorkgroupThread(visitorRequest, workgroup, topic); + + // 未强制转人工的情况下,判断是否转机器人 + if (!visitorRequest.getForceAgent()) { + Boolean isOffline = !workgroup.isConnected(); + Boolean transferToRobot = workgroup.getServiceSettings().shouldTransferToRobot(isOffline); + if (transferToRobot) { + // 转机器人 + // TODO: 将robot设置为agent + Robot robot = workgroup.getServiceSettings().getRobot(); + if (robot != null) { + // + thread.setContent(robot.getServiceSettings().getWelcomeTip()); + // + UserProtobuf agenProtobuf = ConvertAiUtils.convertToUserProtobuf(robot); + thread.setAgent(JSON.toJSONString(agenProtobuf)); + // + return getRobotMessage(visitorRequest, thread, agenProtobuf); + } else { + throw new RuntimeException("route " + workgroupUid + " to a robot"); + } + } + } + // 下面人工接待 + // TODO: 所有客服都达到最大接待人数,则进入排队 + // TODO: 排队人数动态变化,随时通知访客端 + + if (workgroup.getAgents().isEmpty()) { + throw new RuntimeException("No agents found in workgroup with uid " + workgroupUid); + } + + // TODO: 首先完善各个agent的统计数据,比如接待量、等待时长等 + Agent agent = workgroup.nextAgent(); + if (agent == null) { + throw new RuntimeException("No available agent found in workgroup with uid " + workgroupUid); + } + // + thread.setOwner(agent.getMember().getUser()); + UserProtobuf agentProtobuf = ConvertServiceUtils.convertToUserProtobuf(agent); + thread.setAgent(JSON.toJSONString(agentProtobuf)); + // + return getWorkgroupMessage(visitorRequest, thread, agent, workgroup); + } + + // 是否存在未关闭的会话 + private Thread getProcessingThread(String topic) { + // TODO: 到visitor thread表中拉取 + // 拉取未关闭会话 + Optional threadOptional = threadService.findByWgTopicNotClosed(topic); + if (threadOptional.isPresent()) { + return threadOptional.get(); + } return null; } + + private Thread getWorkgroupThread(VisitorRequest visitorRequest, Workgroup workgroup, String topic) { + // + Thread thread = Thread.builder().build(); + // TODO: 到visitor thread表中拉取 + Optional threadOptional = threadService.findByTopic(topic); + if (threadOptional.isPresent()) { + thread = threadOptional.get(); + } else { + thread.setUid(uidUtils.getCacheSerialUid()); + thread.setTopic(topic); + thread.setType(ThreadTypeEnum.WORKGROUP.name()); + thread.setClient(ClientEnum.fromValue(visitorRequest.getClient()).name()); + thread.setOrgUid(workgroup.getOrgUid()); + } + // + UserProtobuf visitor = ConvertServiceUtils.convertToUserProtobuf(visitorRequest); + thread.setUser(JSON.toJSONString(visitor)); + // + thread.setExtra(JSON.toJSONString( + ConvertServiceUtils.convertToServiceSettingsResponseVisitor(workgroup.getServiceSettings()))); + // + return thread; + } + + private MessageProtobuf getWorkgroupMessage(VisitorRequest visitorRequest, Thread thread, Agent agent, Workgroup workgroup) { + // + boolean isReenter = true; + if (thread.getStatus() == ThreadStatusEnum.NORMAL.name()) { + // 访客首次进入会话 + isReenter = false; + } + // + if (!agent.isConnected() || !agent.isAvailable()) { + // 离线状态永远显示离线提示语,不显示“继续会话” + isReenter = false; + // 客服离线 或 非接待状态 + thread.setContent(workgroup.getServiceSettings().getLeavemsgTip()); + thread.setStatus(ThreadStatusEnum.OFFLINE.name()); + } else { + // 客服在线 且 接待状态 + thread.setUnreadCount(1); + thread.setContent(workgroup.getServiceSettings().getWelcomeTip()); + // thread.setAgent(JSON.toJSONString(ConvertServiceUtils.convertToWorkgroupResponseSimple(workgroup))); + // if thread is closed, reopen it and then create a new message + if (visitorRequest.getForceAgent()) { + isReenter = false; + thread.setStatus(ThreadStatusEnum.NORMAL.name()); + } else if (thread.isClosed()) { + // 访客会话关闭之后,重新进入 + isReenter = false; + thread.setStatus(ThreadStatusEnum.REOPEN.name()); + } else { + thread.setStatus(isReenter ? ThreadStatusEnum.CONTINUE.name() : ThreadStatusEnum.NORMAL.name()); + } + } + threadService.save(thread); + // + // UserProtobuf user = modelMapper.map(agent, UserProtobuf.class); + UserProtobuf user = ConvertServiceUtils.convertToUserProtobuf(agent); + // + MessageProtobuf messageProtobuf = ThreadMessageUtil.getThreadMessage(user, thread, isReenter); + // 广播消息,由消息通道统一处理 + MessageUtils.notifyUser(messageProtobuf); + + return messageProtobuf; + } + + private MessageProtobuf getRobotMessage(VisitorRequest visitorRequest, Thread thread, UserProtobuf user) { + if (thread == null) { + throw new RuntimeException("Thread cannot be null"); + } + // 客服在线 且 接待状态 + thread.setUnreadCount(0); + thread.setStatus(ThreadStatusEnum.NORMAL.name()); + threadService.save(thread); + // log.info("getAgentProcessingMessage agent: {}", thread.getAgent()); + // + MessageProtobuf messageProtobuf = ThreadMessageUtil.getThreadMessage(user, thread, false); + // 广播消息,由消息通道统一处理 + // messageService.notifyUser(messageProtobuf); + + return messageProtobuf; + } + + private MessageProtobuf getWorkgroupProcessingMessage(VisitorRequest visitorRequest, Thread thread) { + if (thread == null) { + throw new RuntimeException("Thread cannot be null"); + } + // + thread.setUnreadCount(1); + thread.setStatus(ThreadStatusEnum.CONTINUE.name()); + threadService.save(thread); + // + UserProtobuf user = JSON.parseObject(thread.getAgent(), UserProtobuf.class); + log.info("getWorkgroupProcessingMessage user: {}, agent {}", user.toString(), thread.getAgent()); + // + MessageProtobuf messageProtobuf = ThreadMessageUtil.getThreadMessage(user, thread, true); + // 广播消息,由消息通道统一处理 + MessageUtils.notifyUser(messageProtobuf); + + return messageProtobuf; + } + + // // 广播消息,由消息通道统一处理 + // messageService.notifyUser(messageProtobuf); + // + // if (agent.isConnected() && agent.isAvailable()) { + // log.info("agent is connected and available"); + // // notify agent - 通知客服 + // notifyAgent(messageProtobuf); + // } + // else if (agent.isAvailable()) { + // // TODO: 断开连接,但是接待状态,判断是否有客服移动端token,有则发送通知 + // log.info("agent is available"); + // cacheService.pushForPersist(JSON.toJSONString(messageProtobuf)); + // } else { + // cacheService.pushForPersist(JSON.toJSONString(messageProtobuf)); + // } + // + // return messageProtobuf; + } diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor_message/VisitorMessageEventListener.java b/modules/service/src/main/java/com/bytedesk/service/visitor_message/VisitorMessageEventListener.java index 4e60eefc..1de67df5 100644 --- a/modules/service/src/main/java/com/bytedesk/service/visitor_message/VisitorMessageEventListener.java +++ b/modules/service/src/main/java/com/bytedesk/service/visitor_message/VisitorMessageEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-07-05 11:07:05 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-05 11:07:24 + * @LastEditTime: 2024-09-11 09:08: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. @@ -14,27 +14,26 @@ */ package com.bytedesk.service.visitor_message; -import org.springframework.context.event.EventListener; import org.springframework.stereotype.Component; -import com.bytedesk.core.message.MessageCreateEvent; -import com.bytedesk.core.message.MessageUpdateEvent; - // import lombok.extern.slf4j.Slf4j; +/** + * TODO: 监听message中客服消息,包括uid。用于在访客端显示消息,减少message表压力 + */ // @Slf4j @Component public class VisitorMessageEventListener { - @EventListener - public void onMessageCreateEvent(MessageCreateEvent event) { - // log.info("visitor message unread create event: " + event); + // @EventListener + // public void onMessageCreateEvent(MessageCreateEvent event) { + // // log.info("visitor message unread create event: " + event); - } + // } - @EventListener - public void onMessageUpdateEvent(MessageUpdateEvent event) { - // log.info("visitor message unread update event: " + event); - } + // @EventListener + // public void onMessageUpdateEvent(MessageUpdateEvent event) { + // // log.info("visitor message unread update event: " + event); + // } } diff --git a/modules/service/src/main/java/com/bytedesk/service/visitor_thread/VisitorThreadService.java b/modules/service/src/main/java/com/bytedesk/service/visitor_thread/VisitorThreadService.java index 0e1fc89b..e86af151 100644 --- a/modules/service/src/main/java/com/bytedesk/service/visitor_thread/VisitorThreadService.java +++ b/modules/service/src/main/java/com/bytedesk/service/visitor_thread/VisitorThreadService.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-06-29 13:08:52 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-12 11:35:44 + * @LastEditTime: 2024-09-07 09:45: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. @@ -28,9 +28,9 @@ import com.alibaba.fastjson2.JSON; import com.bytedesk.core.base.BaseService; +import com.bytedesk.core.rbac.user.UserProtobuf; import com.bytedesk.core.thread.Thread; import com.bytedesk.service.visitor.Visitor; -import com.bytedesk.service.visitor.VisitorProtobuf; import com.bytedesk.service.visitor.VisitorService; import lombok.AllArgsConstructor; @@ -81,7 +81,7 @@ public VisitorThread create(Thread thread) { VisitorThread visitorThread = modelMapper.map(thread, VisitorThread.class); // String visitorString = thread.getUser(); - VisitorProtobuf visitor = JSON.parseObject(visitorString, VisitorProtobuf.class); + UserProtobuf visitor = JSON.parseObject(visitorString, UserProtobuf.class); // Optional visitorOpt = visitorService.findByUid(visitor.getUid()); if (visitorOpt.isPresent()) { 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 6c82b5ae..fda6ea18 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-06-07 09:52:15 + * @LastEditTime: 2024-09-07 09:43: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. @@ -17,7 +17,7 @@ import java.util.List; import com.bytedesk.core.base.BaseResponse; -import com.bytedesk.service.agent.AgentResponseSimple; +import com.bytedesk.core.rbac.user.UserProtobuf; import com.bytedesk.service.settings.ServiceSettingsResponse; import lombok.AllArgsConstructor; @@ -49,5 +49,5 @@ public class WorkgroupResponse extends BaseResponse { private ServiceSettingsResponse serviceSettings; // - private List agents; + private List agents; } diff --git a/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupResponseSimple.java b/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupResponseSimple.java index c10a10b3..70e3d7e3 100644 --- a/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupResponseSimple.java +++ b/modules/service/src/main/java/com/bytedesk/service/workgroup/WorkgroupResponseSimple.java @@ -1,25 +1,39 @@ +/* + * @Author: jackning 270580156@qq.com + * @Date: 2024-06-06 11:24:21 + * @LastEditors: jackning 270580156@qq.com + * @LastEditTime: 2024-09-07 08:19: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. + * 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署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.workgroup; -import com.bytedesk.core.base.BaseResponse; +// import com.bytedesk.core.base.BaseResponse; -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.Accessors; +// import lombok.AllArgsConstructor; +// import lombok.Builder; +// import lombok.Data; +// import lombok.EqualsAndHashCode; +// import lombok.NoArgsConstructor; +// import lombok.experimental.Accessors; -@Data -@Builder -@Accessors(chain = true) -@AllArgsConstructor -@NoArgsConstructor -@EqualsAndHashCode(callSuper = true) -public class WorkgroupResponseSimple extends BaseResponse { +// @Data +// @Builder +// @Accessors(chain = true) +// @AllArgsConstructor +// @NoArgsConstructor +// @EqualsAndHashCode(callSuper = true) +// public class WorkgroupResponseSimple extends BaseResponse { - private static final long serialVersionUID = 1L; +// private static final long serialVersionUID = 1L; - private String nickname; +// private String nickname; - private String avatar; -} +// private String avatar; +// } diff --git a/modules/service/src/main/java/com/bytedesk/service/workgroup_message/WorkgroupMessageEventListener.java b/modules/service/src/main/java/com/bytedesk/service/workgroup_message/WorkgroupMessageEventListener.java index 9e8eb638..20c55bca 100644 --- a/modules/service/src/main/java/com/bytedesk/service/workgroup_message/WorkgroupMessageEventListener.java +++ b/modules/service/src/main/java/com/bytedesk/service/workgroup_message/WorkgroupMessageEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-07-05 11:07:05 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-05 11:10:08 + * @LastEditTime: 2024-09-07 16:15: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,27 +14,23 @@ */ package com.bytedesk.service.workgroup_message; -import org.springframework.context.event.EventListener; import org.springframework.stereotype.Component; -import com.bytedesk.core.message.MessageCreateEvent; -import com.bytedesk.core.message.MessageUpdateEvent; - // import lombok.extern.slf4j.Slf4j; // @Slf4j @Component public class WorkgroupMessageEventListener { - @EventListener - public void onMessageCreateEvent(MessageCreateEvent event) { - // log.info("visitor message unread create event: " + event); + // @EventListener + // public void onMessageCreateEvent(MessageCreateEvent event) { + // // log.info("visitor message unread create event: " + event); - } + // } - @EventListener - public void onMessageUpdateEvent(MessageUpdateEvent event) { - // log.info("visitor message unread update event: " + event); - } + // @EventListener + // public void onMessageUpdateEvent(MessageUpdateEvent event) { + // // log.info("visitor message unread update event: " + event); + // } } diff --git a/modules/social/.DS_Store b/modules/social/.DS_Store index c0627e30..287781d9 100644 Binary files a/modules/social/.DS_Store and b/modules/social/.DS_Store differ diff --git a/modules/team/.DS_Store b/modules/team/.DS_Store index 2ea87726..6715dcdf 100644 Binary files a/modules/team/.DS_Store and b/modules/team/.DS_Store differ 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 bbd4a0e7..bd7dbb3c 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-07-19 08:37:19 + * @LastEditTime: 2024-08-29 18:06:23 * @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 */ @@ -61,11 +61,15 @@ public class Group extends BaseEntity { @Builder.Default private String topTip = BdConstants.EMPTY_STRING; + // 是否外部群 + @Builder.Default + private boolean isExternal = false; + @Builder.Default // @Enumerated(EnumType.STRING) @Column(name = "group_type", nullable = false) - // private GroupTypeEnum type = GroupTypeEnum.MEMBER; - private String type = GroupTypeEnum.MEMBER.name(); + // private GroupTypeEnum type = GroupTypeEnum.NORMAL; + private String type = GroupTypeEnum.NORMAL.name(); @Builder.Default // @Enumerated(EnumType.STRING) diff --git a/modules/team/src/main/java/com/bytedesk/team/group/GroupEventListener.java b/modules/team/src/main/java/com/bytedesk/team/group/GroupEventListener.java index 7825961d..7875b746 100644 --- a/modules/team/src/main/java/com/bytedesk/team/group/GroupEventListener.java +++ b/modules/team/src/main/java/com/bytedesk/team/group/GroupEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-06-27 23:00:43 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-05 10:32:00 + * @LastEditTime: 2024-08-29 23:33: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. @@ -44,7 +44,7 @@ public void onThreadCreateEvent(ThreadCreateEvent event) { // ThreadRequest request = event.getRequest(); log.info("group ThreadCreateEvent: {}", thread.getUid()); // - if (thread.getType().equals(ThreadTypeEnum.GROUP)) { + if (thread.getType().equals(ThreadTypeEnum.GROUP.name())) { String topic = thread.getTopic(); // 同事群组会话:org/group/{group_uid} String groupUid = topic.split("/")[2]; 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 682696e2..a7482da2 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 @@ -46,6 +46,9 @@ public class GroupRequest extends BaseRequest { private String topTip; + @Builder.Default + private Boolean isExternal = false; + @Builder.Default private GroupStatusEnum status = GroupStatusEnum.NORMAL; diff --git a/modules/team/src/main/java/com/bytedesk/team/group/GroupResponse.java b/modules/team/src/main/java/com/bytedesk/team/group/GroupResponse.java index 6565ffd5..17d5b0f7 100644 --- a/modules/team/src/main/java/com/bytedesk/team/group/GroupResponse.java +++ b/modules/team/src/main/java/com/bytedesk/team/group/GroupResponse.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-02-06 09:55:51 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-06-28 14:23:18 + * @LastEditTime: 2024-08-29 18:05: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. @@ -51,6 +51,8 @@ public class GroupResponse extends BaseResponse { private GroupStatusEnum status; + private Boolean isExternal; + private List members; private List admins; diff --git a/modules/team/src/main/java/com/bytedesk/team/group/GroupTypeEnum.java b/modules/team/src/main/java/com/bytedesk/team/group/GroupTypeEnum.java index 38005e21..606d8723 100644 --- a/modules/team/src/main/java/com/bytedesk/team/group/GroupTypeEnum.java +++ b/modules/team/src/main/java/com/bytedesk/team/group/GroupTypeEnum.java @@ -14,25 +14,14 @@ */ package com.bytedesk.team.group; - public enum GroupTypeEnum { - MEMBER("member"), // 企业内部群组 - USER("user"); // 社交群组 - - private final String value; - - GroupTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } + NORMAL, // 普通群组 + TOPIC; // 话题群组 // 根据字符串查找对应的枚举常量 public static GroupTypeEnum fromValue(String value) { for (GroupTypeEnum type : GroupTypeEnum.values()) { - if (type.getValue().equalsIgnoreCase(value)) { + if (type.name().equalsIgnoreCase(value)) { return type; } } diff --git a/modules/team/src/main/java/com/bytedesk/team/group_message/GroupMessageEventListener.java b/modules/team/src/main/java/com/bytedesk/team/group_message/GroupMessageEventListener.java index 519817d6..8a8ee2a0 100644 --- a/modules/team/src/main/java/com/bytedesk/team/group_message/GroupMessageEventListener.java +++ b/modules/team/src/main/java/com/bytedesk/team/group_message/GroupMessageEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-07-05 11:07:05 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-05 11:08:53 + * @LastEditTime: 2024-09-07 16:15:36 * @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,27 +14,23 @@ */ package com.bytedesk.team.group_message; -import org.springframework.context.event.EventListener; import org.springframework.stereotype.Component; -import com.bytedesk.core.message.MessageCreateEvent; -import com.bytedesk.core.message.MessageUpdateEvent; - // import lombok.extern.slf4j.Slf4j; // @Slf4j @Component public class GroupMessageEventListener { - @EventListener - public void onMessageCreateEvent(MessageCreateEvent event) { - // log.info("visitor message unread create event: " + event); + // @EventListener + // public void onMessageCreateEvent(MessageCreateEvent event) { + // // log.info("visitor message unread create event: " + event); - } + // } - @EventListener - public void onMessageUpdateEvent(MessageUpdateEvent event) { - // log.info("visitor message unread update event: " + event); - } + // @EventListener + // public void onMessageUpdateEvent(MessageUpdateEvent event) { + // // log.info("visitor message unread update event: " + event); + // } } diff --git a/modules/team/src/main/java/com/bytedesk/team/member/MemberEventListener.java b/modules/team/src/main/java/com/bytedesk/team/member/MemberEventListener.java index 1a7c9a5e..12b3ef1f 100644 --- a/modules/team/src/main/java/com/bytedesk/team/member/MemberEventListener.java +++ b/modules/team/src/main/java/com/bytedesk/team/member/MemberEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-06-03 14:06:20 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-19 16:51:33 + * @LastEditTime: 2024-08-29 23:33: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. @@ -90,7 +90,7 @@ public void onThreadCreateEvent(ThreadCreateEvent event) { // User user = thread.getOwner(); log.info("member ThreadCreateEvent: {}", thread.getUid()); // - if (thread.getType().equals(ThreadTypeEnum.MEMBER)) { + if (thread.getType().equals(ThreadTypeEnum.MEMBER.name())) { memberService.createMemberReverseThread(thread); } } 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 909a4126..5c424ed1 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-08-26 06:50:05 + * @LastEditTime: 2024-09-07 10:18: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. @@ -332,7 +332,7 @@ public Thread getMemberReverseThread(Thread thread) { String reverseUid = new StringBuffer(thread.getUid()).reverse().toString(); Optional reverseThreadOptional = threadService.findByUid(reverseUid); if (!reverseThreadOptional.isPresent()) { - throw new RuntimeException("reverseThread not found"); + throw new RuntimeException("reverseThread " + reverseUid + " not found"); } return reverseThreadOptional.get(); } diff --git a/modules/team/src/main/java/com/bytedesk/team/member_message/MemberMessageEventListener.java b/modules/team/src/main/java/com/bytedesk/team/member_message/MemberMessageEventListener.java index ab0e93bd..a97b1f0c 100644 --- a/modules/team/src/main/java/com/bytedesk/team/member_message/MemberMessageEventListener.java +++ b/modules/team/src/main/java/com/bytedesk/team/member_message/MemberMessageEventListener.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-07-05 11:07:05 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-07-05 11:09:16 + * @LastEditTime: 2024-09-07 16:15: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,27 +14,23 @@ */ package com.bytedesk.team.member_message; -import org.springframework.context.event.EventListener; import org.springframework.stereotype.Component; -import com.bytedesk.core.message.MessageCreateEvent; -import com.bytedesk.core.message.MessageUpdateEvent; - // import lombok.extern.slf4j.Slf4j; // @Slf4j @Component public class MemberMessageEventListener { - @EventListener - public void onMessageCreateEvent(MessageCreateEvent event) { - // log.info("visitor message unread create event: " + event); + // @EventListener + // public void onMessageCreateEvent(MessageCreateEvent event) { + // // log.info("visitor message unread create event: " + event); - } + // } - @EventListener - public void onMessageUpdateEvent(MessageUpdateEvent event) { - // log.info("visitor message unread update event: " + event); - } + // @EventListener + // public void onMessageUpdateEvent(MessageUpdateEvent event) { + // // log.info("visitor message unread update event: " + event); + // } } diff --git a/modules/ticket/pom.xml b/modules/ticket/pom.xml index 6a750a78..d53713ed 100644 --- a/modules/ticket/pom.xml +++ b/modules/ticket/pom.xml @@ -53,13 +53,6 @@ - - - com.google.protobuf - protobuf-java - 3.25.2 - provided - diff --git a/starter/.DS_Store b/starter/.DS_Store index b1a00eb2..ff809aa4 100644 Binary files a/starter/.DS_Store and b/starter/.DS_Store differ diff --git a/starter/pom.xml b/starter/pom.xml index 435d0b09..f86fd4ba 100644 --- a/starter/pom.xml +++ b/starter/pom.xml @@ -254,7 +254,7 @@ com.bytedesk - bytedesk-vip-flow + bytedesk-vip-flowbot ${revision} diff --git a/starter/src/.DS_Store b/starter/src/.DS_Store index 0aee3a71..fdc3749a 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 e26b28d5..24eab160 100644 Binary files a/starter/src/main/.DS_Store and b/starter/src/main/.DS_Store differ diff --git a/starter/src/main/java/com/bytedesk/starter/controller/PageRouteController.java b/starter/src/main/java/com/bytedesk/starter/controller/PageRouteController.java index 3d527e62..3f41b5ae 100644 --- a/starter/src/main/java/com/bytedesk/starter/controller/PageRouteController.java +++ b/starter/src/main/java/com/bytedesk/starter/controller/PageRouteController.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:17:36 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-08-09 06:52:34 + * @LastEditTime: 2024-09-04 20: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. @@ -109,6 +109,11 @@ public String download() { return "download"; } + @GetMapping("/download.html") + public String downloadHtml() { + return "download"; + } + /** * http://127.0.0.1:9003/about */ @@ -117,6 +122,11 @@ public String about() { return "about"; } + @GetMapping("/about.html") + public String aboutHtml() { + return "about"; + } + /** * http://127.0.0.1:9003/contact */ @@ -124,28 +134,10 @@ public String about() { public String contact() { return "contact"; } - - // FIXME: 在管理后台刷新页面,无法正确路由到 admin/index.html - // http://127.0.0.1:9003/admin/welcome - // @GetMapping("/admin/**") - // public String adminAll(HttpServletRequest request) { - // // return "admin/index.html"; - // String requestURI = request.getRequestURI(); - // String staticResourcePath = "classpath:/templates/admin/" + - // requestURI.substring(requestURI.indexOf("/admin")); - // try { - // // 尝试访问静态资源文件,如果文件不存在,将抛出异常 - // UrlResource resource = new UrlResource(staticResourcePath); - // if (!resource.exists()) { - // throw new RuntimeException("Static resource not found"); - // } - // // 如果静态资源存在,可以将其内容作为响应返回,或者重定向到静态资源的URL - // // 这里为了简化,我们假设直接返回静态资源视图名称 - // return "forward:" + staticResourcePath; - // } catch (Exception e) { - // // 静态资源不存在,回退到控制器方法逻辑 - // return "admin/index.html"; // 或者其他备用逻辑 - // } - // } + + @GetMapping("/contact.html") + public String contactHtml() { + return "contact"; + } } diff --git a/starter/src/main/resources/.DS_Store b/starter/src/main/resources/.DS_Store index 8ffdd9a7..010bd92e 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.properties b/starter/src/main/resources/application-dev.properties index 96975a13..7607866b 100644 --- a/starter/src/main/resources/application-dev.properties +++ b/starter/src/main/resources/application-dev.properties @@ -1,6 +1,6 @@ # =============================== -#=bytedesk config using mysql/redis、upload to aliyun oss +#=bytedesk # =============================== bytedesk.debug=true # default admin username/password/email/mobile info @@ -23,6 +23,8 @@ bytedesk.mobile-code=123456 bytedesk.organization-name=MyCompany bytedesk.organization-code=bytedesk # bytedesk.timezone=GMT+8 +bytedesk.javaai=false +bytedesk.pythonai=true # =============================== #=bytedesk cors config @@ -164,6 +166,7 @@ tencent.secretkey= # =============================== logging.level.web=DEBUG logging.level.org.springframework.security.web.FilterChainProxy=DEBUG +# logging.level.org.springframework.messaging=WARN # logging.level.org.springframework.web=INFO # logging.level.org.springframework.security=INFO #trace=true @@ -209,6 +212,7 @@ spring.datasource.password=r8FqfdbWUaN3 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.jpa.database=mysql spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect +spring.quartz.properties.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate # =============================== #= postgre @@ -220,6 +224,7 @@ spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect # spring.datasource.password=C8aJEVCCvSA1VFi8 # spring.datasource.driver-class-name=org.postgresql.Driver # spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect +# spring.quartz.properties.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.PostgreSQLDelegate # =============================== #=spring-boot-starter-data-jpa @@ -259,6 +264,8 @@ spring.data.redis.database=0 spring.data.redis.host=127.0.0.1 spring.data.redis.port=6379 spring.data.redis.password=C8aJEVCCvSA1VFi8 +# disable redis repository +spring.data.redis.repositories.enabled=false # redis pool config common.redis.pool-config.maxIdle=64 common.redis.pool-config.maxTotal=64 @@ -374,7 +381,6 @@ spring.quartz.properties.org.quartz.jobStore.isClustered=true spring.quartz.properties.org.quartz.jobStore.tablePrefix=QRTZ_ # spring.quartz.properties.org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX spring.quartz.properties.org.quartz.jobStore.class=org.springframework.scheduling.quartz.LocalDataSourceJobStore -spring.quartz.properties.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate spring.quartz.properties.org.quartz.jobStore.clusterCheckinInterval=10000 spring.quartz.properties.org.quartz.jobStore.useProperties=false # @@ -426,9 +432,9 @@ logging.level.org.springframework.ai.chat.client.advisor=DEBUG # moonshot # https://docs.spring.io/spring-ai/reference/api/chat/moonshot-chat.html -spring.ai.moonshot.chat.enabled=false +spring.ai.moonshot.chat.enabled=true # spring.ai.moonshot.base-url=api.moonshot.cn -spring.ai.moonshot.api-key=123 +spring.ai.moonshot.api-key=sk-placeholder # 或 export SPRING_AI_MOONSHOT_API_KEY= # spring.ai.moonshot.chat.base-url= # spring.ai.moonshot.chat.api-key= @@ -438,18 +444,19 @@ spring.ai.moonshot.chat.options.temperature=0.7 # minimax # https://platform.minimaxi.com/user-center/basic-information/interface-key -spring.ai.minimax.chat.enabled=false -spring.ai.minimax.api-key=123 +spring.ai.minimax.chat.enabled=true +spring.ai.minimax.api-key=placeholder # spring.ai.minimax.chat.options.model=minimax-v1 # zhipuai # https://open.bigmodel.cn/overview # https://docs.spring.io/spring-ai/reference/api/embeddings/zhipuai-embeddings.html # https://docs.spring.io/spring-ai/reference/api/chat/zhipuai-chat.html -spring.ai.zhipuai.chat.enabled=false +spring.ai.zhipuai.chat.enabled=true # spring.ai.zhipuai.chat.base-url=URL_ADDRESS spring.ai.zhipuai.api-key=f03410085cb038ec41098ae7ca6ef047.TrJMIwAULDG12345 -spring.ai.zhipuai.chat.options.model=glm-3-turbo +# 免费模型:https://open.bigmodel.cn/dev/api#glm-4 +spring.ai.zhipuai.chat.options.model=glm-4-flash spring.ai.zhipuai.chat.options.temperature=0.7 # # ollama list: @@ -475,7 +482,7 @@ spring.ai.ollama.embedding.options.model=mistral # spring.ai.vectorstore.pgvector.dimensions=1536 # # https://docs.spring.io/spring-ai/reference/api/vectordbs/redis.html -spring.ai.vectorstore.redis.initialize-schema=true +spring.ai.vectorstore.redis.initialize-schema=false spring.ai.vectorstore.redis.uri=redis://127.0.0.1:6379 spring.ai.vectorstore.redis.index=bytedesk_vs_index spring.ai.vectorstore.redis.prefix=bytedesk_vs_prefix: @@ -501,8 +508,21 @@ bytedesk.oauth.github.clientsecret=clientid bytedesk.liangshibao.host=http://127.0.0.1:9003 bytedesk.liangshibao.path=/Users/ningjinpeng/Desktop/git/private/liangshibao/web/ +# =============================== +# = 百度翻译 +# https://fanyi-api.baidu.com/doc/21 +# =============================== +translate.baidu.appid=placeholder +translate.baidu.key=placeholder + +# 抖音开放平台 +# https://developer.open-douyin.com/webapp/aw74cmav4symty7z/setting/app-info +douyin.client.key=placeholder +douyin.client.secret=placeholder + # =============================== # = docker compose # =============================== spring.docker.compose.enabled=false spring.docker.compose.file=docker-compose.yaml + diff --git a/starter/src/main/resources/templates/.DS_Store b/starter/src/main/resources/templates/.DS_Store index 13af6c36..f79b4bc6 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 36941be4..ca28d06a 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/1001.416ac433.async.js b/starter/src/main/resources/templates/admin/1001.416ac433.async.js deleted file mode 100644 index d4649d48..00000000 --- a/starter/src/main/resources/templates/admin/1001.416ac433.async.js +++ /dev/null @@ -1,200 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1001,6501],{81001:function(i,e,n){n.r(e),n.d(e,{default:function(){return r}});var t=n(96475),a=n(6679),l=n(442),m=n(68429);const s=Object.freeze({displayName:"Handlebars",name:"handlebars",patterns:[{include:"#yfm"},{include:"#extends"},{include:"#block_comments"},{include:"#comments"},{include:"#block_helper"},{include:"#end_block"},{include:"#else_token"},{include:"#partial_and_var"},{include:"#inline_script"},{include:"#html_tags"},{include:"text.html.basic"}],repository:{block_comments:{patterns:[{begin:"\\{\\{!--",end:"--\\}\\}",name:"comment.block.handlebars",patterns:[{match:"@\\w*",name:"keyword.annotation.handlebars"},{include:"#comments"}]},{begin:"/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(s){s.type==="entity"&&(s.attributes.title=s.content.value.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(l,c){var p={};p["language-"+c]={pattern:/(^$)/i,lookbehind:!0,inside:n.languages[c]},p.cdata=/^$/i;var g={"included-cdata":{pattern://i,inside:p}};g["language-"+c]={pattern:/[\s\S]+/,inside:n.languages[c]};var O={};O[l]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return l}),"i"),lookbehind:!0,greedy:!0,inside:g},n.languages.insertBefore("markup","cdata",O)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(s,l){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+s+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[l,"language-"+l],inside:n.languages[l]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml}ua.displayName="css",ua.aliases=[];function ua(n){(function(s){var l=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;s.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+l.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+l.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+l.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+l.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:l,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},s.languages.css.atrule.inside.rest=s.languages.css;var c=s.languages.markup;c&&(c.tag.addInlined("style","css"),c.tag.addAttribute("style","css"))})(n)}il.displayName="diff",il.aliases=[];function il(n){(function(s){s.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var l={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(l).forEach(function(c){var p=l[c],g=[];/^\w+$/.test(c)||g.push(/\w+/.exec(c)[0]),c==="diff"&&g.push("bold"),s.languages.diff[c]={pattern:RegExp("^(?:["+p+`].*(?:\r -?| -|(?![\\s\\S])))+`,"m"),alias:g,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(c)[0]}}}}),Object.defineProperty(s.languages.diff,"PREFIXES",{value:l})})(n)}Cu.displayName="go",Cu.aliases=[];function Cu(n){n.register(Kr),n.languages.go=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),n.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete n.languages.go["class-name"]}Au.displayName="ini",Au.aliases=[];function Au(n){n.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}sl.displayName="java",sl.aliases=[];function sl(n){n.register(Kr),function(s){var l=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,c=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,p={pattern:RegExp(/(^|[^\w.])/.source+c+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};s.languages.java=s.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[p,{pattern:RegExp(/(^|[^\w.])/.source+c+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:p.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+c+/[A-Z]\w*\b/.source),lookbehind:!0,inside:p.inside}],keyword:l,function:[s.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),s.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),s.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":p,keyword:l,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+c+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:p.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+c+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:p.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return l.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(n)}_u.displayName="regex",_u.aliases=[];function _u(n){(function(s){var l={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},c=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,p={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},g={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},O="(?:[^\\\\-]|"+c.source+")",w=RegExp(O+"-"+O),C={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};s.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:w,inside:{escape:c,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":l,"char-set":g,escape:c}},"special-escape":l,"char-set":p,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":C}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:c,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript}Vl.displayName="json",Vl.aliases=["webmanifest"];function Vl(n){n.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},n.languages.webmanifest=n.languages.json}Nu.displayName="kotlin",Nu.aliases=["kt","kts"];function Nu(n){n.register(Kr),function(s){s.languages.kotlin=s.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete s.languages.kotlin["class-name"];var l={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:s.languages.kotlin}};s.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:l},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:l},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete s.languages.kotlin.string,s.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),s.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),s.languages.kt=s.languages.kotlin,s.languages.kts=s.languages.kotlin}(n)}Sc.displayName="less",Sc.aliases=[];function Sc(n){n.register(ua),n.languages.less=n.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),n.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}vc.displayName="lua",vc.aliases=[];function vc(n){n.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}Ao.displayName="makefile",Ao.aliases=[];function Ao(n){n.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}jl.displayName="yaml",jl.aliases=["yml"];function jl(n){(function(s){var l=/[*&][^\s[\]{},]+/,c=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,p="(?:"+c.source+"(?:[ ]+"+l.source+")?|"+l.source+"(?:[ ]+"+c.source+")?)",g=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),O=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function w(C,L){L=(L||"").replace(/m/g,"")+"m";var H=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return p}).replace(/<>/g,function(){return C});return RegExp(H,L)}s.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return p})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return p}).replace(/<>/g,function(){return"(?:"+g+"|"+O+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:w(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:w(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:w(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:w(O),lookbehind:!0,greedy:!0},number:{pattern:w(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:c,important:l,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},s.languages.yml=s.languages.yaml})(n)}Ru.displayName="markdown",Ru.aliases=["md"];function Ru(n){n.register(zi),function(s){var l=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function c(j){return j=j.replace(//g,function(){return l}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+j+")")}var p=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,g=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return p}),O=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;s.languages.markdown=s.languages.extend("markup",{}),s.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:s.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+g+O+"(?:"+g+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+g+O+")(?:"+g+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(p),inside:s.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+g+")"+O+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+g+"$"),inside:{"table-header":{pattern:RegExp(p),alias:"important",inside:s.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:c(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:c(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:c(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:c(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(j){["url","bold","italic","strike","code-snippet"].forEach(function(ee){j!==ee&&(s.languages.markdown[j].inside.content.inside[ee]=s.languages.markdown[ee])})}),s.hooks.add("after-tokenize",function(j){if(j.language!=="markdown"&&j.language!=="md")return;function ee(se){if(!(!se||typeof se=="string"))for(var Se=0,at=se.length;Se",quot:'"'},L=String.fromCodePoint||String.fromCharCode;function H(j){var ee=j.replace(w,"");return ee=ee.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(se,Se){if(Se=Se.toLowerCase(),Se[0]==="#"){var at;return Se[1]==="x"?at=parseInt(Se.slice(2),16):at=Number(Se.slice(1)),L(at)}else{var ot=C[Se];return ot||se}}),ee}s.languages.md=s.languages.markdown}(n)}Pd.displayName="objectivec",Pd.aliases=["objc"];function Pd(n){n.register(Da),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}Fd.displayName="perl",Fd.aliases=[];function Fd(n){(function(s){var l=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;s.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,l].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,l].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,l+/\s*/.source+l].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(n)}bs.displayName="markup-templating",bs.aliases=[];function bs(n){n.register(zi),function(s){function l(c,p){return"___"+c.toUpperCase()+p+"___"}Object.defineProperties(s.languages["markup-templating"]={},{buildPlaceholders:{value:function(c,p,g,O){if(c.language===p){var w=c.tokenStack=[];c.code=c.code.replace(g,function(C){if(typeof O=="function"&&!O(C))return C;for(var L=w.length,H;c.code.indexOf(H=l(p,L))!==-1;)++L;return w[L]=C,H}),c.grammar=s.languages.markup}}},tokenizePlaceholders:{value:function(c,p){if(c.language!==p||!c.tokenStack)return;c.grammar=s.languages[p];var g=0,O=Object.keys(c.tokenStack);function w(C){for(var L=0;L=O.length);L++){var H=C[L];if(typeof H=="string"||H.content&&typeof H.content=="string"){var j=O[g],ee=c.tokenStack[j],se=typeof H=="string"?H:H.content,Se=l(p,j),at=se.indexOf(Se);if(at>-1){++g;var ot=se.substring(0,at),Ke=new s.Token(p,s.tokenize(ee,c.grammar),"language-"+p,ee),Ot=se.substring(at+Se.length),kt=[];ot&&kt.push.apply(kt,w([ot])),kt.push(Ke),Ot&&kt.push.apply(kt,w([Ot])),typeof H=="string"?C.splice.apply(C,[L,1].concat(kt)):H.content=kt}}else H.content&&w(H.content)}return C}w(c.tokens)}}})}(n)}Zl.displayName="php",Zl.aliases=[];function Zl(n){n.register(bs),function(s){var l=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,c=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],p=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,g=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,O=/[{}\[\](),:;]/;s.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:l,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:c,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:p,operator:g,punctuation:O};var w={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:s.languages.php},C=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:w}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:w}}];s.languages.insertBefore("php","variable",{string:C,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:l,string:C,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:c,number:p,operator:g,punctuation:O}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),s.hooks.add("before-tokenize",function(L){if(/<\?/.test(L.code)){var H=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;s.languages["markup-templating"].buildPlaceholders(L,"php",H)}}),s.hooks.add("after-tokenize",function(L){s.languages["markup-templating"].tokenizePlaceholders(L,"php")})}(n)}kc.displayName="python",kc.aliases=["py"];function kc(n){n.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},n.languages.python["string-interpolation"].inside.interpolation.inside.rest=n.languages.python,n.languages.py=n.languages.python}Du.displayName="r",Du.aliases=[];function Du(n){n.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}al.displayName="ruby",al.aliases=["rb"];function al(n){n.register(Kr),function(s){s.languages.ruby=s.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),s.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var l={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:s.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete s.languages.ruby.function;var c="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",p=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;s.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+c+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:l,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:l,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+p),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+p+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),s.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+c),greedy:!0,inside:{interpolation:l,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:l,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:l,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+c),greedy:!0,inside:{interpolation:l,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:l,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete s.languages.ruby.string,s.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),s.languages.rb=s.languages.ruby}(n)}wc.displayName="rust",wc.aliases=[];function wc(n){(function(s){for(var l=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,c=0;c<2;c++)l=l.replace(//g,function(){return l});l=l.replace(//g,function(){return/[^\s\S]/.source}),s.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+l),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},s.languages.rust["closure-params"].inside.rest=s.languages.rust,s.languages.rust.attribute.inside.string=s.languages.rust.string})(n)}xc.displayName="sass",xc.aliases=[];function xc(n){n.register(ua),function(s){s.languages.sass=s.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),s.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete s.languages.sass.atrule;var l=/\$[-\w]+|#\{\$[-\w]+\}/,c=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];s.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:l,operator:c}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:l,operator:c,important:s.languages.sass.important}}}),delete s.languages.sass.property,delete s.languages.sass.important,s.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(n)}Tc.displayName="scss",Tc.aliases=[];function Tc(n){n.register(ua),n.languages.scss=n.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),n.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),n.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),n.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),n.languages.scss.atrule.inside.rest=n.languages.scss}Iu.displayName="sql",Iu.aliases=[];function Iu(n){n.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}Cc.displayName="swift",Cc.aliases=[];function Cc(n){n.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},n.languages.swift["string-literal"].forEach(function(s){s.inside.interpolation.inside=n.languages.swift})}Ac.displayName="typescript",Ac.aliases=["ts"];function Ac(n){n.register(Ms),function(s){s.languages.typescript=s.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),s.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete s.languages.typescript.parameter,delete s.languages.typescript["literal-property"];var l=s.languages.extend("typescript",{});delete l["class-name"],s.languages.typescript["class-name"].inside=l,s.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:l}}}}),s.languages.ts=s.languages.typescript}(n)}_c.displayName="basic",_c.aliases=[];function _c(n){n.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}v.displayName="vbnet",v.aliases=[];function v(n){n.register(_c),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}var h=z(96484);const m=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],y={0:"\uFFFD",128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"};function S(n){const s=typeof n=="string"?n.charCodeAt(0):n;return s>=48&&s<=57}function T(n){const s=typeof n=="string"?n.charCodeAt(0):n;return s>=97&&s<=102||s>=65&&s<=70||s>=48&&s<=57}function P(n){const s=typeof n=="string"?n.charCodeAt(0):n;return s>=97&&s<=122||s>=65&&s<=90}function Q(n){return P(n)||S(n)}var q=z(44301);const fe=String.fromCharCode,le=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Pe(n,s={}){const l=typeof s.additional=="string"?s.additional.charCodeAt(0):s.additional,c=[];let p=0,g=-1,O="",w,C;s.position&&("start"in s.position||"indent"in s.position?(C=s.position.indent,w=s.position.start):w=s.position);let L=(w?w.line:0)||1,H=(w?w.column:0)||1,j=se(),ee;for(p--;++p<=n.length;)if(ee===10&&(H=(C?C[g]:0)||1),ee=n.charCodeAt(p),ee===38){const ot=n.charCodeAt(p+1);if(ot===9||ot===10||ot===12||ot===32||ot===38||ot===60||Number.isNaN(ot)||l&&ot===l){O+=fe(ee),H++;continue}const Ke=p+1;let Ot=Ke,kt=Ke,Jt;if(ot===35){kt=++Ot;const An=n.charCodeAt(kt);An===88||An===120?(Jt="hexadecimal",kt=++Ot):Jt="decimal"}else Jt="named";let ln="",yt="",tn="";const Qn=Jt==="named"?Q:Jt==="decimal"?S:T;for(kt--;++kt<=n.length;){const An=n.charCodeAt(kt);if(!Qn(An))break;tn+=fe(An),Jt==="named"&&m.includes(tn)&&(ln=tn,yt=(0,q.T)(tn))}let mn=n.charCodeAt(kt)===59;if(mn){kt++;const An=Jt==="named"?(0,q.T)(tn):!1;An&&(ln=tn,yt=An)}let it=1+kt-Ke,wr="";if(!(!mn&&s.nonTerminated===!1))if(!tn)Jt!=="named"&&Se(4,it);else if(Jt==="named"){if(mn&&!yt)Se(5,1);else if(ln!==tn&&(kt=Ot+ln.length,it=1+kt-Ot,mn=!1),!mn){const An=ln?1:3;if(s.attribute){const Ln=n.charCodeAt(kt);Ln===61?(Se(An,it),yt=""):Q(Ln)?yt="":Se(An,it)}else Se(An,it)}wr=yt}else{mn||Se(2,it);let An=Number.parseInt(tn,Jt==="hexadecimal"?16:10);if(We(An))Se(7,it),wr=fe(65533);else if(An in y)Se(6,it),wr=y[An];else{let Ln="";mt(An)&&Se(6,it),An>65535&&(An-=65536,Ln+=fe(An>>>10|55296),An=56320|An&1023),wr=Ln+fe(An)}}if(wr){at(),j=se(),p=kt-1,H+=kt-Ke+1,c.push(wr);const An=se();An.offset++,s.reference&&s.reference.call(s.referenceContext,wr,{start:j,end:An},n.slice(Ke-1,kt)),j=An}else tn=n.slice(Ke-1,kt),O+=tn,H+=tn.length,p=kt-1}else ee===10&&(L++,g++,H=0),Number.isNaN(ee)?at():(O+=fe(ee),H++);return c.join("");function se(){return{line:L,column:H,offset:p+((w?w.offset:0)||0)}}function Se(ot,Ke){let Ot;s.warning&&(Ot=se(),Ot.column+=Ke,Ot.offset+=Ke,s.warning.call(s.warningContext,le[ot],Ot,ot))}function at(){O&&(c.push(O),s.text&&s.text.call(s.textContext,O,{start:j,end:se()}),O="")}}function We(n){return n>=55296&&n<=57343||n>1114111}function mt(n){return n>=1&&n<=8||n===11||n>=13&&n<=31||n>=127&&n<=159||n>=64976&&n<=65007||(n&65535)===65535||(n&65535)===65534}var Ct=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,Bt=0,Ht={},It={util:{type:function(n){return Object.prototype.toString.call(n).slice(8,-1)},objId:function(n){return n.__id||Object.defineProperty(n,"__id",{value:++Bt}),n.__id},clone:function n(s,l){l=l||{};var c,p;switch(It.util.type(s)){case"Object":if(p=It.util.objId(s),l[p])return l[p];c={},l[p]=c;for(var g in s)s.hasOwnProperty(g)&&(c[g]=n(s[g],l));return c;case"Array":return p=It.util.objId(s),l[p]?l[p]:(c=[],l[p]=c,s.forEach(function(O,w){c[w]=n(O,l)}),c);default:return s}}},languages:{plain:Ht,plaintext:Ht,text:Ht,txt:Ht,extend:function(n,s){var l=It.util.clone(It.languages[n]);for(var c in s)l[c]=s[c];return l},insertBefore:function(n,s,l,c){c=c||It.languages;var p=c[n],g={};for(var O in p)if(p.hasOwnProperty(O)){if(O==s)for(var w in l)l.hasOwnProperty(w)&&(g[w]=l[w]);l.hasOwnProperty(O)||(g[O]=p[O])}var C=c[n];return c[n]=g,It.languages.DFS(It.languages,function(L,H){H===C&&L!=n&&(this[L]=g)}),g},DFS:function n(s,l,c,p){p=p||{};var g=It.util.objId;for(var O in s)if(s.hasOwnProperty(O)){l.call(s,O,s[O],c||O);var w=s[O],C=It.util.type(w);C==="Object"&&!p[g(w)]?(p[g(w)]=!0,n(w,l,null,p)):C==="Array"&&!p[g(w)]&&(p[g(w)]=!0,n(w,l,O,p))}}},plugins:{},highlight:function(n,s,l){var c={code:n,grammar:s,language:l};if(It.hooks.run("before-tokenize",c),!c.grammar)throw new Error('The language "'+c.language+'" has no grammar.');return c.tokens=It.tokenize(c.code,c.grammar),It.hooks.run("after-tokenize",c),ar.stringify(It.util.encode(c.tokens),c.language)},tokenize:function(n,s){var l=s.rest;if(l){for(var c in l)s[c]=l[c];delete s.rest}var p=new Lr;return ri(p,p.head,n),gr(n,p,s,p.head,0),ws(p)},hooks:{all:{},add:function(n,s){var l=It.hooks.all;l[n]=l[n]||[],l[n].push(s)},run:function(n,s){var l=It.hooks.all[n];if(!(!l||!l.length))for(var c=0,p;p=l[c++];)p(s)}},Token:ar};function ar(n,s,l,c){this.type=n,this.content=s,this.alias=l,this.length=(c||"").length|0}function Qr(n,s,l,c){n.lastIndex=s;var p=n.exec(l);if(p&&c&&p[1]){var g=p[1].length;p.index+=g,p[0]=p[0].slice(g)}return p}function gr(n,s,l,c,p,g){for(var O in l)if(!(!l.hasOwnProperty(O)||!l[O])){var w=l[O];w=Array.isArray(w)?w:[w];for(var C=0;C=g.reach);Ke+=ot.value.length,ot=ot.next){var Ot=ot.value;if(s.length>n.length)return;if(!(Ot instanceof ar)){var kt=1,Jt;if(ee){if(Jt=Qr(at,Ke,n,j),!Jt||Jt.index>=n.length)break;var Qn=Jt.index,ln=Jt.index+Jt[0].length,yt=Ke;for(yt+=ot.value.length;Qn>=yt;)ot=ot.next,yt+=ot.value.length;if(yt-=ot.value.length,Ke=yt,ot.value instanceof ar)continue;for(var tn=ot;tn!==s.tail&&(ytg.reach&&(g.reach=An);var Ln=ot.prev;it&&(Ln=ri(s,Ln,it),Ke+=it.length),Yi(s,Ln,kt);var hr=new ar(O,H?It.tokenize(mn,H):mn,se,mn);if(ot=ri(s,Ln,hr),wr&&ri(s,ot,wr),kt>1){var Jn={cause:O+","+C,reach:An};gr(n,s,l,ot.prev,Ke,Jn),g&&Jn.reach>g.reach&&(g.reach=Jn.reach)}}}}}}function Lr(){var n={value:null,prev:null,next:null},s={value:null,prev:n,next:null};n.next=s,this.head=n,this.tail=s,this.length=0}function ri(n,s,l){var c=s.next,p={value:l,prev:s,next:c};return s.next=p,c.prev=p,n.length++,p}function Yi(n,s,l){for(var c=s.next,p=0;p]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}gm.displayName="abnf",gm.aliases=[];function gm(n){(function(s){var l="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";s.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+l+"|<"+l+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(n)}bm.displayName="actionscript",bm.aliases=[];function bm(n){n.register(Ms),n.languages.actionscript=n.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),n.languages.actionscript["class-name"].alias="function",delete n.languages.actionscript.parameter,delete n.languages.actionscript["literal-property"],n.languages.markup&&n.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:n.languages.markup}})}yb.displayName="ada",yb.aliases=[];function yb(n){n.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}Eb.displayName="agda",Eb.aliases=[];function Eb(n){(function(s){s.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(n)}Sb.displayName="al",Sb.aliases=[];function Sb(n){n.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}Om.displayName="antlr4",Om.aliases=["g4"];function Om(n){n.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},n.languages.g4=n.languages.antlr4}vb.displayName="apacheconf",vb.aliases=[];function vb(n){n.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}kb.displayName="apex",kb.aliases=[];function kb(n){n.register(Kr),n.register(Iu),function(s){var l=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,c=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return l.source});function p(O){return RegExp(O.replace(//g,function(){return c}),"i")}var g={keyword:l,punctuation:/[()\[\]{};,:.<>]/};s.languages.apex={comment:s.languages.clike.comment,string:s.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:s.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:p(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:g},{pattern:p(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:g},{pattern:p(/(?=\s*\w+\s*[;=,(){:])/.source),inside:g}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:l,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(n)}wb.displayName="apl",wb.aliases=[];function wb(n){n.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}xb.displayName="applescript",xb.aliases=[];function xb(n){n.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}Tb.displayName="aql",Tb.aliases=[];function Tb(n){n.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}Cb.displayName="arff",Cb.aliases=[];function Cb(n){n.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}$d.displayName="armasm",$d.aliases=["arm-asm"];function $d(n){n.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},n.languages["arm-asm"]=n.languages.armasm}Ud.displayName="arturo",Ud.aliases=["art"];function Ud(n){(function(s){var l=function(c,p){return{pattern:RegExp(/\{!/.source+"(?:"+(p||c)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+c,inside:s.languages[c]},string:/[\s\S]+/}}};s.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":l("html"),"css-string":l("css"),"js-string":l("js"),"md-string":l("md"),"sql-string":l("sql"),"sh-string":l("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},s.languages.art=s.languages.arturo})(n)}Ab.displayName="asciidoc",Ab.aliases=["adoc"];function Ab(n){(function(s){var l={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},c=s.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:l,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:l.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:l,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function p(g){g=g.split(" ");for(var O={},w=0,C=g.length;w/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}Hd.displayName="asm6502",Hd.aliases=[];function Hd(n){n.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}ym.displayName="asmatmel",ym.aliases=[];function ym(n){n.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}xs.displayName="autohotkey",xs.aliases=[];function xs(n){n.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}ui.displayName="autoit",ui.aliases=[];function ui(n){n.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}yp.displayName="avisynth",yp.aliases=["avs"];function yp(n){(function(s){function l(L,H){return L.replace(/<<(\d+)>>/g,function(j,ee){return H[+ee]})}function c(L,H,j){return RegExp(l(L,H),j||"")}var p=/bool|clip|float|int|string|val/.source,g=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),O=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),w=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),C=[g,O,w].join("|");s.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:c(/\b(?:<<0>>)\s+("?)\w+\1/.source,[p],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:c(/\b(?:<<0>>)\b/.source,[C],"i"),alias:"function"},"type-cast":{pattern:c(/\b(?:<<0>>)(?=\s*\()/.source,[p],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},s.languages.avs=s.languages.avisynth})(n)}Em.displayName="avro-idl",Em.aliases=["avdl"];function Em(n){n.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},n.languages.avdl=n.languages["avro-idl"]}ai.displayName="awk",ai.aliases=["gawk"];function ai(n){n.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},n.languages.gawk=n.languages.awk}_b.displayName="batch",_b.aliases=[];function _b(n){(function(s){var l=/%%?[~:\w]+%?|!\S+!/,c={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},p=/"(?:[\\"]"|[^"])*"(?!")/,g=/(?:\b|-)\d+\b/;s.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:p,parameter:c,variable:l,number:g,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:p,parameter:c,variable:l,number:g,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:p,parameter:c,variable:[l,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:g,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:p,parameter:c,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:l,number:g,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(n)}Nb.displayName="bbcode",Nb.aliases=["shortcode"];function Nb(n){n.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},n.languages.shortcode=n.languages.bbcode}Sm.displayName="bbj",Sm.aliases=[];function Sm(n){(function(s){s.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(n)}vm.displayName="bicep",vm.aliases=[];function vm(n){n.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},n.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=n.languages.bicep}Rb.displayName="birb",Rb.aliases=[];function Rb(n){n.register(Kr),n.languages.birb=n.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),n.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}Ep.displayName="bison",Ep.aliases=[];function Ep(n){n.register(Da),n.languages.bison=n.languages.extend("c",{}),n.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}km.displayName="bnf",km.aliases=["rbnf"];function km(n){n.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},n.languages.rbnf=n.languages.bnf}Db.displayName="bqn",Db.aliases=[];function Db(n){n.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}Sp.displayName="brainfuck",Sp.aliases=[];function Sp(n){n.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}Rc.displayName="brightscript",Rc.aliases=[];function Rc(n){n.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},n.languages.brightscript["directive-statement"].inside.expression.inside=n.languages.brightscript}Ib.displayName="bro",Ib.aliases=[];function Ib(n){n.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}zd.displayName="bsl",zd.aliases=["oscript"];function zd(n){n.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},n.languages.oscript=n.languages.bsl}Lb.displayName="cfscript",Lb.aliases=["cfc"];function Lb(n){n.register(Kr),n.languages.cfscript=n.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),n.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete n.languages.cfscript["class-name"],n.languages.cfc=n.languages.cfscript}Mb.displayName="chaiscript",Mb.aliases=[];function Mb(n){n.register(Kr),n.register(lo),n.languages.chaiscript=n.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}Pb.displayName="cil",Pb.aliases=[];function Pb(n){n.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}Fb.displayName="cilkc",Fb.aliases=["cilk-c"];function Fb(n){n.register(Da),n.languages.cilkc=n.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),n.languages["cilk-c"]=n.languages.cilkc}Bb.displayName="cilkcpp",Bb.aliases=["cilk","cilk-cpp"];function Bb(n){n.register(lo),n.languages.cilkcpp=n.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),n.languages["cilk-cpp"]=n.languages.cilkcpp,n.languages.cilk=n.languages.cilkcpp}$b.displayName="clojure",$b.aliases=[];function $b(n){n.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}Ub.displayName="cmake",Ub.aliases=[];function Ub(n){n.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}Hb.displayName="cobol",Hb.aliases=[];function Hb(n){n.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}Lu.displayName="coffeescript",Lu.aliases=["coffee"];function Lu(n){n.register(Ms),function(s){var l=/#(?!\{).+/,c={pattern:/#\{[^}]+\}/,alias:"variable"};s.languages.coffeescript=s.languages.extend("javascript",{comment:l,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:c}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),s.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:l,interpolation:c}}}),s.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:s.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:c}}]}),s.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete s.languages.coffeescript["template-string"],s.languages.coffee=s.languages.coffeescript}(n)}zb.displayName="concurnas",zb.aliases=["conc"];function zb(n){n.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},n.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:n.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:n.languages.concurnas},string:/[\s\S]+/}}}),n.languages.conc=n.languages.concurnas}vp.displayName="csp",vp.aliases=[];function vp(n){(function(s){function l(c){return RegExp(/([ \t])/.source+"(?:"+c+")"+/(?=[\s;]|$)/.source,"i")}s.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:l(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:l(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:l(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:l(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:l(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:l(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:l(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(n)}Qd.displayName="cooklang",Qd.aliases=[];function Qd(n){(function(s){var l=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,c=/[^{}@#]+/.source,p=/\{[^}#@]*\}/.source,g=c+p,O=/(?:h|hours|hrs|m|min|minutes)/.source,w={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};s.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+g+"|"+l+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+c+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+c),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+g+"|"+l+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+c+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":w}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+O+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(n)}xi.displayName="coq",xi.aliases=[];function xi(n){(function(s){for(var l=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,c=0;c<2;c++)l=l.replace(//g,function(){return l});l=l.replace(//g,"[]"),s.languages.coq={comment:RegExp(l),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return l})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(l),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(n)}Vd.displayName="crystal",Vd.aliases=[];function Vd(n){n.register(al),function(s){s.languages.crystal=s.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,s.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),s.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:s.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:s.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(n)}wm.displayName="css-extras",wm.aliases=[];function wm(n){n.register(ua),function(s){var l=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,c;s.languages.css.selector={pattern:s.languages.css.selector.pattern,lookbehind:!0,inside:c={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+l.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[l,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},s.languages.css.atrule.inside["selector-function-argument"].inside=c,s.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var p={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},g={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};s.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:p,number:g,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:p,number:g})}(n)}xm.displayName="csv",xm.aliases=[];function xm(n){n.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}Qb.displayName="cue",Qb.aliases=[];function Qb(n){(function(s){var l=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,c=/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source,p="(?:"+c.replace(//g,l)+")";s.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+p+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},s.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=s.languages.cue})(n)}Vb.displayName="cypher",Vb.aliases=[];function Vb(n){n.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}jb.displayName="d",jb.aliases=[];function jb(n){n.register(Kr),n.languages.d=n.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),n.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),n.languages.insertBefore("d","keyword",{property:/\B@\w*/}),n.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}Zb.displayName="dart",Zb.aliases=[];function Zb(n){n.register(Kr),function(s){var l=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],c=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,p={pattern:RegExp(c+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};s.languages.dart=s.languages.extend("clike",{"class-name":[p,{pattern:RegExp(c+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:p.inside}],keyword:l,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),s.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:s.languages.dart}}},string:/[\s\S]+/}},string:void 0}),s.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),s.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":p,keyword:l,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(n)}Wb.displayName="dataweave",Wb.aliases=[];function Wb(n){(function(s){s.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(n)}Gb.displayName="dax",Gb.aliases=[];function Gb(n){n.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}Yb.displayName="dhall",Yb.aliases=[];function Yb(n){n.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},n.languages.dhall.string.inside.interpolation.inside.expression.inside=n.languages.dhall}qb.displayName="django",qb.aliases=["jinja2"];function qb(n){n.register(bs),function(s){s.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var l=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,c=s.languages["markup-templating"];s.hooks.add("before-tokenize",function(p){c.buildPlaceholders(p,"django",l)}),s.hooks.add("after-tokenize",function(p){c.tokenizePlaceholders(p,"django")}),s.languages.jinja2=s.languages.django,s.hooks.add("before-tokenize",function(p){c.buildPlaceholders(p,"jinja2",l)}),s.hooks.add("after-tokenize",function(p){c.tokenizePlaceholders(p,"jinja2")})}(n)}Xb.displayName="dns-zone-file",Xb.aliases=["dns-zone"];function Xb(n){n.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},n.languages["dns-zone"]=n.languages["dns-zone-file"]}Kb.displayName="docker",Kb.aliases=["dockerfile"];function Kb(n){(function(s){var l=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,c=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return l}),p=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,g=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return p}),O={pattern:RegExp(p),greedy:!0},w={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function C(L,H){return L=L.replace(//g,function(){return g}).replace(//g,function(){return c}),RegExp(L,H)}s.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:C(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[O,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:C(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:C(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:C(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:w,string:O,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:w},s.languages.dockerfile=s.languages.docker})(n)}Jb.displayName="dot",Jb.aliases=["gv"];function Jb(n){(function(s){var l="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",c={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:s.languages.markup}};function p(g,O){return RegExp(g.replace(//g,function(){return l}),O)}s.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:p(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:c},"attr-value":{pattern:p(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:c},"attr-name":{pattern:p(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:c},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:p(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:c},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},s.languages.gv=s.languages.dot})(n)}e1.displayName="ebnf",e1.aliases=[];function e1(n){n.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}Mu.displayName="editorconfig",Mu.aliases=[];function Mu(n){n.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}kp.displayName="eiffel",kp.aliases=[];function kp(n){n.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}t1.displayName="ejs",t1.aliases=["eta"];function t1(n){n.register(Ms),n.register(bs),function(s){s.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:s.languages.javascript}},s.hooks.add("before-tokenize",function(l){var c=/<%(?!%)[\s\S]+?%>/g;s.languages["markup-templating"].buildPlaceholders(l,"ejs",c)}),s.hooks.add("after-tokenize",function(l){s.languages["markup-templating"].tokenizePlaceholders(l,"ejs")}),s.languages.eta=s.languages.ejs}(n)}wp.displayName="elixir",wp.aliases=[];function wp(n){n.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},n.languages.elixir.string.forEach(function(s){s.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:n.languages.elixir}}}})}Io.displayName="elm",Io.aliases=[];function Io(n){n.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}n1.displayName="etlua",n1.aliases=[];function n1(n){n.register(vc),n.register(bs),function(s){s.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:s.languages.lua}},s.hooks.add("before-tokenize",function(l){var c=/<%[\s\S]+?%>/g;s.languages["markup-templating"].buildPlaceholders(l,"etlua",c)}),s.hooks.add("after-tokenize",function(l){s.languages["markup-templating"].tokenizePlaceholders(l,"etlua")})}(n)}r1.displayName="erb",r1.aliases=[];function r1(n){n.register(bs),n.register(al),function(s){s.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:s.languages.ruby}},s.hooks.add("before-tokenize",function(l){var c=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;s.languages["markup-templating"].buildPlaceholders(l,"erb",c)}),s.hooks.add("after-tokenize",function(l){s.languages["markup-templating"].tokenizePlaceholders(l,"erb")})}(n)}xp.displayName="erlang",xp.aliases=[];function xp(n){n.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}Lo.displayName="excel-formula",Lo.aliases=["xls","xlsx"];function Lo(n){n.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},n.languages.xlsx=n.languages.xls=n.languages["excel-formula"]}Tm.displayName="fsharp",Tm.aliases=[];function Tm(n){n.register(Kr),n.languages.fsharp=n.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),n.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),n.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),n.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:n.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}Tp.displayName="factor",Tp.aliases=[];function Tp(n){(function(s){var l={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},c={number:/\\[^\s']|%\w/},p={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:l},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:l},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:l}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:c.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:c},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:c}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:c}},g=function(L){return(L+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},O=function(L){return new RegExp("(^|\\s)(?:"+L.map(g).join("|")+")(?=\\s|$)")},w={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(w).forEach(function(L){p[L].pattern=O(w[L])});var C=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];p.combinators.pattern=O(C),s.languages.factor=p})(n)}i1.displayName="false",i1.aliases=[];function i1(n){(function(s){s.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete n.languages["firestore-security-rules"]["class-name"],n.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}a1.displayName="flow",a1.aliases=[];function a1(n){n.register(Ms),function(s){s.languages.flow=s.languages.extend("javascript",{}),s.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),s.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete s.languages.flow.parameter,s.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(s.languages.flow.keyword)||(s.languages.flow.keyword=[s.languages.flow.keyword]),s.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(n)}Cm.displayName="fortran",Cm.aliases=[];function Cm(n){n.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}Am.displayName="ftl",Am.aliases=[];function Am(n){n.register(bs),function(s){for(var l=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,c=0;c<2;c++)l=l.replace(//g,function(){return l});l=l.replace(//g,/[^\s\S]/.source);var p={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return l})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return l})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};p.string[1].inside.interpolation.inside.rest=p,s.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:p}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:p}}}},s.hooks.add("before-tokenize",function(g){var O=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return l}),"gi");s.languages["markup-templating"].buildPlaceholders(g,"ftl",O)}),s.hooks.add("after-tokenize",function(g){s.languages["markup-templating"].tokenizePlaceholders(g,"ftl")})}(n)}jd.displayName="gml",jd.aliases=["gamemakerlanguage"];function jd(n){n.register(Kr),n.languages.gamemakerlanguage=n.languages.gml=n.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}o1.displayName="gap",o1.aliases=[];function o1(n){n.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},n.languages.gap.shell.inside.gap.inside=n.languages.gap}l1.displayName="gcode",l1.aliases=[];function l1(n){n.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}u1.displayName="gdscript",u1.aliases=[];function u1(n){n.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}c1.displayName="gedcom",c1.aliases=[];function c1(n){n.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}d1.displayName="gettext",d1.aliases=["po"];function d1(n){n.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},n.languages.po=n.languages.gettext}h1.displayName="gherkin",h1.aliases=[];function h1(n){(function(s){var l=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;s.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+l+")(?:"+l+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(l),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(n)}p1.displayName="git",p1.aliases=[];function p1(n){n.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}f1.displayName="glsl",f1.aliases=[];function f1(n){n.register(Da),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}m1.displayName="gn",m1.aliases=["gni"];function m1(n){n.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},n.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=n.languages.gn,n.languages.gni=n.languages.gn}g1.displayName="linker-script",g1.aliases=["ld"];function g1(n){n.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},n.languages.ld=n.languages["linker-script"]}b1.displayName="go-module",b1.aliases=["go-mod"];function b1(n){n.languages["go-mod"]=n.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}_m.displayName="gradle",_m.aliases=[];function _m(n){n.register(Kr),function(s){var l={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};s.languages.gradle=s.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),s.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:l,string:/[\s\S]+/}}}),s.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),s.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),l.inside.expression.inside=s.languages.gradle}(n)}O1.displayName="graphql",O1.aliases=[];function O1(n){n.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:n.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},n.hooks.add("after-tokenize",function(l){if(l.language!=="graphql")return;var c=l.tokens.filter(function(ot){return typeof ot!="string"&&ot.type!=="comment"&&ot.type!=="scalar"}),p=0;function g(ot){return c[p+ot]}function O(ot,Ke){Ke=Ke||0;for(var Ot=0;Ot0)){var se=w(/^\{$/,/^\}$/);if(se===-1)continue;for(var Se=p;Se=0&&C(at,"variable-input")}}}}})}y1.displayName="groovy",y1.aliases=[];function y1(n){n.register(Kr),function(s){var l={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};s.languages.groovy=s.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),s.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:l,string:/[\s\S]+/}}}),s.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),s.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),l.inside.expression.inside=s.languages.groovy}(n)}Xl.displayName="textile",Xl.aliases=[];function Xl(n){n.register(zi),function(s){var l=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,c=/\)|\((?![^|()\n]+\))/.source;function p(j,ee){return RegExp(j.replace(//g,function(){return"(?:"+l+")"}).replace(//g,function(){return"(?:"+c+")"}),ee||"")}var g={css:{pattern:/\{[^{}]+\}/,inside:{rest:s.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},O=s.languages.textile=s.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:p(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:p(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:g},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:p(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:p(/(^[*#]+)+/.source),lookbehind:!0,inside:g},punctuation:/^[*#]+/}},table:{pattern:p(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:p(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:g},punctuation:/\||^\./}},inline:{pattern:p(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:p(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:p(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:p(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:p(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:p(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:p(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:p(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:p(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:g},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:p(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:p(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:p(/(^")+/.source),lookbehind:!0,inside:g},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:p(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:p(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:p(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:g},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),w=O.phrase.inside,C={inline:w.inline,link:w.link,image:w.image,footnote:w.footnote,acronym:w.acronym,mark:w.mark};O.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var L=w.inline.inside;L.bold.inside=C,L.italic.inside=C,L.inserted.inside=C,L.deleted.inside=C,L.span.inside=C;var H=w.table.inside;H.inline=C.inline,H.link=C.link,H.image=C.image,H.footnote=C.footnote,H.acronym=C.acronym,H.mark=C.mark}(n)}E1.displayName="haml",E1.aliases=[];function E1(n){n.register(al),function(s){s.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:s.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:s.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:s.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:s.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:s.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:s.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:s.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var l="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",c=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],p={},g=0,O=c.length;g@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},s.hooks.add("before-tokenize",function(l){var c=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;s.languages["markup-templating"].buildPlaceholders(l,"handlebars",c)}),s.hooks.add("after-tokenize",function(l){s.languages["markup-templating"].tokenizePlaceholders(l,"handlebars")}),s.languages.hbs=s.languages.handlebars,s.languages.mustache=s.languages.handlebars}(n)}Cp.displayName="haskell",Cp.aliases=["hs"];function Cp(n){n.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},n.languages.hs=n.languages.haskell}v1.displayName="haxe",v1.aliases=[];function v1(n){n.register(Kr),n.languages.haxe=n.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),n.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.haxe}}},string:/[\s\S]+/}}}),n.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),n.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}Zd.displayName="hcl",Zd.aliases=[];function Zd(n){n.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}Nm.displayName="hlsl",Nm.aliases=[];function Nm(n){n.register(Da),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}k1.displayName="hoon",k1.aliases=[];function k1(n){n.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}w1.displayName="hpkp",w1.aliases=[];function w1(n){n.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}x1.displayName="hsts",x1.aliases=[];function x1(n){n.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}T1.displayName="uri",T1.aliases=["url"];function T1(n){n.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},n.languages.url=n.languages.uri}C1.displayName="http",C1.aliases=[];function C1(n){(function(s){function l(H){return RegExp("(^(?:"+H+"):[ ]*(?![ ]))[^]+","i")}s.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:s.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:l(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:s.languages.csp},{pattern:l(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:s.languages.hpkp},{pattern:l(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:s.languages.hsts},{pattern:l(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var c=s.languages,p={"application/javascript":c.javascript,"application/json":c.json||c.javascript,"application/xml":c.xml,"text/xml":c.xml,"text/html":c.html,"text/css":c.css,"text/plain":c.plain},g={"application/json":!0,"application/xml":!0};function O(H){var j=H.replace(/^[a-z]+\//,""),ee="\\w+/(?:[\\w.-]+\\+)+"+j+"(?![+\\w.-])";return"(?:"+H+"|"+ee+")"}var w;for(var C in p)if(p[C]){w=w||{};var L=g[C]?O(C):C;w[C.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+L+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:p[C]}}w&&s.languages.insertBefore("http","header",w)})(n)}A1.displayName="ichigojam",A1.aliases=[];function A1(n){n.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}_1.displayName="icon",_1.aliases=[];function _1(n){n.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}N1.displayName="icu-message-format",N1.aliases=[];function N1(n){(function(s){function l(C,L){return L<=0?/[]/.source:C.replace(//g,function(){return l(C,L-1)})}var c=/'[{}:=,](?:[^']|'')*'(?!')/,p={pattern:/''/,greedy:!0,alias:"operator"},g={pattern:c,greedy:!0,inside:{escape:p}},O=l(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return c.source}),8),w={pattern:RegExp(O),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};s.languages["icu-message-format"]={argument:{pattern:RegExp(O),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":w,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":w,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+l(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:p,string:g},w.inside.message.inside=s.languages["icu-message-format"],s.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=s.languages["icu-message-format"]})(n)}Rm.displayName="idris",Rm.aliases=["idr"];function Rm(n){n.register(Cp),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}R1.displayName="ignore",R1.aliases=["gitignore","hgignore","npmignore"];function R1(n){(function(s){s.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},s.languages.gitignore=s.languages.ignore,s.languages.hgignore=s.languages.ignore,s.languages.npmignore=s.languages.ignore})(n)}Dc.displayName="inform7",Dc.aliases=[];function Dc(n){n.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},n.languages.inform7.string.inside.substitution.inside.rest=n.languages.inform7,n.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}D1.displayName="io",D1.aliases=[];function D1(n){n.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}Pu.displayName="javadoclike",Pu.aliases=[];function Pu(n){(function(s){var l=s.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function c(g,O){var w="doc-comment",C=s.languages[g];if(C){var L=C[w];if(!L){var H={};H[w]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},C=s.languages.insertBefore(g,"comment",H),L=C[w]}if(L instanceof RegExp&&(L=C[w]={pattern:L}),Array.isArray(L))for(var j=0,ee=L.length;j|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function,delete n.languages.scala.constant}Dm.displayName="javadoc",Dm.aliases=[];function Dm(n){n.register(sl),n.register(Pu),n.register(zi),function(s){var l=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,c=/#\s*\w+(?:\s*\([^()]*\))?/.source,p=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return c});s.languages.javadoc=s.languages.extend("javadoclike",{}),s.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+p+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:s.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:l,lookbehind:!0,inside:s.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:l,lookbehind:!0,inside:{tag:s.languages.markup.tag,entity:s.languages.markup.entity,code:{pattern:/.+/,inside:s.languages.java,alias:"language-java"}}}}}],tag:s.languages.markup.tag,entity:s.languages.markup.entity}),s.languages.javadoclike.addSupport("java",s.languages.javadoc)}(n)}Wd.displayName="javastacktrace",Wd.aliases=[];function Wd(n){n.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}Ap.displayName="jexl",Ap.aliases=[];function Ap(n){n.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}M1.displayName="jolie",M1.aliases=[];function M1(n){n.register(Kr),n.languages.jolie=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),n.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}P1.displayName="jq",P1.aliases=[];function P1(n){(function(s){var l=/\\\((?:[^()]|\([^()]*\))*\)/.source,c=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return l})),p={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+l),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},g=s.languages.jq={comment:/#.*/,property:{pattern:RegExp(c.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:p},string:{pattern:c,lookbehind:!0,greedy:!0,inside:p},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};p.interpolation.inside.content.inside=g})(n)}Im.displayName="js-templates",Im.aliases=[];function Im(n){n.register(Ms),function(s){var l=s.languages.javascript["template-string"],c=l.pattern.source,p=l.inside.interpolation,g=p.inside["interpolation-punctuation"],O=p.pattern.source;function w(Se,at){if(s.languages[Se])return{pattern:RegExp("((?:"+at+")\\s*)"+c),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:Se}}}}s.languages.javascript["template-string"]=[w("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),w("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),w("svg",/\bsvg/.source),w("markdown",/\b(?:markdown|md)/.source),w("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),w("sql",/\bsql/.source),l].filter(Boolean);function C(Se,at){return"___"+at.toUpperCase()+"_"+Se+"___"}function L(Se,at,ot){var Ke={code:Se,grammar:at,language:ot};return s.hooks.run("before-tokenize",Ke),Ke.tokens=s.tokenize(Ke.code,Ke.grammar),s.hooks.run("after-tokenize",Ke),Ke.tokens}function H(Se){var at={};at["interpolation-punctuation"]=g;var ot=s.tokenize(Se,at);if(ot.length===3){var Ke=[1,1];Ke.push.apply(Ke,L(ot[1],s.languages.javascript,"javascript")),ot.splice.apply(ot,Ke)}return new s.Token("interpolation",ot,p.alias,Se)}function j(Se,at,ot){var Ke=s.tokenize(Se,{interpolation:{pattern:RegExp(O),lookbehind:!0}}),Ot=0,kt={},Jt=Ke.map(function(Qn){if(typeof Qn=="string")return Qn;for(var mn=Qn.content,it;Se.indexOf(it=C(Ot++,ot))!==-1;);return kt[it]=mn,it}).join(""),ln=L(Jt,at,ot),yt=Object.keys(kt);Ot=0;function tn(Qn){for(var mn=0;mn=yt.length)return;var it=Qn[mn];if(typeof it=="string"||typeof it.content=="string"){var wr=yt[Ot],An=typeof it=="string"?it:it.content,Ln=An.indexOf(wr);if(Ln!==-1){++Ot;var hr=An.substring(0,Ln),Jn=H(kt[wr]),Ur=An.substring(Ln+wr.length),Nr=[];if(hr&&Nr.push(hr),Nr.push(Jn),Ur){var jr=[Ur];tn(jr),Nr.push.apply(Nr,jr)}typeof it=="string"?(Qn.splice.apply(Qn,[mn,1].concat(Nr)),mn+=Nr.length-1):it.content=Nr}}else{var nr=it.content;Array.isArray(nr)?tn(nr):tn([nr])}}}return tn(ln),new s.Token(ot,ln,"language-"+ot,Se)}var ee={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};s.hooks.add("after-tokenize",function(Se){if(!(Se.language in ee))return;function at(ot){for(var Ke=0,Ot=ot.length;Ke\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return c})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+c),lookbehind:!0,inside:{string:l.string,number:l.number,boolean:l.boolean,keyword:s.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:l,alias:"language-javascript"}}}}),s.languages.javadoclike.addSupport("javascript",s.languages.jsdoc)}(n)}B1.displayName="n4js",B1.aliases=["n4jsd"];function B1(n){n.register(Ms),n.languages.n4js=n.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),n.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),n.languages.n4jsd=n.languages.n4js}$1.displayName="js-extras",$1.aliases=[];function $1(n){n.register(Ms),function(s){s.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+s.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),s.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+s.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),s.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function l(C,L){return RegExp(C.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),L)}s.languages.insertBefore("javascript","keyword",{imports:{pattern:l(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:s.languages.javascript},exports:{pattern:l(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:s.languages.javascript}}),s.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),s.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),s.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:l(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var c=["function","function-variable","method","method-variable","property-access"],p=0;p|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}U1.displayName="julia",U1.aliases=[];function U1(n){n.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}Lm.displayName="keepalived",Lm.aliases=[];function Lm(n){n.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}H1.displayName="keyman",H1.aliases=[];function H1(n){n.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}Mm.displayName="kumir",Mm.aliases=["kum"];function Mm(n){(function(s){var l=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function c(p,g){return RegExp(p.replace(//g,l),g)}s.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:c(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:c(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:c(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:c(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:c(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:c(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:c(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:c(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},s.languages.kum=s.languages.kumir})(n)}Ic.displayName="kusto",Ic.aliases=[];function Ic(n){n.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}z1.displayName="latex",z1.aliases=["context","tex"];function z1(n){(function(s){var l=/\\(?:[^a-z()[\]]|[a-z*]+)/i,c={"equation-command":{pattern:l,alias:"regex"}};s.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:c,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:c,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:l,alias:"selector"},punctuation:/[[\]{}&]/},s.languages.tex=s.languages.latex,s.languages.context=s.languages.latex})(n)}Q1.displayName="latte",Q1.aliases=[];function Q1(n){n.register(Kr),n.register(bs),n.register(Zl),function(s){s.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:s.languages.php}};var l=s.languages.extend("markup",{});s.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:s.languages.php}}}}}},l.tag),s.hooks.add("before-tokenize",function(c){if(c.language==="latte"){var p=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;s.languages["markup-templating"].buildPlaceholders(c,"latte",p),c.grammar=l}}),s.hooks.add("after-tokenize",function(c){s.languages["markup-templating"].tokenizePlaceholders(c,"latte")})}(n)}Rp.displayName="scheme",Rp.aliases=[];function Rp(n){(function(s){s.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(l({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function l(c){for(var p in c)c[p]=c[p].replace(/<[\w\s]+>/g,function(g){return"(?:"+c[g].trim()+")"});return c[p]}})(n)}V1.displayName="lilypond",V1.aliases=["ly"];function V1(n){n.register(Rp),function(s){for(var l=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,c=5,p=0;p/g,function(){return l});l=l.replace(//g,/[^\s\S]/.source);var g=s.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return l}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:s.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};g["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=g,s.languages.ly=g}(n)}j1.displayName="liquid",j1.aliases=[];function j1(n){n.register(bs),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(s){var l=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,c=!1;n.languages["markup-templating"].buildPlaceholders(s,"liquid",l,function(p){var g=/^\{%-?\s*(\w+)/.exec(p);if(g){var O=g[1];if(O==="raw"&&!c)return c=!0,!0;if(O==="endraw")return c=!1,!0}return!c})}),n.hooks.add("after-tokenize",function(s){n.languages["markup-templating"].tokenizePlaceholders(s,"liquid")})}Z1.displayName="lisp",Z1.aliases=["elisp","emacs","emacs-lisp"];function Z1(n){(function(s){function l(Se){return RegExp(/(\()/.source+"(?:"+Se+")"+/(?=[\s\)])/.source)}function c(Se){return RegExp(/([\s([])/.source+"(?:"+Se+")"+/(?=[\s)])/.source)}var p=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,g="&"+p,O="(\\()",w="(?=\\))",C="(?=\\s)",L=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,H={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+p+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+p),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+p),alias:"property"},splice:{pattern:RegExp(",@?"+p),alias:["symbol","variable"]},keyword:[{pattern:RegExp(O+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+C),lookbehind:!0},{pattern:RegExp(O+"(?:append|by|collect|concat|do|finally|for|in|return)"+C),lookbehind:!0}],declare:{pattern:l(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:l(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:c(/nil|t/.source),lookbehind:!0},number:{pattern:c(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(O+"def(?:const|custom|group|var)\\s+"+p),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(p)}},defun:{pattern:RegExp(O+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+p+/\s+\(/.source+L+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+p),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(O+"lambda\\s+\\(\\s*(?:&?"+p+"(?:\\s+&?"+p+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(O+p),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},j={"lisp-marker":RegExp(g),varform:{pattern:RegExp(/\(/.source+p+/\s+(?=\S)/.source+L+/\)/.source),inside:H},argument:{pattern:RegExp(/(^|[\s(])/.source+p),lookbehind:!0,alias:"variable"},rest:H},ee="\\S+(?:\\s+\\S+)*",se={pattern:RegExp(O+L+w),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+ee),inside:j},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+ee),inside:j},keys:{pattern:RegExp("&key\\s+"+ee+"(?:\\s+&allow-other-keys)?"),inside:j},argument:{pattern:RegExp(p),alias:"variable"},punctuation:/[()]/}};H.lambda.inside.arguments=se,H.defun.inside.arguments=s.util.clone(se),H.defun.inside.arguments.inside.sublist=se,s.languages.lisp=H,s.languages.elisp=H,s.languages.emacs=H,s.languages["emacs-lisp"]=H})(n)}W1.displayName="livescript",W1.aliases=[];function W1(n){n.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},n.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=n.languages.livescript}Pm.displayName="llvm",Pm.aliases=[];function Pm(n){(function(s){s.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(n)}G1.displayName="log",G1.aliases=[];function G1(n){n.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:n.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}Y1.displayName="lolcode",Y1.aliases=[];function Y1(n){n.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}Dp.displayName="magma",Dp.aliases=[];function Dp(n){n.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}Yd.displayName="mata",Yd.aliases=[];function Yd(n){(function(s){var l=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,c=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,l);s.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(c),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(n)}hS.displayName="matlab",hS.aliases=[];function hS(n){n.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}pS.displayName="maxscript",pS.aliases=[];function pS(n){(function(s){var l=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;s.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+l.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+l.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:l,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(n)}fS.displayName="mel",fS.aliases=[];function fS(n){n.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},n.languages.mel.code.inside.statement.inside=n.languages.mel}mS.displayName="mermaid",mS.aliases=[];function mS(n){n.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}gS.displayName="metafont",gS.aliases=[];function gS(n){n.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}bS.displayName="mizar",bS.aliases=[];function bS(n){n.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}OS.displayName="mongodb",OS.aliases=[];function OS(n){n.register(Ms),function(s){var l=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],c=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];l=l.map(function(g){return g.replace("$","\\$")});var p="(?:"+l.join("|")+")\\b";s.languages.mongodb=s.languages.extend("javascript",{}),s.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+p+"(?:\\1)?$")}}}),s.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},s.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+c.join("|")+")\\b"),alias:"keyword"}})}(n)}yS.displayName="monkey",yS.aliases=[];function yS(n){n.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}ES.displayName="moonscript",ES.aliases=["moon"];function ES(n){n.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},n.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=n.languages.moonscript,n.languages.moon=n.languages.moonscript}SS.displayName="n1ql",SS.aliases=[];function SS(n){n.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}q1.displayName="nand2tetris-hdl",q1.aliases=[];function q1(n){n.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}Fm.displayName="naniscript",Fm.aliases=["nani"];function Fm(n){(function(s){var l=/\{[^\r\n\[\]{}]*\}/,c={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:l,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};s.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:l,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:c}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:l,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:c},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},s.languages.nani=s.languages.naniscript,s.hooks.add("after-tokenize",function(O){var w=O.tokens;w.forEach(function(C){if(typeof C!="string"&&C.type==="generic-text"){var L=g(C);p(L)||(C.type="bad-line",C.content=L)}})});function p(O){for(var w="[]{}",C=[],L=0;L=&|$!]/}}$m.displayName="neon",$m.aliases=[];function $m(n){n.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}Um.displayName="nevod",Um.aliases=[];function Um(n){n.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}Hm.displayName="nginx",Hm.aliases=[];function Hm(n){(function(s){var l=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;s.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:l}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:l}},punctuation:/[{};]/}})(n)}X1.displayName="nim",X1.aliases=[];function X1(n){n.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}Kl.displayName="nix",Kl.aliases=[];function Kl(n){n.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},n.languages.nix.string.inside.interpolation.inside=n.languages.nix}K1.displayName="nsis",K1.aliases=[];function K1(n){n.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}J1.displayName="ocaml",J1.aliases=[];function J1(n){n.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}eO.displayName="odin",eO.aliases=[];function eO(n){(function(s){var l=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;s.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:l}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:l}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(n)}Jl.displayName="opencl",Jl.aliases=[];function Jl(n){n.register(Da),function(s){s.languages.opencl=s.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),s.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var l={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};s.languages.insertBefore("c","keyword",l),s.languages.cpp&&(l["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},s.languages.insertBefore("cpp","keyword",l))}(n)}Ip.displayName="openqasm",Ip.aliases=["qasm"];function Ip(n){n.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},n.languages.qasm=n.languages.openqasm}Lp.displayName="oz",Lp.aliases=[];function Lp(n){n.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}eu.displayName="parigp",eu.aliases=[];function eu(n){n.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var s=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return s=s.map(function(l){return l.split("").join(" *")}).join("|"),RegExp("\\b(?:"+s+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}Ji.displayName="parser",Ji.aliases=[];function Ji(n){n.register(zi),function(s){var l=s.languages.parser=s.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});l=s.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:l.keyword,variable:l.variable,function:l.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:l.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:l.punctuation}}}),s.languages.insertBefore("inside","punctuation",{expression:l.expression,keyword:l.keyword,variable:l.variable,function:l.function,escape:l.escape,"parser-punctuation":{pattern:l.punctuation,alias:"punctuation"}},l.tag.inside["attr-value"])}(n)}ci.displayName="pascal",ci.aliases=["objectpascal"];function ci(n){n.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},n.languages.pascal.asm.inside=n.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),n.languages.objectpascal=n.languages.pascal}ll.displayName="pascaligo",ll.aliases=[];function ll(n){(function(s){var l=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,c=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return l}),p=s.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return c}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return c}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return c})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},g=["comment","keyword","builtin","operator","punctuation"].reduce(function(O,w){return O[w]=p[w],O},{});p["class-name"].forEach(function(O){O.inside=g})})(n)}tO.displayName="psl",tO.aliases=[];function tO(n){n.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}Oi.displayName="pcaxis",Oi.aliases=["px"];function Oi(n){n.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},n.languages.px=n.languages.pcaxis}zm.displayName="peoplecode",zm.aliases=["pcode"];function zm(n){n.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},n.languages.pcode=n.languages.peoplecode}nO.displayName="phpdoc",nO.aliases=[];function nO(n){n.register(Pu),n.register(Zl),function(s){var l=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;s.languages.phpdoc=s.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+l+"\\s+)?)\\$\\w+"),lookbehind:!0}}),s.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+l),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),s.languages.javadoclike.addSupport("php",s.languages.phpdoc)}(n)}ca.displayName="php-extras",ca.aliases=[];function ca(n){n.register(Zl),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}La.displayName="plant-uml",La.aliases=["plantuml"];function La(n){(function(s){var l=/\$\w+|%[a-z]+%/,c=/\[[^[\]]*\]/.source,p=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,g="(?:-+"+p+"-+|\\.+"+p+"\\.+|-+(?:"+c+"-*)?|"+c+"-+|\\.+(?:"+c+"\\.*)?|"+c+"\\.+)",O=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,w=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,C=/[[?]?[ox]?/.source,L=/[ox]?[\]?]?/.source,H=C+"(?:"+g+w+"|"+O+g+"(?:"+w+")?)"+L;s.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:l}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+H+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:l,punctuation:/[:,;()[\]{}]|\.{3}/},s.languages["plant-uml"].arrow.inside.expression.inside=s.languages["plant-uml"],s.languages.plantuml=s.languages["plant-uml"]})(n)}Ma.displayName="plsql",Ma.aliases=[];function Ma(n){n.register(Iu),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}da.displayName="powerquery",da.aliases=["mscript","pq"];function da(n){n.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},n.languages.pq=n.languages.powerquery,n.languages.mscript=n.languages.powerquery}Mp.displayName="powershell",Mp.aliases=[];function Mp(n){(function(s){var l=s.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};l.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:l},boolean:l.boolean,variable:l.variable}})(n)}Lc.displayName="processing",Lc.aliases=[];function Lc(n){n.register(Kr),n.languages.processing=n.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),n.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}Fu.displayName="prolog",Fu.aliases=[];function Fu(n){n.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}Mc.displayName="promql",Mc.aliases=[];function Mc(n){(function(s){var l=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],c=["on","ignoring","group_right","group_left","by","without"],p=["offset"],g=l.concat(c,p);s.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+c.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+g.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(n)}rO.displayName="properties",rO.aliases=[];function rO(n){n.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}Qm.displayName="protobuf",Qm.aliases=[];function Qm(n){n.register(Kr),function(s){var l=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;s.languages.protobuf=s.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),s.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:l}},builtin:l,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(n)}Pc.displayName="stylus",Pc.aliases=[];function Pc(n){(function(s){var l={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},c={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},p={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:l,number:c,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:l,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:c,punctuation:/[{}()\[\];:,]/};p.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:p}},p.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:p}},s.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:p}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:p}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:p}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:p.interpolation}},rest:p}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:p.interpolation,comment:p.comment,punctuation:/[{},]/}},func:p.func,string:p.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:p.interpolation,punctuation:/[{}()\[\];:.]/}})(n)}iO.displayName="twig",iO.aliases=[];function iO(n){n.register(bs),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(s){if(s.language==="twig"){var l=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(s,"twig",l)}}),n.hooks.add("after-tokenize",function(s){n.languages["markup-templating"].tokenizePlaceholders(s,"twig")})}Vm.displayName="pug",Vm.aliases=[];function Vm(n){n.register(Ms),n.register(zi),function(s){s.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:s.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:s.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:s.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:s.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:s.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:s.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:s.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:s.languages.javascript}],punctuation:/[.\-!=|]+/};for(var l=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,c=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],p={},g=0,O=c.length;g",function(){return w.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[w.language,"language-"+w.language],inside:s.languages[w.language]}}})}s.languages.insertBefore("pug","filter",p)}(n)}jm.displayName="puppet",jm.aliases=[];function jm(n){(function(s){s.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var l=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:s.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];s.languages.puppet.heredoc[0].inside.interpolation=l,s.languages.puppet.string.inside["double-quoted"].inside.interpolation=l})(n)}sO.displayName="pure",sO.aliases=[];function sO(n){(function(s){s.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var l=["c",{lang:"c++",alias:"cpp"},"fortran"],c=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;l.forEach(function(p){var g=p;if(typeof p!="string"&&(g=p.alias,p=p.lang),s.languages[g]){var O={};O["inline-lang-"+g]={pattern:RegExp(c.replace("",p.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:s.util.clone(s.languages.pure["inline-lang"].inside)},O["inline-lang-"+g].inside.rest=s.util.clone(s.languages[g]),s.languages.insertBefore("pure","inline-lang",O)}}),s.languages.c&&(s.languages.pure["inline-lang"].inside.rest=s.util.clone(s.languages.c))})(n)}aO.displayName="purebasic",aO.aliases=["pbfasm"];function aO(n){n.register(Kr),n.languages.purebasic=n.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),n.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete n.languages.purebasic["class-name"],delete n.languages.purebasic.boolean,n.languages.pbfasm=n.languages.purebasic}oO.displayName="purescript",oO.aliases=["purs"];function oO(n){n.register(Cp),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}lO.displayName="qsharp",lO.aliases=["qs"];function lO(n){n.register(Kr),function(s){function l(se,Se){return se.replace(/<<(\d+)>>/g,function(at,ot){return"(?:"+Se[+ot]+")"})}function c(se,Se,at){return RegExp(l(se,Se),at||"")}function p(se,Se){for(var at=0;at>/g,function(){return"(?:"+se+")"});return se.replace(/<>/g,"[^\\s\\S]")}var g={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function O(se){return"\\b(?:"+se.trim().replace(/ /g,"|")+")\\b"}var w=RegExp(O(g.type+" "+g.other)),C=/\b[A-Za-z_]\w*\b/.source,L=l(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[C]),H={keyword:w,punctuation:/[<>()?,.:[\]]/},j=/"(?:\\.|[^\\"])*"/.source;s.languages.qsharp=s.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:c(/(^|[^$\\])<<0>>/.source,[j]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:c(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[L]),lookbehind:!0,inside:H},{pattern:c(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[L]),lookbehind:!0,inside:H}],keyword:w,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),s.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var ee=p(l(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[j]),2);s.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:c(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[ee]),greedy:!0,inside:{interpolation:{pattern:c(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[ee]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:s.languages.qsharp}}},string:/[\s\S]+/}}})}(n),n.languages.qs=n.languages.qsharp}uO.displayName="q",uO.aliases=[];function uO(n){n.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}cO.displayName="qml",cO.aliases=[];function cO(n){n.register(Ms),function(s){for(var l=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,c=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,p=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return l}).replace(//g,function(){return c}),g=0;g<2;g++)p=p.replace(//g,function(){return p});p=p.replace(//g,"[^\\s\\S]"),s.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return p}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:s.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return p}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:s.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(n)}dO.displayName="qore",dO.aliases=[];function dO(n){n.register(Kr),n.languages.qore=n.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}hO.displayName="racket",hO.aliases=["rkt"];function hO(n){n.register(Rp),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}pO.displayName="cshtml",pO.aliases=["razor"];function pO(n){n.register(rl),n.register(zi),function(s){var l=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,c=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function p(Ot,kt){for(var Jt=0;Jt/g,function(){return"(?:"+Ot+")"});return Ot.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+c+")").replace(//g,"(?:"+l+")")}var g=p(/\((?:[^()'"@/]|||)*\)/.source,2),O=p(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),w=p(/\{(?:[^{}'"@/]|||)*\}/.source,2),C=p(/<(?:[^<>'"@/]||)*>/.source,1),L=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+g+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+C+")?"+g+"|"+O+")*"+/(?![?!\.(\[]|<(?!\/))/.source,H=/@(?![\w()])/.source+"|"+L,j="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+H+`)[^"'@]*)+["'])`,ee=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,j),se=/(?!\d)[^\s>\/=$<%]+/.source+ee+/\s*\/?>/.source,Se=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+ee+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+se+"|"+p(/<\1/.source+ee+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+se+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function O(L,H){return L=L.replace(//g,function(){return c}).replace(//g,function(){return p}).replace(//g,function(){return g}),RegExp(L,H)}g=O(g).source,s.languages.jsx=s.languages.extend("markup",l),s.languages.jsx.tag.pattern=O(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),s.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,s.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,s.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,s.languages.jsx.tag.inside.comment=l.comment,s.languages.insertBefore("inside","attr-name",{spread:{pattern:O(//.source),inside:s.languages.jsx}},s.languages.jsx.tag),s.languages.insertBefore("inside","special-attr",{script:{pattern:O(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:s.languages.jsx}}},s.languages.jsx.tag);var w=function(L){return L?typeof L=="string"?L:typeof L.content=="string"?L.content:L.content.map(w).join(""):""},C=function(L){for(var H=[],j=0;j0&&H[H.length-1].tagName===w(ee.content[0].content[1])&&H.pop():ee.content[ee.content.length-1].content==="/>"||H.push({tagName:w(ee.content[0].content[1]),openedBraces:0}):H.length>0&&ee.type==="punctuation"&&ee.content==="{"?H[H.length-1].openedBraces++:H.length>0&&H[H.length-1].openedBraces>0&&ee.type==="punctuation"&&ee.content==="}"?H[H.length-1].openedBraces--:se=!0),(se||typeof ee=="string")&&H.length>0&&H[H.length-1].openedBraces===0){var Se=w(ee);j0&&(typeof L[j-1]=="string"||L[j-1].type==="plain-text")&&(Se=w(L[j-1])+Se,L.splice(j-1,1),j--),L[j]=new s.Token("plain-text",Se,null,Se)}ee.content&&typeof ee.content!="string"&&C(ee.content)}};s.hooks.add("after-tokenize",function(L){L.language!=="jsx"&&L.language!=="tsx"||C(L.tokens)})}(n)}uo.displayName="tsx",uo.aliases=[];function uo(n){n.register(Zm),n.register(Ac),function(s){var l=s.util.clone(s.languages.typescript);s.languages.tsx=s.languages.extend("jsx",l),delete s.languages.tsx.parameter,delete s.languages.tsx["literal-property"];var c=s.languages.tsx.tag;c.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+c.pattern.source+")",c.pattern.flags),c.lookbehind=!0}(n)}ka.displayName="reason",ka.aliases=[];function ka(n){n.register(Kr),n.languages.reason=n.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),n.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete n.languages.reason.function}tu.displayName="rego",tu.aliases=[];function tu(n){n.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}Pa.displayName="renpy",Pa.aliases=["rpy"];function Pa(n){n.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},n.languages.rpy=n.languages.renpy}Pp.displayName="rescript",Pp.aliases=["res"];function Pp(n){n.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},n.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:n.languages.rescript}},string:/[\s\S]+/}}}),n.languages.res=n.languages.rescript}fO.displayName="rest",fO.aliases=[];function fO(n){n.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}mO.displayName="rip",mO.aliases=[];function mO(n){n.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}Wm.displayName="roboconf",Wm.aliases=[];function Wm(n){n.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}co.displayName="robotframework",co.aliases=["robot"];function co(n){(function(s){var l={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},c={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function p(C,L){var H={};H["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var j in L)H[j]=L[j];return H.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},H.variable=c,H.comment=l,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return C}),"im"),alias:"section",inside:H}}var g={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},O={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:c}},w={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:c}};s.languages.robotframework={settings:p("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:p("Variables"),"test-cases":p("Test Cases",{"test-name":O,documentation:g,property:w}),keywords:p("Keywords",{"keyword-name":O,documentation:g,property:w}),tasks:p("Tasks",{"task-name":O,documentation:g,property:w}),comment:l},s.languages.robot=s.languages.robotframework})(n)}nu.displayName="sas",nu.aliases=[];function nu(n){(function(s){var l=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,c=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,p={pattern:RegExp(l+"[bx]"),alias:"number"},g={pattern:/&[a-z_]\w*/i},O={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},w={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},C=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],L={pattern:RegExp(l),greedy:!0},H=/[$%@.(){}\[\];,\\]/,j={pattern:/%?\b\w+(?=\()/,alias:"keyword"},ee={function:j,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":g,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:c,"numeric-constant":p,punctuation:H,string:L},se={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},Se={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},at={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},ot={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},Ke=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,Ot={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return Ke}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return Ke}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:C,function:j,"arg-value":ee["arg-value"],operator:ee.operator,argument:ee.arg,number:c,"numeric-constant":p,punctuation:H,string:L}},kt={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};s.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return l}),"im"),alias:"language-sql",inside:s.languages.sql},"global-statements":at,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:c,"numeric-constant":p,punctuation:H,string:L}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:C,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return l}),"im"),lookbehind:!0,alias:"language-groovy",inside:s.languages.groovy},keyword:kt,"submit-statement":ot,"global-statements":at,number:c,"numeric-constant":p,punctuation:H,string:L}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:C,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return l}),"im"),lookbehind:!0,alias:"language-lua",inside:s.languages.lua},keyword:kt,"submit-statement":ot,"global-statements":at,number:c,"numeric-constant":p,punctuation:H,string:L}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:C,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:ee}},"cas-actions":Ot,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:ee},step:w,keyword:kt,function:j,format:se,altformat:Se,"global-statements":at,number:c,"numeric-constant":p,punctuation:H,string:L}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return l}),"im"),lookbehind:!0,inside:ee},"macro-keyword":O,"macro-variable":g,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":O,"macro-variable":g,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:H}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:C,number:c,"numeric-constant":p}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:ee},"cas-actions":Ot,comment:C,function:j,format:se,altformat:Se,"numeric-constant":p,datetime:{pattern:RegExp(l+"(?:dt?|t)"),alias:"number"},string:L,step:w,keyword:kt,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:c,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:H}})(n)}qd.displayName="shell-session",qd.aliases=["sh-session","shellsession"];function qd(n){n.register(Co),function(s){var l=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");s.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return l}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:s.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},s.languages["sh-session"]=s.languages.shellsession=s.languages["shell-session"]}(n)}Bu.displayName="smali",Bu.aliases=[];function Bu(n){n.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}Fp.displayName="smalltalk",Fp.aliases=[];function Fp(n){n.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}Gm.displayName="smarty",Gm.aliases=[];function Gm(n){n.register(bs),function(s){s.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:s.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},s.languages.smarty["embedded-php"].inside.smarty.inside=s.languages.smarty,s.languages.smarty.string[0].inside.interpolation.inside.expression.inside=s.languages.smarty;var l=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,c=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return l.source}),"g");s.hooks.add("before-tokenize",function(p){var g="{literal}",O="{/literal}",w=!1;s.languages["markup-templating"].buildPlaceholders(p,"smarty",c,function(C){return C===O&&(w=!1),w?!1:(C===g&&(w=!0),!0)})}),s.hooks.add("after-tokenize",function(p){s.languages["markup-templating"].tokenizePlaceholders(p,"smarty")})}(n)}$u.displayName="sml",$u.aliases=["smlnj"];function $u(n){(function(s){var l=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;s.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return l.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:l,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},s.languages.sml["class-name"][0].inside=s.languages.sml,s.languages.smlnj=s.languages.sml})(n)}Bp.displayName="solidity",Bp.aliases=["sol"];function Bp(n){n.register(Kr),n.languages.solidity=n.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),n.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),n.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),n.languages.sol=n.languages.solidity}Ym.displayName="solution-file",Ym.aliases=["sln"];function Ym(n){(function(s){var l={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};s.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:l}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:l}},guid:l,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},s.languages.sln=s.languages["solution-file"]})(n)}Mo.displayName="soy",Mo.aliases=[];function Mo(n){n.register(bs),function(s){var l=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,c=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;s.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:l,greedy:!0},number:c,punctuation:/[\[\].?]/}},string:{pattern:l,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:c,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},s.hooks.add("before-tokenize",function(p){var g=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,O="{literal}",w="{/literal}",C=!1;s.languages["markup-templating"].buildPlaceholders(p,"soy",g,function(L){return L===w&&(C=!1),C?!1:(L===O&&(C=!0),!0)})}),s.hooks.add("after-tokenize",function(p){s.languages["markup-templating"].tokenizePlaceholders(p,"soy")})}(n)}qm.displayName="turtle",qm.aliases=["trig"];function qm(n){n.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},n.languages.trig=n.languages.turtle}ul.displayName="sparql",ul.aliases=["rq"];function ul(n){n.register(qm),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}Xd.displayName="splunk-spl",Xd.aliases=[];function Xd(n){n.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}Xm.displayName="sqf",Xm.aliases=[];function Xm(n){n.register(Kr),n.languages.sqf=n.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),n.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:n.languages.sqf.comment}}}),delete n.languages.sqf["class-name"]}gO.displayName="squirrel",gO.aliases=[];function gO(n){n.register(Kr),n.languages.squirrel=n.languages.extend("clike",{comment:[n.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),n.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}Fc.displayName="stan",Fc.aliases=[];function Fc(n){(function(s){var l=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;s.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+l.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,l],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},s.languages.stan.constraint.inside.expression.inside=s.languages.stan})(n)}$p.displayName="stata",$p.aliases=[];function $p(n){n.register(sl),n.register(Yd),n.register(kc),n.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:n.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:n.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:n.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},n.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=n.languages.stata}Bc.displayName="iecst",Bc.aliases=[];function Bc(n){n.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}bO.displayName="supercollider",bO.aliases=["sclang"];function bO(n){n.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},n.languages.sclang=n.languages.supercollider}Km.displayName="systemd",Km.aliases=[];function Km(n){(function(s){var l={pattern:/^[;#].*/m,greedy:!0},c=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;s.languages.systemd={comment:l,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+c+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+c+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:l,quoted:{pattern:RegExp(/(^|\s)/.source+c),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(n)}Kd.displayName="t4-templating",Kd.aliases=[];function Kd(n){(function(s){function l(p,g,O){return{pattern:RegExp("<#"+p+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+p+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:g,alias:O}}}}function c(p){var g=s.languages[p],O="language-"+p;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:l("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:l("=",g,O),"class-feature":l("\\+",g,O),standard:l("",g,O)}}}}s.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:c})})(n)}Jm.displayName="t4-cs",Jm.aliases=["t4"];function Jm(n){n.register(rl),n.register(Kd),n.languages.t4=n.languages["t4-cs"]=n.languages["t4-templating"].createT4("csharp")}OO.displayName="t4-vb",OO.aliases=[];function OO(n){n.register(Kd),n.register(v),n.languages["t4-vb"]=n.languages["t4-templating"].createT4("vbnet")}yO.displayName="tap",yO.aliases=[];function yO(n){n.register(jl),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}EO.displayName="tcl",EO.aliases=[];function EO(n){n.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}SO.displayName="tt2",SO.aliases=[];function SO(n){n.register(Kr),n.register(bs),function(s){s.languages.tt2=s.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),s.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),s.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),s.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete s.languages.tt2.string,s.hooks.add("before-tokenize",function(l){var c=/\[%[\s\S]+?%\]/g;s.languages["markup-templating"].buildPlaceholders(l,"tt2",c)}),s.hooks.add("after-tokenize",function(l){s.languages["markup-templating"].tokenizePlaceholders(l,"tt2")})}(n)}Uu.displayName="toml",Uu.aliases=[];function Uu(n){(function(s){var l=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function c(p){return p.replace(/__/g,function(){return l})}s.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(c(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(c(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(n)}vO.displayName="tremor",vO.aliases=["trickle","troy"];function vO(n){(function(s){s.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var l=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;s.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+l+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+l+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(l),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:s.languages.tremor}}},string:/[\s\S]+/}},s.languages.troy=s.languages.tremor,s.languages.trickle=s.languages.tremor})(n)}kO.displayName="typoscript",kO.aliases=["tsconfig"];function kO(n){(function(s){var l=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;s.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:l}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:l,number:/^\d+$/,punctuation:/[,|:]/}},keyword:l,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},s.languages.tsconfig=s.languages.typoscript})(n)}eg.displayName="unrealscript",eg.aliases=["uc","uscript"];function eg(n){n.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},n.languages.uc=n.languages.uscript=n.languages.unrealscript}wO.displayName="uorazor",wO.aliases=[];function wO(n){n.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}xO.displayName="v",xO.aliases=[];function xO(n){n.register(Kr),function(s){var l={pattern:/[\s\S]+/,inside:null};s.languages.v=s.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":l}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),l.inside=s.languages.v,s.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),s.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),s.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:s.languages.v.generic.inside}}}})}(n)}Jd.displayName="vala",Jd.aliases=[];function Jd(n){n.register(Kr),n.languages.vala=n.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),n.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:n.languages.vala}},string:/[\s\S]+/}}}),n.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}TO.displayName="velocity",TO.aliases=[];function TO(n){n.register(zi),function(s){s.languages.velocity=s.languages.extend("markup",{});var l={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};l.variable.inside={string:l.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:l.number,boolean:l.boolean,punctuation:l.punctuation},s.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:l}},variable:l.variable}),s.languages.velocity.tag.inside["attr-value"].inside.rest=s.languages.velocity}(n)}CO.displayName="verilog",CO.aliases=[];function CO(n){n.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}AO.displayName="vhdl",AO.aliases=[];function AO(n){n.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}eh.displayName="vim",eh.aliases=[];function eh(n){n.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}_O.displayName="visual-basic",_O.aliases=["vb","vba"];function _O(n){n.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},n.languages.vb=n.languages["visual-basic"],n.languages.vba=n.languages["visual-basic"]}tg.displayName="warpscript",tg.aliases=[];function tg(n){n.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}Up.displayName="wasm",Up.aliases=[];function Up(n){n.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}Hp.displayName="web-idl",Hp.aliases=["webidl"];function Hp(n){(function(s){var l=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,c="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+l+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,p={};s.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+l),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:p},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+c),lookbehind:!0,inside:p},{pattern:RegExp("("+/\bcallback\s+/.source+l+/\s*=\s*/.source+")"+c),lookbehind:!0,inside:p},{pattern:RegExp(/(\btypedef\b\s*)/.source+c),lookbehind:!0,inside:p},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+l),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+l),lookbehind:!0},RegExp(l+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+l),lookbehind:!0},{pattern:RegExp(c+"(?="+/\s*(?:\.{3}\s*)?/.source+l+/\s*[(),;=]/.source+")"),inside:p}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var g in s.languages["web-idl"])g!=="class-name"&&(p[g]=s.languages["web-idl"][g]);s.languages.webidl=s.languages["web-idl"]})(n)}NO.displayName="wgsl",NO.aliases=[];function NO(n){n.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}RO.displayName="wiki",RO.aliases=[];function RO(n){n.register(zi),n.languages.wiki=n.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:n.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),n.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:n.languages.markup.tag.inside}}}})}zp.displayName="wolfram",zp.aliases=["mathematica","nb","wl"];function zp(n){n.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},n.languages.mathematica=n.languages.wolfram,n.languages.wl=n.languages.wolfram,n.languages.nb=n.languages.wolfram}ng.displayName="wren",ng.aliases=[];function ng(n){n.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},n.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:n.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}$c.displayName="xeora",$c.aliases=["xeoracube"];function $c(n){n.register(zi),function(s){s.languages.xeora=s.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),s.languages.insertBefore("inside","punctuation",{variable:s.languages.xeora["function-inline"].inside.variable},s.languages.xeora["function-block"]),s.languages.xeoracube=s.languages.xeora}(n)}Qp.displayName="xml-doc",Qp.aliases=[];function Qp(n){n.register(zi),function(s){function l(O,w){s.languages[O]&&s.languages.insertBefore(O,"comment",{"doc-comment":w})}var c=s.languages.markup.tag,p={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:c}},g={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:c}};l("csharp",p),l("fsharp",p),l("vbnet",g)}(n)}DO.displayName="xojo",DO.aliases=[];function DO(n){n.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}rg.displayName="xquery",rg.aliases=[];function rg(n){n.register(zi),function(s){s.languages.xquery=s.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),s.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,s.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,s.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,s.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:s.languages.xquery,alias:"language-xquery"};var l=function(p){return typeof p=="string"?p:typeof p.content=="string"?p.content:p.content.map(l).join("")},c=function(p){for(var g=[],O=0;O0&&g[g.length-1].tagName===l(w.content[0].content[1])&&g.pop():w.content[w.content.length-1].content==="/>"||g.push({tagName:l(w.content[0].content[1]),openedBraces:0}):g.length>0&&w.type==="punctuation"&&w.content==="{"&&(!p[O+1]||p[O+1].type!=="punctuation"||p[O+1].content!=="{")&&(!p[O-1]||p[O-1].type!=="plain-text"||p[O-1].content!=="{")?g[g.length-1].openedBraces++:g.length>0&&g[g.length-1].openedBraces>0&&w.type==="punctuation"&&w.content==="}"?g[g.length-1].openedBraces--:w.type!=="comment"&&(C=!0)),(C||typeof w=="string")&&g.length>0&&g[g.length-1].openedBraces===0){var L=l(w);O0&&(typeof p[O-1]=="string"||p[O-1].type==="plain-text")&&(L=l(p[O-1])+L,p.splice(O-1,1),O--),/^\s+$/.test(L)?p[O]=L:p[O]=new s.Token("plain-text",L,null,L)}w.content&&typeof w.content!="string"&&c(w.content)}};s.hooks.add("after-tokenize",function(p){p.language==="xquery"&&c(p.tokens)})}(n)}IO.displayName="yang",IO.aliases=[];function IO(n){n.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}LO.displayName="zig",LO.aliases=[];function LO(n){(function(s){function l(L){return function(){return L}}var c=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,p="\\b(?!"+c.source+")(?!\\d)\\w+\\b",g=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,O=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,l(g)),w=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,l(p)),C="(?!\\s)(?:!?\\s*(?:"+O+"\\s*)*"+w+")+";s.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,l(C)).replace(//g,l(g))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,l(C)).replace(//g,l(g))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:c,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},s.languages.zig["class-name"].forEach(function(L){L.inside===null&&(L.inside=s.languages.zig)})})(n)}pe.register(zi),pe.register(ua),pe.register(Kr),pe.register(_u),pe.register(Ms),pe.register(Ob),pe.register(gm),pe.register(bm),pe.register(yb),pe.register(Eb),pe.register(Sb),pe.register(Om),pe.register(vb),pe.register(Iu),pe.register(kb),pe.register(wb),pe.register(xb),pe.register(Tb),pe.register(Da),pe.register(lo),pe.register(Ia),pe.register(Cb),pe.register($d),pe.register(Co),pe.register(jl),pe.register(Ru),pe.register(Ud),pe.register(Ab),pe.register(rl),pe.register(or),pe.register(Hd),pe.register(ym),pe.register(xs),pe.register(ui),pe.register(yp),pe.register(Em),pe.register(ai),pe.register(_c),pe.register(_b),pe.register(Nb),pe.register(Sm),pe.register(vm),pe.register(Rb),pe.register(Ep),pe.register(km),pe.register(Db),pe.register(Sp),pe.register(Rc),pe.register(Ib),pe.register(zd),pe.register(Lb),pe.register(Mb),pe.register(Pb),pe.register(Fb),pe.register(Bb),pe.register($b),pe.register(Ub),pe.register(Hb),pe.register(Lu),pe.register(zb),pe.register(vp),pe.register(Qd),pe.register(xi),pe.register(al),pe.register(Vd),pe.register(wm),pe.register(xm),pe.register(Qb),pe.register(Vb),pe.register(jb),pe.register(Zb),pe.register(Wb),pe.register(Gb),pe.register(Yb),pe.register(il),pe.register(bs),pe.register(qb),pe.register(Xb),pe.register(Kb),pe.register(Jb),pe.register(e1),pe.register(Mu),pe.register(kp),pe.register(t1),pe.register(wp),pe.register(Io),pe.register(vc),pe.register(n1),pe.register(r1),pe.register(xp),pe.register(Lo),pe.register(Tm),pe.register(Tp),pe.register(i1),pe.register(s1),pe.register(a1),pe.register(Cm),pe.register(Am),pe.register(jd),pe.register(o1),pe.register(l1),pe.register(u1),pe.register(c1),pe.register(d1),pe.register(h1),pe.register(p1),pe.register(f1),pe.register(m1),pe.register(g1),pe.register(Cu),pe.register(b1),pe.register(_m),pe.register(O1),pe.register(y1),pe.register(Sc),pe.register(Tc),pe.register(Xl),pe.register(E1),pe.register(S1),pe.register(Cp),pe.register(v1),pe.register(Zd),pe.register(Nm),pe.register(k1),pe.register(w1),pe.register(x1),pe.register(Vl),pe.register(T1),pe.register(C1),pe.register(A1),pe.register(_1),pe.register(N1),pe.register(Rm),pe.register(R1),pe.register(Dc),pe.register(Au),pe.register(D1),pe.register(I1),pe.register(sl),pe.register(Zl),pe.register(Pu),pe.register(L1),pe.register(Dm),pe.register(Wd),pe.register(Ap),pe.register(M1),pe.register(P1),pe.register(Im),pe.register(Ac),pe.register(F1),pe.register(B1),pe.register($1),pe.register(_p),pe.register(Gd),pe.register(Np),pe.register(U1),pe.register(Lm),pe.register(H1),pe.register(Nu),pe.register(Mm),pe.register(Ic),pe.register(z1),pe.register(Q1),pe.register(Rp),pe.register(V1),pe.register(j1),pe.register(Z1),pe.register(W1),pe.register(Pm),pe.register(G1),pe.register(Y1),pe.register(Dp),pe.register(Ao),pe.register(Yd),pe.register(hS),pe.register(pS),pe.register(fS),pe.register(mS),pe.register(gS),pe.register(bS),pe.register(OS),pe.register(yS),pe.register(ES),pe.register(SS),pe.register(q1),pe.register(Fm),pe.register(Bm),pe.register($m),pe.register(Um),pe.register(Hm),pe.register(X1),pe.register(Kl),pe.register(K1),pe.register(Pd),pe.register(J1),pe.register(eO),pe.register(Jl),pe.register(Ip),pe.register(Lp),pe.register(eu),pe.register(Ji),pe.register(ci),pe.register(ll),pe.register(tO),pe.register(Oi),pe.register(zm),pe.register(Fd),pe.register(nO),pe.register(ca),pe.register(La),pe.register(Ma),pe.register(da),pe.register(Mp),pe.register(Lc),pe.register(Fu),pe.register(Mc),pe.register(rO),pe.register(Qm),pe.register(Pc),pe.register(iO),pe.register(Vm),pe.register(jm),pe.register(sO),pe.register(aO),pe.register(oO),pe.register(kc),pe.register(lO),pe.register(uO),pe.register(cO),pe.register(dO),pe.register(Du),pe.register(hO),pe.register(pO),pe.register(Zm),pe.register(uo),pe.register(ka),pe.register(tu),pe.register(Pa),pe.register(Pp),pe.register(fO),pe.register(mO),pe.register(Wm),pe.register(co),pe.register(wc),pe.register(nu),pe.register(xc),pe.register(qd),pe.register(Bu),pe.register(Fp),pe.register(Gm),pe.register($u),pe.register(Bp),pe.register(Ym),pe.register(Mo),pe.register(qm),pe.register(ul),pe.register(Xd),pe.register(Xm),pe.register(gO),pe.register(Fc),pe.register($p),pe.register(Bc),pe.register(bO),pe.register(Cc),pe.register(Km),pe.register(Kd),pe.register(Jm),pe.register(v),pe.register(OO),pe.register(yO),pe.register(EO),pe.register(SO),pe.register(Uu),pe.register(vO),pe.register(kO),pe.register(eg),pe.register(wO),pe.register(xO),pe.register(Jd),pe.register(TO),pe.register(CO),pe.register(AO),pe.register(eh),pe.register(_O),pe.register(tg),pe.register(Up),pe.register(Hp),pe.register(NO),pe.register(RO),pe.register(zp),pe.register(ng),pe.register($c),pe.register(Qp),pe.register(DO),pe.register(rg),pe.register(IO),pe.register(LO);function ig(){ig=function(p,g){return new l(p,void 0,g)};var n=RegExp.prototype,s=new WeakMap;function l(p,g,O){var w=new RegExp(p,g);return s.set(w,O||s.get(p)),Hu(w,l.prototype)}function c(p,g){var O=s.get(g);return Object.keys(O).reduce(function(w,C){var L=O[C];if(typeof L=="number")w[C]=p[L];else{for(var H=0;p[L[H]]===void 0&&H+1]+)>/g,function(C,L){var H=O[L];return"$"+(Array.isArray(H)?H.join("$"):H)}))}if(typeof g=="function"){var w=this;return n[Symbol.replace].call(this,p,function(){var C=arguments;return typeof C[C.length-1]!="object"&&(C=[].slice.call(C)).push(c(C,w)),g.apply(this,C)})}return n[Symbol.replace].call(this,p,g)},ig.apply(this,arguments)}function Hu(n,s){return Hu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},Hu(n,s)}function vS(n,s){(s==null||s>n.length)&&(s=n.length);for(var l=0,c=new Array(s);l=n.length?{done:!0}:{done:!1,value:n[c++]}}}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 kS=function(n){return function(s){return s===void 0&&(s={}),function(c,p){if(p&&!c.registered(p))throw new Error('The default language "'+p+'" is not registered with refractor.')}(n,s.defaultLanguage),function(c){Ki(c,"element",l)};function l(c,p,g){var O,w;if(g&&g.tagName==="pre"&&c.tagName==="code"){var C=(c==null||(O=c.data)==null?void 0:O.meta)||(c==null||(w=c.properties)==null?void 0:w.metastring)||"";c.properties.className?typeof c.properties.className=="boolean"?c.properties.className=[]:Array.isArray(c.properties.className)||(c.properties.className=[c.properties.className]):c.properties.className=[];var L,H,j=function(ln){for(var yt,tn=MO(ln.properties.className);!(yt=tn()).done;){var Qn=yt.value;if(Qn.slice(0,9)==="language-")return Qn.slice(9).toLowerCase()}return null}(c);if(!j&&s.defaultLanguage&&c.properties.className.push("language-"+(j=s.defaultLanguage)),c.properties.className.push("code-highlight"),j)try{var ee,se;se=(ee=j)!=null&&ee.includes("diff-")?j.split("-")[1]:j,L=n.highlight(xu(c),se),g.properties.className=(g.properties.className||[]).concat("language-"+se)}catch(ln){if(!s.ignoreMissing||!/Unknown language/.test(ln.message))throw ln;L=c}else L=c;L.children=(H=1,function ln(yt){return yt.reduce(function(tn,Qn){if(Qn.type==="text"){var mn=Qn.value,it=(mn.match(/\n/g)||"").length;if(it===0)Qn.position={start:{line:H,column:1},end:{line:H,column:1}},tn.push(Qn);else for(var wr,An=mn.split(` -`),Ln=MO(An.entries());!(wr=Ln()).done;){var hr=wr.value,Jn=hr[0],Ur=hr[1];tn.push({type:"text",value:Jn===An.length-1?Ur:Ur+` -`,position:{start:{line:H+Jn,column:1},end:{line:H+Jn,column:1}}})}return H+=it,tn}if(Object.prototype.hasOwnProperty.call(Qn,"children")){var Nr=H;return Qn.children=ln(Qn.children),tn.push(Qn),Qn.position={start:{line:Nr,column:1},end:{line:H,column:1}},tn}return tn.push(Qn),tn},[])})(L.children),L.position=L.children.length>0?{start:{line:L.children[0].position.start.line,column:0},end:{line:L.children[L.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var Se,at=function(ln){var yt=/{([\d,-]+)}/,tn=ln.split(",").map(function(it){return it.trim()}).join();if(yt.test(tn)){var Qn=yt.exec(tn)[1],mn=Ls(Qn);return function(it){return mn.includes(it+1)}}return function(){return!1}}(C),ot=function(ln){var yt=ig(/showLineNumbers=(\d+)/i,{lines:1});if(yt.test(ln)){var tn=yt.exec(ln);return Number(tn.groups.lines)}return 1}(C),Ke=function(ln){for(var yt=new Array(ln),tn=0;tn=Qn+1});mn.children=it.children,!C.toLowerCase().includes("showLineNumbers".toLowerCase())&&!s.showLineNumbers||Ot.some(function(wr){return C.toLowerCase().includes(wr)})||(mn.properties.line=[(Qn+ot).toString()],mn.properties.className.push("line-number")),at(Qn)&&mn.properties.className.push("highlight-line"),(j==="diff"||(ln=j)!=null&&ln.includes("diff-"))&&xu(mn).substring(0,1)==="-"?mn.properties.className.push("deleted"):(j==="diff"||(yt=j)!=null&&yt.includes("diff-"))&&xu(mn).substring(0,1)==="+"&&mn.properties.className.push("inserted")},Jt=MO(Ke.entries());!(Se=Jt()).done;)kt();Ke.length>0&&xu(Ke[Ke.length-1]).trim()===""&&Ke.pop(),c.children=Ke}}}},YD=kS(pe),wS=kS(pe),aa=z(91634),sg={},PO={};function gT(n,s){for(var l=s,c=0;c","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),ug=Vp(DS,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),BO=Vp(ug,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has"]}}}),IS=Vp(BO,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),$O={css1:RS,css2:DS,css3:ug,"selectors-3":ug,"selectors-4":BO,latest:BO,progressive:IS};function Po(n){return n>="a"&&n<="z"||n>="A"&&n<="Z"||n==="-"||n==="_"||n==="\\"||n>="\xA0"}function UO(n){return n>="a"&&n<="z"||n>="A"&&n<="Z"||n>="0"&&n<="9"||n==="-"||n==="_"||n>="\xA0"}function jp(n){return n>="a"&&n<="f"||n>="A"&&n<="F"||n>="0"&&n<="9"}var HO={"!":!0,'"':!0,"#":!0,$:!0,"%":!0,"&":!0,"'":!0,"(":!0,")":!0,"*":!0,"+":!0,",":!0,".":!0,"/":!0,";":!0,"<":!0,"=":!0,">":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},zO={"\n":!0,"\r":!0," ":!0,"\f":!0,"\v":!0},LS={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},MS={'"':!0,"'":!0},QO={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},wT=6;function Zp(n){for(var s=n.length,l="",c=0;c="A"&&p<="Z"||p>="a"&&p<="z"||p>="0"&&p<="9"&&c!==0&&!(c===1&&n.charAt(0)==="-"))l+=p;else{var g=p.charCodeAt(0);if((g&63488)===55296){var O=n.charCodeAt(c++);if((g&64512)!==55296||(O&64512)!==56320)throw Error("UCS-2(decode): illegal sequence");g=((g&1023)<<10)+(O&1023)+65536}l+="\\"+g.toString(16)+" "}c++}return l.trim()}function xT(n){for(var s=n.length,l="",c=0;c0,yt=O.pseudoClasses?[!0,O.pseudoClasses.definitions?CS(O.pseudoClasses.definitions):ag,O.pseudoClasses.unknown==="accept"]:[!1,ag,!1],tn=yt[0],Qn=yt[1],mn=yt[2],it=O.pseudoElements?[!0,O.pseudoElements.notation==="singleColon"||O.pseudoElements.notation==="both",!O.pseudoElements.notation||O.pseudoElements.notation==="doubleColon"||O.pseudoElements.notation==="both",O.pseudoElements.definitions?CS(Array.isArray(O.pseudoElements.definitions)?{NoArgument:O.pseudoElements.definitions}:O.pseudoElements.definitions):ag,O.pseudoElements.unknown==="accept"]:[!1,!1,!1,ag,!1],wr=it[0],An=it[1],Ln=it[2],hr=it[3],Jn=it[4],Ur="",Nr=Ur.length,jr=0,nr="",Fe=function(Et){return nr===Et},Bi=function(){return Fe("*")||Po(nr)},Zi=function(Et){jr=Et,nr=Ur.charAt(jr)},Qe=function(){jr++,nr=Ur.charAt(jr)},Xi=function(){var Et=nr;return jr++,nr=Ur.charAt(jr),Et};function As(Et){var fn=Math.min(Nr-1,jr),br=new Error("".concat(VO).concat(Et," Pos: ").concat(fn,"."));throw br.position=fn,br.name="ParserError",br}function Mr(Et,fn){if(!Et)return As(fn)}var zs=function(){Mr(jr=Nr},to=function(Et){Mr(jr=2&&As("Identifiers cannot start with two hyphens with strict mode on."),QO[nr]&&As("Identifiers cannot start with hyphens followed by digits.");jr0?"+":"").concat(s)),l}else return String(s)}function rh(n){if(n.type==="Selector")return n.rules.map(rh).join(", ");if(n.type==="Rule"){var s="",l=n.items,c=n.combinator,p=n.nestedRule;c&&(s+="".concat(c," "));for(var g=0,O=l;g0)return(s.commaSeparated?ih.P:ah.P)(n)}else return String(n)}const CT=[];function ru(n,s){return(s.properties.className||CT).includes(n.name)}function qO(n,s){return s.properties.id===n.name}function AT(n,s){return n.name===s.tagName}function cg(n,s){return function(l,c){let p=zS(l,"tag");const g=zS(c==null?"*":c,"range"),O=[];let w=-1;for(;++w=JO&&n.charCodeAt(s)<=ZS;)L=L*10+(n.charCodeAt(s)-JO),s++;return s===C?null:L}function w(){for(;sg<=l;if(s===0)return g=>g===l;if(s===1)return l<0?ty.trueFunc:g=>g>=l;const c=Math.abs(s),p=(l%c+c)%c;return s>1?g=>g>=l&&g%c===p:g=>g<=l&&g%c===p}function ny(n){const s=n[0];let l=n[1]-1,c=0;if(s<0){const p=-s,g=(l%p+p)%p;return()=>{const O=g+p*c++;return O>l?null:O}}return s===0?l<0?()=>null:()=>c++===0?l:null:(l<0&&(l+=s*Math.ceil(-l/s)),()=>s*c+++l)}function dg(n){return _T(ey(n))}function nI(n){return generate(parse(n))}const Fs={}.hasOwnProperty;function zu(n,s){const l=s||{};function c(p,...g){let O=c.invalid;const w=c.handlers;if(p&&Fs.call(p,n)){const C=String(p[n]);O=Fs.call(w,C)?w[C]:c.unknown}if(O)return O.call(this,p,...g)}return c.handlers=l.handlers||{},c.invalid=l.invalid,c.unknown=l.unknown,c}const NT=dg.default||dg,hg=zu("name",{handlers:{"any-link":hl,blank:Xp,checked:WS,dir:RT,disabled:pg,empty:GS,enabled:DT,"first-child":fg,"first-of-type":IT,has:oh,is:YS,lang:MT,"last-child":PT,"last-of-type":mg,not:gg,"nth-child":qS,"nth-last-child":XS,"nth-last-of-type":KS,"nth-of-type":bg,"only-child":ry,"only-of-type":JS,optional:FT,"read-only":BT,"read-write":ev,required:tv,root:nv,scope:$T},invalid:LT,unknown:iv});function hl(n,s){return(s.tagName==="a"||s.tagName==="area"||s.tagName==="link")&&Uc(s,"href")}function Ka(n,s){if(n.shallow)throw new Error("Cannot use `:"+s.name+"` without parent")}function Xp(n,s){return!rv(s,l);function l(c){return c.type==="element"||c.type==="text"&&!XO(c)}}function WS(n,s){return s.tagName==="input"||s.tagName==="menuitem"?!!((s.properties.type==="checkbox"||s.properties.type==="radio")&&Uc(s,"checked")):s.tagName==="option"?Uc(s,"selected"):!1}function RT(n,s,l,c,p){return n.argument,n.argument.type,p.direction===n.argument.value}function pg(n,s){return(s.tagName==="button"||s.tagName==="input"||s.tagName==="select"||s.tagName==="textarea"||s.tagName==="optgroup"||s.tagName==="option"||s.tagName==="menuitem"||s.tagName==="fieldset")&&Uc(s,"disabled")}function GS(n,s){return!rv(s,l);function l(c){return c.type==="element"||c.type==="text"}}function DT(n,s){return!pg(n,s)}function fg(n,s,l,c,p){return Ka(p,n),p.elementIndex===0}function IT(n,s,l,c,p){return Ka(p,n),p.typeIndex===0}function Kp(n){let s=n._cachedFn;if(!s){const l=n.argument;if(l.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");s=NT(l.a+"n+"+l.b),n._cachedFn=s}return s}function oh(n,s,l,c,p){n.argument,n.argument.type;const g=_n(je({},p),{found:!1,one:!0,results:[],rootQuery:n.argument,scopeElements:[s],shallow:!1});return Qu(g,{type:"root",children:s.children}),g.results.length>0}function LT(){}function YS(n,s,l,c,p){n.argument,n.argument.type;const g=_n(je({},p),{found:!1,one:!0,results:[],rootQuery:n.argument,scopeElements:[s],shallow:!1});return Qu(g,s),g.results[0]===s}function MT(n,s,l,c,p){return n.argument,n.argument.type,p.language!==""&&p.language!==void 0&&Xa(p.language,(0,ih.Q)(n.argument.value)).length>0}function PT(n,s,l,c,p){return Ka(p,n),!!(p.elementCount&&p.elementIndex===p.elementCount-1)}function mg(n,s,l,c,p){return Ka(p,n),typeof p.typeIndex=="number"&&typeof p.typeCount=="number"&&p.typeIndex===p.typeCount-1}function gg(n,s,l,c,p){return!YS(n,s,l,c,p)}function qS(n,s,l,c,p){const g=Kp(n);return Ka(p,n),typeof p.elementIndex=="number"&&g(p.elementIndex)}function XS(n,s,l,c,p){const g=Kp(n);return Ka(p,n),!!(typeof p.elementCount=="number"&&typeof p.elementIndex=="number"&&g(p.elementCount-p.elementIndex-1))}function KS(n,s,l,c,p){const g=Kp(n);return Ka(p,n),typeof p.typeCount=="number"&&typeof p.typeIndex=="number"&&g(p.typeCount-1-p.typeIndex)}function bg(n,s,l,c,p){const g=Kp(n);return Ka(p,n),typeof p.typeIndex=="number"&&g(p.typeIndex)}function ry(n,s,l,c,p){return Ka(p,n),p.elementCount===1}function JS(n,s,l,c,p){return Ka(p,n),p.typeCount===1}function FT(n,s){return!tv(n,s)}function BT(n,s,l,c,p){return!ev(n,s,l,c,p)}function ev(n,s,l,c,p){return s.tagName==="input"||s.tagName==="textarea"?!Uc(s,"readOnly")&&!Uc(s,"disabled"):!!p.editableOrEditingHost}function tv(n,s){return(s.tagName==="input"||s.tagName==="textarea"||s.tagName==="select")&&Uc(s,"required")}function nv(n,s,l,c,p){return!!((!c||c.type==="root")&&p.schema&&(p.schema.space==="html"||p.schema.space==="svg")&&(s.tagName==="html"||s.tagName==="svg"))}function $T(n,s,l,c,p){return p.scopeElements.includes(s)}function rv(n,s){const l=n.children;let c=-1;for(;++c"?"directChild":"descendant";iy(g,L,C)}else n.found=!0,n.results.includes(l)||n.results.push(l)}w.combinator===void 0?iy(g,"descendant",w):w.combinator==="~"&&iy(g,"generalSibling",w)}return g}function Jp(n,s){return n&&s&&n.length>0&&s.length>0?[...n,...s]:n&&n.length>0?n:s&&s.length>0?s:HT}function sy(n,s){if(s.type==="element"){const l=s.tagName.toUpperCase(),c=(n.types.get(l)||0)+1;n.count++,n.types.set(l,c)}}function ef(n,s,l,c,p,g){let O={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const w=US(n,l);if(l.type==="element"){let C=n.rootQuery.rules;p&&p!==g&&(C=n.rootQuery.rules.filter(L=>L.combinator===void 0||L.combinator===">"&&p===g)),O=QT(n,Jp(s,C),l,c,p)}return"children"in l&&!n.shallow&&!(n.one&&n.found)&&zT(n,O,l,g),w(),O}function rI(n,s,l){const c=pi(n,s,l);return c.one=!0,c.shallow=!0,walk(c,s||void 0),c.results.length>0}function Og(n,s,l){const c=pi(n,s,l);return c.one=!0,walk(c,s||void 0),c.results[0]}function oa(n,s,l){const c=pi(n,s,l);return Qu(c,s||void 0),c.results}function pi(n,s,l){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:PS(n),schema:l==="svg"?aa.YP:aa.dy,scopeElements:s?s.type==="root"?s.children:[s]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const sv=(n=[],s="")=>(n.forEach(l=>{l.type==="text"?s+=l.value:l.type==="element"&&l.children&&Array.isArray(l.children)&&(s+=sv(l.children))}),s);var VT=n=>{const{selector:s,rewrite:l}=n||{};return c=>{if(!(!l||typeof l!="function")){if(s&&typeof s=="string"){const p=oa(s,c);p&&p.length>0&&Ki(c,p,(g,O,w)=>{l(g,O,w)});return}Ki(c,(p,g,O)=>{l(p,g,O)})}}};const jT=(n="")=>(n.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((s,l)=>(s[l.slice(0,l.indexOf("="))]=l.slice(l.indexOf("=")+1),s),{}),ZT=(n=[],s)=>{let l=s;for(;l>-1;){if(l--,!n[l])return;if(n[l]&&n[l].value&&n[l].value.replace(/(\n|\s)/g,"")!==""||n[l].type!=="text")return!/^rehype:/.test(n[l].value)||n[l].type!=="comment"?void 0:n[l]}},av=(n=[],s,l,c)=>{let p=s;for(;p/,"$2")||"")?void 0:c?av(n,p,"pre",c)?void 0:(g.value=(g.value||"").replace(/^(\n|\s)+/,""),g):(g.value=(g.value||"").replace(/^(\n|\s)+/,""),g)}},ov=({value:n=""})=>{const s=jT(n.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(s).forEach(l=>{s[l]==="true"&&(s[l]=!0),s[l]==="false"&&(s[l]=!1),typeof s[l]=="string"&&!/^0/.test(s[l])&&!isNaN(+s[l])&&(s[l]=+s[l])}),s},lv=(n,s,l)=>l==="string"?_n(je({},n),{"data-config":JSON.stringify(_n(je({},s),{rehyp:!0}))}):l==="attr"?je(je({},n),s):_n(je({},n),{"data-config":_n(je({},s),{rehyp:!0})});var WT=(n={})=>{const{properties:s="data",codeBlockParames:l=!0}=n;return c=>{Ki(c,"element",(p,g,O)=>{if(l&&p.tagName==="pre"&&p&&Array.isArray(p.children)&&O&&Array.isArray(O.children)&&O.children.length>1){const w=p.children[0];if(w&&w.tagName==="code"&&typeof g=="number"){const C=ZT(O.children,g);if(C){const L=ov(C);Object.keys(L).length>0&&(p.properties=_n(je({},p.properties),{"data-type":"rehyp"}),w.properties=lv(w.properties,L,s))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(p.tagName)&&O&&Array.isArray(O.children)&&typeof g=="number"){const w=av(O.children,g,"",l);if(w){const C=ov(w);Object.keys(C).length>0&&(p.properties=lv(p.properties,C,s))}}})}};const uv=-1,yg=0,Eg=1,Sg=2,vg=3,ay=4,oy=5,ly=6,cv=7,dv=8,hv=typeof self=="object"?self:globalThis,GT=(n,s)=>{const l=(p,g)=>(n.set(g,p),p),c=p=>{if(n.has(p))return n.get(p);const[g,O]=s[p];switch(g){case yg:case uv:return l(O,p);case Eg:{const w=l([],p);for(const C of O)w.push(c(C));return w}case Sg:{const w=l({},p);for(const[C,L]of O)w[c(C)]=c(L);return w}case vg:return l(new Date(O),p);case ay:{const{source:w,flags:C}=O;return l(new RegExp(w,C),p)}case oy:{const w=l(new Map,p);for(const[C,L]of O)w.set(c(C),c(L));return w}case ly:{const w=l(new Set,p);for(const C of O)w.add(c(C));return w}case cv:{const{name:w,message:C}=O;return l(new hv[w](C),p)}case dv:return l(BigInt(O),p);case"BigInt":return l(Object(BigInt(O)),p)}return l(new hv[g](O),p)};return c},pv=n=>GT(new Map,n)(0),lh="",{toString:uy}={},{keys:YT}=Object,tf=n=>{const s=typeof n;if(s!=="object"||!n)return[yg,s];const l=uy.call(n).slice(8,-1);switch(l){case"Array":return[Eg,lh];case"Object":return[Sg,lh];case"Date":return[vg,lh];case"RegExp":return[ay,lh];case"Map":return[oy,lh];case"Set":return[ly,lh]}return l.includes("Array")?[Eg,l]:l.includes("Error")?[cv,l]:[Sg,l]},kg=([n,s])=>n===yg&&(s==="function"||s==="symbol"),qT=(n,s,l,c)=>{const p=(O,w)=>{const C=c.push(O)-1;return l.set(w,C),C},g=O=>{if(l.has(O))return l.get(O);let[w,C]=tf(O);switch(w){case yg:{let H=O;switch(C){case"bigint":w=dv,H=O.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+C);H=null;break;case"undefined":return p([uv],O)}return p([w,H],O)}case Eg:{if(C)return p([C,[...O]],O);const H=[],j=p([w,H],O);for(const ee of O)H.push(g(ee));return j}case Sg:{if(C)switch(C){case"BigInt":return p([C,O.toString()],O);case"Boolean":case"Number":case"String":return p([C,O.valueOf()],O)}if(s&&"toJSON"in O)return g(O.toJSON());const H=[],j=p([w,H],O);for(const ee of YT(O))(n||!kg(tf(O[ee])))&&H.push([g(ee),g(O[ee])]);return j}case vg:return p([w,O.toISOString()],O);case ay:{const{source:H,flags:j}=O;return p([w,{source:H,flags:j}],O)}case oy:{const H=[],j=p([w,H],O);for(const[ee,se]of O)(n||!(kg(tf(ee))||kg(tf(se))))&&H.push([g(ee),g(se)]);return j}case ly:{const H=[],j=p([w,H],O);for(const ee of O)(n||!kg(tf(ee)))&&H.push(g(ee));return j}}const{message:L}=O;return p([w,{name:C,message:L}],O)};return g},fv=(n,{json:s,lossy:l}={})=>{const c=[];return qT(!(s||l),!!s,new Map,c)(n),c};var Hc=typeof structuredClone=="function"?(n,s)=>s&&("json"in s||"lossy"in s)?pv(fv(n,s)):structuredClone(n):(n,s)=>pv(fv(n,s));const mv=/[#.]/g;function XT(n,s){const l=n||"",c={};let p=0,g,O;for(;p-1&&g<=s.length){let O=0;for(;;){let w=l[O];if(w===void 0){const C=iu(s,l[O-1]);w=C===-1?s.length+1:C+1,l[O]=w}if(w>g)return{line:O+1,column:g-(O>0?l[O-1]:0)+1,offset:g};O++}}}function p(g){if(g&&typeof g.line=="number"&&typeof g.column=="number"&&!Number.isNaN(g.line)&&!Number.isNaN(g.column)){for(;l.length1?l[g.line-2]:0)+g.column-1;if(O=55296&&n<=57343}function Ag(n){return n>=56320&&n<=57343}function fC(n,s){return(n-55296)*1024+9216+s}function _v(n){return n!==32&&n!==10&&n!==13&&n!==9&&n!==12&&n>=1&&n<=31||n>=127&&n<=159}function Nv(n){return n>=64976&&n<=65007||Cv.has(n)}var dt;(function(n){n.controlCharacterInInputStream="control-character-in-input-stream",n.noncharacterInInputStream="noncharacter-in-input-stream",n.surrogateInInputStream="surrogate-in-input-stream",n.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",n.endTagWithAttributes="end-tag-with-attributes",n.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",n.unexpectedSolidusInTag="unexpected-solidus-in-tag",n.unexpectedNullCharacter="unexpected-null-character",n.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",n.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",n.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",n.missingEndTagName="missing-end-tag-name",n.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",n.unknownNamedCharacterReference="unknown-named-character-reference",n.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",n.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",n.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",n.eofBeforeTagName="eof-before-tag-name",n.eofInTag="eof-in-tag",n.missingAttributeValue="missing-attribute-value",n.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",n.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",n.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",n.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",n.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",n.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",n.missingDoctypePublicIdentifier="missing-doctype-public-identifier",n.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",n.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",n.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",n.cdataInHtmlContent="cdata-in-html-content",n.incorrectlyOpenedComment="incorrectly-opened-comment",n.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",n.eofInDoctype="eof-in-doctype",n.nestedComment="nested-comment",n.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",n.eofInComment="eof-in-comment",n.incorrectlyClosedComment="incorrectly-closed-comment",n.eofInCdata="eof-in-cdata",n.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",n.nullCharacterReference="null-character-reference",n.surrogateCharacterReference="surrogate-character-reference",n.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",n.controlCharacterReference="control-character-reference",n.noncharacterCharacterReference="noncharacter-character-reference",n.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",n.missingDoctypeName="missing-doctype-name",n.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",n.duplicateAttribute="duplicate-attribute",n.nonConformingDoctype="non-conforming-doctype",n.missingDoctype="missing-doctype",n.misplacedDoctype="misplaced-doctype",n.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",n.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",n.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",n.openElementsLeftAfterEof="open-elements-left-after-eof",n.abandonedHeadElementChild="abandoned-head-element-child",n.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",n.nestedNoscriptInHead="nested-noscript-in-head",n.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(dt=dt||(dt={}));const mC=65536;class Rv{constructor(s){this.handler=s,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=mC,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(s){const{line:l,col:c,offset:p}=this;return{code:s,startLine:l,endLine:l,startCol:c,endCol:c,startOffset:p,endOffset:p}}_err(s){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(s)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(s){if(this.pos!==this.html.length-1){const l=this.html.charCodeAt(this.pos+1);if(Ag(l))return this.pos++,this._addGap(),fC(s,l)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Oe.EOF;return this._err(dt.surrogateInInputStream),s}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(s,l){this.html.length>0?this.html+=s:this.html=s,this.endOfChunkHit=!1,this.lastChunkWritten=l}insertHtmlAtCurrentPos(s){this.html=this.html.substring(0,this.pos+1)+s+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(s,l){if(this.pos+s.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(l)return this.html.startsWith(s,this.pos);for(let c=0;c=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Oe.EOF;const c=this.html.charCodeAt(l);return c===Oe.CARRIAGE_RETURN?Oe.LINE_FEED:c}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Oe.EOF;let s=this.html.charCodeAt(this.pos);return s===Oe.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Oe.LINE_FEED):s===Oe.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Av(s)&&(s=this._processSurrogate(s)),this.handler.onParseError===null||s>31&&s<127||s===Oe.LINE_FEED||s===Oe.CARRIAGE_RETURN||s>159&&s<64976||this._checkForProblematicCharacters(s),s)}_checkForProblematicCharacters(s){_v(s)?this._err(dt.controlCharacterInInputStream):Nv(s)&&this._err(dt.noncharacterInInputStream)}retreat(s){for(this.pos-=s;this.pos=0;l--)if(n.attrs[l].name===s)return n.attrs[l].value;return null}var Vu=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(n=>n.charCodeAt(0))),gC=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(n=>n.charCodeAt(0))),my;const bC=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Iv=(my=String.fromCodePoint)!==null&&my!==void 0?my:function(n){let s="";return n>65535&&(n-=65536,s+=String.fromCharCode(n>>>10&1023|55296),n=56320|n&1023),s+=String.fromCharCode(n),s};function Lv(n){var s;return n>=55296&&n<=57343||n>1114111?65533:(s=bC.get(n))!==null&&s!==void 0?s:n}function aI(n){return Iv(Lv(n))}var Bs;(function(n){n[n.NUM=35]="NUM",n[n.SEMI=59]="SEMI",n[n.EQUALS=61]="EQUALS",n[n.ZERO=48]="ZERO",n[n.NINE=57]="NINE",n[n.LOWER_A=97]="LOWER_A",n[n.LOWER_F=102]="LOWER_F",n[n.LOWER_X=120]="LOWER_X",n[n.LOWER_Z=122]="LOWER_Z",n[n.UPPER_A=65]="UPPER_A",n[n.UPPER_F=70]="UPPER_F",n[n.UPPER_Z=90]="UPPER_Z"})(Bs||(Bs={}));const Mv=32;var pl;(function(n){n[n.VALUE_LENGTH=49152]="VALUE_LENGTH",n[n.BRANCH_LENGTH=16256]="BRANCH_LENGTH",n[n.JUMP_TABLE=127]="JUMP_TABLE"})(pl||(pl={}));function gy(n){return n>=Bs.ZERO&&n<=Bs.NINE}function OC(n){return n>=Bs.UPPER_A&&n<=Bs.UPPER_F||n>=Bs.LOWER_A&&n<=Bs.LOWER_F}function yC(n){return n>=Bs.UPPER_A&&n<=Bs.UPPER_Z||n>=Bs.LOWER_A&&n<=Bs.LOWER_Z||gy(n)}function EC(n){return n===Bs.EQUALS||yC(n)}var Gs;(function(n){n[n.EntityStart=0]="EntityStart",n[n.NumericStart=1]="NumericStart",n[n.NumericDecimal=2]="NumericDecimal",n[n.NumericHex=3]="NumericHex",n[n.NamedEntity=4]="NamedEntity"})(Gs||(Gs={}));var ho;(function(n){n[n.Legacy=0]="Legacy",n[n.Strict=1]="Strict",n[n.Attribute=2]="Attribute"})(ho||(ho={}));class SC{constructor(s,l,c){this.decodeTree=s,this.emitCodePoint=l,this.errors=c,this.state=Gs.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ho.Strict}startEntity(s){this.decodeMode=s,this.state=Gs.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(s,l){switch(this.state){case Gs.EntityStart:return s.charCodeAt(l)===Bs.NUM?(this.state=Gs.NumericStart,this.consumed+=1,this.stateNumericStart(s,l+1)):(this.state=Gs.NamedEntity,this.stateNamedEntity(s,l));case Gs.NumericStart:return this.stateNumericStart(s,l);case Gs.NumericDecimal:return this.stateNumericDecimal(s,l);case Gs.NumericHex:return this.stateNumericHex(s,l);case Gs.NamedEntity:return this.stateNamedEntity(s,l)}}stateNumericStart(s,l){return l>=s.length?-1:(s.charCodeAt(l)|Mv)===Bs.LOWER_X?(this.state=Gs.NumericHex,this.consumed+=1,this.stateNumericHex(s,l+1)):(this.state=Gs.NumericDecimal,this.stateNumericDecimal(s,l))}addToNumericResult(s,l,c,p){if(l!==c){const g=c-l;this.result=this.result*Math.pow(p,g)+parseInt(s.substr(l,g),p),this.consumed+=g}}stateNumericHex(s,l){const c=l;for(;l>14;for(;l>14,g!==0){if(O===Bs.SEMI)return this.emitNamedEntityData(this.treeIndex,g,this.consumed+this.excess);this.decodeMode!==ho.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var s;const{result:l,decodeTree:c}=this,p=(c[l]&pl.VALUE_LENGTH)>>14;return this.emitNamedEntityData(l,p,this.consumed),(s=this.errors)===null||s===void 0||s.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(s,l,c){const{decodeTree:p}=this;return this.emitCodePoint(l===1?p[s]&~pl.VALUE_LENGTH:p[s+1],c),l===3&&this.emitCodePoint(p[s+2],c),c}end(){var s;switch(this.state){case Gs.NamedEntity:return this.result!==0&&(this.decodeMode!==ho.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Gs.NumericDecimal:return this.emitNumericEntity(0,2);case Gs.NumericHex:return this.emitNumericEntity(0,3);case Gs.NumericStart:return(s=this.errors)===null||s===void 0||s.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Gs.EntityStart:return 0}}}function Pv(n){let s="";const l=new SC(n,c=>s+=Iv(c));return function(p,g){let O=0,w=0;for(;(w=p.indexOf("&",w))>=0;){s+=p.slice(O,w),l.startEntity(g);const L=l.write(p,w+1);if(L<0){O=w+l.end();break}O=w+L,w=L===0?O+1:O}const C=s+p.slice(O);return s="",C}}function Fv(n,s,l,c){const p=(s&pl.BRANCH_LENGTH)>>7,g=s&pl.JUMP_TABLE;if(p===0)return g!==0&&c===g?l:-1;if(g){const C=c-g;return C<0||C>=p?-1:n[l+C]-1}let O=l,w=O+p-1;for(;O<=w;){const C=O+w>>>1,L=n[C];if(Lc)w=C-1;else return n[C+p]}return-1}const by=Pv(Vu),ds=Pv(gC);function Bv(n,s=ho.Legacy){return by(n,s)}function oI(n){return by(n,ho.Attribute)}function lI(n){return by(n,ho.Strict)}function uI(n){return ds(n,ho.Strict)}var Wt;(function(n){n.HTML="http://www.w3.org/1999/xhtml",n.MATHML="http://www.w3.org/1998/Math/MathML",n.SVG="http://www.w3.org/2000/svg",n.XLINK="http://www.w3.org/1999/xlink",n.XML="http://www.w3.org/XML/1998/namespace",n.XMLNS="http://www.w3.org/2000/xmlns/"})(Wt=Wt||(Wt={}));var Bo;(function(n){n.TYPE="type",n.ACTION="action",n.ENCODING="encoding",n.PROMPT="prompt",n.NAME="name",n.COLOR="color",n.FACE="face",n.SIZE="size"})(Bo=Bo||(Bo={}));var Ja;(function(n){n.NO_QUIRKS="no-quirks",n.QUIRKS="quirks",n.LIMITED_QUIRKS="limited-quirks"})(Ja=Ja||(Ja={}));var vt;(function(n){n.A="a",n.ADDRESS="address",n.ANNOTATION_XML="annotation-xml",n.APPLET="applet",n.AREA="area",n.ARTICLE="article",n.ASIDE="aside",n.B="b",n.BASE="base",n.BASEFONT="basefont",n.BGSOUND="bgsound",n.BIG="big",n.BLOCKQUOTE="blockquote",n.BODY="body",n.BR="br",n.BUTTON="button",n.CAPTION="caption",n.CENTER="center",n.CODE="code",n.COL="col",n.COLGROUP="colgroup",n.DD="dd",n.DESC="desc",n.DETAILS="details",n.DIALOG="dialog",n.DIR="dir",n.DIV="div",n.DL="dl",n.DT="dt",n.EM="em",n.EMBED="embed",n.FIELDSET="fieldset",n.FIGCAPTION="figcaption",n.FIGURE="figure",n.FONT="font",n.FOOTER="footer",n.FOREIGN_OBJECT="foreignObject",n.FORM="form",n.FRAME="frame",n.FRAMESET="frameset",n.H1="h1",n.H2="h2",n.H3="h3",n.H4="h4",n.H5="h5",n.H6="h6",n.HEAD="head",n.HEADER="header",n.HGROUP="hgroup",n.HR="hr",n.HTML="html",n.I="i",n.IMG="img",n.IMAGE="image",n.INPUT="input",n.IFRAME="iframe",n.KEYGEN="keygen",n.LABEL="label",n.LI="li",n.LINK="link",n.LISTING="listing",n.MAIN="main",n.MALIGNMARK="malignmark",n.MARQUEE="marquee",n.MATH="math",n.MENU="menu",n.META="meta",n.MGLYPH="mglyph",n.MI="mi",n.MO="mo",n.MN="mn",n.MS="ms",n.MTEXT="mtext",n.NAV="nav",n.NOBR="nobr",n.NOFRAMES="noframes",n.NOEMBED="noembed",n.NOSCRIPT="noscript",n.OBJECT="object",n.OL="ol",n.OPTGROUP="optgroup",n.OPTION="option",n.P="p",n.PARAM="param",n.PLAINTEXT="plaintext",n.PRE="pre",n.RB="rb",n.RP="rp",n.RT="rt",n.RTC="rtc",n.RUBY="ruby",n.S="s",n.SCRIPT="script",n.SECTION="section",n.SELECT="select",n.SOURCE="source",n.SMALL="small",n.SPAN="span",n.STRIKE="strike",n.STRONG="strong",n.STYLE="style",n.SUB="sub",n.SUMMARY="summary",n.SUP="sup",n.TABLE="table",n.TBODY="tbody",n.TEMPLATE="template",n.TEXTAREA="textarea",n.TFOOT="tfoot",n.TD="td",n.TH="th",n.THEAD="thead",n.TITLE="title",n.TR="tr",n.TRACK="track",n.TT="tt",n.U="u",n.UL="ul",n.SVG="svg",n.VAR="var",n.WBR="wbr",n.XMP="xmp"})(vt=vt||(vt={}));var I;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.A=1]="A",n[n.ADDRESS=2]="ADDRESS",n[n.ANNOTATION_XML=3]="ANNOTATION_XML",n[n.APPLET=4]="APPLET",n[n.AREA=5]="AREA",n[n.ARTICLE=6]="ARTICLE",n[n.ASIDE=7]="ASIDE",n[n.B=8]="B",n[n.BASE=9]="BASE",n[n.BASEFONT=10]="BASEFONT",n[n.BGSOUND=11]="BGSOUND",n[n.BIG=12]="BIG",n[n.BLOCKQUOTE=13]="BLOCKQUOTE",n[n.BODY=14]="BODY",n[n.BR=15]="BR",n[n.BUTTON=16]="BUTTON",n[n.CAPTION=17]="CAPTION",n[n.CENTER=18]="CENTER",n[n.CODE=19]="CODE",n[n.COL=20]="COL",n[n.COLGROUP=21]="COLGROUP",n[n.DD=22]="DD",n[n.DESC=23]="DESC",n[n.DETAILS=24]="DETAILS",n[n.DIALOG=25]="DIALOG",n[n.DIR=26]="DIR",n[n.DIV=27]="DIV",n[n.DL=28]="DL",n[n.DT=29]="DT",n[n.EM=30]="EM",n[n.EMBED=31]="EMBED",n[n.FIELDSET=32]="FIELDSET",n[n.FIGCAPTION=33]="FIGCAPTION",n[n.FIGURE=34]="FIGURE",n[n.FONT=35]="FONT",n[n.FOOTER=36]="FOOTER",n[n.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",n[n.FORM=38]="FORM",n[n.FRAME=39]="FRAME",n[n.FRAMESET=40]="FRAMESET",n[n.H1=41]="H1",n[n.H2=42]="H2",n[n.H3=43]="H3",n[n.H4=44]="H4",n[n.H5=45]="H5",n[n.H6=46]="H6",n[n.HEAD=47]="HEAD",n[n.HEADER=48]="HEADER",n[n.HGROUP=49]="HGROUP",n[n.HR=50]="HR",n[n.HTML=51]="HTML",n[n.I=52]="I",n[n.IMG=53]="IMG",n[n.IMAGE=54]="IMAGE",n[n.INPUT=55]="INPUT",n[n.IFRAME=56]="IFRAME",n[n.KEYGEN=57]="KEYGEN",n[n.LABEL=58]="LABEL",n[n.LI=59]="LI",n[n.LINK=60]="LINK",n[n.LISTING=61]="LISTING",n[n.MAIN=62]="MAIN",n[n.MALIGNMARK=63]="MALIGNMARK",n[n.MARQUEE=64]="MARQUEE",n[n.MATH=65]="MATH",n[n.MENU=66]="MENU",n[n.META=67]="META",n[n.MGLYPH=68]="MGLYPH",n[n.MI=69]="MI",n[n.MO=70]="MO",n[n.MN=71]="MN",n[n.MS=72]="MS",n[n.MTEXT=73]="MTEXT",n[n.NAV=74]="NAV",n[n.NOBR=75]="NOBR",n[n.NOFRAMES=76]="NOFRAMES",n[n.NOEMBED=77]="NOEMBED",n[n.NOSCRIPT=78]="NOSCRIPT",n[n.OBJECT=79]="OBJECT",n[n.OL=80]="OL",n[n.OPTGROUP=81]="OPTGROUP",n[n.OPTION=82]="OPTION",n[n.P=83]="P",n[n.PARAM=84]="PARAM",n[n.PLAINTEXT=85]="PLAINTEXT",n[n.PRE=86]="PRE",n[n.RB=87]="RB",n[n.RP=88]="RP",n[n.RT=89]="RT",n[n.RTC=90]="RTC",n[n.RUBY=91]="RUBY",n[n.S=92]="S",n[n.SCRIPT=93]="SCRIPT",n[n.SECTION=94]="SECTION",n[n.SELECT=95]="SELECT",n[n.SOURCE=96]="SOURCE",n[n.SMALL=97]="SMALL",n[n.SPAN=98]="SPAN",n[n.STRIKE=99]="STRIKE",n[n.STRONG=100]="STRONG",n[n.STYLE=101]="STYLE",n[n.SUB=102]="SUB",n[n.SUMMARY=103]="SUMMARY",n[n.SUP=104]="SUP",n[n.TABLE=105]="TABLE",n[n.TBODY=106]="TBODY",n[n.TEMPLATE=107]="TEMPLATE",n[n.TEXTAREA=108]="TEXTAREA",n[n.TFOOT=109]="TFOOT",n[n.TD=110]="TD",n[n.TH=111]="TH",n[n.THEAD=112]="THEAD",n[n.TITLE=113]="TITLE",n[n.TR=114]="TR",n[n.TRACK=115]="TRACK",n[n.TT=116]="TT",n[n.U=117]="U",n[n.UL=118]="UL",n[n.SVG=119]="SVG",n[n.VAR=120]="VAR",n[n.WBR=121]="WBR",n[n.XMP=122]="XMP"})(I=I||(I={}));const vC=new Map([[vt.A,I.A],[vt.ADDRESS,I.ADDRESS],[vt.ANNOTATION_XML,I.ANNOTATION_XML],[vt.APPLET,I.APPLET],[vt.AREA,I.AREA],[vt.ARTICLE,I.ARTICLE],[vt.ASIDE,I.ASIDE],[vt.B,I.B],[vt.BASE,I.BASE],[vt.BASEFONT,I.BASEFONT],[vt.BGSOUND,I.BGSOUND],[vt.BIG,I.BIG],[vt.BLOCKQUOTE,I.BLOCKQUOTE],[vt.BODY,I.BODY],[vt.BR,I.BR],[vt.BUTTON,I.BUTTON],[vt.CAPTION,I.CAPTION],[vt.CENTER,I.CENTER],[vt.CODE,I.CODE],[vt.COL,I.COL],[vt.COLGROUP,I.COLGROUP],[vt.DD,I.DD],[vt.DESC,I.DESC],[vt.DETAILS,I.DETAILS],[vt.DIALOG,I.DIALOG],[vt.DIR,I.DIR],[vt.DIV,I.DIV],[vt.DL,I.DL],[vt.DT,I.DT],[vt.EM,I.EM],[vt.EMBED,I.EMBED],[vt.FIELDSET,I.FIELDSET],[vt.FIGCAPTION,I.FIGCAPTION],[vt.FIGURE,I.FIGURE],[vt.FONT,I.FONT],[vt.FOOTER,I.FOOTER],[vt.FOREIGN_OBJECT,I.FOREIGN_OBJECT],[vt.FORM,I.FORM],[vt.FRAME,I.FRAME],[vt.FRAMESET,I.FRAMESET],[vt.H1,I.H1],[vt.H2,I.H2],[vt.H3,I.H3],[vt.H4,I.H4],[vt.H5,I.H5],[vt.H6,I.H6],[vt.HEAD,I.HEAD],[vt.HEADER,I.HEADER],[vt.HGROUP,I.HGROUP],[vt.HR,I.HR],[vt.HTML,I.HTML],[vt.I,I.I],[vt.IMG,I.IMG],[vt.IMAGE,I.IMAGE],[vt.INPUT,I.INPUT],[vt.IFRAME,I.IFRAME],[vt.KEYGEN,I.KEYGEN],[vt.LABEL,I.LABEL],[vt.LI,I.LI],[vt.LINK,I.LINK],[vt.LISTING,I.LISTING],[vt.MAIN,I.MAIN],[vt.MALIGNMARK,I.MALIGNMARK],[vt.MARQUEE,I.MARQUEE],[vt.MATH,I.MATH],[vt.MENU,I.MENU],[vt.META,I.META],[vt.MGLYPH,I.MGLYPH],[vt.MI,I.MI],[vt.MO,I.MO],[vt.MN,I.MN],[vt.MS,I.MS],[vt.MTEXT,I.MTEXT],[vt.NAV,I.NAV],[vt.NOBR,I.NOBR],[vt.NOFRAMES,I.NOFRAMES],[vt.NOEMBED,I.NOEMBED],[vt.NOSCRIPT,I.NOSCRIPT],[vt.OBJECT,I.OBJECT],[vt.OL,I.OL],[vt.OPTGROUP,I.OPTGROUP],[vt.OPTION,I.OPTION],[vt.P,I.P],[vt.PARAM,I.PARAM],[vt.PLAINTEXT,I.PLAINTEXT],[vt.PRE,I.PRE],[vt.RB,I.RB],[vt.RP,I.RP],[vt.RT,I.RT],[vt.RTC,I.RTC],[vt.RUBY,I.RUBY],[vt.S,I.S],[vt.SCRIPT,I.SCRIPT],[vt.SECTION,I.SECTION],[vt.SELECT,I.SELECT],[vt.SOURCE,I.SOURCE],[vt.SMALL,I.SMALL],[vt.SPAN,I.SPAN],[vt.STRIKE,I.STRIKE],[vt.STRONG,I.STRONG],[vt.STYLE,I.STYLE],[vt.SUB,I.SUB],[vt.SUMMARY,I.SUMMARY],[vt.SUP,I.SUP],[vt.TABLE,I.TABLE],[vt.TBODY,I.TBODY],[vt.TEMPLATE,I.TEMPLATE],[vt.TEXTAREA,I.TEXTAREA],[vt.TFOOT,I.TFOOT],[vt.TD,I.TD],[vt.TH,I.TH],[vt.THEAD,I.THEAD],[vt.TITLE,I.TITLE],[vt.TR,I.TR],[vt.TRACK,I.TRACK],[vt.TT,I.TT],[vt.U,I.U],[vt.UL,I.UL],[vt.SVG,I.SVG],[vt.VAR,I.VAR],[vt.WBR,I.WBR],[vt.XMP,I.XMP]]);function ch(n){var s;return(s=vC.get(n))!==null&&s!==void 0?s:I.UNKNOWN}const pn=I,_g={[Wt.HTML]:new Set([pn.ADDRESS,pn.APPLET,pn.AREA,pn.ARTICLE,pn.ASIDE,pn.BASE,pn.BASEFONT,pn.BGSOUND,pn.BLOCKQUOTE,pn.BODY,pn.BR,pn.BUTTON,pn.CAPTION,pn.CENTER,pn.COL,pn.COLGROUP,pn.DD,pn.DETAILS,pn.DIR,pn.DIV,pn.DL,pn.DT,pn.EMBED,pn.FIELDSET,pn.FIGCAPTION,pn.FIGURE,pn.FOOTER,pn.FORM,pn.FRAME,pn.FRAMESET,pn.H1,pn.H2,pn.H3,pn.H4,pn.H5,pn.H6,pn.HEAD,pn.HEADER,pn.HGROUP,pn.HR,pn.HTML,pn.IFRAME,pn.IMG,pn.INPUT,pn.LI,pn.LINK,pn.LISTING,pn.MAIN,pn.MARQUEE,pn.MENU,pn.META,pn.NAV,pn.NOEMBED,pn.NOFRAMES,pn.NOSCRIPT,pn.OBJECT,pn.OL,pn.P,pn.PARAM,pn.PLAINTEXT,pn.PRE,pn.SCRIPT,pn.SECTION,pn.SELECT,pn.SOURCE,pn.STYLE,pn.SUMMARY,pn.TABLE,pn.TBODY,pn.TD,pn.TEMPLATE,pn.TEXTAREA,pn.TFOOT,pn.TH,pn.THEAD,pn.TITLE,pn.TR,pn.TRACK,pn.UL,pn.WBR,pn.XMP]),[Wt.MATHML]:new Set([pn.MI,pn.MO,pn.MN,pn.MS,pn.MTEXT,pn.ANNOTATION_XML]),[Wt.SVG]:new Set([pn.TITLE,pn.FOREIGN_OBJECT,pn.DESC]),[Wt.XLINK]:new Set,[Wt.XML]:new Set,[Wt.XMLNS]:new Set};function $s(n){return n===pn.H1||n===pn.H2||n===pn.H3||n===pn.H4||n===pn.H5||n===pn.H6}const $v=new Set([vt.STYLE,vt.SCRIPT,vt.XMP,vt.IFRAME,vt.NOEMBED,vt.NOFRAMES,vt.PLAINTEXT]);function cI(n,s){return $v.has(n)||s&&n===vt.NOSCRIPT}const kC=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var Ae;(function(n){n[n.DATA=0]="DATA",n[n.RCDATA=1]="RCDATA",n[n.RAWTEXT=2]="RAWTEXT",n[n.SCRIPT_DATA=3]="SCRIPT_DATA",n[n.PLAINTEXT=4]="PLAINTEXT",n[n.TAG_OPEN=5]="TAG_OPEN",n[n.END_TAG_OPEN=6]="END_TAG_OPEN",n[n.TAG_NAME=7]="TAG_NAME",n[n.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",n[n.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",n[n.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",n[n.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",n[n.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",n[n.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",n[n.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",n[n.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",n[n.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",n[n.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",n[n.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",n[n.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",n[n.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",n[n.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",n[n.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",n[n.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",n[n.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",n[n.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",n[n.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",n[n.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",n[n.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",n[n.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",n[n.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",n[n.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",n[n.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",n[n.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",n[n.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",n[n.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",n[n.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",n[n.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",n[n.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",n[n.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",n[n.BOGUS_COMMENT=40]="BOGUS_COMMENT",n[n.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",n[n.COMMENT_START=42]="COMMENT_START",n[n.COMMENT_START_DASH=43]="COMMENT_START_DASH",n[n.COMMENT=44]="COMMENT",n[n.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",n[n.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",n[n.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",n[n.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",n[n.COMMENT_END_DASH=49]="COMMENT_END_DASH",n[n.COMMENT_END=50]="COMMENT_END",n[n.COMMENT_END_BANG=51]="COMMENT_END_BANG",n[n.DOCTYPE=52]="DOCTYPE",n[n.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",n[n.DOCTYPE_NAME=54]="DOCTYPE_NAME",n[n.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",n[n.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",n[n.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",n[n.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",n[n.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",n[n.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",n[n.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",n[n.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",n[n.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",n[n.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",n[n.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",n[n.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",n[n.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",n[n.CDATA_SECTION=68]="CDATA_SECTION",n[n.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",n[n.CDATA_SECTION_END=70]="CDATA_SECTION_END",n[n.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",n[n.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",n[n.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",n[n.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",n[n.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",n[n.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",n[n.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",n[n.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(Ae||(Ae={}));const Os={DATA:Ae.DATA,RCDATA:Ae.RCDATA,RAWTEXT:Ae.RAWTEXT,SCRIPT_DATA:Ae.SCRIPT_DATA,PLAINTEXT:Ae.PLAINTEXT,CDATA_SECTION:Ae.CDATA_SECTION};function Fa(n){return n>=Oe.DIGIT_0&&n<=Oe.DIGIT_9}function po(n){return n>=Oe.LATIN_CAPITAL_A&&n<=Oe.LATIN_CAPITAL_Z}function wC(n){return n>=Oe.LATIN_SMALL_A&&n<=Oe.LATIN_SMALL_Z}function ju(n){return wC(n)||po(n)}function Oy(n){return ju(n)||Fa(n)}function yy(n){return n>=Oe.LATIN_CAPITAL_A&&n<=Oe.LATIN_CAPITAL_F}function Ng(n){return n>=Oe.LATIN_SMALL_A&&n<=Oe.LATIN_SMALL_F}function Uv(n){return Fa(n)||yy(n)||Ng(n)}function dh(n){return n+32}function Ey(n){return n===Oe.SPACE||n===Oe.LINE_FEED||n===Oe.TABULATION||n===Oe.FORM_FEED}function Rg(n){return n===Oe.EQUALS_SIGN||Oy(n)}function au(n){return Ey(n)||n===Oe.SOLIDUS||n===Oe.GREATER_THAN_SIGN}class xC{constructor(s,l){this.options=s,this.handler=l,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Ae.DATA,this.returnState=Ae.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Rv(l),this.currentLocation=this.getCurrentLocation(-1)}_err(s){var l,c;(c=(l=this.handler).onParseError)===null||c===void 0||c.call(l,this.preprocessor.getError(s))}getCurrentLocation(s){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-s,startOffset:this.preprocessor.offset-s,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const s=this._consume();this._ensureHibernation()||this._callState(s)}this.inLoop=!1}}pause(){this.paused=!0}resume(s){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||s==null||s())}write(s,l,c){this.active=!0,this.preprocessor.write(s,l),this._runParsingLoop(),this.paused||c==null||c()}insertHtmlAtCurrentPos(s){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(s),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(s){this.consumedAfterSnapshot-=s,this.preprocessor.retreat(s)}_reconsumeInState(s,l){this.state=s,this._callState(l)}_advanceBy(s){this.consumedAfterSnapshot+=s;for(let l=0;l0&&this._err(dt.endTagWithAttributes),s.selfClosing&&this._err(dt.endTagWithTrailingSolidus),this.handler.onEndTag(s)),this.preprocessor.dropParsedChunk()}emitCurrentComment(s){this.prepareToken(s),this.handler.onComment(s),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(s){this.prepareToken(s),this.handler.onDoctype(s),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(s){if(this.currentCharacterToken){switch(s&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=s.startLine,this.currentCharacterToken.location.endCol=s.startCol,this.currentCharacterToken.location.endOffset=s.startOffset),this.currentCharacterToken.type){case di.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case di.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case di.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const s=this.getCurrentLocation(0);s&&(s.endLine=s.startLine,s.endCol=s.startCol,s.endOffset=s.startOffset),this._emitCurrentCharacterToken(s),this.handler.onEof({type:di.EOF,location:s}),this.active=!1}_appendCharToCurrentCharacterToken(s,l){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==s)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=l;return}this._createCharacterToken(s,l)}_emitCodePoint(s){const l=Ey(s)?di.WHITESPACE_CHARACTER:s===Oe.NULL?di.NULL_CHARACTER:di.CHARACTER;this._appendCharToCurrentCharacterToken(l,String.fromCodePoint(s))}_emitChars(s){this._appendCharToCurrentCharacterToken(di.CHARACTER,s)}_matchNamedCharacterReference(s){let l=null,c=0,p=!1;for(let g=0,O=Vu[0];g>=0&&(g=Fv(Vu,O,g+1,s),!(g<0));s=this._consume()){c+=1,O=Vu[g];const w=O&pl.VALUE_LENGTH;if(w){const C=(w>>14)-1;if(s!==Oe.SEMICOLON&&this._isCharacterReferenceInAttribute()&&Rg(this.preprocessor.peek(1))?(l=[Oe.AMPERSAND],g+=C):(l=C===0?[Vu[g]&~pl.VALUE_LENGTH]:C===1?[Vu[++g]]:[Vu[++g],Vu[++g]],c=0,p=s!==Oe.SEMICOLON),C===0){this._consume();break}}}return this._unconsume(c),p&&!this.preprocessor.endOfChunkHit&&this._err(dt.missingSemicolonAfterCharacterReference),this._unconsume(1),l}_isCharacterReferenceInAttribute(){return this.returnState===Ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Ae.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Ae.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(s){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(s):this._emitCodePoint(s)}_callState(s){switch(this.state){case Ae.DATA:{this._stateData(s);break}case Ae.RCDATA:{this._stateRcdata(s);break}case Ae.RAWTEXT:{this._stateRawtext(s);break}case Ae.SCRIPT_DATA:{this._stateScriptData(s);break}case Ae.PLAINTEXT:{this._statePlaintext(s);break}case Ae.TAG_OPEN:{this._stateTagOpen(s);break}case Ae.END_TAG_OPEN:{this._stateEndTagOpen(s);break}case Ae.TAG_NAME:{this._stateTagName(s);break}case Ae.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(s);break}case Ae.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(s);break}case Ae.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(s);break}case Ae.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(s);break}case Ae.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(s);break}case Ae.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(s);break}case Ae.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(s);break}case Ae.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(s);break}case Ae.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(s);break}case Ae.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(s);break}case Ae.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(s);break}case Ae.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(s);break}case Ae.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(s);break}case Ae.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(s);break}case Ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(s);break}case Ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(s);break}case Ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(s);break}case Ae.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(s);break}case Ae.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(s);break}case Ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(s);break}case Ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(s);break}case Ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(s);break}case Ae.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(s);break}case Ae.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(s);break}case Ae.ATTRIBUTE_NAME:{this._stateAttributeName(s);break}case Ae.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(s);break}case Ae.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(s);break}case Ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(s);break}case Ae.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(s);break}case Ae.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(s);break}case Ae.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(s);break}case Ae.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(s);break}case Ae.BOGUS_COMMENT:{this._stateBogusComment(s);break}case Ae.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(s);break}case Ae.COMMENT_START:{this._stateCommentStart(s);break}case Ae.COMMENT_START_DASH:{this._stateCommentStartDash(s);break}case Ae.COMMENT:{this._stateComment(s);break}case Ae.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(s);break}case Ae.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(s);break}case Ae.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(s);break}case Ae.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(s);break}case Ae.COMMENT_END_DASH:{this._stateCommentEndDash(s);break}case Ae.COMMENT_END:{this._stateCommentEnd(s);break}case Ae.COMMENT_END_BANG:{this._stateCommentEndBang(s);break}case Ae.DOCTYPE:{this._stateDoctype(s);break}case Ae.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(s);break}case Ae.DOCTYPE_NAME:{this._stateDoctypeName(s);break}case Ae.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(s);break}case Ae.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(s);break}case Ae.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(s);break}case Ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(s);break}case Ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(s);break}case Ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(s);break}case Ae.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(s);break}case Ae.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(s);break}case Ae.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(s);break}case Ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(s);break}case Ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(s);break}case Ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(s);break}case Ae.BOGUS_DOCTYPE:{this._stateBogusDoctype(s);break}case Ae.CDATA_SECTION:{this._stateCdataSection(s);break}case Ae.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(s);break}case Ae.CDATA_SECTION_END:{this._stateCdataSectionEnd(s);break}case Ae.CHARACTER_REFERENCE:{this._stateCharacterReference(s);break}case Ae.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(s);break}case Ae.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(s);break}case Ae.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(s);break}case Ae.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(s);break}case Ae.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(s);break}case Ae.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(s);break}case Ae.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(s);break}default:throw new Error("Unknown state")}}_stateData(s){switch(s){case Oe.LESS_THAN_SIGN:{this.state=Ae.TAG_OPEN;break}case Oe.AMPERSAND:{this.returnState=Ae.DATA,this.state=Ae.CHARACTER_REFERENCE;break}case Oe.NULL:{this._err(dt.unexpectedNullCharacter),this._emitCodePoint(s);break}case Oe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(s)}}_stateRcdata(s){switch(s){case Oe.AMPERSAND:{this.returnState=Ae.RCDATA,this.state=Ae.CHARACTER_REFERENCE;break}case Oe.LESS_THAN_SIGN:{this.state=Ae.RCDATA_LESS_THAN_SIGN;break}case Oe.NULL:{this._err(dt.unexpectedNullCharacter),this._emitChars(es);break}case Oe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(s)}}_stateRawtext(s){switch(s){case Oe.LESS_THAN_SIGN:{this.state=Ae.RAWTEXT_LESS_THAN_SIGN;break}case Oe.NULL:{this._err(dt.unexpectedNullCharacter),this._emitChars(es);break}case Oe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(s)}}_stateScriptData(s){switch(s){case Oe.LESS_THAN_SIGN:{this.state=Ae.SCRIPT_DATA_LESS_THAN_SIGN;break}case Oe.NULL:{this._err(dt.unexpectedNullCharacter),this._emitChars(es);break}case Oe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(s)}}_statePlaintext(s){switch(s){case Oe.NULL:{this._err(dt.unexpectedNullCharacter),this._emitChars(es);break}case Oe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(s)}}_stateTagOpen(s){if(ju(s))this._createStartTagToken(),this.state=Ae.TAG_NAME,this._stateTagName(s);else switch(s){case Oe.EXCLAMATION_MARK:{this.state=Ae.MARKUP_DECLARATION_OPEN;break}case Oe.SOLIDUS:{this.state=Ae.END_TAG_OPEN;break}case Oe.QUESTION_MARK:{this._err(dt.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Ae.BOGUS_COMMENT,this._stateBogusComment(s);break}case Oe.EOF:{this._err(dt.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(dt.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Ae.DATA,this._stateData(s)}}_stateEndTagOpen(s){if(ju(s))this._createEndTagToken(),this.state=Ae.TAG_NAME,this._stateTagName(s);else switch(s){case Oe.GREATER_THAN_SIGN:{this._err(dt.missingEndTagName),this.state=Ae.DATA;break}case Oe.EOF:{this._err(dt.eofBeforeTagName),this._emitChars("");break}case Oe.NULL:{this._err(dt.unexpectedNullCharacter),this.state=Ae.SCRIPT_DATA_ESCAPED,this._emitChars(es);break}case Oe.EOF:{this._err(dt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Ae.SCRIPT_DATA_ESCAPED,this._emitCodePoint(s)}}_stateScriptDataEscapedLessThanSign(s){s===Oe.SOLIDUS?this.state=Ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ju(s)?(this._emitChars("<"),this.state=Ae.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(s)):(this._emitChars("<"),this.state=Ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(s))}_stateScriptDataEscapedEndTagOpen(s){ju(s)?(this.state=Ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(s)):(this._emitChars("");break}case Oe.NULL:{this._err(dt.unexpectedNullCharacter),this.state=Ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(es);break}case Oe.EOF:{this._err(dt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(s)}}_stateScriptDataDoubleEscapedLessThanSign(s){s===Oe.SOLIDUS?(this.state=Ae.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(s))}_stateScriptDataDoubleEscapeEnd(s){if(this.preprocessor.startsWith(Ts.SCRIPT,!1)&&au(this.preprocessor.peek(Ts.SCRIPT.length))){this._emitCodePoint(s);for(let l=0;l1114111)this._err(dt.characterReferenceOutsideUnicodeRange),this.charRefCode=Oe.REPLACEMENT_CHARACTER;else if(Av(this.charRefCode))this._err(dt.surrogateCharacterReference),this.charRefCode=Oe.REPLACEMENT_CHARACTER;else if(Nv(this.charRefCode))this._err(dt.noncharacterCharacterReference);else if(_v(this.charRefCode)||this.charRefCode===Oe.CARRIAGE_RETURN){this._err(dt.controlCharacterReference);const l=kC.get(this.charRefCode);l!==void 0&&(this.charRefCode=l)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,s)}}const Hv=new Set([I.DD,I.DT,I.LI,I.OPTGROUP,I.OPTION,I.P,I.RB,I.RP,I.RT,I.RTC]),Sy=new Set([...Hv,I.CAPTION,I.COLGROUP,I.TBODY,I.TD,I.TFOOT,I.TH,I.THEAD,I.TR]),nf=new Map([[I.APPLET,Wt.HTML],[I.CAPTION,Wt.HTML],[I.HTML,Wt.HTML],[I.MARQUEE,Wt.HTML],[I.OBJECT,Wt.HTML],[I.TABLE,Wt.HTML],[I.TD,Wt.HTML],[I.TEMPLATE,Wt.HTML],[I.TH,Wt.HTML],[I.ANNOTATION_XML,Wt.MATHML],[I.MI,Wt.MATHML],[I.MN,Wt.MATHML],[I.MO,Wt.MATHML],[I.MS,Wt.MATHML],[I.MTEXT,Wt.MATHML],[I.DESC,Wt.SVG],[I.FOREIGN_OBJECT,Wt.SVG],[I.TITLE,Wt.SVG]]),TC=[I.H1,I.H2,I.H3,I.H4,I.H5,I.H6],CC=[I.TR,I.TEMPLATE,I.HTML],AC=[I.TBODY,I.TFOOT,I.THEAD,I.TEMPLATE,I.HTML],_C=[I.TABLE,I.TEMPLATE,I.HTML],NC=[I.TD,I.TH];class RC{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(s,l,c){this.treeAdapter=l,this.handler=c,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=I.UNKNOWN,this.current=s}_indexOf(s){return this.items.lastIndexOf(s,this.stackTop)}_isInTemplate(){return this.currentTagId===I.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Wt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(s,l){this.stackTop++,this.items[this.stackTop]=s,this.current=s,this.tagIDs[this.stackTop]=l,this.currentTagId=l,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(s,l,!0)}pop(){const s=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(s,!0)}replace(s,l){const c=this._indexOf(s);this.items[c]=l,c===this.stackTop&&(this.current=l)}insertAfter(s,l,c){const p=this._indexOf(s)+1;this.items.splice(p,0,l),this.tagIDs.splice(p,0,c),this.stackTop++,p===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,p===this.stackTop)}popUntilTagNamePopped(s){let l=this.stackTop+1;do l=this.tagIDs.lastIndexOf(s,l-1);while(l>0&&this.treeAdapter.getNamespaceURI(this.items[l])!==Wt.HTML);this.shortenToLength(l<0?0:l)}shortenToLength(s){for(;this.stackTop>=s;){const l=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(l,this.stackTop=0;c--)if(s.includes(this.tagIDs[c])&&this.treeAdapter.getNamespaceURI(this.items[c])===l)return c;return-1}clearBackTo(s,l){const c=this._indexOfTagNames(s,l);this.shortenToLength(c+1)}clearBackToTableContext(){this.clearBackTo(_C,Wt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(AC,Wt.HTML)}clearBackToTableRowContext(){this.clearBackTo(CC,Wt.HTML)}remove(s){const l=this._indexOf(s);l>=0&&(l===this.stackTop?this.pop():(this.items.splice(l,1),this.tagIDs.splice(l,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(s,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===I.BODY?this.items[1]:null}contains(s){return this._indexOf(s)>-1}getCommonAncestor(s){const l=this._indexOf(s)-1;return l>=0?this.items[l]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===I.HTML}hasInScope(s){for(let l=this.stackTop;l>=0;l--){const c=this.tagIDs[l],p=this.treeAdapter.getNamespaceURI(this.items[l]);if(c===s&&p===Wt.HTML)return!0;if(nf.get(c)===p)return!1}return!0}hasNumberedHeaderInScope(){for(let s=this.stackTop;s>=0;s--){const l=this.tagIDs[s],c=this.treeAdapter.getNamespaceURI(this.items[s]);if($s(l)&&c===Wt.HTML)return!0;if(nf.get(l)===c)return!1}return!0}hasInListItemScope(s){for(let l=this.stackTop;l>=0;l--){const c=this.tagIDs[l],p=this.treeAdapter.getNamespaceURI(this.items[l]);if(c===s&&p===Wt.HTML)return!0;if((c===I.UL||c===I.OL)&&p===Wt.HTML||nf.get(c)===p)return!1}return!0}hasInButtonScope(s){for(let l=this.stackTop;l>=0;l--){const c=this.tagIDs[l],p=this.treeAdapter.getNamespaceURI(this.items[l]);if(c===s&&p===Wt.HTML)return!0;if(c===I.BUTTON&&p===Wt.HTML||nf.get(c)===p)return!1}return!0}hasInTableScope(s){for(let l=this.stackTop;l>=0;l--){const c=this.tagIDs[l];if(this.treeAdapter.getNamespaceURI(this.items[l])===Wt.HTML){if(c===s)return!0;if(c===I.TABLE||c===I.TEMPLATE||c===I.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let s=this.stackTop;s>=0;s--){const l=this.tagIDs[s];if(this.treeAdapter.getNamespaceURI(this.items[s])===Wt.HTML){if(l===I.TBODY||l===I.THEAD||l===I.TFOOT)return!0;if(l===I.TABLE||l===I.HTML)return!1}}return!0}hasInSelectScope(s){for(let l=this.stackTop;l>=0;l--){const c=this.tagIDs[l];if(this.treeAdapter.getNamespaceURI(this.items[l])===Wt.HTML){if(c===s)return!0;if(c!==I.OPTION&&c!==I.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Hv.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Sy.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(s){for(;this.currentTagId!==s&&Sy.has(this.currentTagId);)this.pop()}}const vy=3;var $o;(function(n){n[n.Marker=0]="Marker",n[n.Element=1]="Element"})($o=$o||($o={}));const zv={type:$o.Marker};class Qv{constructor(s){this.treeAdapter=s,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(s,l){const c=[],p=l.length,g=this.treeAdapter.getTagName(s),O=this.treeAdapter.getNamespaceURI(s);for(let w=0;w[O.name,O.value]));let g=0;for(let O=0;Op.get(C.name)===C.value)&&(g+=1,g>=vy&&this.entries.splice(w.idx,1))}}insertMarker(){this.entries.unshift(zv)}pushElement(s,l){this._ensureNoahArkCondition(s),this.entries.unshift({type:$o.Element,element:s,token:l})}insertElementAfterBookmark(s,l){const c=this.entries.indexOf(this.bookmark);this.entries.splice(c,0,{type:$o.Element,element:s,token:l})}removeEntry(s){const l=this.entries.indexOf(s);l>=0&&this.entries.splice(l,1)}clearToLastMarker(){const s=this.entries.indexOf(zv);s>=0?this.entries.splice(0,s+1):this.entries.length=0}getElementEntryInScopeWithTagName(s){const l=this.entries.find(c=>c.type===$o.Marker||this.treeAdapter.getTagName(c.element)===s);return l&&l.type===$o.Element?l:null}getElementEntry(s){return this.entries.find(l=>l.type===$o.Element&&l.element===s)}}function ky(n){return{nodeName:"#text",value:n,parentNode:null}}const zc={createDocument(){return{nodeName:"#document",mode:Ja.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(n,s,l){return{nodeName:n,tagName:n,attrs:l,namespaceURI:s,childNodes:[],parentNode:null}},createCommentNode(n){return{nodeName:"#comment",data:n,parentNode:null}},appendChild(n,s){n.childNodes.push(s),s.parentNode=n},insertBefore(n,s,l){const c=n.childNodes.indexOf(l);n.childNodes.splice(c,0,s),s.parentNode=n},setTemplateContent(n,s){n.content=s},getTemplateContent(n){return n.content},setDocumentType(n,s,l,c){const p=n.childNodes.find(g=>g.nodeName==="#documentType");if(p)p.name=s,p.publicId=l,p.systemId=c;else{const g={nodeName:"#documentType",name:s,publicId:l,systemId:c,parentNode:null};zc.appendChild(n,g)}},setDocumentMode(n,s){n.mode=s},getDocumentMode(n){return n.mode},detachNode(n){if(n.parentNode){const s=n.parentNode.childNodes.indexOf(n);n.parentNode.childNodes.splice(s,1),n.parentNode=null}},insertText(n,s){if(n.childNodes.length>0){const l=n.childNodes[n.childNodes.length-1];if(zc.isTextNode(l)){l.value+=s;return}}zc.appendChild(n,ky(s))},insertTextBefore(n,s,l){const c=n.childNodes[n.childNodes.indexOf(l)-1];c&&zc.isTextNode(c)?c.value+=s:zc.insertBefore(n,ky(s),l)},adoptAttributes(n,s){const l=new Set(n.attrs.map(c=>c.name));for(let c=0;cn.startsWith(l))}function Gv(n){return n.name===Vv&&n.publicId===null&&(n.systemId===null||n.systemId===DC)}function FC(n){if(n.name!==Vv)return Ja.QUIRKS;const{systemId:s}=n;if(s&&s.toLowerCase()===IC)return Ja.QUIRKS;let{publicId:l}=n;if(l!==null){if(l=l.toLowerCase(),MC.has(l))return Ja.QUIRKS;let c=s===null?LC:jv;if(Wv(l,c))return Ja.QUIRKS;if(c=s===null?Zv:PC,Wv(l,c))return Ja.LIMITED_QUIRKS}return Ja.NO_QUIRKS}const Yv={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},BC="definitionurl",wy="definitionURL",qv=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(n=>[n.toLowerCase(),n])),rf=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Wt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Wt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Wt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Wt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Wt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Wt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Wt.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:Wt.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:Wt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Wt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Wt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Wt.XMLNS}]]),$C=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(n=>[n.toLowerCase(),n])),UC=new Set([I.B,I.BIG,I.BLOCKQUOTE,I.BODY,I.BR,I.CENTER,I.CODE,I.DD,I.DIV,I.DL,I.DT,I.EM,I.EMBED,I.H1,I.H2,I.H3,I.H4,I.H5,I.H6,I.HEAD,I.HR,I.I,I.IMG,I.LI,I.LISTING,I.MENU,I.META,I.NOBR,I.OL,I.P,I.PRE,I.RUBY,I.S,I.SMALL,I.SPAN,I.STRONG,I.STRIKE,I.SUB,I.SUP,I.TABLE,I.TT,I.U,I.UL,I.VAR]);function HC(n){const s=n.tagID;return s===I.FONT&&n.attrs.some(({name:c})=>c===Bo.COLOR||c===Bo.SIZE||c===Bo.FACE)||UC.has(s)}function Xv(n){for(let s=0;s0&&this._setContextModes(s,l)}onItemPop(s,l){var c,p;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(s,this.currentToken),(p=(c=this.treeAdapter).onItemPop)===null||p===void 0||p.call(c,s,this.openElements.current),l){let g,O;this.openElements.stackTop===0&&this.fragmentContext?(g=this.fragmentContext,O=this.fragmentContextID):{current:g,currentTagId:O}=this.openElements,this._setContextModes(g,O)}}_setContextModes(s,l){const c=s===this.document||this.treeAdapter.getNamespaceURI(s)===Wt.HTML;this.currentNotInHTML=!c,this.tokenizer.inForeignNode=!c&&!this._isIntegrationPoint(l,s)}_switchToTextParsing(s,l){this._insertElement(s,Wt.HTML),this.tokenizer.state=l,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ge.TEXT}switchToPlaintextParsing(){this.insertionMode=Ge.TEXT,this.originalInsertionMode=Ge.IN_BODY,this.tokenizer.state=Os.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let s=this.fragmentContext;for(;s;){if(this.treeAdapter.getTagName(s)===vt.FORM){this.formElement=s;break}s=this.treeAdapter.getParentNode(s)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Wt.HTML))switch(this.fragmentContextID){case I.TITLE:case I.TEXTAREA:{this.tokenizer.state=Os.RCDATA;break}case I.STYLE:case I.XMP:case I.IFRAME:case I.NOEMBED:case I.NOFRAMES:case I.NOSCRIPT:{this.tokenizer.state=Os.RAWTEXT;break}case I.SCRIPT:{this.tokenizer.state=Os.SCRIPT_DATA;break}case I.PLAINTEXT:{this.tokenizer.state=Os.PLAINTEXT;break}default:}}_setDocumentType(s){const l=s.name||"",c=s.publicId||"",p=s.systemId||"";if(this.treeAdapter.setDocumentType(this.document,l,c,p),s.location){const O=this.treeAdapter.getChildNodes(this.document).find(w=>this.treeAdapter.isDocumentTypeNode(w));O&&this.treeAdapter.setNodeSourceCodeLocation(O,s.location)}}_attachElementToTree(s,l){if(this.options.sourceCodeLocationInfo){const c=l&&_n(je({},l),{startTag:l});this.treeAdapter.setNodeSourceCodeLocation(s,c)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(s);else{const c=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(c,s)}}_appendElement(s,l){const c=this.treeAdapter.createElement(s.tagName,l,s.attrs);this._attachElementToTree(c,s.location)}_insertElement(s,l){const c=this.treeAdapter.createElement(s.tagName,l,s.attrs);this._attachElementToTree(c,s.location),this.openElements.push(c,s.tagID)}_insertFakeElement(s,l){const c=this.treeAdapter.createElement(s,Wt.HTML,[]);this._attachElementToTree(c,null),this.openElements.push(c,l)}_insertTemplate(s){const l=this.treeAdapter.createElement(s.tagName,Wt.HTML,s.attrs),c=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(l,c),this._attachElementToTree(l,s.location),this.openElements.push(l,s.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,null)}_insertFakeRootElement(){const s=this.treeAdapter.createElement(vt.HTML,Wt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,null),this.treeAdapter.appendChild(this.openElements.current,s),this.openElements.push(s,I.HTML)}_appendCommentNode(s,l){const c=this.treeAdapter.createCommentNode(s.data);this.treeAdapter.appendChild(l,c),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,s.location)}_insertCharacters(s){let l,c;if(this._shouldFosterParentOnInsertion()?({parent:l,beforeElement:c}=this._findFosterParentingLocation(),c?this.treeAdapter.insertTextBefore(l,s.chars,c):this.treeAdapter.insertText(l,s.chars)):(l=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(l,s.chars)),!s.location)return;const p=this.treeAdapter.getChildNodes(l),g=c?p.lastIndexOf(c):p.length,O=p[g-1];if(this.treeAdapter.getNodeSourceCodeLocation(O)){const{endLine:C,endCol:L,endOffset:H}=s.location;this.treeAdapter.updateNodeSourceCodeLocation(O,{endLine:C,endCol:L,endOffset:H})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(O,s.location)}_adoptNodes(s,l){for(let c=this.treeAdapter.getFirstChild(s);c;c=this.treeAdapter.getFirstChild(s))this.treeAdapter.detachNode(c),this.treeAdapter.appendChild(l,c)}_setEndLocation(s,l){if(this.treeAdapter.getNodeSourceCodeLocation(s)&&l.location){const c=l.location,p=this.treeAdapter.getTagName(s),g=l.type===di.END_TAG&&p===l.tagName?{endTag:je({},c),endLine:c.endLine,endCol:c.endCol,endOffset:c.endOffset}:{endLine:c.startLine,endCol:c.startCol,endOffset:c.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(s,g)}}shouldProcessStartTagTokenInForeignContent(s){if(!this.currentNotInHTML)return!1;let l,c;return this.openElements.stackTop===0&&this.fragmentContext?(l=this.fragmentContext,c=this.fragmentContextID):{current:l,currentTagId:c}=this.openElements,s.tagID===I.SVG&&this.treeAdapter.getTagName(l)===vt.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(l)===Wt.MATHML?!1:this.tokenizer.inForeignNode||(s.tagID===I.MGLYPH||s.tagID===I.MALIGNMARK)&&!this._isIntegrationPoint(c,l,Wt.HTML)}_processToken(s){switch(s.type){case di.CHARACTER:{this.onCharacter(s);break}case di.NULL_CHARACTER:{this.onNullCharacter(s);break}case di.COMMENT:{this.onComment(s);break}case di.DOCTYPE:{this.onDoctype(s);break}case di.START_TAG:{this._processStartTag(s);break}case di.END_TAG:{this.onEndTag(s);break}case di.EOF:{this.onEof(s);break}case di.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(s);break}}}_isIntegrationPoint(s,l,c){const p=this.treeAdapter.getNamespaceURI(l),g=this.treeAdapter.getAttrList(l);return jC(s,p,g,c)}_reconstructActiveFormattingElements(){const s=this.activeFormattingElements.entries.length;if(s){const l=this.activeFormattingElements.entries.findIndex(p=>p.type===$o.Marker||this.openElements.contains(p.element)),c=l<0?s-1:l-1;for(let p=c;p>=0;p--){const g=this.activeFormattingElements.entries[p];this._insertElement(g.token,this.treeAdapter.getNamespaceURI(g.element)),g.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ge.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(I.P),this.openElements.popUntilTagNamePopped(I.P)}_resetInsertionMode(){for(let s=this.openElements.stackTop;s>=0;s--)switch(s===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[s]){case I.TR:{this.insertionMode=Ge.IN_ROW;return}case I.TBODY:case I.THEAD:case I.TFOOT:{this.insertionMode=Ge.IN_TABLE_BODY;return}case I.CAPTION:{this.insertionMode=Ge.IN_CAPTION;return}case I.COLGROUP:{this.insertionMode=Ge.IN_COLUMN_GROUP;return}case I.TABLE:{this.insertionMode=Ge.IN_TABLE;return}case I.BODY:{this.insertionMode=Ge.IN_BODY;return}case I.FRAMESET:{this.insertionMode=Ge.IN_FRAMESET;return}case I.SELECT:{this._resetInsertionModeForSelect(s);return}case I.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case I.HTML:{this.insertionMode=this.headElement?Ge.AFTER_HEAD:Ge.BEFORE_HEAD;return}case I.TD:case I.TH:{if(s>0){this.insertionMode=Ge.IN_CELL;return}break}case I.HEAD:{if(s>0){this.insertionMode=Ge.IN_HEAD;return}break}}this.insertionMode=Ge.IN_BODY}_resetInsertionModeForSelect(s){if(s>0)for(let l=s-1;l>0;l--){const c=this.openElements.tagIDs[l];if(c===I.TEMPLATE)break;if(c===I.TABLE){this.insertionMode=Ge.IN_SELECT_IN_TABLE;return}}this.insertionMode=Ge.IN_SELECT}_isElementCausesFosterParenting(s){return ek.has(s)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let s=this.openElements.stackTop;s>=0;s--){const l=this.openElements.items[s];switch(this.openElements.tagIDs[s]){case I.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(l)===Wt.HTML)return{parent:this.treeAdapter.getTemplateContent(l),beforeElement:null};break}case I.TABLE:{const c=this.treeAdapter.getParentNode(l);return c?{parent:c,beforeElement:l}:{parent:this.openElements.items[s-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(s){const l=this._findFosterParentingLocation();l.beforeElement?this.treeAdapter.insertBefore(l.parent,s,l.beforeElement):this.treeAdapter.appendChild(l.parent,s)}_isSpecialElement(s,l){const c=this.treeAdapter.getNamespaceURI(s);return _g[c].has(l)}onCharacter(s){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ou(this,s);return}switch(this.insertionMode){case Ge.INITIAL:{Qc(this,s);break}case Ge.BEFORE_HTML:{ph(this,s);break}case Ge.BEFORE_HEAD:{af(this,s);break}case Ge.IN_HEAD:{of(this,s);break}case Ge.IN_HEAD_NO_SCRIPT:{lf(this,s);break}case Ge.AFTER_HEAD:{uf(this,s);break}case Ge.IN_BODY:case Ge.IN_CAPTION:case Ge.IN_CELL:case Ge.IN_TEMPLATE:{Mg(this,s);break}case Ge.TEXT:case Ge.IN_SELECT:case Ge.IN_SELECT_IN_TABLE:{this._insertCharacters(s);break}case Ge.IN_TABLE:case Ge.IN_TABLE_BODY:case Ge.IN_ROW:{zg(this,s);break}case Ge.IN_TABLE_TEXT:{kk(this,s);break}case Ge.IN_COLUMN_GROUP:{Qg(this,s);break}case Ge.AFTER_BODY:{hf(this,s);break}case Ge.AFTER_AFTER_BODY:{wa(this,s);break}default:}}onNullCharacter(s){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){kn(this,s);return}switch(this.insertionMode){case Ge.INITIAL:{Qc(this,s);break}case Ge.BEFORE_HTML:{ph(this,s);break}case Ge.BEFORE_HEAD:{af(this,s);break}case Ge.IN_HEAD:{of(this,s);break}case Ge.IN_HEAD_NO_SCRIPT:{lf(this,s);break}case Ge.AFTER_HEAD:{uf(this,s);break}case Ge.TEXT:{this._insertCharacters(s);break}case Ge.IN_TABLE:case Ge.IN_TABLE_BODY:case Ge.IN_ROW:{zg(this,s);break}case Ge.IN_COLUMN_GROUP:{Qg(this,s);break}case Ge.AFTER_BODY:{hf(this,s);break}case Ge.AFTER_AFTER_BODY:{wa(this,s);break}default:}}onComment(s){if(this.skipNextNewLine=!1,this.currentNotInHTML){Zu(this,s);return}switch(this.insertionMode){case Ge.INITIAL:case Ge.BEFORE_HTML:case Ge.BEFORE_HEAD:case Ge.IN_HEAD:case Ge.IN_HEAD_NO_SCRIPT:case Ge.AFTER_HEAD:case Ge.IN_BODY:case Ge.IN_TABLE:case Ge.IN_CAPTION:case Ge.IN_COLUMN_GROUP:case Ge.IN_TABLE_BODY:case Ge.IN_ROW:case Ge.IN_CELL:case Ge.IN_SELECT:case Ge.IN_SELECT_IN_TABLE:case Ge.IN_TEMPLATE:case Ge.IN_FRAMESET:case Ge.AFTER_FRAMESET:{Zu(this,s);break}case Ge.IN_TABLE_TEXT:{gh(this,s);break}case Ge.AFTER_BODY:{KC(this,s);break}case Ge.AFTER_AFTER_BODY:case Ge.AFTER_AFTER_FRAMESET:{Uo(this,s);break}default:}}onDoctype(s){switch(this.skipNextNewLine=!1,this.insertionMode){case Ge.INITIAL:{JC(this,s);break}case Ge.BEFORE_HEAD:case Ge.IN_HEAD:case Ge.IN_HEAD_NO_SCRIPT:case Ge.AFTER_HEAD:{this._err(s,dt.misplacedDoctype);break}case Ge.IN_TABLE_TEXT:{gh(this,s);break}default:}}onStartTag(s){this.skipNextNewLine=!1,this.currentToken=s,this._processStartTag(s),s.selfClosing&&!s.ackSelfClosing&&this._err(s,dt.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(s){this.shouldProcessStartTagTokenInForeignContent(s)?pf(this,s):this._startTagOutsideForeignContent(s)}_startTagOutsideForeignContent(s){switch(this.insertionMode){case Ge.INITIAL:{Qc(this,s);break}case Ge.BEFORE_HTML:{e2(this,s);break}case Ge.BEFORE_HEAD:{Vc(this,s);break}case Ge.IN_HEAD:{fi(this,s);break}case Ge.IN_HEAD_NO_SCRIPT:{n2(this,s);break}case Ge.AFTER_HEAD:{nk(this,s);break}case Ge.IN_BODY:{fa(this,s);break}case Ge.IN_TABLE:{fh(this,s);break}case Ge.IN_TABLE_TEXT:{gh(this,s);break}case Ge.IN_CAPTION:{R2(this,s);break}case Ge.IN_COLUMN_GROUP:{bh(this,s);break}case Ge.IN_TABLE_BODY:{Vg(this,s);break}case Ge.IN_ROW:{jg(this,s);break}case Ge.IN_CELL:{L2(this,s);break}case Ge.IN_SELECT:{Zg(this,s);break}case Ge.IN_SELECT_IN_TABLE:{Ny(this,s);break}case Ge.IN_TEMPLATE:{Yg(this,s);break}case Ge.AFTER_BODY:{M2(this,s);break}case Ge.IN_FRAMESET:{P2(this,s);break}case Ge.AFTER_FRAMESET:{F2(this,s);break}case Ge.AFTER_AFTER_BODY:{kr(this,s);break}case Ge.AFTER_AFTER_FRAMESET:{Ck(this,s);break}default:}}onEndTag(s){this.skipNextNewLine=!1,this.currentToken=s,this.currentNotInHTML?Iy(this,s):this._endTagOutsideForeignContent(s)}_endTagOutsideForeignContent(s){switch(this.insertionMode){case Ge.INITIAL:{Qc(this,s);break}case Ge.BEFORE_HTML:{Ty(this,s);break}case Ge.BEFORE_HEAD:{tk(this,s);break}case Ge.IN_HEAD:{t2(this,s);break}case Ge.IN_HEAD_NO_SCRIPT:{r2(this,s);break}case Ge.AFTER_HEAD:{rk(this,s);break}case Ge.IN_BODY:{Hg(this,s);break}case Ge.TEXT:{x2(this,s);break}case Ge.IN_TABLE:{df(this,s);break}case Ge.IN_TABLE_TEXT:{gh(this,s);break}case Ge.IN_CAPTION:{D2(this,s);break}case Ge.IN_COLUMN_GROUP:{I2(this,s);break}case Ge.IN_TABLE_BODY:{_y(this,s);break}case Ge.IN_ROW:{xk(this,s);break}case Ge.IN_CELL:{Oh(this,s);break}case Ge.IN_SELECT:{Wg(this,s);break}case Ge.IN_SELECT_IN_TABLE:{Gg(this,s);break}case Ge.IN_TEMPLATE:{Ry(this,s);break}case Ge.AFTER_BODY:{Tk(this,s);break}case Ge.IN_FRAMESET:{Zc(this,s);break}case Ge.AFTER_FRAMESET:{Ba(this,s);break}case Ge.AFTER_AFTER_BODY:{wa(this,s);break}default:}}onEof(s){switch(this.insertionMode){case Ge.INITIAL:{Qc(this,s);break}case Ge.BEFORE_HTML:{ph(this,s);break}case Ge.BEFORE_HEAD:{af(this,s);break}case Ge.IN_HEAD:{of(this,s);break}case Ge.IN_HEAD_NO_SCRIPT:{lf(this,s);break}case Ge.AFTER_HEAD:{uf(this,s);break}case Ge.IN_BODY:case Ge.IN_TABLE:case Ge.IN_CAPTION:case Ge.IN_COLUMN_GROUP:case Ge.IN_TABLE_BODY:case Ge.IN_ROW:case Ge.IN_CELL:case Ge.IN_SELECT:case Ge.IN_SELECT_IN_TABLE:{Ay(this,s);break}case Ge.TEXT:{yk(this,s);break}case Ge.IN_TABLE_TEXT:{gh(this,s);break}case Ge.IN_TEMPLATE:{Dy(this,s);break}case Ge.AFTER_BODY:case Ge.IN_FRAMESET:case Ge.AFTER_FRAMESET:case Ge.AFTER_AFTER_BODY:case Ge.AFTER_AFTER_FRAMESET:{hh(this,s);break}default:}}onWhitespaceCharacter(s){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,s.chars.charCodeAt(0)===Oe.LINE_FEED)){if(s.chars.length===1)return;s.chars=s.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(s);return}switch(this.insertionMode){case Ge.IN_HEAD:case Ge.IN_HEAD_NO_SCRIPT:case Ge.AFTER_HEAD:case Ge.TEXT:case Ge.IN_COLUMN_GROUP:case Ge.IN_SELECT:case Ge.IN_SELECT_IN_TABLE:case Ge.IN_FRAMESET:case Ge.AFTER_FRAMESET:{this._insertCharacters(s);break}case Ge.IN_BODY:case Ge.IN_CAPTION:case Ge.IN_CELL:case Ge.IN_TEMPLATE:case Ge.AFTER_BODY:case Ge.AFTER_AFTER_BODY:case Ge.AFTER_AFTER_FRAMESET:{ik(this,s);break}case Ge.IN_TABLE:case Ge.IN_TABLE_BODY:case Ge.IN_ROW:{zg(this,s);break}case Ge.IN_TABLE_TEXT:{vk(this,s);break}default:}}}function rs(n,s){let l=n.activeFormattingElements.getElementEntryInScopeWithTagName(s.tagName);return l?n.openElements.contains(l.element)?n.openElements.hasInScope(s.tagID)||(l=null):(n.activeFormattingElements.removeEntry(l),l=null):Ok(n,s),l}function GC(n,s){let l=null,c=n.openElements.stackTop;for(;c>=0;c--){const p=n.openElements.items[c];if(p===s.element)break;n._isSpecialElement(p,n.openElements.tagIDs[c])&&(l=p)}return l||(n.openElements.shortenToLength(c<0?0:c),n.activeFormattingElements.removeEntry(s)),l}function YC(n,s,l){let c=s,p=n.openElements.getCommonAncestor(s);for(let g=0,O=p;O!==l;g++,O=p){p=n.openElements.getCommonAncestor(O);const w=n.activeFormattingElements.getElementEntry(O),C=w&&g>=Jv;!w||C?(C&&n.activeFormattingElements.removeEntry(w),n.openElements.remove(O)):(O=qC(n,w),c===s&&(n.activeFormattingElements.bookmark=w),n.treeAdapter.detachNode(c),n.treeAdapter.appendChild(O,c),c=O)}return c}function qC(n,s){const l=n.treeAdapter.getNamespaceURI(s.element),c=n.treeAdapter.createElement(s.token.tagName,l,s.token.attrs);return n.openElements.replace(s.element,c),s.element=c,c}function XC(n,s,l){const c=n.treeAdapter.getTagName(s),p=ch(c);if(n._isElementCausesFosterParenting(p))n._fosterParentElement(l);else{const g=n.treeAdapter.getNamespaceURI(s);p===I.TEMPLATE&&g===Wt.HTML&&(s=n.treeAdapter.getTemplateContent(s)),n.treeAdapter.appendChild(s,l)}}function pa(n,s,l){const c=n.treeAdapter.getNamespaceURI(l.element),{token:p}=l,g=n.treeAdapter.createElement(p.tagName,c,p.attrs);n._adoptNodes(s,g),n.treeAdapter.appendChild(s,g),n.activeFormattingElements.insertElementAfterBookmark(g,p),n.activeFormattingElements.removeEntry(l),n.openElements.remove(l.element),n.openElements.insertAfter(s,g,p.tagID)}function fl(n,s){for(let l=0;l=l;c--)n._setEndLocation(n.openElements.items[c],s);if(!n.fragmentContext&&n.openElements.stackTop>=0){const c=n.openElements.items[0],p=n.treeAdapter.getNodeSourceCodeLocation(c);if(p&&!p.endTag&&(n._setEndLocation(c,s),n.openElements.stackTop>=1)){const g=n.openElements.items[1],O=n.treeAdapter.getNodeSourceCodeLocation(g);O&&!O.endTag&&n._setEndLocation(g,s)}}}}function JC(n,s){n._setDocumentType(s);const l=s.forceQuirks?Ja.QUIRKS:FC(s);Gv(s)||n._err(s,dt.nonConformingDoctype),n.treeAdapter.setDocumentMode(n.document,l),n.insertionMode=Ge.BEFORE_HTML}function Qc(n,s){n._err(s,dt.missingDoctype,!0),n.treeAdapter.setDocumentMode(n.document,Ja.QUIRKS),n.insertionMode=Ge.BEFORE_HTML,n._processToken(s)}function e2(n,s){s.tagID===I.HTML?(n._insertElement(s,Wt.HTML),n.insertionMode=Ge.BEFORE_HEAD):ph(n,s)}function Ty(n,s){const l=s.tagID;(l===I.HTML||l===I.HEAD||l===I.BODY||l===I.BR)&&ph(n,s)}function ph(n,s){n._insertFakeRootElement(),n.insertionMode=Ge.BEFORE_HEAD,n._processToken(s)}function Vc(n,s){switch(s.tagID){case I.HTML:{fa(n,s);break}case I.HEAD:{n._insertElement(s,Wt.HTML),n.headElement=n.openElements.current,n.insertionMode=Ge.IN_HEAD;break}default:af(n,s)}}function tk(n,s){const l=s.tagID;l===I.HEAD||l===I.BODY||l===I.HTML||l===I.BR?af(n,s):n._err(s,dt.endTagWithoutMatchingOpenElement)}function af(n,s){n._insertFakeElement(vt.HEAD,I.HEAD),n.headElement=n.openElements.current,n.insertionMode=Ge.IN_HEAD,n._processToken(s)}function fi(n,s){switch(s.tagID){case I.HTML:{fa(n,s);break}case I.BASE:case I.BASEFONT:case I.BGSOUND:case I.LINK:case I.META:{n._appendElement(s,Wt.HTML),s.ackSelfClosing=!0;break}case I.TITLE:{n._switchToTextParsing(s,Os.RCDATA);break}case I.NOSCRIPT:{n.options.scriptingEnabled?n._switchToTextParsing(s,Os.RAWTEXT):(n._insertElement(s,Wt.HTML),n.insertionMode=Ge.IN_HEAD_NO_SCRIPT);break}case I.NOFRAMES:case I.STYLE:{n._switchToTextParsing(s,Os.RAWTEXT);break}case I.SCRIPT:{n._switchToTextParsing(s,Os.SCRIPT_DATA);break}case I.TEMPLATE:{n._insertTemplate(s),n.activeFormattingElements.insertMarker(),n.framesetOk=!1,n.insertionMode=Ge.IN_TEMPLATE,n.tmplInsertionModeStack.unshift(Ge.IN_TEMPLATE);break}case I.HEAD:{n._err(s,dt.misplacedStartTagForHeadElement);break}default:of(n,s)}}function t2(n,s){switch(s.tagID){case I.HEAD:{n.openElements.pop(),n.insertionMode=Ge.AFTER_HEAD;break}case I.BODY:case I.BR:case I.HTML:{of(n,s);break}case I.TEMPLATE:{jc(n,s);break}default:n._err(s,dt.endTagWithoutMatchingOpenElement)}}function jc(n,s){n.openElements.tmplCount>0?(n.openElements.generateImpliedEndTagsThoroughly(),n.openElements.currentTagId!==I.TEMPLATE&&n._err(s,dt.closingOfElementWithOpenChildElements),n.openElements.popUntilTagNamePopped(I.TEMPLATE),n.activeFormattingElements.clearToLastMarker(),n.tmplInsertionModeStack.shift(),n._resetInsertionMode()):n._err(s,dt.endTagWithoutMatchingOpenElement)}function of(n,s){n.openElements.pop(),n.insertionMode=Ge.AFTER_HEAD,n._processToken(s)}function n2(n,s){switch(s.tagID){case I.HTML:{fa(n,s);break}case I.BASEFONT:case I.BGSOUND:case I.HEAD:case I.LINK:case I.META:case I.NOFRAMES:case I.STYLE:{fi(n,s);break}case I.NOSCRIPT:{n._err(s,dt.nestedNoscriptInHead);break}default:lf(n,s)}}function r2(n,s){switch(s.tagID){case I.NOSCRIPT:{n.openElements.pop(),n.insertionMode=Ge.IN_HEAD;break}case I.BR:{lf(n,s);break}default:n._err(s,dt.endTagWithoutMatchingOpenElement)}}function lf(n,s){const l=s.type===di.EOF?dt.openElementsLeftAfterEof:dt.disallowedContentInNoscriptInHead;n._err(s,l),n.openElements.pop(),n.insertionMode=Ge.IN_HEAD,n._processToken(s)}function nk(n,s){switch(s.tagID){case I.HTML:{fa(n,s);break}case I.BODY:{n._insertElement(s,Wt.HTML),n.framesetOk=!1,n.insertionMode=Ge.IN_BODY;break}case I.FRAMESET:{n._insertElement(s,Wt.HTML),n.insertionMode=Ge.IN_FRAMESET;break}case I.BASE:case I.BASEFONT:case I.BGSOUND:case I.LINK:case I.META:case I.NOFRAMES:case I.SCRIPT:case I.STYLE:case I.TEMPLATE:case I.TITLE:{n._err(s,dt.abandonedHeadElementChild),n.openElements.push(n.headElement,I.HEAD),fi(n,s),n.openElements.remove(n.headElement);break}case I.HEAD:{n._err(s,dt.misplacedStartTagForHeadElement);break}default:uf(n,s)}}function rk(n,s){switch(s.tagID){case I.BODY:case I.HTML:case I.BR:{uf(n,s);break}case I.TEMPLATE:{jc(n,s);break}default:n._err(s,dt.endTagWithoutMatchingOpenElement)}}function uf(n,s){n._insertFakeElement(vt.BODY,I.BODY),n.insertionMode=Ge.IN_BODY,Lg(n,s)}function Lg(n,s){switch(s.type){case di.CHARACTER:{Mg(n,s);break}case di.WHITESPACE_CHARACTER:{ik(n,s);break}case di.COMMENT:{Zu(n,s);break}case di.START_TAG:{fa(n,s);break}case di.END_TAG:{Hg(n,s);break}case di.EOF:{Ay(n,s);break}default:}}function ik(n,s){n._reconstructActiveFormattingElements(),n._insertCharacters(s)}function Mg(n,s){n._reconstructActiveFormattingElements(),n._insertCharacters(s),n.framesetOk=!1}function i2(n,s){n.openElements.tmplCount===0&&n.treeAdapter.adoptAttributes(n.openElements.items[0],s.attrs)}function s2(n,s){const l=n.openElements.tryPeekProperlyNestedBodyElement();l&&n.openElements.tmplCount===0&&(n.framesetOk=!1,n.treeAdapter.adoptAttributes(l,s.attrs))}function sk(n,s){const l=n.openElements.tryPeekProperlyNestedBodyElement();n.framesetOk&&l&&(n.treeAdapter.detachNode(l),n.openElements.popAllUpToHtmlElement(),n._insertElement(s,Wt.HTML),n.insertionMode=Ge.IN_FRAMESET)}function ak(n,s){n.openElements.hasInButtonScope(I.P)&&n._closePElement(),n._insertElement(s,Wt.HTML)}function ok(n,s){n.openElements.hasInButtonScope(I.P)&&n._closePElement(),$s(n.openElements.currentTagId)&&n.openElements.pop(),n._insertElement(s,Wt.HTML)}function a2(n,s){n.openElements.hasInButtonScope(I.P)&&n._closePElement(),n._insertElement(s,Wt.HTML),n.skipNextNewLine=!0,n.framesetOk=!1}function Pg(n,s){const l=n.openElements.tmplCount>0;(!n.formElement||l)&&(n.openElements.hasInButtonScope(I.P)&&n._closePElement(),n._insertElement(s,Wt.HTML),l||(n.formElement=n.openElements.current))}function Fg(n,s){n.framesetOk=!1;const l=s.tagID;for(let c=n.openElements.stackTop;c>=0;c--){const p=n.openElements.tagIDs[c];if(l===I.LI&&p===I.LI||(l===I.DD||l===I.DT)&&(p===I.DD||p===I.DT)){n.openElements.generateImpliedEndTagsWithExclusion(p),n.openElements.popUntilTagNamePopped(p);break}if(p!==I.ADDRESS&&p!==I.DIV&&p!==I.P&&n._isSpecialElement(n.openElements.items[c],p))break}n.openElements.hasInButtonScope(I.P)&&n._closePElement(),n._insertElement(s,Wt.HTML)}function Bg(n,s){n.openElements.hasInButtonScope(I.P)&&n._closePElement(),n._insertElement(s,Wt.HTML),n.tokenizer.state=Os.PLAINTEXT}function $g(n,s){n.openElements.hasInScope(I.BUTTON)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(I.BUTTON)),n._reconstructActiveFormattingElements(),n._insertElement(s,Wt.HTML),n.framesetOk=!1}function o2(n,s){const l=n.activeFormattingElements.getElementEntryInScopeWithTagName(vt.A);l&&(fl(n,s),n.openElements.remove(l.element),n.activeFormattingElements.removeEntry(l)),n._reconstructActiveFormattingElements(),n._insertElement(s,Wt.HTML),n.activeFormattingElements.pushElement(n.openElements.current,s)}function l2(n,s){n._reconstructActiveFormattingElements(),n._insertElement(s,Wt.HTML),n.activeFormattingElements.pushElement(n.openElements.current,s)}function u2(n,s){n._reconstructActiveFormattingElements(),n.openElements.hasInScope(I.NOBR)&&(fl(n,s),n._reconstructActiveFormattingElements()),n._insertElement(s,Wt.HTML),n.activeFormattingElements.pushElement(n.openElements.current,s)}function lk(n,s){n._reconstructActiveFormattingElements(),n._insertElement(s,Wt.HTML),n.activeFormattingElements.insertMarker(),n.framesetOk=!1}function uk(n,s){n.treeAdapter.getDocumentMode(n.document)!==Ja.QUIRKS&&n.openElements.hasInButtonScope(I.P)&&n._closePElement(),n._insertElement(s,Wt.HTML),n.framesetOk=!1,n.insertionMode=Ge.IN_TABLE}function Ug(n,s){n._reconstructActiveFormattingElements(),n._appendElement(s,Wt.HTML),n.framesetOk=!1,s.ackSelfClosing=!0}function ck(n){const s=Dv(n,Bo.TYPE);return s!=null&&s.toLowerCase()===ZC}function Cy(n,s){n._reconstructActiveFormattingElements(),n._appendElement(s,Wt.HTML),ck(s)||(n.framesetOk=!1),s.ackSelfClosing=!0}function fo(n,s){n._appendElement(s,Wt.HTML),s.ackSelfClosing=!0}function c2(n,s){n.openElements.hasInButtonScope(I.P)&&n._closePElement(),n._appendElement(s,Wt.HTML),n.framesetOk=!1,s.ackSelfClosing=!0}function d2(n,s){s.tagName=vt.IMG,s.tagID=I.IMG,Ug(n,s)}function h2(n,s){n._insertElement(s,Wt.HTML),n.skipNextNewLine=!0,n.tokenizer.state=Os.RCDATA,n.originalInsertionMode=n.insertionMode,n.framesetOk=!1,n.insertionMode=Ge.TEXT}function p2(n,s){n.openElements.hasInButtonScope(I.P)&&n._closePElement(),n._reconstructActiveFormattingElements(),n.framesetOk=!1,n._switchToTextParsing(s,Os.RAWTEXT)}function f2(n,s){n.framesetOk=!1,n._switchToTextParsing(s,Os.RAWTEXT)}function dk(n,s){n._switchToTextParsing(s,Os.RAWTEXT)}function m2(n,s){n._reconstructActiveFormattingElements(),n._insertElement(s,Wt.HTML),n.framesetOk=!1,n.insertionMode=n.insertionMode===Ge.IN_TABLE||n.insertionMode===Ge.IN_CAPTION||n.insertionMode===Ge.IN_TABLE_BODY||n.insertionMode===Ge.IN_ROW||n.insertionMode===Ge.IN_CELL?Ge.IN_SELECT_IN_TABLE:Ge.IN_SELECT}function hk(n,s){n.openElements.currentTagId===I.OPTION&&n.openElements.pop(),n._reconstructActiveFormattingElements(),n._insertElement(s,Wt.HTML)}function pk(n,s){n.openElements.hasInScope(I.RUBY)&&n.openElements.generateImpliedEndTags(),n._insertElement(s,Wt.HTML)}function fk(n,s){n.openElements.hasInScope(I.RUBY)&&n.openElements.generateImpliedEndTagsWithExclusion(I.RTC),n._insertElement(s,Wt.HTML)}function g2(n,s){n._reconstructActiveFormattingElements(),Xv(s),xy(s),s.selfClosing?n._appendElement(s,Wt.MATHML):n._insertElement(s,Wt.MATHML),s.ackSelfClosing=!0}function b2(n,s){n._reconstructActiveFormattingElements(),Kv(s),xy(s),s.selfClosing?n._appendElement(s,Wt.SVG):n._insertElement(s,Wt.SVG),s.ackSelfClosing=!0}function mk(n,s){n._reconstructActiveFormattingElements(),n._insertElement(s,Wt.HTML)}function fa(n,s){switch(s.tagID){case I.I:case I.S:case I.B:case I.U:case I.EM:case I.TT:case I.BIG:case I.CODE:case I.FONT:case I.SMALL:case I.STRIKE:case I.STRONG:{l2(n,s);break}case I.A:{o2(n,s);break}case I.H1:case I.H2:case I.H3:case I.H4:case I.H5:case I.H6:{ok(n,s);break}case I.P:case I.DL:case I.OL:case I.UL:case I.DIV:case I.DIR:case I.NAV:case I.MAIN:case I.MENU:case I.ASIDE:case I.CENTER:case I.FIGURE:case I.FOOTER:case I.HEADER:case I.HGROUP:case I.DIALOG:case I.DETAILS:case I.ADDRESS:case I.ARTICLE:case I.SECTION:case I.SUMMARY:case I.FIELDSET:case I.BLOCKQUOTE:case I.FIGCAPTION:{ak(n,s);break}case I.LI:case I.DD:case I.DT:{Fg(n,s);break}case I.BR:case I.IMG:case I.WBR:case I.AREA:case I.EMBED:case I.KEYGEN:{Ug(n,s);break}case I.HR:{c2(n,s);break}case I.RB:case I.RTC:{pk(n,s);break}case I.RT:case I.RP:{fk(n,s);break}case I.PRE:case I.LISTING:{a2(n,s);break}case I.XMP:{p2(n,s);break}case I.SVG:{b2(n,s);break}case I.HTML:{i2(n,s);break}case I.BASE:case I.LINK:case I.META:case I.STYLE:case I.TITLE:case I.SCRIPT:case I.BGSOUND:case I.BASEFONT:case I.TEMPLATE:{fi(n,s);break}case I.BODY:{s2(n,s);break}case I.FORM:{Pg(n,s);break}case I.NOBR:{u2(n,s);break}case I.MATH:{g2(n,s);break}case I.TABLE:{uk(n,s);break}case I.INPUT:{Cy(n,s);break}case I.PARAM:case I.TRACK:case I.SOURCE:{fo(n,s);break}case I.IMAGE:{d2(n,s);break}case I.BUTTON:{$g(n,s);break}case I.APPLET:case I.OBJECT:case I.MARQUEE:{lk(n,s);break}case I.IFRAME:{f2(n,s);break}case I.SELECT:{m2(n,s);break}case I.OPTION:case I.OPTGROUP:{hk(n,s);break}case I.NOEMBED:{dk(n,s);break}case I.FRAMESET:{sk(n,s);break}case I.TEXTAREA:{h2(n,s);break}case I.NOSCRIPT:{n.options.scriptingEnabled?dk(n,s):mk(n,s);break}case I.PLAINTEXT:{Bg(n,s);break}case I.COL:case I.TH:case I.TD:case I.TR:case I.HEAD:case I.FRAME:case I.TBODY:case I.TFOOT:case I.THEAD:case I.CAPTION:case I.COLGROUP:break;default:mk(n,s)}}function ml(n,s){if(n.openElements.hasInScope(I.BODY)&&(n.insertionMode=Ge.AFTER_BODY,n.options.sourceCodeLocationInfo)){const l=n.openElements.tryPeekProperlyNestedBodyElement();l&&n._setEndLocation(l,s)}}function gk(n,s){n.openElements.hasInScope(I.BODY)&&(n.insertionMode=Ge.AFTER_BODY,Tk(n,s))}function O2(n,s){const l=s.tagID;n.openElements.hasInScope(l)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(l))}function y2(n){const s=n.openElements.tmplCount>0,{formElement:l}=n;s||(n.formElement=null),(l||s)&&n.openElements.hasInScope(I.FORM)&&(n.openElements.generateImpliedEndTags(),s?n.openElements.popUntilTagNamePopped(I.FORM):l&&n.openElements.remove(l))}function E2(n){n.openElements.hasInButtonScope(I.P)||n._insertFakeElement(vt.P,I.P),n._closePElement()}function S2(n){n.openElements.hasInListItemScope(I.LI)&&(n.openElements.generateImpliedEndTagsWithExclusion(I.LI),n.openElements.popUntilTagNamePopped(I.LI))}function v2(n,s){const l=s.tagID;n.openElements.hasInScope(l)&&(n.openElements.generateImpliedEndTagsWithExclusion(l),n.openElements.popUntilTagNamePopped(l))}function bk(n){n.openElements.hasNumberedHeaderInScope()&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilNumberedHeaderPopped())}function k2(n,s){const l=s.tagID;n.openElements.hasInScope(l)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(l),n.activeFormattingElements.clearToLastMarker())}function w2(n){n._reconstructActiveFormattingElements(),n._insertFakeElement(vt.BR,I.BR),n.openElements.pop(),n.framesetOk=!1}function Ok(n,s){const l=s.tagName,c=s.tagID;for(let p=n.openElements.stackTop;p>0;p--){const g=n.openElements.items[p],O=n.openElements.tagIDs[p];if(c===O&&(c!==I.UNKNOWN||n.treeAdapter.getTagName(g)===l)){n.openElements.generateImpliedEndTagsWithExclusion(c),n.openElements.stackTop>=p&&n.openElements.shortenToLength(p);break}if(n._isSpecialElement(g,O))break}}function Hg(n,s){switch(s.tagID){case I.A:case I.B:case I.I:case I.S:case I.U:case I.EM:case I.TT:case I.BIG:case I.CODE:case I.FONT:case I.NOBR:case I.SMALL:case I.STRIKE:case I.STRONG:{fl(n,s);break}case I.P:{E2(n);break}case I.DL:case I.UL:case I.OL:case I.DIR:case I.DIV:case I.NAV:case I.PRE:case I.MAIN:case I.MENU:case I.ASIDE:case I.BUTTON:case I.CENTER:case I.FIGURE:case I.FOOTER:case I.HEADER:case I.HGROUP:case I.DIALOG:case I.ADDRESS:case I.ARTICLE:case I.DETAILS:case I.SECTION:case I.SUMMARY:case I.LISTING:case I.FIELDSET:case I.BLOCKQUOTE:case I.FIGCAPTION:{O2(n,s);break}case I.LI:{S2(n);break}case I.DD:case I.DT:{v2(n,s);break}case I.H1:case I.H2:case I.H3:case I.H4:case I.H5:case I.H6:{bk(n);break}case I.BR:{w2(n);break}case I.BODY:{ml(n,s);break}case I.HTML:{gk(n,s);break}case I.FORM:{y2(n);break}case I.APPLET:case I.OBJECT:case I.MARQUEE:{k2(n,s);break}case I.TEMPLATE:{jc(n,s);break}default:Ok(n,s)}}function Ay(n,s){n.tmplInsertionModeStack.length>0?Dy(n,s):hh(n,s)}function x2(n,s){var l;s.tagID===I.SCRIPT&&((l=n.scriptHandler)===null||l===void 0||l.call(n,n.openElements.current)),n.openElements.pop(),n.insertionMode=n.originalInsertionMode}function yk(n,s){n._err(s,dt.eofInElementThatCanContainOnlyText),n.openElements.pop(),n.insertionMode=n.originalInsertionMode,n.onEof(s)}function zg(n,s){if(ek.has(n.openElements.currentTagId))switch(n.pendingCharacterTokens.length=0,n.hasNonWhitespacePendingCharacterToken=!1,n.originalInsertionMode=n.insertionMode,n.insertionMode=Ge.IN_TABLE_TEXT,s.type){case di.CHARACTER:{kk(n,s);break}case di.WHITESPACE_CHARACTER:{vk(n,s);break}}else mh(n,s)}function T2(n,s){n.openElements.clearBackToTableContext(),n.activeFormattingElements.insertMarker(),n._insertElement(s,Wt.HTML),n.insertionMode=Ge.IN_CAPTION}function C2(n,s){n.openElements.clearBackToTableContext(),n._insertElement(s,Wt.HTML),n.insertionMode=Ge.IN_COLUMN_GROUP}function A2(n,s){n.openElements.clearBackToTableContext(),n._insertFakeElement(vt.COLGROUP,I.COLGROUP),n.insertionMode=Ge.IN_COLUMN_GROUP,bh(n,s)}function Ek(n,s){n.openElements.clearBackToTableContext(),n._insertElement(s,Wt.HTML),n.insertionMode=Ge.IN_TABLE_BODY}function cf(n,s){n.openElements.clearBackToTableContext(),n._insertFakeElement(vt.TBODY,I.TBODY),n.insertionMode=Ge.IN_TABLE_BODY,Vg(n,s)}function _2(n,s){n.openElements.hasInTableScope(I.TABLE)&&(n.openElements.popUntilTagNamePopped(I.TABLE),n._resetInsertionMode(),n._processStartTag(s))}function N2(n,s){ck(s)?n._appendElement(s,Wt.HTML):mh(n,s),s.ackSelfClosing=!0}function Sk(n,s){!n.formElement&&n.openElements.tmplCount===0&&(n._insertElement(s,Wt.HTML),n.formElement=n.openElements.current,n.openElements.pop())}function fh(n,s){switch(s.tagID){case I.TD:case I.TH:case I.TR:{cf(n,s);break}case I.STYLE:case I.SCRIPT:case I.TEMPLATE:{fi(n,s);break}case I.COL:{A2(n,s);break}case I.FORM:{Sk(n,s);break}case I.TABLE:{_2(n,s);break}case I.TBODY:case I.TFOOT:case I.THEAD:{Ek(n,s);break}case I.INPUT:{N2(n,s);break}case I.CAPTION:{T2(n,s);break}case I.COLGROUP:{C2(n,s);break}default:mh(n,s)}}function df(n,s){switch(s.tagID){case I.TABLE:{n.openElements.hasInTableScope(I.TABLE)&&(n.openElements.popUntilTagNamePopped(I.TABLE),n._resetInsertionMode());break}case I.TEMPLATE:{jc(n,s);break}case I.BODY:case I.CAPTION:case I.COL:case I.COLGROUP:case I.HTML:case I.TBODY:case I.TD:case I.TFOOT:case I.TH:case I.THEAD:case I.TR:break;default:mh(n,s)}}function mh(n,s){const l=n.fosterParentingEnabled;n.fosterParentingEnabled=!0,Lg(n,s),n.fosterParentingEnabled=l}function vk(n,s){n.pendingCharacterTokens.push(s)}function kk(n,s){n.pendingCharacterTokens.push(s),n.hasNonWhitespacePendingCharacterToken=!0}function gh(n,s){let l=0;if(n.hasNonWhitespacePendingCharacterToken)for(;l0&&n.openElements.currentTagId===I.OPTION&&n.openElements.tagIDs[n.openElements.stackTop-1]===I.OPTGROUP&&n.openElements.pop(),n.openElements.currentTagId===I.OPTGROUP&&n.openElements.pop();break}case I.OPTION:{n.openElements.currentTagId===I.OPTION&&n.openElements.pop();break}case I.SELECT:{n.openElements.hasInSelectScope(I.SELECT)&&(n.openElements.popUntilTagNamePopped(I.SELECT),n._resetInsertionMode());break}case I.TEMPLATE:{jc(n,s);break}default:}}function Ny(n,s){const l=s.tagID;l===I.CAPTION||l===I.TABLE||l===I.TBODY||l===I.TFOOT||l===I.THEAD||l===I.TR||l===I.TD||l===I.TH?(n.openElements.popUntilTagNamePopped(I.SELECT),n._resetInsertionMode(),n._processStartTag(s)):Zg(n,s)}function Gg(n,s){const l=s.tagID;l===I.CAPTION||l===I.TABLE||l===I.TBODY||l===I.TFOOT||l===I.THEAD||l===I.TR||l===I.TD||l===I.TH?n.openElements.hasInTableScope(l)&&(n.openElements.popUntilTagNamePopped(I.SELECT),n._resetInsertionMode(),n.onEndTag(s)):Wg(n,s)}function Yg(n,s){switch(s.tagID){case I.BASE:case I.BASEFONT:case I.BGSOUND:case I.LINK:case I.META:case I.NOFRAMES:case I.SCRIPT:case I.STYLE:case I.TEMPLATE:case I.TITLE:{fi(n,s);break}case I.CAPTION:case I.COLGROUP:case I.TBODY:case I.TFOOT:case I.THEAD:{n.tmplInsertionModeStack[0]=Ge.IN_TABLE,n.insertionMode=Ge.IN_TABLE,fh(n,s);break}case I.COL:{n.tmplInsertionModeStack[0]=Ge.IN_COLUMN_GROUP,n.insertionMode=Ge.IN_COLUMN_GROUP,bh(n,s);break}case I.TR:{n.tmplInsertionModeStack[0]=Ge.IN_TABLE_BODY,n.insertionMode=Ge.IN_TABLE_BODY,Vg(n,s);break}case I.TD:case I.TH:{n.tmplInsertionModeStack[0]=Ge.IN_ROW,n.insertionMode=Ge.IN_ROW,jg(n,s);break}default:n.tmplInsertionModeStack[0]=Ge.IN_BODY,n.insertionMode=Ge.IN_BODY,fa(n,s)}}function Ry(n,s){s.tagID===I.TEMPLATE&&jc(n,s)}function Dy(n,s){n.openElements.tmplCount>0?(n.openElements.popUntilTagNamePopped(I.TEMPLATE),n.activeFormattingElements.clearToLastMarker(),n.tmplInsertionModeStack.shift(),n._resetInsertionMode(),n.onEof(s)):hh(n,s)}function M2(n,s){s.tagID===I.HTML?fa(n,s):hf(n,s)}function Tk(n,s){var l;if(s.tagID===I.HTML){if(n.fragmentContext||(n.insertionMode=Ge.AFTER_AFTER_BODY),n.options.sourceCodeLocationInfo&&n.openElements.tagIDs[0]===I.HTML){n._setEndLocation(n.openElements.items[0],s);const c=n.openElements.items[1];c&&!(!((l=n.treeAdapter.getNodeSourceCodeLocation(c))===null||l===void 0)&&l.endTag)&&n._setEndLocation(c,s)}}else hf(n,s)}function hf(n,s){n.insertionMode=Ge.IN_BODY,Lg(n,s)}function P2(n,s){switch(s.tagID){case I.HTML:{fa(n,s);break}case I.FRAMESET:{n._insertElement(s,Wt.HTML);break}case I.FRAME:{n._appendElement(s,Wt.HTML),s.ackSelfClosing=!0;break}case I.NOFRAMES:{fi(n,s);break}default:}}function Zc(n,s){s.tagID===I.FRAMESET&&!n.openElements.isRootHtmlElementCurrent()&&(n.openElements.pop(),!n.fragmentContext&&n.openElements.currentTagId!==I.FRAMESET&&(n.insertionMode=Ge.AFTER_FRAMESET))}function F2(n,s){switch(s.tagID){case I.HTML:{fa(n,s);break}case I.NOFRAMES:{fi(n,s);break}default:}}function Ba(n,s){s.tagID===I.HTML&&(n.insertionMode=Ge.AFTER_AFTER_FRAMESET)}function kr(n,s){s.tagID===I.HTML?fa(n,s):wa(n,s)}function wa(n,s){n.insertionMode=Ge.IN_BODY,Lg(n,s)}function Ck(n,s){switch(s.tagID){case I.HTML:{fa(n,s);break}case I.NOFRAMES:{fi(n,s);break}default:}}function kn(n,s){s.chars=es,n._insertCharacters(s)}function ou(n,s){n._insertCharacters(s),n.framesetOk=!1}function qg(n){for(;n.treeAdapter.getNamespaceURI(n.openElements.current)!==Wt.HTML&&!n._isIntegrationPoint(n.openElements.currentTagId,n.openElements.current);)n.openElements.pop()}function pf(n,s){if(HC(s))qg(n),n._startTagOutsideForeignContent(s);else{const l=n._getAdjustedCurrentElement(),c=n.treeAdapter.getNamespaceURI(l);c===Wt.MATHML?Xv(s):c===Wt.SVG&&(zC(s),Kv(s)),xy(s),s.selfClosing?n._appendElement(s,c):n._insertElement(s,c),s.ackSelfClosing=!0}}function Iy(n,s){if(s.tagID===I.P||s.tagID===I.BR){qg(n),n._endTagOutsideForeignContent(s);return}for(let l=n.openElements.stackTop;l>0;l--){const c=n.openElements.items[l];if(n.treeAdapter.getNamespaceURI(c)===Wt.HTML){n._endTagOutsideForeignContent(s);break}const p=n.treeAdapter.getTagName(c);if(p.toLowerCase()===s.tagName){s.tagName=p,n.openElements.shortenToLength(l);break}}}const Xg=/["&'<>$\x80-\uFFFF]/g,ff=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),yh=String.prototype.codePointAt!=null?(n,s)=>n.codePointAt(s):(n,s)=>(n.charCodeAt(s)&64512)===55296?(n.charCodeAt(s)-55296)*1024+n.charCodeAt(s+1)-56320+65536:n.charCodeAt(s);function Ak(n){let s="",l=0,c;for(;(c=Xg.exec(n))!==null;){const p=c.index,g=n.charCodeAt(p),O=ff.get(g);O!==void 0?(s+=n.substring(l,p)+O,l=p+1):(s+=`${n.substring(l,p)}&#x${yh(n,p).toString(16)};`,l=Xg.lastIndex+=+((g&64512)===55296))}return s+n.substr(l)}const B2=null;function mf(n,s){return function(c){let p,g=0,O="";for(;p=n.exec(c);)g!==p.index&&(O+=c.substring(g,p.index)),O+=s.get(p[0].charCodeAt(0)),g=p.index+1;return O+c.substring(g)}}const gf=mf(/[&<>'"]/g,ff),Kg=mf(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Jg=mf(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),bf=new Set([vt.AREA,vt.BASE,vt.BASEFONT,vt.BGSOUND,vt.BR,vt.COL,vt.EMBED,vt.FRAME,vt.HR,vt.IMG,vt.INPUT,vt.KEYGEN,vt.LINK,vt.META,vt.PARAM,vt.SOURCE,vt.TRACK,vt.WBR]);function Wu(n,s){return s.treeAdapter.isElementNode(n)&&s.treeAdapter.getNamespaceURI(n)===NS.HTML&&bf.has(s.treeAdapter.getTagName(n))}const Wc={treeAdapter:zc,scriptingEnabled:!0};function Of(n,s){const l=je(je({},Wc),s);return Wu(n,l)?"":yf(n,l)}function Eh(n,s){const l=je(je({},Wc),s);return Ef(n,l)}function yf(n,s){let l="";const c=s.treeAdapter.isElementNode(n)&&s.treeAdapter.getTagName(n)===$.TEMPLATE&&s.treeAdapter.getNamespaceURI(n)===NS.HTML?s.treeAdapter.getTemplateContent(n):n,p=s.treeAdapter.getChildNodes(c);if(p)for(const g of p)l+=Ef(g,s);return l}function Ef(n,s){return s.treeAdapter.isElementNode(n)?e0(n,s):s.treeAdapter.isTextNode(n)?t0(n,s):s.treeAdapter.isCommentNode(n)?n0(n,s):s.treeAdapter.isDocumentTypeNode(n)?r0(n,s):""}function e0(n,s){const l=s.treeAdapter.getTagName(n);return`<${l}${Gu(n,s)}>${Wu(n,s)?"":`${yf(n,s)}`}`}function Gu(n,{treeAdapter:s}){let l="";for(const c of s.getAttrList(n)){if(l+=" ",!c.namespace)l+=c.name;else switch(c.namespace){case NS.XML:{l+=`xml:${c.name}`;break}case NS.XMLNS:{c.name!=="xmlns"&&(l+="xmlns:"),l+=c.name;break}case NS.XLINK:{l+=`xlink:${c.name}`;break}default:l+=`${c.prefix}:${c.name}`}l+=`="${escapeAttribute(c.value)}"`}return l}function t0(n,s){const{treeAdapter:l}=s,c=l.getTextNodeContent(n),p=l.getParentNode(n),g=p&&l.isElementNode(p)&&l.getTagName(p);return g&&l.getNamespaceURI(p)===NS.HTML&&hasUnescapedText(g,s.scriptingEnabled)?c:escapeText(c)}function n0(n,{treeAdapter:s}){return``}function r0(n,{treeAdapter:s}){return``}function Gc(n,s){return Parser.parse(n,s)}function _k(n,s,l){typeof n=="string"&&(l=s,s=n,n=null);const c=Parser.getFragmentParser(n,l);return c.tokenizer.write(s,!0),c.getFragment()}const Yc=Sf("end"),Us=Sf("start");function Sf(n){return s;function s(l){const c=l&&l.position&&l.position[n]||{};if(typeof c.line=="number"&&c.line>0&&typeof c.column=="number"&&c.column>0)return{line:c.line,column:c.column,offset:typeof c.offset=="number"&&c.offset>-1?c.offset:void 0}}}function Ly(n){const s=Us(n),l=Yc(n);if(s&&l)return{start:s,end:l}}const gl=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),vf={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function kf(n,s){const l=$y(n),c=zu("type",{handlers:{root:i0,element:s0,text:My,comment:Sh,doctype:Py,raw:a0},unknown:Nk}),p={parser:l?new Ig(vf):Ig.getFragmentParser(void 0,vf),handle(w){c(w,p)},stitches:!1,options:s||{}};c(n,p),lu(p,Us());const g=l?p.parser.document:p.parser.getFragment(),O=sC(g,{file:p.options.file});return p.stitches&&Ki(O,"comment",function(w,C,L){const H=w;if(H.value.stitch&&L&&C!==void 0){const j=L.children;return j[C]=H.value.stitch,C}}),O.type==="root"&&O.children.length===1&&O.children[0].type===n.type?O.children[0]:O}function wf(n,s){let l=-1;if(n)for(;++l4&&(s.parser.tokenizer.state=0);const l={type:di.CHARACTER,chars:n.value,location:qc(n)};lu(s,Us(n)),s.parser.currentToken=l,s.parser._processToken(s.parser.currentToken)}function Py(n,s){const l={type:di.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:qc(n)};lu(s,Us(n)),s.parser.currentToken=l,s.parser._processToken(s.parser.currentToken)}function bl(n,s){s.stitches=!0;const l=Rk(n);if("children"in n&&"children"in l){const c=kf({type:"root",children:n.children},s.options);l.children=c.children}Sh({type:"comment",value:{stitch:l}},s)}function Sh(n,s){const l=n.value,c={type:di.COMMENT,data:l,location:qc(n)};lu(s,Us(n)),s.parser.currentToken=c,s.parser._processToken(s.parser.currentToken)}function a0(n,s){if(s.parser.tokenizer.preprocessor.html="",s.parser.tokenizer.preprocessor.pos=-1,s.parser.tokenizer.preprocessor.lastGapPos=-2,s.parser.tokenizer.preprocessor.gapStack=[],s.parser.tokenizer.preprocessor.skipNextNewLine=!1,s.parser.tokenizer.preprocessor.lastChunkWritten=!1,s.parser.tokenizer.preprocessor.endOfChunkHit=!1,s.parser.tokenizer.preprocessor.isEol=!1,Fy(s,Us(n)),s.parser.tokenizer.write(n.value,!1),s.parser.tokenizer._runParsingLoop(),s.parser.tokenizer.state===72||s.parser.tokenizer.state===78){s.parser.tokenizer.preprocessor.lastChunkWritten=!0;const l=s.parser.tokenizer._consume();s.parser.tokenizer._callState(l)}}function Nk(n,s){const l=n;if(s.options.passThrough&&s.options.passThrough.includes(l.type))bl(l,s);else{let c="";throw gl.has(l.type)&&(c=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+l.type+"` node"+c)}}function lu(n,s){Fy(n,s);const l=n.parser.tokenizer.currentCharacterToken;l&&l.location&&(l.location.endLine=n.parser.tokenizer.preprocessor.line,l.location.endCol=n.parser.tokenizer.preprocessor.col+1,l.location.endOffset=n.parser.tokenizer.preprocessor.offset+1,n.parser.currentToken=l,n.parser._processToken(n.parser.currentToken)),n.parser.tokenizer.paused=!1,n.parser.tokenizer.inLoop=!1,n.parser.tokenizer.active=!1,n.parser.tokenizer.returnState=Os.DATA,n.parser.tokenizer.charRefCode=-1,n.parser.tokenizer.consumedAfterSnapshot=-1,n.parser.tokenizer.currentLocation=null,n.parser.tokenizer.currentCharacterToken=null,n.parser.tokenizer.currentToken=null,n.parser.tokenizer.currentAttr={name:"",value:""}}function Fy(n,s){if(s&&s.offset!==void 0){const l={startLine:s.line,startCol:s.column,startOffset:s.offset,endLine:-1,endCol:-1,endOffset:-1};n.parser.tokenizer.preprocessor.lineStartPos=-s.column+1,n.parser.tokenizer.preprocessor.droppedBufferSize=s.offset,n.parser.tokenizer.preprocessor.line=s.line,n.parser.tokenizer.currentLocation=l}}function vh(n,s){const l=n.tagName.toLowerCase();if(s.parser.tokenizer.state===Os.PLAINTEXT)return;lu(s,Us(n));const c=s.parser.openElements.current;let p="namespaceURI"in c?c.namespaceURI:Fo.t.html;p===Fo.t.html&&l==="svg"&&(p=Fo.t.svg);const g=xv(_n(je({},n),{children:[]}),{space:p===Fo.t.svg?"svg":"html"}),O={type:di.START_TAG,tagName:l,tagID:ch(l),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in g?g.attrs:[],location:qc(n)};s.parser.currentToken=O,s.parser._processToken(s.parser.currentToken),s.parser.tokenizer.lastStartTagName=l}function By(n,s){const l=n.tagName.toLowerCase();if(!s.parser.tokenizer.inForeignNode&&pC.includes(l)||s.parser.tokenizer.state===Os.PLAINTEXT)return;lu(s,Yc(n));const c={type:di.END_TAG,tagName:l,tagID:ch(l),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:qc(n)};s.parser.currentToken=c,s.parser._processToken(s.parser.currentToken),l===s.parser.tokenizer.lastStartTagName&&(s.parser.tokenizer.state===Os.RCDATA||s.parser.tokenizer.state===Os.RAWTEXT||s.parser.tokenizer.state===Os.SCRIPT_DATA)&&(s.parser.tokenizer.state=Os.DATA)}function $y(n){const s=n.type==="root"?n.children[0]:n;return!!(s&&(s.type==="doctype"||s.type==="element"&&s.tagName.toLowerCase()==="html"))}function qc(n){const s=Us(n)||{line:void 0,column:void 0,offset:void 0},l=Yc(n)||{line:void 0,column:void 0,offset:void 0};return{startLine:s.line,startCol:s.column,startOffset:s.offset,endLine:l.line,endCol:l.column,endOffset:l.offset}}function Rk(n){return"children"in n?Hc(_n(je({},n),{children:[]})):Hc(n)}function Uy(n){return function(s,l){return kf(s,_n(je({},n),{file:l}))}}function $2(n,s){if(n==null)return{};var l={};for(var c in n)if({}.hasOwnProperty.call(n,c)){if(s.includes(c))continue;l[c]=n[c]}return l}const U2=/[$_\p{ID_Start}]/u,o0=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,l0=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,H2=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,z2=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Dk={};function Xc(n){return n?U2.test(String.fromCodePoint(n)):!1}function Q2(n,s){const c=(s||Dk).jsx?l0:o0;return n?c.test(String.fromCodePoint(n)):!1}function kh(n,s){return((s||Dk).jsx?z2:H2).test(n)}var Hy=z(33880),zy=z(39221),Ik=zy.default||zy;function Yu(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Qy(n.position):"start"in n||"end"in n?Qy(n):"line"in n||"column"in n?u0(n):""}function u0(n){return Lk(n&&n.line)+":"+Lk(n&&n.column)}function Qy(n){return u0(n&&n.start)+"-"+u0(n&&n.end)}function Lk(n){return n&&typeof n=="number"?n:1}class hs extends Error{constructor(s,l,c){super(),typeof l=="string"&&(c=l,l=void 0);let p="",g={},O=!1;if(l&&("line"in l&&"column"in l?g={place:l}:"start"in l&&"end"in l?g={place:l}:"type"in l?g={ancestors:[l],place:l.position}:g=je({},l)),typeof s=="string"?p=s:!g.cause&&s&&(O=!0,p=s.message,g.cause=s),!g.ruleId&&!g.source&&typeof c=="string"){const C=c.indexOf(":");C===-1?g.ruleId=c:(g.source=c.slice(0,C),g.ruleId=c.slice(C+1))}if(!g.place&&g.ancestors&&g.ancestors){const C=g.ancestors[g.ancestors.length-1];C&&(g.place=C.position)}const w=g.place&&"start"in g.place?g.place.start:g.place;this.ancestors=g.ancestors||void 0,this.cause=g.cause||void 0,this.column=w?w.column:void 0,this.fatal=void 0,this.file,this.message=p,this.line=w?w.line:void 0,this.name=Yu(g.place)||"1:1",this.place=g.place||void 0,this.reason=this.message,this.ruleId=g.ruleId||void 0,this.source=g.source||void 0,this.stack=O&&g.cause&&typeof g.cause.stack=="string"?g.cause.stack:"",this.actual,this.expected,this.note,this.url}}hs.prototype.file="",hs.prototype.name="",hs.prototype.reason="",hs.prototype.message="",hs.prototype.stack="",hs.prototype.column=void 0,hs.prototype.line=void 0,hs.prototype.ancestors=void 0,hs.prototype.cause=void 0,hs.prototype.fatal=void 0,hs.prototype.place=void 0,hs.prototype.ruleId=void 0,hs.prototype.source=void 0;const Cs={}.hasOwnProperty,V2=new Map,j2=/[A-Z]/g,Vy=/-([a-z])/g,Z2=new Set(["table","tbody","thead","tfoot","tr"]),W2=new Set(["td","th"]),ts="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function G2(n,s){if(!s||s.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const l=s.filePath||void 0;let c;if(s.development){if(typeof s.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");c=eA(l,s.jsxDEV)}else{if(typeof s.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof s.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");c=J2(l,s.jsx,s.jsxs)}const p={Fragment:s.Fragment,ancestors:[],components:s.components||{},create:c,elementAttributeNameCase:s.elementAttributeNameCase||"react",evaluater:s.createEvaluater?s.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:s.ignoreInvalidStyle||!1,passKeys:s.passKeys!==!1,passNode:s.passNode||!1,schema:s.space==="svg"?aa.YP:aa.dy,stylePropertyNameCase:s.stylePropertyNameCase||"dom",tableCellAlignToStyle:s.tableCellAlignToStyle!==!1},g=jy(p,n,void 0);return g&&typeof g!="string"?g:p.create(n,p.Fragment,{children:g||void 0},void 0)}function jy(n,s,l){if(s.type==="element")return Y2(n,s,l);if(s.type==="mdxFlowExpression"||s.type==="mdxTextExpression")return Mk(n,s);if(s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement")return q2(n,s,l);if(s.type==="mdxjsEsm")return Pk(n,s);if(s.type==="root")return X2(n,s,l);if(s.type==="text")return K2(n,s)}function Y2(n,s,l){const c=n.schema;let p=c;s.tagName.toLowerCase()==="svg"&&c.space==="html"&&(p=aa.YP,n.schema=p),n.ancestors.push(s);const g=qy(n,s.tagName,!1),O=tA(n,s);let w=Wy(n,s);return Z2.has(s.tagName)&&(w=w.filter(function(C){return typeof C=="string"?!XO(C):!0})),Fk(n,O,g,s),Zy(O,w),n.ancestors.pop(),n.schema=c,n.create(s,g,O,l)}function Mk(n,s){if(s.data&&s.data.estree&&n.evaluater){const c=s.data.estree.body[0];return c.type,n.evaluater.evaluateExpression(c.expression)}wh(n,s.position)}function Pk(n,s){if(s.data&&s.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(s.data.estree);wh(n,s.position)}function q2(n,s,l){const c=n.schema;let p=c;s.name==="svg"&&c.space==="html"&&(p=aa.YP,n.schema=p),n.ancestors.push(s);const g=s.name===null?n.Fragment:qy(n,s.name,!0),O=nA(n,s),w=Wy(n,s);return Fk(n,O,g,s),Zy(O,w),n.ancestors.pop(),n.schema=c,n.create(s,g,O,l)}function X2(n,s,l){const c={};return Zy(c,Wy(n,s)),n.create(s,n.Fragment,c,l)}function K2(n,s){return s.value}function Fk(n,s,l,c){typeof l!="string"&&l!==n.Fragment&&n.passNode&&(s.node=c)}function Zy(n,s){if(s.length>0){const l=s.length>1?s:s[0];l&&(n.children=l)}}function J2(n,s,l){return c;function c(p,g,O,w){const L=Array.isArray(O.children)?l:s;return w?L(g,O,w):L(g,O)}}function eA(n,s){return l;function l(c,p,g,O){const w=Array.isArray(g.children),C=Us(c);return s(p,g,O,w,{columnNumber:C?C.column-1:void 0,fileName:n,lineNumber:C?C.line:void 0},void 0)}}function tA(n,s){const l={};let c,p;for(p in s.properties)if(p!=="children"&&Cs.call(s.properties,p)){const g=Gy(n,p,s.properties[p]);if(g){const[O,w]=g;n.tableCellAlignToStyle&&O==="align"&&typeof w=="string"&&W2.has(s.tagName)?c=w:l[O]=w}}if(c){const g=l.style||(l.style={});g[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=c}return l}function nA(n,s){const l={};for(const c of s.attributes)if(c.type==="mdxJsxExpressionAttribute")if(c.data&&c.data.estree&&n.evaluater){const g=c.data.estree.body[0];g.type;const O=g.expression;O.type;const w=O.properties[0];w.type,Object.assign(l,n.evaluater.evaluateExpression(w.argument))}else wh(n,s.position);else{const p=c.name;let g;if(c.value&&typeof c.value=="object")if(c.value.data&&c.value.data.estree&&n.evaluater){const w=c.value.data.estree.body[0];w.type,g=n.evaluater.evaluateExpression(w.expression)}else wh(n,s.position);else g=c.value===null?!0:c.value;l[p]=g}return l}function Wy(n,s){const l=[];let c=-1;const p=n.passKeys?new Map:V2;for(;++cp?0:p+s:s=s>p?p:s,l=l>0?l:0,c.length<1e4)O=Array.from(c),O.unshift(s,l),n.splice(...O);else for(l&&n.splice(s,l);g0?(uu(n,n.length,0,s),n):s}class Kc{constructor(s){this.left=s?[...s]:[],this.right=[]}get(s){if(s<0||s>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+s+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return sthis.left.length?this.right.slice(this.right.length-c+this.left.length,this.right.length-s+this.left.length).reverse():this.left.slice(s).concat(this.right.slice(this.right.length-c+this.left.length).reverse())}splice(s,l,c){const p=l||0;this.setCursor(Math.trunc(s));const g=this.right.splice(this.right.length-p,Number.POSITIVE_INFINITY);return c&&xf(this.left,c),g.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(s){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(s)}pushMany(s){this.setCursor(Number.POSITIVE_INFINITY),xf(this.left,s)}unshift(s){this.setCursor(0),this.right.push(s)}unshiftMany(s){this.setCursor(0),xf(this.right,s.reverse())}setCursor(s){if(!(s===this.left.length||s>this.left.length&&this.right.length===0||s<0&&this.left.length===0))if(s-1&&n.test(String.fromCharCode(l))}}function ji(n,s,l,c){const p=c?c-1:Number.POSITIVE_INFINITY;let g=0;return O;function O(C){return Ni(C)?(n.enter(l),w(C)):s(C)}function w(C){return Ni(C)&&g++O))return;const tn=s.events.length;let Qn=tn,mn,it;for(;Qn--;)if(s.events[Qn][0]==="exit"&&s.events[Qn][1].type==="chunkFlow"){if(mn){it=s.events[Qn][1].end;break}mn=!0}for(Ke(c),yt=tn;ytkt;){const ln=l[Jt];s.containerState=ln[1],ln[0].exit.call(s,n)}l.length=kt}function Ot(){p.write([null]),g=void 0,p=void 0,s.containerState._closeFlow=void 0}}function dI(n,s,l){return ji(n,n.attempt(this.parser.constructs.document,s,l),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const ed={tokenize:bA,partial:!0};function bA(n,s,l){return c;function c(g){return Ni(g)?ji(n,p,"linePrefix")(g):p(g)}function p(g){return g===null||ni(g)?s(g):l(g)}}const OA={tokenize:SA,resolve:EA},yA={tokenize:vA,partial:!0};function EA(n){return c0(n),n}function SA(n,s){let l;return c;function c(w){return n.enter("content"),l=n.enter("chunkContent",{contentType:"content"}),p(w)}function p(w){return w===null?g(w):ni(w)?n.check(yA,O,g)(w):(n.consume(w),p)}function g(w){return n.exit("chunkContent"),n.exit("content"),s(w)}function O(w){return n.consume(w),n.exit("chunkContent"),l.next=n.enter("chunkContent",{contentType:"content",previous:l}),l=l.next,p}}function vA(n,s,l){const c=this;return p;function p(O){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(O),n.exit("lineEnding"),ji(n,g,"linePrefix")}function g(O){if(O===null||ni(O))return l(O);const w=c.events[c.events.length-1];return!c.parser.constructs.disable.null.includes("codeIndented")&&w&&w[1].type==="linePrefix"&&w[2].sliceSerialize(w[1],!0).length>=4?s(O):n.interrupt(c.parser.constructs.flow,l,s)(O)}}const kA={tokenize:wA};function wA(n){const s=this,l=n.attempt(ed,c,n.attempt(this.parser.constructs.flowInitial,p,ji(n,n.attempt(this.parser.constructs.flow,p,n.attempt(OA,p)),"linePrefix")));return l;function c(g){if(g===null){n.consume(g);return}return n.enter("lineEndingBlank"),n.consume(g),n.exit("lineEndingBlank"),s.currentConstruct=void 0,l}function p(g){if(g===null){n.consume(g);return}return n.enter("lineEnding"),n.consume(g),n.exit("lineEnding"),s.currentConstruct=void 0,l}}const xA={resolveAll:tE()},Wk=Gk("string"),TA=Gk("text");function Gk(n){return{tokenize:s,resolveAll:tE(n==="text"?td:void 0)};function s(l){const c=this,p=this.parser.constructs[n],g=l.attempt(p,O,w);return O;function O(H){return L(H)?g(H):w(H)}function w(H){if(H===null){l.consume(H);return}return l.enter("data"),l.consume(H),C}function C(H){return L(H)?(l.exit("data"),g(H)):(l.consume(H),C)}function L(H){if(H===null)return!0;const j=p[H];let ee=-1;if(j)for(;++ee-1){const w=O[0];typeof w=="string"?O[0]=w.slice(c):O.shift()}g>0&&O.push(n[p].slice(0,g))}return O}function Yk(n,s){let l=-1;const c=[];let p;for(;++l=3&&(L===null||ni(L))?(n.exit("thematicBreak"),s(L)):l(L)}function C(L){return L===p?(n.consume(L),c++,C):(n.exit("thematicBreakSequence"),Ni(L)?ji(n,w,"whitespace")(L):w(L))}}const $a={name:"list",tokenize:qk,continuation:{tokenize:NA},exit:DA},AA={tokenize:nE,partial:!0},_A={tokenize:RA,partial:!0};function qk(n,s,l){const c=this,p=c.events[c.events.length-1];let g=p&&p[1].type==="linePrefix"?p[2].sliceSerialize(p[1],!0).length:0,O=0;return w;function w(se){const Se=c.containerState.type||(se===42||se===43||se===45?"listUnordered":"listOrdered");if(Se==="listUnordered"?!c.containerState.marker||se===c.containerState.marker:Jc(se)){if(c.containerState.type||(c.containerState.type=Se,n.enter(Se,{_container:!0})),Se==="listUnordered")return n.enter("listItemPrefix"),se===42||se===45?n.check(p0,l,L)(se):L(se);if(!c.interrupt||se===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),C(se)}return l(se)}function C(se){return Jc(se)&&++O<10?(n.consume(se),C):(!c.interrupt||O<2)&&(c.containerState.marker?se===c.containerState.marker:se===41||se===46)?(n.exit("listItemValue"),L(se)):l(se)}function L(se){return n.enter("listItemMarker"),n.consume(se),n.exit("listItemMarker"),c.containerState.marker=c.containerState.marker||se,n.check(ed,c.interrupt?l:H,n.attempt(AA,ee,j))}function H(se){return c.containerState.initialBlankLine=!0,g++,ee(se)}function j(se){return Ni(se)?(n.enter("listItemPrefixWhitespace"),n.consume(se),n.exit("listItemPrefixWhitespace"),ee):l(se)}function ee(se){return c.containerState.size=g+c.sliceSerialize(n.exit("listItemPrefix"),!0).length,s(se)}}function NA(n,s,l){const c=this;return c.containerState._closeFlow=void 0,n.check(ed,p,g);function p(w){return c.containerState.furtherBlankLines=c.containerState.furtherBlankLines||c.containerState.initialBlankLine,ji(n,s,"listItemIndent",c.containerState.size+1)(w)}function g(w){return c.containerState.furtherBlankLines||!Ni(w)?(c.containerState.furtherBlankLines=void 0,c.containerState.initialBlankLine=void 0,O(w)):(c.containerState.furtherBlankLines=void 0,c.containerState.initialBlankLine=void 0,n.attempt(_A,s,O)(w))}function O(w){return c.containerState._closeFlow=!0,c.interrupt=void 0,ji(n,n.attempt($a,s,l),"linePrefix",c.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w)}}function RA(n,s,l){const c=this;return ji(n,p,"listItemIndent",c.containerState.size+1);function p(g){const O=c.events[c.events.length-1];return O&&O[1].type==="listItemIndent"&&O[2].sliceSerialize(O[1],!0).length===c.containerState.size?s(g):l(g)}}function DA(n){n.exit(this.containerState.type)}function nE(n,s,l){const c=this;return ji(n,p,"listItemPrefixWhitespace",c.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function p(g){const O=c.events[c.events.length-1];return!Ni(g)&&O&&O[1].type==="listItemPrefixWhitespace"?s(g):l(g)}}const rE={name:"blockQuote",tokenize:Xk,continuation:{tokenize:IA},exit:hI};function Xk(n,s,l){const c=this;return p;function p(O){if(O===62){const w=c.containerState;return w.open||(n.enter("blockQuote",{_container:!0}),w.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(O),n.exit("blockQuoteMarker"),g}return l(O)}function g(O){return Ni(O)?(n.enter("blockQuotePrefixWhitespace"),n.consume(O),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),s):(n.exit("blockQuotePrefix"),s(O))}}function IA(n,s,l){const c=this;return p;function p(O){return Ni(O)?ji(n,g,"linePrefix",c.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):g(O)}function g(O){return n.attempt(rE,s,l)(O)}}function hI(n){n.exit("blockQuote")}function Ch(n,s,l,c,p,g,O,w,C){const L=C||Number.POSITIVE_INFINITY;let H=0;return j;function j(Ke){return Ke===60?(n.enter(c),n.enter(p),n.enter(g),n.consume(Ke),n.exit(g),ee):Ke===null||Ke===32||Ke===41||eE(Ke)?l(Ke):(n.enter(c),n.enter(O),n.enter(w),n.enter("chunkString",{contentType:"string"}),at(Ke))}function ee(Ke){return Ke===62?(n.enter(g),n.consume(Ke),n.exit(g),n.exit(p),n.exit(c),s):(n.enter(w),n.enter("chunkString",{contentType:"string"}),se(Ke))}function se(Ke){return Ke===62?(n.exit("chunkString"),n.exit(w),ee(Ke)):Ke===null||Ke===60||ni(Ke)?l(Ke):(n.consume(Ke),Ke===92?Se:se)}function Se(Ke){return Ke===60||Ke===62||Ke===92?(n.consume(Ke),se):se(Ke)}function at(Ke){return!H&&(Ke===null||Ke===41||la(Ke))?(n.exit("chunkString"),n.exit(w),n.exit(O),n.exit(c),s(Ke)):H999||se===null||se===91||se===93&&!C||se===94&&!w&&"_hiddenFootnoteSupport"in O.parser.constructs?l(se):se===93?(n.exit(g),n.enter(p),n.consume(se),n.exit(p),n.exit(c),s):ni(se)?(n.enter("lineEnding"),n.consume(se),n.exit("lineEnding"),H):(n.enter("chunkString",{contentType:"string"}),j(se))}function j(se){return se===null||se===91||se===93||ni(se)||w++>999?(n.exit("chunkString"),H(se)):(n.consume(se),C||(C=!Ni(se)),se===92?ee:j)}function ee(se){return se===91||se===92||se===93?(n.consume(se),w++,j):j(se)}}function Jk(n,s,l,c,p,g){let O;return w;function w(ee){return ee===34||ee===39||ee===40?(n.enter(c),n.enter(p),n.consume(ee),n.exit(p),O=ee===40?41:ee,C):l(ee)}function C(ee){return ee===O?(n.enter(p),n.consume(ee),n.exit(p),n.exit(c),s):(n.enter(g),L(ee))}function L(ee){return ee===O?(n.exit(g),C(O)):ee===null?l(ee):ni(ee)?(n.enter("lineEnding"),n.consume(ee),n.exit("lineEnding"),ji(n,L,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),H(ee))}function H(ee){return ee===O||ee===null||ni(ee)?(n.exit("chunkString"),L(ee)):(n.consume(ee),ee===92?j:H)}function j(ee){return ee===O||ee===92?(n.consume(ee),H):H(ee)}}function Ah(n,s){let l;return c;function c(p){return ni(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),l=!0,c):Ni(p)?ji(n,c,l?"linePrefix":"lineSuffix")(p):s(p)}}function f0(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const LA={name:"definition",tokenize:MA},ew={tokenize:PA,partial:!0};function MA(n,s,l){const c=this;let p;return g;function g(se){return n.enter("definition"),O(se)}function O(se){return Kk.call(c,n,w,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(se)}function w(se){return p=f0(c.sliceSerialize(c.events[c.events.length-1][1]).slice(1,-1)),se===58?(n.enter("definitionMarker"),n.consume(se),n.exit("definitionMarker"),C):l(se)}function C(se){return la(se)?Ah(n,L)(se):L(se)}function L(se){return Ch(n,H,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(se)}function H(se){return n.attempt(ew,j,j)(se)}function j(se){return Ni(se)?ji(n,ee,"whitespace")(se):ee(se)}function ee(se){return se===null||ni(se)?(n.exit("definition"),c.parser.defined.push(p),s(se)):l(se)}}function PA(n,s,l){return c;function c(w){return la(w)?Ah(n,p)(w):l(w)}function p(w){return Jk(n,g,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(w)}function g(w){return Ni(w)?ji(n,O,"whitespace")(w):O(w)}function O(w){return w===null||ni(w)?s(w):l(w)}}const iE={name:"codeIndented",tokenize:nw},tw={tokenize:rw,partial:!0};function nw(n,s,l){const c=this;return p;function p(L){return n.enter("codeIndented"),ji(n,g,"linePrefix",5)(L)}function g(L){const H=c.events[c.events.length-1];return H&&H[1].type==="linePrefix"&&H[2].sliceSerialize(H[1],!0).length>=4?O(L):l(L)}function O(L){return L===null?C(L):ni(L)?n.attempt(tw,O,C)(L):(n.enter("codeFlowValue"),w(L))}function w(L){return L===null||ni(L)?(n.exit("codeFlowValue"),O(L)):(n.consume(L),w)}function C(L){return n.exit("codeIndented"),s(L)}}function rw(n,s,l){const c=this;return p;function p(O){return c.parser.lazy[c.now().line]?l(O):ni(O)?(n.enter("lineEnding"),n.consume(O),n.exit("lineEnding"),p):ji(n,g,"linePrefix",5)(O)}function g(O){const w=c.events[c.events.length-1];return w&&w[1].type==="linePrefix"&&w[2].sliceSerialize(w[1],!0).length>=4?s(O):ni(O)?p(O):l(O)}}const iw={name:"headingAtx",tokenize:aw,resolve:sw};function sw(n,s){let l=n.length-2,c=3,p,g;return n[c][1].type==="whitespace"&&(c+=2),l-2>c&&n[l][1].type==="whitespace"&&(l-=2),n[l][1].type==="atxHeadingSequence"&&(c===l-1||l-4>c&&n[l-2][1].type==="whitespace")&&(l-=c+1===l?2:4),l>c&&(p={type:"atxHeadingText",start:n[c][1].start,end:n[l][1].end},g={type:"chunkText",start:n[c][1].start,end:n[l][1].end,contentType:"text"},uu(n,c,l-c+1,[["enter",p,s],["enter",g,s],["exit",g,s],["exit",p,s]])),n}function aw(n,s,l){let c=0;return p;function p(H){return n.enter("atxHeading"),g(H)}function g(H){return n.enter("atxHeadingSequence"),O(H)}function O(H){return H===35&&c++<6?(n.consume(H),O):H===null||la(H)?(n.exit("atxHeadingSequence"),w(H)):l(H)}function w(H){return H===35?(n.enter("atxHeadingSequence"),C(H)):H===null||ni(H)?(n.exit("atxHeading"),s(H)):Ni(H)?ji(n,w,"whitespace")(H):(n.enter("atxHeadingText"),L(H))}function C(H){return H===35?(n.consume(H),C):(n.exit("atxHeadingSequence"),w(H))}function L(H){return H===null||H===35||la(H)?(n.exit("atxHeadingText"),w(H)):(n.consume(H),L)}}const ow={name:"setextUnderline",tokenize:BA,resolveTo:FA};function FA(n,s){let l=n.length,c,p,g;for(;l--;)if(n[l][0]==="enter"){if(n[l][1].type==="content"){c=l;break}n[l][1].type==="paragraph"&&(p=l)}else n[l][1].type==="content"&&n.splice(l,1),!g&&n[l][1].type==="definition"&&(g=l);const O={type:"setextHeading",start:Object.assign({},n[p][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[p][1].type="setextHeadingText",g?(n.splice(p,0,["enter",O,s]),n.splice(g+1,0,["exit",n[c][1],s]),n[c][1].end=Object.assign({},n[g][1].end)):n[c][1]=O,n.push(["exit",O,s]),n}function BA(n,s,l){const c=this;let p;return g;function g(L){let H=c.events.length,j;for(;H--;)if(c.events[H][1].type!=="lineEnding"&&c.events[H][1].type!=="linePrefix"&&c.events[H][1].type!=="content"){j=c.events[H][1].type==="paragraph";break}return!c.parser.lazy[c.now().line]&&(c.interrupt||j)?(n.enter("setextHeadingLine"),p=L,O(L)):l(L)}function O(L){return n.enter("setextHeadingLineSequence"),w(L)}function w(L){return L===p?(n.consume(L),w):(n.exit("setextHeadingLineSequence"),Ni(L)?ji(n,C,"lineSuffix")(L):C(L))}function C(L){return L===null||ni(L)?(n.exit("setextHeadingLine"),s(L)):l(L)}}const $A=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],lw=["pre","script","style","textarea"],UA={name:"htmlFlow",tokenize:VA,resolveTo:QA,concrete:!0},HA={tokenize:ZA,partial:!0},zA={tokenize:jA,partial:!0};function QA(n){let s=n.length;for(;s--&&!(n[s][0]==="enter"&&n[s][1].type==="htmlFlow"););return s>1&&n[s-2][1].type==="linePrefix"&&(n[s][1].start=n[s-2][1].start,n[s+1][1].start=n[s-2][1].start,n.splice(s-2,2)),n}function VA(n,s,l){const c=this;let p,g,O,w,C;return L;function L(Qe){return H(Qe)}function H(Qe){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(Qe),j}function j(Qe){return Qe===33?(n.consume(Qe),ee):Qe===47?(n.consume(Qe),g=!0,at):Qe===63?(n.consume(Qe),p=3,c.interrupt?s:Fe):Ho(Qe)?(n.consume(Qe),O=String.fromCharCode(Qe),ot):l(Qe)}function ee(Qe){return Qe===45?(n.consume(Qe),p=2,se):Qe===91?(n.consume(Qe),p=5,w=0,Se):Ho(Qe)?(n.consume(Qe),p=4,c.interrupt?s:Fe):l(Qe)}function se(Qe){return Qe===45?(n.consume(Qe),c.interrupt?s:Fe):l(Qe)}function Se(Qe){const Xi="CDATA[";return Qe===Xi.charCodeAt(w++)?(n.consume(Qe),w===Xi.length?c.interrupt?s:An:Se):l(Qe)}function at(Qe){return Ho(Qe)?(n.consume(Qe),O=String.fromCharCode(Qe),ot):l(Qe)}function ot(Qe){if(Qe===null||Qe===47||Qe===62||la(Qe)){const Xi=Qe===47,As=O.toLowerCase();return!Xi&&!g&&lw.includes(As)?(p=1,c.interrupt?s(Qe):An(Qe)):$A.includes(O.toLowerCase())?(p=6,Xi?(n.consume(Qe),Ke):c.interrupt?s(Qe):An(Qe)):(p=7,c.interrupt&&!c.parser.lazy[c.now().line]?l(Qe):g?Ot(Qe):kt(Qe))}return Qe===45||go(Qe)?(n.consume(Qe),O+=String.fromCharCode(Qe),ot):l(Qe)}function Ke(Qe){return Qe===62?(n.consume(Qe),c.interrupt?s:An):l(Qe)}function Ot(Qe){return Ni(Qe)?(n.consume(Qe),Ot):it(Qe)}function kt(Qe){return Qe===47?(n.consume(Qe),it):Qe===58||Qe===95||Ho(Qe)?(n.consume(Qe),Jt):Ni(Qe)?(n.consume(Qe),kt):it(Qe)}function Jt(Qe){return Qe===45||Qe===46||Qe===58||Qe===95||go(Qe)?(n.consume(Qe),Jt):ln(Qe)}function ln(Qe){return Qe===61?(n.consume(Qe),yt):Ni(Qe)?(n.consume(Qe),ln):kt(Qe)}function yt(Qe){return Qe===null||Qe===60||Qe===61||Qe===62||Qe===96?l(Qe):Qe===34||Qe===39?(n.consume(Qe),C=Qe,tn):Ni(Qe)?(n.consume(Qe),yt):Qn(Qe)}function tn(Qe){return Qe===C?(n.consume(Qe),C=null,mn):Qe===null||ni(Qe)?l(Qe):(n.consume(Qe),tn)}function Qn(Qe){return Qe===null||Qe===34||Qe===39||Qe===47||Qe===60||Qe===61||Qe===62||Qe===96||la(Qe)?ln(Qe):(n.consume(Qe),Qn)}function mn(Qe){return Qe===47||Qe===62||Ni(Qe)?kt(Qe):l(Qe)}function it(Qe){return Qe===62?(n.consume(Qe),wr):l(Qe)}function wr(Qe){return Qe===null||ni(Qe)?An(Qe):Ni(Qe)?(n.consume(Qe),wr):l(Qe)}function An(Qe){return Qe===45&&p===2?(n.consume(Qe),Ur):Qe===60&&p===1?(n.consume(Qe),Nr):Qe===62&&p===4?(n.consume(Qe),Bi):Qe===63&&p===3?(n.consume(Qe),Fe):Qe===93&&p===5?(n.consume(Qe),nr):ni(Qe)&&(p===6||p===7)?(n.exit("htmlFlowData"),n.check(HA,Zi,Ln)(Qe)):Qe===null||ni(Qe)?(n.exit("htmlFlowData"),Ln(Qe)):(n.consume(Qe),An)}function Ln(Qe){return n.check(zA,hr,Zi)(Qe)}function hr(Qe){return n.enter("lineEnding"),n.consume(Qe),n.exit("lineEnding"),Jn}function Jn(Qe){return Qe===null||ni(Qe)?Ln(Qe):(n.enter("htmlFlowData"),An(Qe))}function Ur(Qe){return Qe===45?(n.consume(Qe),Fe):An(Qe)}function Nr(Qe){return Qe===47?(n.consume(Qe),O="",jr):An(Qe)}function jr(Qe){if(Qe===62){const Xi=O.toLowerCase();return lw.includes(Xi)?(n.consume(Qe),Bi):An(Qe)}return Ho(Qe)&&O.length<8?(n.consume(Qe),O+=String.fromCharCode(Qe),jr):An(Qe)}function nr(Qe){return Qe===93?(n.consume(Qe),Fe):An(Qe)}function Fe(Qe){return Qe===62?(n.consume(Qe),Bi):Qe===45&&p===2?(n.consume(Qe),Fe):An(Qe)}function Bi(Qe){return Qe===null||ni(Qe)?(n.exit("htmlFlowData"),Zi(Qe)):(n.consume(Qe),Bi)}function Zi(Qe){return n.exit("htmlFlow"),s(Qe)}}function jA(n,s,l){const c=this;return p;function p(O){return ni(O)?(n.enter("lineEnding"),n.consume(O),n.exit("lineEnding"),g):l(O)}function g(O){return c.parser.lazy[c.now().line]?l(O):s(O)}}function ZA(n,s,l){return c;function c(p){return n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),n.attempt(ed,s,l)}}const uw={tokenize:GA,partial:!0},cw={name:"codeFenced",tokenize:WA,concrete:!0};function WA(n,s,l){const c=this,p={tokenize:ln,partial:!0};let g=0,O=0,w;return C;function C(yt){return L(yt)}function L(yt){const tn=c.events[c.events.length-1];return g=tn&&tn[1].type==="linePrefix"?tn[2].sliceSerialize(tn[1],!0).length:0,w=yt,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),H(yt)}function H(yt){return yt===w?(O++,n.consume(yt),H):O<3?l(yt):(n.exit("codeFencedFenceSequence"),Ni(yt)?ji(n,j,"whitespace")(yt):j(yt))}function j(yt){return yt===null||ni(yt)?(n.exit("codeFencedFence"),c.interrupt?s(yt):n.check(uw,at,Jt)(yt)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),ee(yt))}function ee(yt){return yt===null||ni(yt)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),j(yt)):Ni(yt)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),ji(n,se,"whitespace")(yt)):yt===96&&yt===w?l(yt):(n.consume(yt),ee)}function se(yt){return yt===null||ni(yt)?j(yt):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),Se(yt))}function Se(yt){return yt===null||ni(yt)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),j(yt)):yt===96&&yt===w?l(yt):(n.consume(yt),Se)}function at(yt){return n.attempt(p,Jt,ot)(yt)}function ot(yt){return n.enter("lineEnding"),n.consume(yt),n.exit("lineEnding"),Ke}function Ke(yt){return g>0&&Ni(yt)?ji(n,Ot,"linePrefix",g+1)(yt):Ot(yt)}function Ot(yt){return yt===null||ni(yt)?n.check(uw,at,Jt)(yt):(n.enter("codeFlowValue"),kt(yt))}function kt(yt){return yt===null||ni(yt)?(n.exit("codeFlowValue"),Ot(yt)):(n.consume(yt),kt)}function Jt(yt){return n.exit("codeFenced"),s(yt)}function ln(yt,tn,Qn){let mn=0;return it;function it(Jn){return yt.enter("lineEnding"),yt.consume(Jn),yt.exit("lineEnding"),wr}function wr(Jn){return yt.enter("codeFencedFence"),Ni(Jn)?ji(yt,An,"linePrefix",c.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Jn):An(Jn)}function An(Jn){return Jn===w?(yt.enter("codeFencedFenceSequence"),Ln(Jn)):Qn(Jn)}function Ln(Jn){return Jn===w?(mn++,yt.consume(Jn),Ln):mn>=O?(yt.exit("codeFencedFenceSequence"),Ni(Jn)?ji(yt,hr,"whitespace")(Jn):hr(Jn)):Qn(Jn)}function hr(Jn){return Jn===null||ni(Jn)?(yt.exit("codeFencedFence"),tn(Jn)):Qn(Jn)}}}function GA(n,s,l){const c=this;return p;function p(O){return O===null?l(O):(n.enter("lineEnding"),n.consume(O),n.exit("lineEnding"),g)}function g(O){return c.parser.lazy[c.now().line]?l(O):s(O)}}const dw={name:"characterReference",tokenize:YA};function YA(n,s,l){const c=this;let p=0,g,O;return w;function w(j){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(j),n.exit("characterReferenceMarker"),C}function C(j){return j===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(j),n.exit("characterReferenceMarkerNumeric"),L):(n.enter("characterReferenceValue"),g=31,O=go,H(j))}function L(j){return j===88||j===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(j),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),g=6,O=uA,H):(n.enter("characterReferenceValue"),g=7,O=Jc,H(j))}function H(j){if(j===59&&p){const ee=n.exit("characterReferenceValue");return O===go&&!(0,q.T)(c.sliceSerialize(ee))?l(j):(n.enter("characterReferenceMarker"),n.consume(j),n.exit("characterReferenceMarker"),n.exit("characterReference"),s)}return O(j)&&p++1&&n[l][1].end.offset-n[l][1].start.offset>1?2:1;const j=Object.assign({},n[c][1].end),ee=Object.assign({},n[l][1].start);Tf(j,-C),Tf(ee,C),O={type:C>1?"strongSequence":"emphasisSequence",start:j,end:Object.assign({},n[c][1].end)},w={type:C>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[l][1].start),end:ee},g={type:C>1?"strongText":"emphasisText",start:Object.assign({},n[c][1].end),end:Object.assign({},n[l][1].start)},p={type:C>1?"strong":"emphasis",start:Object.assign({},O.start),end:Object.assign({},w.end)},n[c][1].end=Object.assign({},O.start),n[l][1].start=Object.assign({},w.end),L=[],n[c][1].end.offset-n[c][1].start.offset&&(L=mo(L,[["enter",n[c][1],s],["exit",n[c][1],s]])),L=mo(L,[["enter",p,s],["enter",O,s],["exit",O,s],["enter",g,s]]),L=mo(L,d0(s.parser.constructs.insideSpan.null,n.slice(c+1,l),s)),L=mo(L,[["exit",g,s],["enter",w,s],["exit",w,s],["exit",p,s]]),n[l][1].end.offset-n[l][1].start.offset?(H=2,L=mo(L,[["enter",n[l][1],s],["exit",n[l][1],s]])):H=0,uu(n,c-1,l-c+3,L),l=c+L.length-H-2;break}}for(l=-1;++l13&&l<32||l>126&&l<160||l>55295&&l<57344||l>64975&&l<65008||(l&65535)===65535||(l&65535)===65534||l>1114111?"\uFFFD":String.fromCodePoint(l)}const v_=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function k_(n){return n.replace(v_,w_)}function w_(n,s,l){if(s)return s;if(l.charCodeAt(0)===35){const p=l.charCodeAt(1),g=p===120||p===88;return kw(l.slice(g?2:1),g?16:10)}return(0,q.T)(l)||n}function oE(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ww={}.hasOwnProperty;function x_(n,s,l){return typeof s!="string"&&(l=s,s=void 0),T_(l)(aA(E_(l).document().write(S_()(n,s,!0))))}function T_(n){const s={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:g(j0),autolinkProtocol:mn,autolinkEmail:mn,atxHeading:g(Uh),blockQuote:g($i),characterEscape:mn,characterReference:mn,codeFenced:g(ga),codeFencedFenceInfo:O,codeFencedFenceMeta:O,codeIndented:g(ga,O),codeText:g(Ha,O),codeTextData:mn,data:mn,codeFlowValue:mn,definition:g(no),definitionDestinationString:O,definitionLabelString:O,definitionTitleString:O,emphasis:g(_s),hardBreakEscape:g(kl),hardBreakTrailing:g(kl),htmlFlow:g(is,O),htmlFlowData:mn,htmlText:g(is,O),htmlTextData:mn,image:g(ud),label:O,link:g(j0),listItem:g(qE),listItemValue:ee,listOrdered:g(jf,j),listUnordered:g(jf),paragraph:g(XE),reference:Qe,referenceString:O,resourceDestinationString:O,resourceTitleString:O,setextHeading:g(Uh),strong:g(Z0),thematicBreak:g(Zf)},exit:{atxHeading:C(),atxHeadingSequence:ln,autolink:C(),autolinkEmail:to,autolinkProtocol:Mi,blockQuote:C(),characterEscapeValue:it,characterReferenceMarkerHexadecimal:As,characterReferenceMarkerNumeric:As,characterReferenceValue:Mr,characterReference:zs,codeFenced:C(ot),codeFencedFence:at,codeFencedFenceInfo:se,codeFencedFenceMeta:Se,codeFlowValue:it,codeIndented:C(Ke),codeText:C(Jn),codeTextData:it,data:it,definition:C(),definitionDestinationString:Jt,definitionLabelString:Ot,definitionTitleString:kt,emphasis:C(),hardBreakEscape:C(An),hardBreakTrailing:C(An),htmlFlow:C(Ln),htmlFlowData:it,htmlText:C(hr),htmlTextData:it,image:C(Nr),label:nr,labelText:jr,lineEnding:wr,link:C(Ur),listItem:C(),listOrdered:C(),listUnordered:C(),paragraph:C(),referenceString:Xi,resourceDestinationString:Fe,resourceTitleString:Bi,resource:Zi,setextHeading:C(Qn),setextHeadingLineSequence:tn,setextHeadingText:yt,strong:C(),thematicBreak:C()}};lE(s,(n||{}).mdastExtensions||[]);const l={};return c;function c(jt){let Et={type:"root",children:[]};const fn={stack:[Et],tokenStack:[],config:s,enter:w,exit:L,buffer:O,resume:H,data:l},br=[];let lr=-1;for(;++lr0){const Qi=fn.tokenStack[fn.tokenStack.length-1];(Qi[1]||Li).call(fn,void 0,Qi[0])}for(Et.position={start:Ku(jt.length>0?jt[0][1].start:{line:1,column:1,offset:0}),end:Ku(jt.length>0?jt[jt.length-2][1].end:{line:1,column:1,offset:0})},lr=-1;++lr-1&&n.test(String.fromCharCode(l))}}function I_(n,s){const l=encode(yl(n||""));if(!s)return l;const c=l.indexOf(":"),p=l.indexOf("?"),g=l.indexOf("#"),O=l.indexOf("/");return c<0||O>-1&&c>O||p>-1&&c>p||g>-1&&c>g||s.test(l.slice(0,c))?l:""}function yl(n){const s=[];let l=-1,c=0,p=0;for(;++l55295&&g<57344){const w=n.charCodeAt(l+1);g<56320&&w>56319&&w<57344?(O=String.fromCharCode(g,w),p=1):O="\uFFFD"}else O=String.fromCharCode(g);O&&(s.push(n.slice(c,l),encodeURIComponent(O)),c=l+p+1,O=""),p&&(l+=p,p=0)}return s.join("")+n.slice(c)}function cu(n,s){const l=[{type:"text",value:"\u21A9"}];return s>1&&l.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(s)}]}),l}function uE(n,s){return"Back to reference "+(n+1)+(s>1?"-"+s:"")}function L_(n){const s=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",l=n.options.footnoteBackContent||cu,c=n.options.footnoteBackLabel||uE,p=n.options.footnoteLabel||"Footnotes",g=n.options.footnoteLabelTagName||"h2",O=n.options.footnoteLabelProperties||{className:["sr-only"]},w=[];let C=-1;for(;++C0&&Se.push({type:"text",value:" "});let Ot=typeof l=="string"?l:l(C,se);typeof Ot=="string"&&(Ot={type:"text",value:Ot}),Se.push({type:"element",tagName:"a",properties:{href:"#"+s+"fnref-"+ee+(se>1?"-"+se:""),dataFootnoteBackref:"",ariaLabel:typeof c=="string"?c:c(C,se),className:["data-footnote-backref"]},children:Array.isArray(Ot)?Ot:[Ot]})}const ot=H[H.length-1];if(ot&&ot.type==="element"&&ot.tagName==="p"){const Ot=ot.children[ot.children.length-1];Ot&&Ot.type==="text"?Ot.value+=" ":ot.children.push({type:"text",value:" "}),ot.children.push(...Se)}else H.push(...Se);const Ke={type:"element",tagName:"li",properties:{id:s+"fn-"+ee},children:n.wrap(H,!0)};n.patch(L,Ke),w.push(Ke)}if(w.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:g,properties:_n(je({},Hc(O)),{id:"footnote-label"}),children:[{type:"text",value:p}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:n.wrap(w,!0)},{type:"text",value:` -`}]}}function M_(n,s){const l={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(s),!0)};return n.patch(s,l),n.applyData(s,l)}function P_(n,s){const l={type:"element",tagName:"br",properties:{},children:[]};return n.patch(s,l),[n.applyData(s,l),{type:"text",value:` -`}]}function y0(n,s){const l=s.value?s.value+` -`:"",c={};s.lang&&(c.className=["language-"+s.lang]);let p={type:"element",tagName:"code",properties:c,children:[{type:"text",value:l}]};return s.meta&&(p.data={meta:s.meta}),n.patch(s,p),p=n.applyData(s,p),p={type:"element",tagName:"pre",properties:{},children:[p]},n.patch(s,p),p}function Tw(n,s){const l={type:"element",tagName:"del",properties:{},children:n.all(s)};return n.patch(s,l),n.applyData(s,l)}function Cw(n,s){const l={type:"element",tagName:"em",properties:{},children:n.all(s)};return n.patch(s,l),n.applyData(s,l)}function Aw(n,s){const l=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",c=String(s.identifier).toUpperCase(),p=yl(c.toLowerCase()),g=n.footnoteOrder.indexOf(c);let O,w=n.footnoteCounts.get(c);w===void 0?(w=0,n.footnoteOrder.push(c),O=n.footnoteOrder.length):O=g+1,w+=1,n.footnoteCounts.set(c,w);const C={type:"element",tagName:"a",properties:{href:"#"+l+"fn-"+p,id:l+"fnref-"+p+(w>1?"-"+w:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(O)}]};n.patch(s,C);const L={type:"element",tagName:"sup",properties:{},children:[C]};return n.patch(s,L),n.applyData(s,L)}function _w(n,s){const l={type:"element",tagName:"h"+s.depth,properties:{},children:n.all(s)};return n.patch(s,l),n.applyData(s,l)}function Nw(n,s){if(n.options.allowDangerousHtml){const l={type:"raw",value:s.value};return n.patch(s,l),n.applyData(s,l)}}function cE(n,s){const l=s.referenceType;let c="]";if(l==="collapsed"?c+="[]":l==="full"&&(c+="["+(s.label||s.identifier)+"]"),s.type==="imageReference")return[{type:"text",value:"!["+s.alt+c}];const p=n.all(s),g=p[0];g&&g.type==="text"?g.value="["+g.value:p.unshift({type:"text",value:"["});const O=p[p.length-1];return O&&O.type==="text"?O.value+=c:p.push({type:"text",value:c}),p}function Rw(n,s){const l=String(s.identifier).toUpperCase(),c=n.definitionById.get(l);if(!c)return cE(n,s);const p={src:yl(c.url||""),alt:s.alt};c.title!==null&&c.title!==void 0&&(p.title=c.title);const g={type:"element",tagName:"img",properties:p,children:[]};return n.patch(s,g),n.applyData(s,g)}function F_(n,s){const l={src:yl(s.url)};s.alt!==null&&s.alt!==void 0&&(l.alt=s.alt),s.title!==null&&s.title!==void 0&&(l.title=s.title);const c={type:"element",tagName:"img",properties:l,children:[]};return n.patch(s,c),n.applyData(s,c)}function B_(n,s){const l={type:"text",value:s.value.replace(/\r?\n|\r/g," ")};n.patch(s,l);const c={type:"element",tagName:"code",properties:{},children:[l]};return n.patch(s,c),n.applyData(s,c)}function $_(n,s){const l=String(s.identifier).toUpperCase(),c=n.definitionById.get(l);if(!c)return cE(n,s);const p={href:yl(c.url||"")};c.title!==null&&c.title!==void 0&&(p.title=c.title);const g={type:"element",tagName:"a",properties:p,children:n.all(s)};return n.patch(s,g),n.applyData(s,g)}function U_(n,s){const l={href:yl(s.url)};s.title!==null&&s.title!==void 0&&(l.title=s.title);const c={type:"element",tagName:"a",properties:l,children:n.all(s)};return n.patch(s,c),n.applyData(s,c)}function H_(n,s,l){const c=n.all(s),p=l?z_(l):Dw(s),g={},O=[];if(typeof s.checked=="boolean"){const H=c[0];let j;H&&H.type==="element"&&H.tagName==="p"?j=H:(j={type:"element",tagName:"p",properties:{},children:[]},c.unshift(j)),j.children.length>0&&j.children.unshift({type:"text",value:" "}),j.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:s.checked,disabled:!0},children:[]}),g.className=["task-list-item"]}let w=-1;for(;++w1:s}function Iw(n,s){const l={},c=n.all(s);let p=-1;for(typeof s.start=="number"&&s.start!==1&&(l.start=s.start);++p0){const O={type:"element",tagName:"tbody",properties:{},children:n.wrap(l,!0)},w=Us(s.children[1]),C=Yc(s.children[s.children.length-1]);w&&C&&(O.position={start:w,end:C}),p.push(O)}const g={type:"element",tagName:"table",properties:{},children:n.wrap(p,!0)};return n.patch(s,g),n.applyData(s,g)}function Pw(n,s,l){const c=l?l.children:void 0,g=(c?c.indexOf(s):1)===0?"th":"td",O=l&&l.type==="table"?l.align:void 0,w=O?O.length:s.children.length;let C=-1;const L=[];for(;++C0&&l.push({type:"text",value:` -`}),l}function $w(n){let s=0,l=n.charCodeAt(s);for(;l===9||l===32;)s++,l=n.charCodeAt(s);return n.slice(s)}function Uw(n,s){const l=G_(n,s),c=l.one(n,void 0),p=L_(l),g=Array.isArray(c)?{type:"root",children:c}:c||{type:"root",children:[]};return p&&("children"in g,g.children.push({type:"text",value:` -`},p)),g}function pE(n,s){return n&&"run"in n?function(l,c){return iS(this,null,function*(){const p=Uw(l,je({file:c},s));yield n.run(p,c)})}:function(l,c){return Uw(l,je({file:c},s||n))}}var Hw=z(84873),S0=z(94470),Cf=z(41675),zw=z(94029);const zo={basename:Qw,dirname:q_,extname:X_,join:Af,sep:"/"};function Qw(n,s){if(s!==void 0&&typeof s!="string")throw new TypeError('"ext" argument must be a string');_f(n);let l=0,c=-1,p=n.length,g;if(s===void 0||s.length===0||s.length>n.length){for(;p--;)if(n.codePointAt(p)===47){if(g){l=p+1;break}}else c<0&&(g=!0,c=p+1);return c<0?"":n.slice(l,c)}if(s===n)return"";let O=-1,w=s.length-1;for(;p--;)if(n.codePointAt(p)===47){if(g){l=p+1;break}}else O<0&&(g=!0,O=p+1),w>-1&&(n.codePointAt(p)===s.codePointAt(w--)?w<0&&(c=p):(w=-1,c=O));return l===c?c=O:c<0&&(c=n.length),n.slice(l,c)}function q_(n){if(_f(n),n.length===0)return".";let s=-1,l=n.length,c;for(;--l;)if(n.codePointAt(l)===47){if(c){s=l;break}}else c||(c=!0);return s<0?n.codePointAt(0)===47?"/":".":s===1&&n.codePointAt(0)===47?"//":n.slice(0,s)}function X_(n){_f(n);let s=n.length,l=-1,c=0,p=-1,g=0,O;for(;s--;){const w=n.codePointAt(s);if(w===47){if(O){c=s+1;break}continue}l<0&&(O=!0,l=s+1),w===46?p<0?p=s:g!==1&&(g=1):p>-1&&(g=-1)}return p<0||l<0||g===0||g===1&&p===l-1&&p===c+1?"":n.slice(p,l)}function Af(...n){let s=-1,l;for(;++s0&&n.codePointAt(n.length-1)===47&&(l+="/"),s?"/"+l:l}function J_(n,s){let l="",c=0,p=-1,g=0,O=-1,w,C;for(;++O<=n.length;){if(O2){if(C=l.lastIndexOf("/"),C!==l.length-1){C<0?(l="",c=0):(l=l.slice(0,C),c=l.length-1-l.lastIndexOf("/")),p=O,g=0;continue}}else if(l.length>0){l="",c=0,p=O,g=0;continue}}s&&(l=l.length>0?l+"/..":"..",c=2)}else l.length>0?l+="/"+n.slice(p+1,O):l=n.slice(p+1,O),c=O-p-1;p=O,g=0}else w===46&&g>-1?g++:g=-1}return l}function _f(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const v0={cwd:eN};function eN(){return"/"}function fE(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function tN(n){if(typeof n=="string")n=new URL(n);else if(!fE(n)){const s=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw s.code="ERR_INVALID_ARG_TYPE",s}if(n.protocol!=="file:"){const s=new TypeError("The URL must be of scheme file");throw s.code="ERR_INVALID_URL_SCHEME",s}return nN(n)}function nN(n){if(n.hostname!==""){const c=new TypeError('File URL host must be "localhost" or empty on darwin');throw c.code="ERR_INVALID_FILE_URL_HOST",c}const s=n.pathname;let l=-1;for(;++l0){let[se,...Se]=H;const at=c[ee][1];(0,Cf.Z)(at)&&(0,Cf.Z)(se)&&(se=S0(!0,at,se)),c[ee]=[L,se,...Se]}}}}const iN=new OE().freeze();function yE(n,s){if(typeof s!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function EE(n,s){if(typeof s!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function SE(n,s){if(s)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Zw(n){if(!(0,Cf.Z)(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Ww(n,s,l){if(!l)throw new Error("`"+n+"` finished async. Use `"+s+"` instead")}function w0(n){return sN(n)?n:new Vw(n)}function sN(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function Gw(n){return typeof n=="string"||aN(n)}function aN(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const oN="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",vE=[],tc={allowDangerousHtml:!0},Yw=/^(https?|ircs?|mailto|xmpp)$/i,Dh=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function x0(n){const s=n.allowedElements,l=n.allowElement,c=n.children||"",p=n.className,g=n.components,O=n.disallowedElements,w=n.rehypePlugins||vE,C=n.remarkPlugins||vE,L=n.remarkRehypeOptions?je(je({},n.remarkRehypeOptions),tc):tc,H=n.skipHtml,j=n.unwrapDisallowed,ee=n.urlTransform||qw,se=iN().use(C_).use(C).use(pE,L).use(w),Se=new Vw;typeof c=="string"?Se.value=c:(""+c,void 0),s&&O&&void 0;for(const Ot of Dh)Object.hasOwn(n,Ot.from)&&(""+Ot.from+(Ot.to?"use `"+Ot.to+"` instead":"remove it")+oN+Ot.id,void 0);const at=se.parse(Se);let ot=se.runSync(at,Se);return p&&(ot={type:"element",tagName:"div",properties:{className:p},children:ot.type==="root"?ot.children:[ot]}),Ki(ot,Ke),G2(ot,{Fragment:mr.Fragment,components:g,ignoreInvalidStyle:!0,jsx:mr.jsx,jsxs:mr.jsxs,passKeys:!0,passNode:!0});function Ke(Ot,kt,Jt){if(Ot.type==="raw"&&Jt&&typeof kt=="number")return H?Jt.children.splice(kt,1):Jt.children[kt]={type:"text",value:Ot.value},kt;if(Ot.type==="element"){let ln;for(ln in Xy)if(Object.hasOwn(Xy,ln)&&Object.hasOwn(Ot.properties,ln)){const yt=Ot.properties[ln],tn=Xy[ln];(tn===null||tn.includes(Ot.tagName))&&(Ot.properties[ln]=ee(String(yt||""),ln,Ot))}}if(Ot.type==="element"){let ln=s?!s.includes(Ot.tagName):O?O.includes(Ot.tagName):!1;if(!ln&&l&&typeof kt=="number"&&(ln=!l(Ot,kt,Jt)),ln&&Jt&&typeof kt=="number")return j&&Ot.children?Jt.children.splice(kt,1,...Ot.children):Jt.children.splice(kt,1),kt}}}function qw(n){const s=n.indexOf(":"),l=n.indexOf("?"),c=n.indexOf("#"),p=n.indexOf("/");return s<0||p>-1&&s>p||l>-1&&s>l||c>-1&&s>c||Yw.test(n.slice(0,s))?n:""}var Xw=z(64777);const Nf=du(/[A-Za-z]/),kE=du(/[\dA-Za-z]/),OI=du(/[#-'*+\--9=?A-Z^-~]/);function lN(n){return n!==null&&(n<32||n===127)}const uN=du(/\d/),yI=du(/[\dA-Fa-f]/),EI=du(/[!-/:-@[-`{-~]/);function Ih(n){return n!==null&&n<-2}function ma(n){return n!==null&&(n<0||n===32)}function El(n){return n===-2||n===-1||n===32}const Rf=du(new RegExp("\\p{P}|\\p{S}","u")),rd=du(/\s/);function du(n){return s;function s(l){return l!==null&&l>-1&&n.test(String.fromCharCode(l))}}function Lh(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const cN=function(n,s,l,c,p){const g=wE(s);if(l!=null&&(typeof l!="number"||l<0||l===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(c!=null&&(!cN(c)||!c.children))throw new Error("Expected parent node");if(c==null!=(l==null))throw new Error("Expected both parent and index");return xE(n)?g.call(p,n,l,c):!1},wE=function(n){if(n==null)return pN;if(typeof n=="function")return T0(n);if(typeof n=="object")return Array.isArray(n)?Kw(n):dN(n);if(typeof n=="string")return hN(n);throw new Error("Expected function, string, or object as test")};function Kw(n){const s=[];let l=-1;for(;++l0?{type:"text",value:yt}:void 0),yt===!1?ee.lastIndex=Jt+1:(Se!==Jt&&Ot.push({type:"text",value:L.value.slice(Se,Jt)}),Array.isArray(yt)?Ot.push(...yt):yt&&Ot.push(yt),Se=Jt+kt[0].length,Ke=!0),!ee.global)break;kt=ee.exec(L.value)}return Ke?(Se?\]}]+$/.exec(n);if(!s)return[n,void 0];n=n.slice(0,s.index);let l=s[0],c=l.indexOf(")");const p=(0,Xw.w)(n,"(");let g=(0,Xw.w)(n,")");for(;c!==-1&&p>g;)n+=l.slice(0,c+1),l=l.slice(c+1),c=l.indexOf(")"),g++;return[n,l]}function Lf(n,s){const l=n.input.charCodeAt(n.index-1);return(n.index===0||rd(l)||Rf(l))&&(!s||l!==47)}function Mf(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}ex.peek=A0;function Jw(){return{enter:{gfmFootnoteDefinition:NN,gfmFootnoteDefinitionLabelString:RN,gfmFootnoteCall:LN,gfmFootnoteCallString:MN},exit:{gfmFootnoteDefinition:IN,gfmFootnoteDefinitionLabelString:DN,gfmFootnoteCall:FN,gfmFootnoteCallString:PN}}}function _N(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:BN,footnoteReference:ex}}}function NN(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function RN(){this.buffer()}function DN(n){const s=this.resume(),l=this.stack[this.stack.length-1];l.type,l.label=s,l.identifier=Mf(this.sliceSerialize(n)).toLowerCase()}function IN(n){this.exit(n)}function LN(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function MN(){this.buffer()}function PN(n){const s=this.resume(),l=this.stack[this.stack.length-1];l.type,l.label=s,l.identifier=Mf(this.sliceSerialize(n)).toLowerCase()}function FN(n){this.exit(n)}function ex(n,s,l,c){const p=l.createTracker(c);let g=p.move("[^");const O=l.enter("footnoteReference"),w=l.enter("reference");return g+=p.move(l.safe(l.associationId(n),_n(je({},p.current()),{before:g,after:"]"}))),w(),O(),g+=p.move("]"),g}function A0(){return"["}function BN(n,s,l,c){const p=l.createTracker(c);let g=p.move("[^");const O=l.enter("footnoteDefinition"),w=l.enter("label");return g+=p.move(l.safe(l.associationId(n),_n(je({},p.current()),{before:g,after:"]"}))),w(),g+=p.move("]:"+(n.children&&n.children.length>0?" ":"")),p.shift(4),g+=p.move(l.indentLines(l.containerFlow(n,p.current()),$N)),O(),g}function $N(n,s,l){return s===0?n:(l?"":" ")+n}const UN=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];tx.peek=nx;function HN(){return{canContainEols:["delete"],enter:{strikethrough:QN},exit:{strikethrough:VN}}}function zN(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:UN}],handlers:{delete:tx}}}function QN(n){this.enter({type:"delete",children:[]},n)}function VN(n){this.exit(n)}function tx(n,s,l,c){const p=l.createTracker(c),g=l.enter("strikethrough");let O=p.move("~~");return O+=l.containerPhrasing(n,_n(je({},p.current()),{before:O,after:"~"})),O+=p.move("~~"),g(),O}function nx(){return"~"}var jN=z(39473);function ZN(n,s,l,c){const p=l.enter("blockquote"),g=l.createTracker(c);g.move("> "),g.shift(2);const O=l.indentLines(l.containerFlow(n,g.current()),WN);return p(),O}function WN(n,s,l){return">"+(l?"":" ")+n}function GN(n,s){return rx(n,s.inConstruct,!0)&&!rx(n,s.notInConstruct,!1)}function rx(n,s,l){if(typeof s=="string"&&(s=[s]),!s||s.length===0)return l;let c=-1;for(;++c"},C.current()))),L+=C.move(">")):(w=l.enter("destinationRaw"),L+=C.move(l.safe(n.url,je({before:L,after:n.title?" ":` -`},C.current())))),w(),n.title&&(w=l.enter(`title${g}`),L+=C.move(" "+p),L+=C.move(l.safe(n.title,je({before:L,after:p},C.current()))),L+=C.move(p),w()),O(),L}function _0(n){const s=n.options.emphasis||"*";if(s!=="*"&&s!=="_")throw new Error("Cannot serialize emphasis with `"+s+"` for `options.emphasis`, expected `*`, or `_`");return s}ox.peek=XN;function ox(n,s,l,c){const p=_0(l),g=l.enter("emphasis"),O=l.createTracker(c);let w=O.move(p);return w+=O.move(l.containerPhrasing(n,je({before:w,after:p},O.current()))),w+=O.move(p),g(),w}function XN(n,s,l){return l.options.emphasis||"*"}const KN={};function lx(n,s){const l=s||KN,c=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,p=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return ux(n,c,p)}function ux(n,s,l){if(dx(n)){if("value"in n)return n.type==="html"&&!l?"":n.value;if(s&&"alt"in n&&n.alt)return n.alt;if("children"in n)return cx(n.children,s,l)}return Array.isArray(n)?cx(n,s,l):""}function cx(n,s,l){const c=[];let p=-1;for(;++p"},C.current()))),L+=C.move(">")):(w=l.enter("destinationRaw"),L+=C.move(l.safe(n.url,je({before:L,after:n.title?" ":")"},C.current())))),w(),n.title&&(w=l.enter(`title${g}`),L+=C.move(" "+p),L+=C.move(l.safe(n.title,je({before:L,after:p},C.current()))),L+=C.move(p),w()),L+=C.move(")"),O(),L}function px(){return"!"}N0.peek=tR;function N0(n,s,l,c){const p=n.referenceType,g=l.enter("imageReference");let O=l.enter("label");const w=l.createTracker(c);let C=w.move("![");const L=l.safe(n.alt,je({before:C,after:"]"},w.current()));C+=w.move(L+"]["),O();const H=l.stack;l.stack=[],O=l.enter("reference");const j=l.safe(l.associationId(n),je({before:C,after:"]"},w.current()));return O(),l.stack=H,g(),p==="full"||!L||L!==j?C+=w.move(j+"]"):p==="shortcut"?C=C.slice(0,-1):C+=w.move("]"),C}function tR(){return"!"}_E.peek=fx;function _E(n,s,l){let c=n.value||"",p="`",g=-1;for(;new RegExp("(^|[^`])"+p+"([^`]|$)").test(c);)p+="`";for(/[^ \r\n]/.test(c)&&(/^[ \r\n]/.test(c)&&/[ \r\n]$/.test(c)||/^`|`$/.test(c))&&(c=" "+c+" ");++g\u007F]/.test(n.url))}R0.peek=gx;function R0(n,s,l,c){const p=id(l),g=p==='"'?"Quote":"Apostrophe",O=l.createTracker(c);let w,C;if(mx(n,l)){const H=l.stack;l.stack=[],w=l.enter("autolink");let j=O.move("<");return j+=O.move(l.containerPhrasing(n,je({before:j,after:">"},O.current()))),j+=O.move(">"),w(),l.stack=H,j}w=l.enter("link"),C=l.enter("label");let L=O.move("[");return L+=O.move(l.containerPhrasing(n,je({before:L,after:"]("},O.current()))),L+=O.move("]("),C(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(C=l.enter("destinationLiteral"),L+=O.move("<"),L+=O.move(l.safe(n.url,je({before:L,after:">"},O.current()))),L+=O.move(">")):(C=l.enter("destinationRaw"),L+=O.move(l.safe(n.url,je({before:L,after:n.title?" ":")"},O.current())))),C(),n.title&&(C=l.enter(`title${g}`),L+=O.move(" "+p),L+=O.move(l.safe(n.title,je({before:L,after:p},O.current()))),L+=O.move(p),C()),L+=O.move(")"),w(),L}function gx(n,s,l){return mx(n,l)?"<":"["}NE.peek=nR;function NE(n,s,l,c){const p=n.referenceType,g=l.enter("linkReference");let O=l.enter("label");const w=l.createTracker(c);let C=w.move("[");const L=l.containerPhrasing(n,je({before:C,after:"]"},w.current()));C+=w.move(L+"]["),O();const H=l.stack;l.stack=[],O=l.enter("reference");const j=l.safe(l.associationId(n),je({before:C,after:"]"},w.current()));return O(),l.stack=H,g(),p==="full"||!L||L!==j?C+=w.move(j+"]"):p==="shortcut"?C=C.slice(0,-1):C+=w.move("]"),C}function nR(){return"["}function RE(n){const s=n.options.bullet||"*";if(s!=="*"&&s!=="+"&&s!=="-")throw new Error("Cannot serialize items with `"+s+"` for `options.bullet`, expected `*`, `+`, or `-`");return s}function rR(n){const s=RE(n),l=n.options.bulletOther;if(!l)return s==="*"?"-":"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(l===s)throw new Error("Expected `bullet` (`"+s+"`) and `bulletOther` (`"+l+"`) to be different");return l}function DE(n){const s=n.options.bulletOrdered||".";if(s!=="."&&s!==")")throw new Error("Cannot serialize items with `"+s+"` for `options.bulletOrdered`, expected `.` or `)`");return s}function bx(n){const s=n.options.rule||"*";if(s!=="*"&&s!=="-"&&s!=="_")throw new Error("Cannot serialize rules with `"+s+"` for `options.rule`, expected `*`, `-`, or `_`");return s}function iR(n,s,l,c){const p=l.enter("list"),g=l.bulletCurrent;let O=n.ordered?DE(l):RE(l);const w=n.ordered?O==="."?")":".":rR(l);let C=s&&l.bulletLastUsed?O===l.bulletLastUsed:!1;if(!n.ordered){const H=n.children?n.children[0]:void 0;if((O==="*"||O==="-")&&H&&(!H.children||!H.children[0])&&l.stack[l.stack.length-1]==="list"&&l.stack[l.stack.length-2]==="listItem"&&l.stack[l.stack.length-3]==="list"&&l.stack[l.stack.length-4]==="listItem"&&l.indexStack[l.indexStack.length-1]===0&&l.indexStack[l.indexStack.length-2]===0&&l.indexStack[l.indexStack.length-3]===0&&(C=!0),bx(l)===O&&H){let j=-1;for(;++j-1?s.start:1)+(l.options.incrementListMarker===!1?0:s.children.indexOf(n))+g);let O=g.length+1;(p==="tab"||p==="mixed"&&(s&&s.type==="list"&&s.spread||n.spread))&&(O=Math.ceil(O/4)*4);const w=l.createTracker(c);w.move(g+" ".repeat(O-g.length)),w.shift(O);const C=l.enter("listItem"),L=l.indentLines(l.containerFlow(n,w.current()),H);return C(),L;function H(j,ee,se){return ee?(se?"":" ".repeat(O))+j:(se?g:g+" ".repeat(O-g.length))+j}}function aR(n,s,l,c){const p=l.enter("paragraph"),g=l.enter("phrasing"),O=l.containerPhrasing(n,c);return g(),p(),O}const nc=function(n,s,l,c,p){const g=Pf(s);if(l!=null&&(typeof l!="number"||l<0||l===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(c!=null&&(!nc(c)||!c.children))throw new Error("Expected parent node");if(c==null!=(l==null))throw new Error("Expected both parent and index");return Ox(n)?g.call(p,n,l,c):!1},Pf=function(n){if(n==null)return rc;if(typeof n=="function")return ys(n);if(typeof n=="object")return Array.isArray(n)?oR(n):lR(n);if(typeof n=="string")return uR(n);throw new Error("Expected function, string, or object as test")};function oR(n){const s=[];let l=-1;for(;++lp?0:p+s:s=s>p?p:s,l=l>0?l:0,c.length<1e4)O=Array.from(c),O.unshift(s,l),n.splice(...O);else for(l&&n.splice(s,l);g0?($f(n,n.length,0,s),n):s}const sd={}.hasOwnProperty;function Uf(n){const s={};let l=-1;for(;++l0&&!l&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),l}function hu(n,s,l,c){const p=c?c-1:Number.POSITIVE_INFINITY;let g=0;return O;function O(C){return El(C)?(n.enter(l),w(C)):s(C)}function w(C){return El(C)&&g++999||j===93&&!O||j===null||j===91||ma(j))return l(j);if(j===93){n.exit("chunkString");const ee=n.exit("gfmFootnoteCallString");return p.includes(Mf(c.sliceSerialize(ee)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(j),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),s):l(j)}return ma(j)||(O=!0),g++,n.consume(j),j===92?H:L}function H(j){return j===91||j===92||j===93?(n.consume(j),g++,L):L(j)}}function BE(n,s,l){const c=this,p=c.parser.gfmFootnotes||(c.parser.gfmFootnotes=[]);let g,O=0,w;return C;function C(Se){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(Se),n.exit("gfmFootnoteDefinitionLabelMarker"),L}function L(Se){return Se===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(Se),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",H):l(Se)}function H(Se){if(O>999||Se===93&&!w||Se===null||Se===91||ma(Se))return l(Se);if(Se===93){n.exit("chunkString");const at=n.exit("gfmFootnoteDefinitionLabelString");return g=Mf(c.sliceSerialize(at)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(Se),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),ee}return ma(Se)||(w=!0),O++,n.consume(Se),Se===92?j:H}function j(Se){return Se===91||Se===92||Se===93?(n.consume(Se),O++,H):H(Se)}function ee(Se){return Se===58?(n.enter("definitionMarker"),n.consume(Se),n.exit("definitionMarker"),p.includes(g)||p.push(g),hu(n,se,"gfmFootnoteDefinitionWhitespace")):l(Se)}function se(Se){return s(Se)}}function $E(n,s,l){return n.check(DR,s,n.attempt(Dx,s,l))}function vl(n){n.exit("gfmFootnoteDefinition")}function PR(n,s,l){const c=this;return hu(n,p,"gfmFootnoteDefinitionIndent",5);function p(g){const O=c.events[c.events.length-1];return O&&O[1].type==="gfmFootnoteDefinitionIndent"&&O[2].sliceSerialize(O[1],!0).length===4?s(g):l(g)}}function M0(n){if(n===null||ma(n)||rd(n))return 1;if(Rf(n))return 2}function Ix(n,s,l){const c=[];let p=-1;for(;++p1?C(Se):(O.consume(Se),j++,se);if(j<2&&!l)return C(Se);const ot=O.exit("strikethroughSequenceTemporary"),Ke=M0(Se);return ot._open=!Ke||Ke===2&&!!at,ot._close=!at||at===2&&!!Ke,w(Se)}}}class BR{constructor(){this.map=[]}add(s,l,c){$R(this,s,l,c)}consume(s){if(this.map.sort(function(g,O){return g[0]-O[0]}),this.map.length===0)return;let l=this.map.length;const c=[];for(;l>0;)l-=1,c.push(s.slice(this.map[l][0]+this.map[l][1]),this.map[l][2]),s.length=this.map[l][0];c.push([...s]),s.length=0;let p=c.pop();for(;p;)s.push(...p),p=c.pop();this.map.length=0}}function $R(n,s,l,c){let p=0;if(!(l===0&&c.length===0)){for(;p-1;){const hr=c.events[wr][1].type;if(hr==="lineEnding"||hr==="linePrefix")wr--;else break}const An=wr>-1?c.events[wr][1].type:null,Ln=An==="tableHead"||An==="tableRow"?yt:C;return Ln===yt&&c.parser.lazy[c.now().line]?l(it):Ln(it)}function C(it){return n.enter("tableHead"),n.enter("tableRow"),L(it)}function L(it){return it===124||(O=!0,g+=1),H(it)}function H(it){return it===null?l(it):Ih(it)?g>1?(g=0,c.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(it),n.exit("lineEnding"),se):l(it):El(it)?hu(n,H,"whitespace")(it):(g+=1,O&&(O=!1,p+=1),it===124?(n.enter("tableCellDivider"),n.consume(it),n.exit("tableCellDivider"),O=!0,H):(n.enter("data"),j(it)))}function j(it){return it===null||it===124||ma(it)?(n.exit("data"),H(it)):(n.consume(it),it===92?ee:j)}function ee(it){return it===92||it===124?(n.consume(it),j):j(it)}function se(it){return c.interrupt=!1,c.parser.lazy[c.now().line]?l(it):(n.enter("tableDelimiterRow"),O=!1,El(it)?hu(n,Se,"linePrefix",c.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(it):Se(it))}function Se(it){return it===45||it===58?ot(it):it===124?(O=!0,n.enter("tableCellDivider"),n.consume(it),n.exit("tableCellDivider"),at):ln(it)}function at(it){return El(it)?hu(n,ot,"whitespace")(it):ot(it)}function ot(it){return it===58?(g+=1,O=!0,n.enter("tableDelimiterMarker"),n.consume(it),n.exit("tableDelimiterMarker"),Ke):it===45?(g+=1,Ke(it)):it===null||Ih(it)?Jt(it):ln(it)}function Ke(it){return it===45?(n.enter("tableDelimiterFiller"),Ot(it)):ln(it)}function Ot(it){return it===45?(n.consume(it),Ot):it===58?(O=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(it),n.exit("tableDelimiterMarker"),kt):(n.exit("tableDelimiterFiller"),kt(it))}function kt(it){return El(it)?hu(n,Jt,"whitespace")(it):Jt(it)}function Jt(it){return it===124?Se(it):it===null||Ih(it)?!O||p!==g?ln(it):(n.exit("tableDelimiterRow"),n.exit("tableHead"),s(it)):ln(it)}function ln(it){return l(it)}function yt(it){return n.enter("tableRow"),tn(it)}function tn(it){return it===124?(n.enter("tableCellDivider"),n.consume(it),n.exit("tableCellDivider"),tn):it===null||Ih(it)?(n.exit("tableRow"),s(it)):El(it)?hu(n,tn,"whitespace")(it):(n.enter("data"),Qn(it))}function Qn(it){return it===null||it===124||ma(it)?(n.exit("data"),tn(it)):(n.consume(it),it===92?mn:Qn)}function mn(it){return it===92||it===124?(n.consume(it),Qn):Qn(it)}}function Mx(n,s){let l=-1,c=!0,p=0,g=[0,0,0,0],O=[0,0,0,0],w=!1,C=0,L,H,j;const ee=new BR;for(;++ll[2]+1){const Se=l[2]+1,at=l[3]-l[2]-1;n.add(Se,at,[])}}n.add(l[3]+1,0,[["exit",j,s]])}return p!==void 0&&(g.end=Object.assign({},Bh(s.events,p)),n.add(p,0,[["exit",g,s]]),g=void 0),g}function Px(n,s,l,c,p){const g=[],O=Bh(s.events,l);p&&(p.end=Object.assign({},O),g.push(["exit",p,s])),c.end=Object.assign({},O),g.push(["exit",c,s]),n.add(l+1,0,g)}function Bh(n,s){const l=n[s],c=l[0]==="enter"?"start":"end";return l[1][c]}const zR={name:"tasklistCheck",tokenize:VR};function QR(){return{text:{91:zR}}}function VR(n,s,l){const c=this;return p;function p(C){return c.previous!==null||!c._gfmTasklistFirstContentOfListItem?l(C):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(C),n.exit("taskListCheckMarker"),g)}function g(C){return ma(C)?(n.enter("taskListCheckValueUnchecked"),n.consume(C),n.exit("taskListCheckValueUnchecked"),O):C===88||C===120?(n.enter("taskListCheckValueChecked"),n.consume(C),n.exit("taskListCheckValueChecked"),O):l(C)}function O(C){return C===93?(n.enter("taskListCheckMarker"),n.consume(C),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),w):l(C)}function w(C){return Ih(C)?s(C):El(C)?n.check({tokenize:jR},s,l)(C):l(C)}}function jR(n,s,l){return hu(n,c,"whitespace");function c(p){return p===null?l(p):s(p)}}function ZR(n){return Uf([wR(),L0(),FR(n),HR(),QR()])}function vI(n){return combineHtmlExtensions([gfmAutolinkLiteralHtml(),gfmFootnoteHtml(n),gfmStrikethroughHtml(),gfmTableHtml(),gfmTagfilterHtml(),gfmTaskListItemHtml()])}const WR={};function Fx(n){const s=this,l=n||WR,c=s.data(),p=c.micromarkExtensions||(c.micromarkExtensions=[]),g=c.fromMarkdownExtensions||(c.fromMarkdownExtensions=[]),O=c.toMarkdownExtensions||(c.toMarkdownExtensions=[]);p.push(ZR(l)),g.push(ic()),O.push(SR(l))}const Bx=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,GR=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,YR=({legacyTitle:n=!1}={})=>s=>{Ki(s,"blockquote",(l,c,p)=>{let g="",O="",w=!0,C=l.children.map(L=>{if(w&&L.type==="paragraph"){const H=L.children[0],j=H.type==="text"?H.value:"",ee=n?GR:Bx,se=j.match(ee);if(se&&(w=!1,g=se[1].toLocaleLowerCase(),O=n&&se[2]||g.toLocaleUpperCase(),j.includes(` -`)&&(L.children[0]={type:"text",value:j.replace(ee,"").replace(/^\n+/,"")}),!j.includes(` -`))){const Se=[];L.children.forEach((at,ot)=>{ot!=0&&(ot==1&&at.type==="break"||Se.push(at))}),L.children=[...Se]}}return L});g&&(l.data={hName:"div",hProperties:{class:`markdown-alert markdown-alert-${g}`,dir:"auto"}},C.unshift({type:"paragraph",children:[qR(g),{type:"text",value:O.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),l.children=[...C]})};function qR(n){var l;let s=(l=XR[n])!=null?l:"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:s}},children:[]}]}}const XR={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};var KR=z(10926),JR=z.n(KR);function ld(n){if(!n)return null;var s=n;return s.dataset.code&&s.classList.contains("copied")?s:s.parentElement?ld(s.parentElement):null}function eD(n){var s=l=>{var c=ld(l.target);c&&(c.classList.add("active"),JR()(c.dataset.code,function(){setTimeout(()=>{c.classList.remove("active")},2e3)}))};(0,lt.useEffect)(()=>{var l,c;return(l=n.current)==null||l.removeEventListener("click",s,!1),(c=n.current)==null||c.addEventListener("click",s,!1),()=>{var p;(p=n.current)==null||p.removeEventListener("click",s,!1)}},[n])}var tD=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],nD=n=>n,rD=lt.forwardRef((n,s)=>{var{prefixCls:l="wmde-markdown wmde-markdown-color",className:c,source:p,style:g,disableCopy:O=!1,skipHtml:w=!0,onScroll:C,onMouseOver:L,pluginsFilter:H,wrapperElement:j={},warpperElement:ee={},urlTransform:se}=n,Se=$2(n,tD),at=lt.useRef(null);(0,lt.useImperativeHandle)(s,()=>xo({},n,{mdp:at}),[at,n]);var ot=(l||"")+" "+(c||"");eD(at);var Ke=[...Se.rehypePlugins||[]],Ot={allowElement:(ln,yt,tn)=>Se.allowElement?Se.allowElement(ln,yt,tn):/^[A-Za-z0-9]+$/.test(ln.tagName)};w&&Ke.push(Uy);var kt=[YR,...Se.remarkPlugins||[],Fx],Jt=xo({},ee,j);return(0,mr.jsx)("div",xo({ref:at,onScroll:C,onMouseOver:L},Jt,{className:ot,style:g,children:(0,mr.jsx)(x0,xo({},Ot,Se,{skipHtml:w,urlTransform:se||nD,rehypePlugins:H?H("rehype",Ke):Ke,remarkPlugins:H?H("remark",kt):kt,children:p||""}))}))}),F0=function(s){return s===void 0&&(s={}),l=>{Ki(l,c=>{c.type==="element"&&c.tagName==="code"&&c.data&&c.data.meta&&(c.properties=xo({},c.properties,{"data-meta":String(c.data.meta)}))})}},B0=function(s){return s===void 0&&(s={}),l=>{Ki(l,c=>{if(c.type==="element"&&c.tagName==="code"&&c.properties&&c.properties.dataMeta){c.data||(c.data={});var p=c.properties.dataMeta;typeof p=="string"&&(c.data.meta=p),delete c.properties.dataMeta}})}};const zf=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,iD=Object.hasOwnProperty;class sD{constructor(){this.occurrences,this.reset()}slug(s,l){const c=this;let p=aD(s,l===!0);const g=p;for(;iD.call(c.occurrences,p);)c.occurrences[g]++,p=g+"-"+c.occurrences[g];return c.occurrences[p]=0,p}reset(){this.occurrences=Object.create(null)}}function aD(n,s){return typeof n!="string"?"":(s||(n=n.toLowerCase()),n.replace(zf,"").replace(/ /g,"-"))}function $x(n){const s=n.type==="element"?n.tagName.toLowerCase():"",l=s.length===2&&s.charCodeAt(0)===104?s.charCodeAt(1):0;return l>48&&l<55?l-48:void 0}const oD={},$0=new sD;function lD(n){const l=(n||oD).prefix||"";return function(c){$0.reset(),Ki(c,"element",function(p){$x(p)&&!p.properties.id&&(p.properties.id=l+$0.slug(xu(p)))})}}const kI=function(n,s,l,c,p){const g=UE(s);if(l!=null&&(typeof l!="number"||l<0||l===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(c!=null&&(!c.type||!c.children))throw new Error("Expected valid `parent`");if(l==null!=(c==null))throw new Error("Expected both `index` and `parent`");return HE(n)?g.call(p,n,l,c):!1},UE=function(n){if(n==null)return cD;if(typeof n=="string")return uD(n);if(typeof n=="object")return Ux(n);if(typeof n=="function")return U0(n);throw new Error("Expected function, string, or array as `test`")};function Ux(n){const s=[];let l=-1;for(;++l{const{openDelimiter:s="rehype:ignore:start",closeDelimiter:l="rehype:ignore:end"}=n;return c=>{Ki(c,(p,g,O)=>{if(p.type==="element"||p.type==="root"){let w=!1;p.children=p.children.filter(C=>{if(C.type==="raw"||C.type==="comment"){let L=(C.value||"").trim();if(L=L.replace(/^/,"$1"),L===s)return w=!0,!1;if(L===l)return w=!1,!1}return!w})}})}},pD={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function fD(n){return n===void 0&&(n=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":n},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}var mD=(n,s)=>(l,c,p)=>{if(l.type==="element"&&p&&p.type==="root"&&/h(1|2|3|4|5|6)/.test(l.tagName)){var g=l.children&&l.children[0];g&&g.properties&&g.properties.ariaHidden==="true"&&(g.properties=xo({class:"anchor"},g.properties),g.children=[pD])}if(l.type==="element"&&l.tagName==="pre"&&!n){var O=sv(l.children);l.children.push(fD(O))}s&&s(l,c===null?void 0:c,p===null?void 0:p)},gD=[lD,dD,hD],VE=lt.forwardRef((n,s)=>{var l,c=[F0,Uy,B0,...gD,[VT,{rewrite:mD((l=n.disableCopy)!=null?l:!1,n.rehypeRewrite)}],[WT,{properties:"attr"}],...n.rehypePlugins||[],[wS,{ignoreMissing:!0}]];return(0,mr.jsx)(rD,xo({},n,{rehypePlugins:c,ref:s}))}),bD={name:"bold",keyCommand:"bold",button:{"aria-label":"Add bold text"},icon:(0,mr.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 384 512",children:(0,mr.jsx)("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:n=>{var{state:s,view:l}=n;!s||!l||l.dispatch(l.state.changeByRange(c=>({changes:[{from:c.from,insert:"**"},{from:c.to,insert:"**"}],range:st.jT.range(c.from+2,c.to+2)})))}},OD={name:"code",keyCommand:"code",button:{"aria-label":"Insert code"},icon:(0,mr.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:[(0,mr.jsx)("path",{d:"M16 13 4 25.432 16 37m16-24 12 12.432L32 37",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,mr.jsx)("path",{d:"m28 4-7 40",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round"})]}),execute:n=>{var{state:s,view:l}=n;!s||!l||l.dispatch(l.state.changeByRange(c=>({changes:[{from:c.from,insert:"`"},{from:c.to,insert:"`"}],range:st.jT.range(c.from+1,c.to+1)})))}},jE={name:"codeBlock",keyCommand:"codeBlock",button:{"aria-label":"Insert Code Block"},icon:(0,mr.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:[(0,mr.jsx)("path",{d:"M21 6H9a3 3 0 0 0-3 3v22a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V21M24 34v8",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,mr.jsx)("path",{d:"m32 6-4 4 4 4m6-8 4 4-4 4M14 42h20",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]}),execute:n=>{var{state:s,view:l}=n;if(!(!s||!l)){var c=l.state.selection.main,p=l.state.sliceDoc(l.state.selection.main.from,l.state.selection.main.to);l.dispatch({changes:{from:c.from,to:c.to,insert:"```js\n"+p+"\n```"},selection:st.jT.range(c.from+3,c.from+5)})}}},ZE={name:"italic",keyCommand:"italic",button:{"aria-label":"Add italic text"},icon:(0,mr.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 320 512",children:(0,mr.jsx)("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})}),execute:n=>{var{state:s,view:l}=n;!s||!l||l.dispatch(l.state.changeByRange(c=>({changes:[{from:c.from,insert:"*"},{from:c.to,insert:"*"}],range:st.jT.range(c.from+1,c.to+1)})))}},Qf={name:"header",keyCommand:"header",button:{"aria-label":"Add header text"},icon:(0,mr.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,mr.jsx)("path",{d:"M448 448c0 17.69-14.33 32-32 32h-96c-17.67 0-32-14.31-32-32s14.33-32 32-32h16V272H112v144h16c17.67 0 32 14.31 32 32s-14.33 32-32 32H32c-17.67 0-32-14.31-32-32s14.33-32 32-32h16V96H32C14.33 96 0 81.69 0 64s14.33-32 32-32h96c17.67 0 32 14.31 32 32s-14.33 32-32 32h-16v112h224V96h-16c-17.67 0-32-14.31-32-32s14.33-32 32-32h96c17.67 0 32 14.31 32 32s-14.33 32-32 32h-16v320h16c17.7 0 32 14.3 32 32z"})}),execute:n=>{var{state:s,view:l}=n;if(!(!s||!l)){var c=l.state.doc.lineAt(l.state.selection.main.from),p="#",g=c.text.match(/^#+/);if(g&&g[0]){var O=g[0];O.length<6&&(p=O+"#")}p.length>6&&(p="#");var w=c.text.replace(/^#+/,"");l.dispatch({changes:{from:c.from,to:c.to,insert:p+" "+w},selection:{anchor:c.from+p.length+1}})}}},yD={name:"strike",keyCommand:"strike",button:{"aria-label":"Add strike text"},icon:(0,mr.jsx)("svg",{fill:"currentColor",viewBox:"0 0 512 512",height:"14",width:"14",children:(0,mr.jsx)("path",{d:"M332.2 319.9c17.22 12.17 22.33 26.51 18.61 48.21-3.031 17.59-10.88 29.34-24.72 36.99-35.44 19.75-108.5 11.96-186-19.68-16.34-6.686-35.03 1.156-41.72 17.53s1.188 35.05 17.53 41.71c31.75 12.93 95.69 35.37 157.6 35.37 29.62 0 58.81-5.156 83.72-18.96 30.81-17.09 50.44-45.46 56.72-82.11 3.998-23.27 2.168-42.58-3.488-59.05H332.2zm155.8-80-176.5-.03c-15.85-5.614-31.83-10.34-46.7-14.62-85.47-24.62-110.9-39.05-103.7-81.33 2.5-14.53 10.16-25.96 22.72-34.03 20.47-13.15 64.06-23.84 155.4.343 17.09 4.53 34.59-5.654 39.13-22.74 4.531-17.09-5.656-34.59-22.75-39.12-91.31-24.18-160.7-21.62-206.3 7.654C121.8 73.72 103.6 101.1 98.09 133.1c-8.83 51.4 9.81 84.2 39.11 106.8H24c-13.25 0-24 10.75-24 23.1 0 13.25 10.75 23.1 24 23.1h464c13.25 0 24-10.75 24-23.1 0-12.3-10.7-23.1-24-23.1z"})}),execute:n=>{var{state:s,view:l}=n;!s||!l||l.dispatch(l.state.changeByRange(c=>({changes:[{from:c.from,insert:"~~"},{from:c.to,insert:"~~"}],range:st.jT.range(c.from+2,c.to+2)})))}},WE={name:"underline",keyCommand:"underline",button:{"aria-label":"Add underline text"},icon:(0,mr.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,mr.jsx)("path",{d:"M416 448H32c-17.69 0-32 14.31-32 32s14.31 32 32 32h384c17.69 0 32-14.31 32-32s-14.3-32-32-32zM48 64.01h16v160c0 88.22 71.78 159.1 160 159.1s160-71.78 160-159.1v-160h16c17.69 0 32-14.32 32-32S417.69.91 400 .91l-96-.005c-17.69 0-32 14.32-32 32s14.31 32 32 32h16v160c0 52.94-43.06 95.1-96 95.1S128 276.1 128 224V64h16c17.69 0 32-14.31 32-32S161.69 0 144 0L48 .005c-17.69 0-32 14.31-32 31.1S30.31 64.01 48 64.01z"})}),execute:n=>{var{state:s,view:l}=n;!s||!l||l.dispatch(l.state.changeByRange(c=>({changes:[{from:c.from,insert:""},{from:c.to,insert:""}],range:st.jT.range(c.from+3,c.to+3)})))}},z0={name:"olist",keyCommand:"olist",button:{"aria-label":"Add olist text"},icon:(0,mr.jsx)("svg",{viewBox:"0 0 576 512",height:"14",width:"14",children:(0,mr.jsx)("path",{fill:"currentColor",d:"M55.1 56.04c0-13.26 11.64-24 24-24h32c14.2 0 24 10.74 24 24V176h16c14.2 0 24 10.8 24 24 0 13.3-9.8 24-24 24h-80c-12.36 0-24-10.7-24-24 0-13.2 11.64-24 24-24h16V80.04h-8c-12.36 0-24-10.75-24-24zm63.6 285.16c-6.6-7.4-18.3-6.9-24.05 1.2l-11.12 15.5c-7.7 10.8-22.69 13.3-33.48 5.6-10.79-7.7-13.28-22.7-5.58-33.4l11.12-15.6c23.74-33.3 72.31-35.7 99.21-4.9 21.3 23.5 20.8 60.9-1.1 84.7L118.8 432H152c13.3 0 24 10.7 24 24s-10.7 24-24 24H64c-9.53 0-18.16-5.6-21.98-14.4-3.83-8.7-2.12-18.9 4.34-25.9l72.04-78c5.3-5.8 5.4-14.6.3-20.5zM512 64c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H256c-17.7 0-32-14.3-32-32 0-17.67 14.3-32 32-32h256zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32s14.3-32 32-32h256zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32s14.3-32 32-32h256z"})}),execute:n=>{var{state:s,view:l}=n;if(!(!s||!l)){var c=l.state.doc.lineAt(l.state.selection.main.from),p="1. ",g=c.text.match(/^1\./);g&&g[0]&&(p=""),l.dispatch({changes:{from:c.from,to:c.to,insert:""+p+c.text},selection:{anchor:l.state.selection.main.from+p.length}})}}},ED={name:"ulist",keyCommand:"ulist",button:{"aria-label":"Add ulist text"},icon:(0,mr.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,mr.jsx)("path",{fill:"currentColor",d:"M88 48c13.3 0 24 10.75 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24V72c0-13.25 10.75-24 24-24h48zm392 16c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32 0-17.67 14.3-32 32-32h288zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32h288zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32h288zM16 232c0-13.3 10.75-24 24-24h48c13.3 0 24 10.7 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24v-48zm72 136c13.3 0 24 10.7 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24v-48c0-13.3 10.75-24 24-24h48z"})}),execute:n=>{var{state:s,view:l}=n;if(!(!s||!l)){var c=l.state.doc.lineAt(l.state.selection.main.from),p="- ",g=c.text.match(/^-/);g&&g[0]&&(p=""),l.dispatch({changes:{from:c.from,to:c.to,insert:""+p+c.text},selection:{anchor:l.state.selection.main.from+p.length}})}}},SD={name:"quote",keyCommand:"quote",button:{"aria-label":"Add quote text"},icon:(0,mr.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,mr.jsx)("path",{d:"M96 96c-53.02 0-96 42.1-96 96s42.98 96 96 96c11.28 0 21.95-2.305 32-5.879V288c0 35.3-28.7 64-64 64-17.67 0-32 14.33-32 32s14.33 32 32 32c70.58 0 128-57.42 128-128v-96c0-53.9-43-96-96-96zm352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96c11.28 0 21.95-2.305 32-5.879V288c0 35.3-28.7 64-64 64-17.67 0-32 14.33-32 32s14.33 32 32 32c70.58 0 128-57.42 128-128v-96z"})}),execute:n=>{var{state:s,view:l}=n;if(!(!s||!l)){var c=l.state.doc.lineAt(l.state.selection.main.from),p="> ",g=c.text.match(/^>\s/);g&&g[0]&&(p=""),l.dispatch({changes:{from:c.from,to:c.to,insert:""+p+c.text},selection:{anchor:l.state.selection.main.from+p.length}})}}},vD={name:"link",keyCommand:"link",button:{"aria-label":"Add link text"},icon:(0,mr.jsx)("svg",{fill:"currentColor",viewBox:"0 0 640 512",height:"16",width:"16",children:(0,mr.jsx)("path",{d:"M172.5 131.1c55.6-55.59 148-55.59 203.6 0 50 50 57.4 129.7 16.3 187.2l-1.1 1.6c-10.3 14.3-30.3 17.7-44.6 7.4-14.4-10.3-17.8-30.3-7.5-44.6l1.1-1.6c22.9-32.1 19.3-76-8.6-103.9-31.4-31.4-82.5-31.4-114 0L105.5 289.5c-31.51 30.6-31.51 82.5 0 114 27.8 27.9 71.8 31.5 103.8 8.6l1.6-2c14.4-9.4 34.4-6.1 44.6 8.3 10.3 14.4 7 34.4-7.4 44.7l-1.6 1.1c-58.4 41.1-136.3 34.5-186.29-15.4-56.469-56.5-56.469-148.1 0-204.5L172.5 131.1zm295 248.9c-56.5 56.5-148 56.5-204.5 0-50-50-56.5-128.8-15.4-186.3l1.1-1.6c9.4-14.3 29.4-17.7 44.6-7.4 14.4 9.4 17.8 29.4 7.5 44.6l-1.1 1.6c-22.9 31.2-19.3 76 8.6 103.9 31.4 31.4 82.5 31.4 114 0l112.2-112.3c31.5-31.5 31.5-83.4 0-114-27.8-27.87-71.8-31.51-103.8-8.6l-1.6 1.1c-14.4 10.3-34.4 6.1-44.6-7.42-10.3-14.38-7-34.37 7.4-44.64l1.6-1.12C451 6.731 529.8 13.25 579.8 63.24c56.5 56.46 56.5 148.06 0 204.46L467.5 380z"})}),execute:n=>{var{state:s,view:l}=n;if(!(!s||!l)&&!(!s||!l)){var c=l.state.selection.main,p=l.state.sliceDoc(l.state.selection.main.from,l.state.selection.main.to);l.dispatch({changes:{from:c.from,to:c.to,insert:"["+p+"]()"},selection:st.jT.range(c.from+3+p.length,c.to+3)})}}},jx={name:"todo",keyCommand:"todo",button:{"aria-label":"Add todo List"},icon:(0,mr.jsx)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:(0,mr.jsx)("path",{d:"m5 10 3 3 6-6M5 24l3 3 6-6M5 38l3 3 6-6m7-11h22M21 38h22M21 10h22",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})}),execute:n=>{var{state:s,view:l}=n;if(!(!s||!l)){var c=l.state.doc.lineAt(l.state.selection.main.from),p="- [ ] ",g=c.text.match(/^-\s\[\s\]\s/);g&&g[0]&&(p=""),l.dispatch({changes:{from:c.from,to:c.to,insert:""+p+c.text},selection:{anchor:l.state.selection.main.from+p.length}})}}},kD={name:"image",keyCommand:"image",button:{"aria-label":"Add image text"},icon:(0,mr.jsx)("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"14",width:"14",children:(0,mr.jsx)("path",{fillRule:"evenodd",d:"M1.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h.94a.76.76 0 0 1 .03-.03l6.077-6.078a1.75 1.75 0 0 1 2.412-.06L14.5 10.31V2.75a.25.25 0 0 0-.25-.25H1.75zm12.5 11H4.81l5.048-5.047a.25.25 0 0 1 .344-.009l4.298 3.889v.917a.25.25 0 0 1-.25.25zm1.75-.25V2.75A1.75 1.75 0 0 0 14.25 1H1.75A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25zM5.5 6a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zM7 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0z"})}),execute:n=>{var{state:s,view:l}=n;if(!(!s||!l)){var c=l.state.selection.main,p=l.state.sliceDoc(l.state.selection.main.from,l.state.selection.main.to);l.dispatch({changes:{from:c.from,to:c.to,insert:"![]("+p+")"},selection:st.jT.range(c.from+4,c.to+4)})}}},Zx={name:"redo",keyCommand:"redo",button:{"aria-label":"redo text"},icon:(0,mr.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,mr.jsx)("path",{fill:"currentColor",d:"M58.79,439.13A16,16,0,0,1,48,424c0-73.1,14.68-131.56,43.65-173.77,35-51,90.21-78.46,164.35-81.87V88a16,16,0,0,1,27.05-11.57l176,168a16,16,0,0,1,0,23.14l-176,168A16,16,0,0,1,256,424V344.23c-45,1.36-79,8.65-106.07,22.64-29.25,15.12-50.46,37.71-73.32,67a16,16,0,0,1-17.82,5.28Z"})}),execute:n=>{var{state:s,view:l}=n;!s||!l||vn(l)}},wD={name:"undo",keyCommand:"undo",button:{"aria-label":"undo text"},icon:(0,mr.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,mr.jsx)("path",{fill:"currentColor",d:"M448,440a16,16,0,0,1-12.61-6.15c-22.86-29.27-44.07-51.86-73.32-67C335,352.88,301,345.59,256,344.23V424A16,16,0,0,1,229,435.57l-176-168a16,16,0,0,1,0-23.14l176-168A16,16,0,0,1,256,88v80.36c74.14,3.41,129.38,30.91,164.35,81.87C449.32,292.44,464,350.9,464,424a16,16,0,0,1-16,16Z"})}),execute:n=>{var{state:s,view:l}=n;!s||!l||Vt(l)}},xD=["editorProps","command","onClick"],TD=n=>{var{editorProps:s,command:l,onClick:c}=n,p=Ue(n,xD),g=(0,lt.useRef)(0),[O,w]=(0,lt.useState)(!1),C=(0,lt.useRef)(O),L=ee=>{var se;for(var Se of ee){var at;g.current||(g.current=Se.target.clientHeight),(at=s.editor)!=null&&(at=at.current)!=null&&(at=at.view)!=null&&at.dom&&(C.current?s.editor.current.view.dom.style.height=Se.target.clientHeight+"px":s.editor.current.view.dom.removeAttribute("style"))}(se=H.current)==null||se.disconnect(),H.current=void 0},H=(0,lt.useRef)(new ResizeObserver(L));(0,lt.useEffect)(()=>{if(H.current||(H.current=new ResizeObserver(L)),s.containerEditor&&s.containerEditor.current&&s.containerEditor.current.parentElement&&H.current){var ee=s.containerEditor.current.parentElement;H.current.observe(ee)}return()=>{H.current&&(H.current.disconnect(),H.current=void 0)}},[s.containerEditor,L,s.editor,O,H]),(0,lt.useEffect)(()=>{if(document&&s&&s.container&&s.container.current&&s.editor){var ee=s.container.current;document.body.style.overflow=O?"hidden":"initial",O?document.body.classList.add(s.prefixCls+"-fullscreen"):document.body.classList.remove(s.prefixCls+"-fullscreen"),ee&&O?(ee.style.zIndex="999",ee.style.position="fixed",ee.style.top="0px",ee.style.bottom="0px",ee.style.left="0px",ee.style.right="0px"):ee&&(ee.style.position="initial",ee.style.top="initial",ee.style.bottom="initial",ee.style.left="initial",ee.style.right="initial")}},[O,s]);var j=ee=>{var se=!O;C.current=se,w(se),c==null||c(ee,se)};return(0,mr.jsx)("button",Me({},p,{onClick:j,type:"button",className:O?"active":"",children:l.icon}))},Wx={name:"fullscreen",keyCommand:"fullscreen",button:(n,s,l)=>(0,mr.jsx)(TD,{command:n,editorProps:Me({},s,l)}),icon:(0,mr.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,mr.jsx)("path",{d:"M128 32H32C14.31 32 0 46.31 0 64v96c0 17.69 14.31 32 32 32s32-14.31 32-32V96h64c17.69 0 32-14.31 32-32s-14.3-32-32-32zm288 0h-96c-17.69 0-32 14.31-32 32s14.31 32 32 32h64v64c0 17.69 14.31 32 32 32s32-14.31 32-32V64c0-17.69-14.3-32-32-32zM128 416H64v-64c0-17.69-14.31-32-32-32S0 334.31 0 352v96c0 17.69 14.31 32 32 32h96c17.69 0 32-14.31 32-32s-14.3-32-32-32zm288-96c-17.69 0-32 14.31-32 32v64h-64c-17.69 0-32 14.31-32 32s14.31 32 32 32h96c17.69 0 32-14.31 32-32v-96c0-17.7-14.3-32-32-32z"})})},CD=n=>{var{editorProps:s}=n,{containerEditor:l,preview:c,previewWidth:p="50%",enablePreview:g=!0}=s,[O,w]=(0,lt.useState)(n.editorProps.visible);if((0,lt.useEffect)(()=>w(n.editorProps.visible),[n.editorProps.visible]),(0,lt.useEffect)(()=>{if(c.current){var L=c.current;c&&(L.style.borderBottomRightRadius="3px"),L&&O?(L.style.width=p,L.style.overflow="auto",p!=="100%"&&(L.style.borderLeft="1px solid var(--color-border-muted)"),L.style.padding="20px",l.current&&(l.current.style.width="calc(100% - "+p+")")):L&&(L.style.width="0%",L.style.overflow="hidden",L.style.borderLeft="0px",L.style.padding="0",l.current&&(l.current.style.width="100%"))}},[O,l,c,p]),!!g){var C=()=>{s.onPreviewMode&&s.onPreviewMode(!O),w(!O)};return(0,mr.jsx)("button",{onClick:C,type:"button",className:O?"active":"",children:n.command.icon})}},Gx={name:"preview",keyCommand:"preview",button:(n,s,l)=>(0,mr.jsx)(CD,{command:n,editorProps:Me({},s,l)}),icon:(0,mr.jsx)("svg",{fill:"currentColor",viewBox:"0 0 576 512",height:"16",width:"16",children:(0,mr.jsx)("path",{d:"M279.6 160.4c2.8-.3 5.6-.4 8.4-.4 53 0 96 42.1 96 96 0 53-43 96-96 96-53.9 0-96-43-96-96 0-2.8.1-5.6.4-8.4 9.3 4.5 20.1 8.4 31.6 8.4 35.3 0 64-28.7 64-64 0-11.5-3.9-22.3-8.4-31.6zm201-47.8c46.8 43.4 78.1 94.5 92.9 131.1 3.3 7.9 3.3 16.7 0 24.6-14.8 35.7-46.1 86.8-92.9 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.58-80.6C48.62 355.1 17.34 304 2.461 268.3a31.967 31.967 0 0 1 0-24.6C17.34 207.1 48.62 156 95.42 112.6 142.5 68.84 207.2 32 288 32c80.8 0 145.5 36.84 192.6 80.6zM288 112c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"})})},Q0={undo:wD,redo:Zx,bold:bD,italic:ZE,header:Qf,strike:yD,underline:WE,quote:SD,olist:z0,ulist:ED,todo:jx,link:vD,image:kD,code:OD,codeBlock:jE,fullscreen:Wx,preview:Gx},V0=()=>Object.keys(Q0).filter(n=>!/^(fullscreen|preview)/.test(n)).map(n=>Q0[n]),AD=()=>[Gx,Wx],GE=["prefixCls","className","onClick","toolbars","editor","mode","preview","container","containerEditor","editorProps"];function Ua(n){var{prefixCls:s="md-editor",className:l,toolbars:c=[],editor:p,mode:g,preview:O,container:w,containerEditor:C,editorProps:L={}}=n,H=Ue(n,GE);if(!c||c.length===0)return null;function j(ee){ee&&p&&p&&ee(p.current)}return L.prefixCls=s,(0,mr.jsx)("div",Me({className:s+"-toolbar "+(l||"")+" "+(g?s+"-toolbar-mode":"")},H,{children:[...c].map((ee,se)=>{var Se={type:"button"},at=typeof ee=="string"?Q0[ee]:ee;if(!at)return null;if(Se.children=at.icon,Se.onClick=()=>j(at.execute),at.button&&typeof at.button=="object"){var ot=at.button;Object.keys(ot).forEach(Ke=>{Se[Ke]=ot[Ke]})}else if(typeof at.button=="function")return lt.cloneElement(at.button(at,L,{preview:O,container:w,containerEditor:C,editor:p,editorProps:L}),{key:se});return(0,lt.createElement)("button",Me({},Se,{key:se}))})}))}var $h=n=>{var{theme:s,settings:l={},styles:c=[]}=n,p={".cm-gutters":{}},g={};l.background&&(g.backgroundColor=l.background),l.backgroundImage&&(g.backgroundImage=l.backgroundImage),l.foreground&&(g.color=l.foreground),l.fontSize&&(g.fontSize=l.fontSize),(l.background||l.foreground)&&(p["&"]=g),l.fontFamily&&(p["&.cm-editor .cm-scroller"]={fontFamily:l.fontFamily}),l.gutterBackground&&(p[".cm-gutters"].backgroundColor=l.gutterBackground),l.gutterForeground&&(p[".cm-gutters"].color=l.gutterForeground),l.gutterBorder&&(p[".cm-gutters"].borderRightColor=l.gutterBorder),l.caret&&(p[".cm-content"]={caretColor:l.caret},p[".cm-cursor, .cm-dropCursor"]={borderLeftColor:l.caret});var O={};l.gutterActiveForeground&&(O.color=l.gutterActiveForeground),l.lineHighlight&&(p[".cm-activeLine"]={backgroundColor:l.lineHighlight},O.backgroundColor=l.lineHighlight),p[".cm-activeLineGutter"]=O,l.selection&&(p["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:l.selection+" !important"}),l.selectionMatch&&(p["& .cm-selectionMatch"]={backgroundColor:l.selectionMatch});var w=ft.tk.theme(p,{dark:s==="dark"}),C=De.Qf.define(c),L=[w,(0,De.nF)(C)];return L},pu=null,YE=$h({theme:"light",settings:{background:"var(--color-canvas-subtle)",foreground:"var(--color-fg-default)",caret:"var(--color-fg-default)",selection:"var(--color-border-default)",selectionMatch:"var(--color-border-muted)",lineHighlight:"var(--color-neutral-muted)",gutterBackground:"var(--color-canvas-subtle)",gutterForeground:"var(--color-fg-muted)",gutterBorder:"var(--color-border-muted)"},styles:[{tag:zn.pJ.comment,color:"var(--color-prettylights-syntax-comment)"},{tag:zn.pJ.variableName,color:"var(--color-prettylights-syntax-variable)"},{tag:[zn.pJ.string,zn.pJ.special(zn.pJ.brace)],color:"var(--color-prettylights-syntax-entity)"},{tag:zn.pJ.number,color:"var(--color-prettylights-syntax-variable)"},{tag:[zn.pJ.bool,zn.pJ.null],color:"var(--color-prettylights-syntax-entity)"},{tag:zn.pJ.keyword,color:"var(--color-prettylights-syntax-keyword)",fontWeight:"bold"},{tag:zn.pJ.string,color:"var(--color-prettylights-syntax-string)"},{tag:zn.pJ.operator,color:"var(--color-accent-emphasis)"},{tag:zn.pJ.deleted,color:"var(--color-prettylights-syntax-markup-deleted-bg)"},{tag:zn.pJ.deleted,color:"red"},{tag:zn.pJ.className,color:"var(--color-prettylights-syntax-variable)"},{tag:zn.pJ.definition(zn.pJ.typeName),color:"var(--color-prettylights-syntax-entity)"},{tag:zn.pJ.typeName,color:"var(--color-prettylights-syntax-entity)"},{tag:zn.pJ.list,color:"var(--color-prettylights-syntax-markup-list)"},{tag:zn.pJ.heading,color:"var(--color-prettylights-syntax-markup-heading)",fontWeight:"bold"},{tag:zn.pJ.regexp,color:"var(--color-prettylights-syntax-string-regexp)"},{tag:zn.pJ.literal,color:"var(--color-prettylights-syntax-markup-italic)"},{tag:zn.pJ.link,color:"var(--color-prettylights-syntax-constant-other-reference-link)",textDecoration:"underline"},{tag:zn.pJ.angleBracket,color:"var(--color-fg-default)"},{tag:zn.pJ.tagName,color:"var(--color-prettylights-syntax-entity-tag)"},{tag:zn.pJ.attributeName,color:"var(--color-prettylights-syntax-constant)"}]}),Vf=["prefixCls","className","onChange","toolbars","toolbarsMode","toolbarsFilter","visible","renderPreview","visibleEditor","hideToolbar","showToolbar","toolbarBottom","enableScroll","enablePreview","previewProps","extensions","previewWidth","reExtensions","onPreviewMode"],_D=ft.tk.theme({"&.cm-editor, & .cm-scroller":{borderBottomRightRadius:"3px",borderBottomLeftRadius:"3px"}}),Yx=lt.forwardRef(Xx);Yx.Markdown=VE;var qx=Yx;function Xx(n,s){var{prefixCls:l="md-editor",className:c,onChange:p,toolbars:g=V0(),toolbarsMode:O=AD(),toolbarsFilter:w,visible:C=!0,renderPreview:L,visibleEditor:H=!0,hideToolbar:j,showToolbar:ee=!0,toolbarBottom:se=!1,enableScroll:Se=!0,enablePreview:at=!0,previewProps:ot={},extensions:Ke=[],previewWidth:Ot="50%",reExtensions:kt}=n,Jt=Ue(n,Vf),[ln,yt]=(0,lt.useState)(n.value||""),tn=(0,lt.useRef)(null),Qn=(0,lt.useRef)(null),mn=(0,lt.useRef)(null),it=(0,lt.useRef)(null),wr=(0,lt.useRef)("editor");(0,lt.useImperativeHandle)(s,()=>({editor:tn,preview:it}),[tn]);var An={prefixCls:l,preview:it,editor:tn,container:Qn,containerEditor:mn,editorProps:Me({},n,{previewWidth:Ot})},Ln=typeof Jt.height=="number"?Jt.height+"px":Jt.height,hr=n.value;(0,lt.useEffect)(()=>yt(hr!=null?hr:""),[hr]);var Jn=(0,lt.useCallback)($i=>{if(Se){var ga=$i.target,Ha=ga.scrollTop/ga.scrollHeight;if(wr.current==="editor"&&it.current){var no,_s=((no=it.current)==null?void 0:no.scrollHeight)||0;it.current.scrollTop=_s*Ha}else if(tn.current&&tn.current.view){var Uh=tn.current.view.scrollDOM,kl=tn.current.view.scrollDOM.scrollHeight||0;Uh.scrollTop=kl*Ha}}},[Se]),Ur=()=>wr.current="preview",Nr=()=>wr.current="editor";(0,lt.useEffect)(()=>{var $i=it.current;return $i&&Se&&($i.addEventListener("mouseover",Ur,!1),$i.addEventListener("mouseleave",Nr,!1),$i.addEventListener("scroll",Jn,!1)),()=>{$i&&Se&&($i.removeEventListener("mouseover",Ur),$i.removeEventListener("mouseleave",Ur),$i.addEventListener("mouseleave",Jn,!1))}},[it,Se,Jn]);var jr=gt({scroll:Jn}),nr=kt||[(0,En.markdown)({base:En.markdownLanguage,codeLanguages:In}),_D,...Ke];Se&&nr.push(jr);var Fe=l+"-preview",Bi=[l,"wmde-markdown-var",c].filter(Boolean).join(" ");ot.source=ln;var Zi=($i,ga)=>{yt($i),p&&p($i,ga)},Qe=(0,mr.jsxs)("div",{className:l+"-content",style:{height:Jt.height},children:[(0,mr.jsx)("div",{className:l+"-content-editor",ref:mn,children:H&&(0,mr.jsx)(hm,Me({theme:YE},Jt,{className:l+"-inner",extensions:nr,height:Ln,ref:tn,onChange:Zi}))}),at&&(0,mr.jsx)("div",{className:Fe,ref:it,children:L?L(ot,!!C):(0,mr.jsx)(VE,Me({},ot,{"data-visible":!!C}))})]}),Xi=[l&&l+"-toolbar-warp",l&&se&&l+"-toolbar-bottom"].filter(Boolean).join(" "),As=w?g.filter(w):g,Mr=w?O.filter(w):O,zs=j!=null?j:ee,Mi=zs&&(0,mr.jsxs)("div",{className:Xi,children:[(0,mr.jsx)(Ua,Me({},An,{toolbars:As})),(0,mr.jsx)(Ua,Me({},An,{toolbars:Mr,mode:!0}))]}),to=se?(0,mr.jsxs)(lt.Fragment,{children:[Qe,Mi]}):(0,mr.jsxs)(lt.Fragment,{children:[Mi,Qe]});return(0,mr.jsx)("div",{className:Bi,ref:Qn,children:to})}},74864:function(){"use strict"},86250:function(ti,Gn,z){"use strict";z.d(Gn,{Z:function(){return Un}});var ue=z(67294),Me=z(93967),Ue=z.n(Me),lt=z(98423),En=z(98065),De=z(53124),Ee=z(27036),xt=z(45503);const In=["wrap","nowrap","wrap-reverse"],ft=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Pt=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Hn=(Xt,sn)=>{const Yt=sn.wrap===!0?"wrap":sn.wrap;return{[`${Xt}-wrap-${Yt}`]:Yt&&In.includes(Yt)}},gt=(Xt,sn)=>{const Yt={};return Pt.forEach(Ut=>{Yt[`${Xt}-align-${Ut}`]=sn.align===Ut}),Yt[`${Xt}-align-stretch`]=!sn.align&&!!sn.vertical,Yt},On=(Xt,sn)=>{const Yt={};return ft.forEach(Ut=>{Yt[`${Xt}-justify-${Ut}`]=sn.justify===Ut}),Yt};function st(Xt,sn){return Ue()(Object.assign(Object.assign(Object.assign({},Hn(Xt,sn)),gt(Xt,sn)),On(Xt,sn)))}var Pn=st;const Nt=Xt=>{const{componentCls:sn}=Xt;return{[sn]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Kn=Xt=>{const{componentCls:sn}=Xt;return{[sn]:{"&-gap-small":{gap:Xt.flexGapSM},"&-gap-middle":{gap:Xt.flexGap},"&-gap-large":{gap:Xt.flexGapLG}}}},Nn=Xt=>{const{componentCls:sn}=Xt,Yt={};return In.forEach(Ut=>{Yt[`${sn}-wrap-${Ut}`]={flexWrap:Ut}}),Yt},yn=Xt=>{const{componentCls:sn}=Xt,Yt={};return Pt.forEach(Ut=>{Yt[`${sn}-align-${Ut}`]={alignItems:Ut}}),Yt},Zn=Xt=>{const{componentCls:sn}=Xt,Yt={};return ft.forEach(Ut=>{Yt[`${sn}-justify-${Ut}`]={justifyContent:Ut}}),Yt},Mn=()=>({});var Tr=(0,Ee.I$)("Flex",Xt=>{const{paddingXS:sn,padding:Yt,paddingLG:Ut}=Xt,Qt=(0,xt.TS)(Xt,{flexGapSM:sn,flexGap:Yt,flexGapLG:Ut});return[Nt(Qt),Kn(Qt),Nn(Qt),yn(Qt),Zn(Qt)]},Mn,{resetStyle:!1}),Br=function(Xt,sn){var Yt={};for(var Ut in Xt)Object.prototype.hasOwnProperty.call(Xt,Ut)&&sn.indexOf(Ut)<0&&(Yt[Ut]=Xt[Ut]);if(Xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qt=0,Ut=Object.getOwnPropertySymbols(Xt);Qt{const{prefixCls:Yt,rootClassName:Ut,className:Qt,style:X,flex:be,gap:Ne,children:ye,vertical:Ze=!1,component:$e="div"}=Xt,qe=Br(Xt,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:ut,direction:Vt,getPrefixCls:vn}=ue.useContext(De.E_),an=vn("flex",Yt),[Fn,Sn,Bn]=Tr(an),fr=Ze!=null?Ze:ut==null?void 0:ut.vertical,ir=Ue()(Qt,Ut,ut==null?void 0:ut.className,an,Sn,Bn,Pn(an,Xt),{[`${an}-rtl`]:Vt==="rtl",[`${an}-gap-${Ne}`]:(0,En.n)(Ne),[`${an}-vertical`]:fr}),un=Object.assign(Object.assign({},ut==null?void 0:ut.style),X);return be&&(un.flex=be),Ne&&!(0,En.n)(Ne)&&(un.gap=Ne),Fn(ue.createElement($e,Object.assign({ref:sn,className:ir,style:un},(0,lt.Z)(qe,["justify","wrap","align"])),ye))})},14e3:function(ti,Gn,z){"use strict";z.d(Gn,{Z:function(){return un}});var ue=z(70593),Me=z(74902),Ue=z(67294),lt=z(5309),En=z(87462),De={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"},Ee=De,xt=z(93771),In=function(et,Z){return Ue.createElement(xt.Z,(0,En.Z)({},et,{ref:Z,icon:Ee}))},ft=Ue.forwardRef(In),Pt=ft,Hn={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"},gt=Hn,On=function(et,Z){return Ue.createElement(xt.Z,(0,En.Z)({},et,{ref:Z,icon:gt}))},st=Ue.forwardRef(On),Pn=st,Nt=z(93967),Kn=z.n(Nt),Nn=z(10225),yn=z(1089),Zn=z(53124),Mn={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"},Tr=Mn,Br=function(et,Z){return Ue.createElement(xt.Z,(0,En.Z)({},et,{ref:Z,icon:Tr}))},yr=Ue.forwardRef(Br),Un=yr,Xt=z(33603),sn=z(29691),Yt=z(32157);const Ut=4;function Qt(zt){const{dropPosition:et,dropLevelOffset:Z,prefixCls:re,indent:we,direction:ve="ltr"}=zt,Ce=ve==="ltr"?"left":"right",tt=ve==="ltr"?"right":"left",Rt={[Ce]:-Z*we+Ut,[tt]:0};switch(et){case-1:Rt.top=-3;break;case 1:Rt.bottom=-3;break;default:Rt.bottom=-3,Rt[Ce]=we+Ut;break}return Ue.createElement("div",{style:Rt,className:`${re}-drop-indicator`})}var X=z(77632),Ne=Ue.forwardRef((zt,et)=>{var Z;const{getPrefixCls:re,direction:we,virtual:ve,tree:Ce}=Ue.useContext(Zn.E_),{prefixCls:tt,className:Rt,showIcon:Kt=!1,showLine:Cn,switcherIcon:bn,blockNode:Dn=!1,children:Yn,checkable:$n=!1,selectable:Pr=!0,draggable:Wr,motion:Wn,style:zr}=zt,Gr=re("tree",tt),Yr=re(),Ti=Wn!=null?Wn:Object.assign(Object.assign({},(0,Xt.Z)(Yr)),{motionAppear:!1}),er=Object.assign(Object.assign({},zt),{checkable:$n,selectable:Pr,showIcon:Kt,motion:Ti,blockNode:Dn,showLine:!!Cn,dropIndicatorRender:Qt}),[Ye,bt,Mt]=(0,Yt.ZP)(Gr),[,Tt]=(0,sn.ZP)(),hn=Tt.paddingXS/2+(((Z=Tt.Tree)===null||Z===void 0?void 0:Z.titleHeight)||Tt.controlHeightSM),on=Ue.useMemo(()=>{if(!Wr)return!1;let qn={};switch(typeof Wr){case"function":qn.nodeDraggable=Wr;break;case"object":qn=Object.assign({},Wr);break;default:break}return qn.icon!==!1&&(qn.icon=qn.icon||Ue.createElement(Un,null)),qn},[Wr]),At=qn=>Ue.createElement(X.Z,{prefixCls:Gr,switcherIcon:bn,treeNodeProps:qn,showLine:Cn});return Ye(Ue.createElement(ue.Z,Object.assign({itemHeight:hn,ref:et,virtual:ve},er,{style:Object.assign(Object.assign({},Ce==null?void 0:Ce.style),zr),prefixCls:Gr,className:Kn()({[`${Gr}-icon-hide`]:!Kt,[`${Gr}-block-node`]:Dn,[`${Gr}-unselectable`]:!Pr,[`${Gr}-rtl`]:we==="rtl"},Ce==null?void 0:Ce.className,Rt,bt,Mt),direction:we,checkable:$n&&Ue.createElement("span",{className:`${Gr}-checkbox-inner`}),selectable:Pr,switcherIcon:At,draggable:on}),Yn))});const ye=0,Ze=1,$e=2;function qe(zt,et,Z){const{key:re,children:we}=Z;function ve(Ce){const tt=Ce[re],Rt=Ce[we];et(tt,Ce)!==!1&&qe(Rt||[],et,Z)}zt.forEach(ve)}function ut(zt){let{treeData:et,expandedKeys:Z,startKey:re,endKey:we,fieldNames:ve}=zt;const Ce=[];let tt=ye;if(re&&re===we)return[re];if(!re||!we)return[];function Rt(Kt){return Kt===re||Kt===we}return qe(et,Kt=>{if(tt===$e)return!1;if(Rt(Kt)){if(Ce.push(Kt),tt===ye)tt=Ze;else if(tt===Ze)return tt=$e,!1}else tt===Ze&&Ce.push(Kt);return Z.includes(Kt)},(0,yn.w$)(ve)),Ce}function Vt(zt,et,Z){const re=(0,Me.Z)(et),we=[];return qe(zt,(ve,Ce)=>{const tt=re.indexOf(ve);return tt!==-1&&(we.push(Ce),re.splice(tt,1)),!!re.length},(0,yn.w$)(Z)),we}var vn=function(zt,et){var Z={};for(var re in zt)Object.prototype.hasOwnProperty.call(zt,re)&&et.indexOf(re)<0&&(Z[re]=zt[re]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,re=Object.getOwnPropertySymbols(zt);we{var{defaultExpandAll:Z,defaultExpandParent:re,defaultExpandedKeys:we}=zt,ve=vn(zt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ce=Ue.useRef(),tt=Ue.useRef(),Rt=()=>{const{keyEntities:bt}=(0,yn.I8)(Fn(ve));let Mt;return Z?Mt=Object.keys(bt):re?Mt=(0,Nn.r7)(ve.expandedKeys||we||[],bt):Mt=ve.expandedKeys||we||[],Mt},[Kt,Cn]=Ue.useState(ve.selectedKeys||ve.defaultSelectedKeys||[]),[bn,Dn]=Ue.useState(()=>Rt());Ue.useEffect(()=>{"selectedKeys"in ve&&Cn(ve.selectedKeys)},[ve.selectedKeys]),Ue.useEffect(()=>{"expandedKeys"in ve&&Dn(ve.expandedKeys)},[ve.expandedKeys]);const Yn=(bt,Mt)=>{var Tt;return"expandedKeys"in ve||Dn(bt),(Tt=ve.onExpand)===null||Tt===void 0?void 0:Tt.call(ve,bt,Mt)},$n=(bt,Mt)=>{var Tt;const{multiple:hn,fieldNames:on}=ve,{node:At,nativeEvent:qn}=Mt,{key:Ir=""}=At,rr=Fn(ve),Ar=Object.assign(Object.assign({},Mt),{selected:!0}),ei=(qn==null?void 0:qn.ctrlKey)||(qn==null?void 0:qn.metaKey),qr=qn==null?void 0:qn.shiftKey;let ur;hn&&ei?(ur=bt,Ce.current=Ir,tt.current=ur,Ar.selectedNodes=Vt(rr,ur,on)):hn&&qr?(ur=Array.from(new Set([].concat((0,Me.Z)(tt.current||[]),(0,Me.Z)(ut({treeData:rr,expandedKeys:bn,startKey:Ir,endKey:Ce.current,fieldNames:on}))))),Ar.selectedNodes=Vt(rr,ur,on)):(ur=[Ir],Ce.current=Ir,tt.current=ur,Ar.selectedNodes=Vt(rr,ur,on)),(Tt=ve.onSelect)===null||Tt===void 0||Tt.call(ve,ur,Ar),"selectedKeys"in ve||Cn(ur)},{getPrefixCls:Pr,direction:Wr}=Ue.useContext(Zn.E_),{prefixCls:Wn,className:zr,showIcon:Gr=!0,expandAction:Yr="click"}=ve,Ti=vn(ve,["prefixCls","className","showIcon","expandAction"]),er=Pr("tree",Wn),Ye=Kn()(`${er}-directory`,{[`${er}-directory-rtl`]:Wr==="rtl"},zr);return Ue.createElement(Ne,Object.assign({icon:an,ref:et,blockNode:!0},Ti,{showIcon:Gr,expandAction:Yr,prefixCls:er,className:Ye,expandedKeys:bn,selectedKeys:Kt,onSelect:$n,onExpand:Yn}))};var fr=Ue.forwardRef(Sn);const ir=Ne;ir.DirectoryTree=fr,ir.TreeNode=ue.O;var un=ir},11073:function(ti){ti.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},72954:function(ti){var Gn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,z=/\n/g,ue=/^\s*/,Me=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ue=/^:\s*/,lt=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,En=/^[;\s]*/,De=/^\s+|\s+$/g,Ee=` -`,xt="/",In="*",ft="",Pt="comment",Hn="declaration";ti.exports=function(On,st){if(typeof On!="string")throw new TypeError("First argument must be a string");if(!On)return[];st=st||{};var Pn=1,Nt=1;function Kn(Yt){var Ut=Yt.match(z);Ut&&(Pn+=Ut.length);var Qt=Yt.lastIndexOf(Ee);Nt=~Qt?Yt.length-Qt:Nt+Yt.length}function Nn(){var Yt={line:Pn,column:Nt};return function(Ut){return Ut.position=new yn(Yt),Br(),Ut}}function yn(Yt){this.start=Yt,this.end={line:Pn,column:Nt},this.source=st.source}yn.prototype.content=On;var Zn=[];function Mn(Yt){var Ut=new Error(st.source+":"+Pn+":"+Nt+": "+Yt);if(Ut.reason=Yt,Ut.filename=st.source,Ut.line=Pn,Ut.column=Nt,Ut.source=On,st.silent)Zn.push(Ut);else throw Ut}function Tr(Yt){var Ut=Yt.exec(On);if(Ut){var Qt=Ut[0];return Kn(Qt),On=On.slice(Qt.length),Ut}}function Br(){Tr(ue)}function yr(Yt){var Ut;for(Yt=Yt||[];Ut=Un();)Ut!==!1&&Yt.push(Ut);return Yt}function Un(){var Yt=Nn();if(!(xt!=On.charAt(0)||In!=On.charAt(1))){for(var Ut=2;ft!=On.charAt(Ut)&&(In!=On.charAt(Ut)||xt!=On.charAt(Ut+1));)++Ut;if(Ut+=2,ft===On.charAt(Ut-1))return Mn("End of comment missing");var Qt=On.slice(2,Ut-2);return Nt+=2,Kn(Qt),On=On.slice(Ut),Nt+=2,Yt({type:Pt,comment:Qt})}}function Xt(){var Yt=Nn(),Ut=Tr(Me);if(Ut){if(Un(),!Tr(Ue))return Mn("property missing ':'");var Qt=Tr(lt),X=Yt({type:Hn,property:gt(Ut[0].replace(Gn,ft)),value:Qt?gt(Qt[0].replace(Gn,ft)):ft});return Tr(En),X}}function sn(){var Yt=[];yr(Yt);for(var Ut;Ut=Xt();)Ut!==!1&&(Yt.push(Ut),yr(Yt));return Yt}return Br(),sn()};function gt(On){return On?On.replace(De,ft):ft}},39221:function(ti,Gn,z){"use strict";var ue=this&&this.__importDefault||function(lt){return lt&<.__esModule?lt:{default:lt}};Object.defineProperty(Gn,"__esModule",{value:!0});var Me=ue(z(72954));function Ue(lt,En){var De=null;if(!lt||typeof lt!="string")return De;var Ee=(0,Me.default)(lt),xt=typeof En=="function";return Ee.forEach(function(In){if(In.type==="declaration"){var ft=In.property,Pt=In.value;xt?En(ft,Pt,In):Pt&&(De=De||{},De[ft]=Pt)}}),De}Gn.default=Ue},87594:function(ti,Gn){function z(ue){let Me=[],Ue;for(let lt of ue.split(",").map(En=>En.trim()))if(/^-?\d+$/.test(lt))Me.push(parseInt(lt,10));else if(Ue=lt.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[En,De,Ee,xt]=Ue;if(De&&xt){De=parseInt(De),xt=parseInt(xt);const In=Detypeof Ie=="string"?{label:Ie}:Ie),[oe,Te]=Y.every(Ie=>/^\w+$/.test(Ie.label))?[/\w*$/,/\w+$/]:De(Y);return Ie=>{let Xe=Ie.matchBefore(Te);return Xe||Ie.explicit?{from:Xe?Xe.from:Ie.pos,options:Y,validFor:oe}:null}}function xt(he,Y){return oe=>{for(let Te=syntaxTree(oe.state).resolveInner(oe.pos,-1);Te;Te=Te.parent){if(he.indexOf(Te.name)>-1)return Y(oe);if(Te.type.isTop)break}return null}}function In(he,Y){return oe=>{for(let Te=(0,Ue.qz)(oe.state).resolveInner(oe.pos,-1);Te;Te=Te.parent){if(he.indexOf(Te.name)>-1)return null;if(Te.type.isTop)break}return Y(oe)}}class ft{constructor(Y,oe,Te,Ie){this.completion=Y,this.source=oe,this.match=Te,this.score=Ie}}function Pt(he){return he.selection.main.from}function Hn(he,Y){var oe;let{source:Te}=he,Ie=Y&&Te[0]!="^",Xe=Te[Te.length-1]!="$";return!Ie&&!Xe?he:new RegExp(`${Ie?"^":""}(?:${Te})${Xe?"$":""}`,(oe=he.flags)!==null&&oe!==void 0?oe:he.ignoreCase?"i":"")}const gt=ue.q6.define();function On(he,Y,oe,Te){let{main:Ie}=he.selection,Xe=oe-Ie.from,M=Te-Ie.from;return Object.assign(Object.assign({},he.changeByRange(D=>D!=Ie&&oe!=Te&&he.sliceDoc(D.from+Xe,D.from+M)!=he.sliceDoc(oe,Te)?{range:D}:{changes:{from:D.from+Xe,to:Te==Ie.from?D.to:D.from+M,insert:Y},range:ue.jT.cursor(D.from+Xe+Y.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const st=new WeakMap;function Pn(he){if(!Array.isArray(he))return he;let Y=st.get(he);return Y||st.set(he,Y=Ee(he)),Y}const Nt=ue.Py.define(),Kn=ue.Py.define();class Nn{constructor(Y){this.pattern=Y,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let oe=0;oe=48&&_r<=57||_r>=97&&_r<=122?2:_r>=65&&_r<=90?1:0:(ce=(0,ue.bg)(_r))!=ce.toLowerCase()?1:ce!=ce.toUpperCase()?2:0;(!dn||B==1&&nn||$r==0&&B!=0)&&(oe[Re]==_r||Te[Re]==_r&&(Je=!0)?M[Re++]=dn:M.length&&(Cr=!1)),$r=B,dn+=(0,ue.nZ)(_r)}return Re==F&&M[0]==0&&Cr?this.result(-100+(Je?-200:0),M,Y):ht==F&&wt==0?this.ret(-200-Y.length+(en==Y.length?0:-100),[0,en]):D>-1?this.ret(-700-Y.length,[D,D+this.pattern.length]):ht==F?this.ret(-900-Y.length,[wt,en]):Re==F?this.result(-100+(Je?-200:0)+-700+(Cr?0:-1100),M,Y):oe.length==2?null:this.result((Ie[0]?-700:0)+-200+-1100,Ie,Y)}result(Y,oe,Te){let Ie=[],Xe=0;for(let M of oe){let D=M+(this.astral?(0,ue.nZ)((0,ue.gm)(Te,M)):1);Xe&&Ie[Xe-1]==M?Ie[Xe-1]=D:(Ie[Xe++]=M,Ie[Xe++]=D)}return this.ret(Y-Te.length,Ie)}}class yn{constructor(Y){this.pattern=Y,this.matched=[],this.score=0,this.folded=Y.toLowerCase()}match(Y){if(Y.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:Tr,filterStrict:!1,compareCompletions:(Y,oe)=>Y.label.localeCompare(oe.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(Y,oe)=>Y&&oe,closeOnBlur:(Y,oe)=>Y&&oe,icons:(Y,oe)=>Y&&oe,tooltipClass:(Y,oe)=>Te=>Mn(Y(Te),oe(Te)),optionClass:(Y,oe)=>Te=>Mn(Y(Te),oe(Te)),addToOptions:(Y,oe)=>Y.concat(oe),filterStrict:(Y,oe)=>Y||oe})}});function Mn(he,Y){return he?Y?he+" "+Y:he:Y}function Tr(he,Y,oe,Te,Ie,Xe){let M=he.textDirection==Me.Nm.RTL,D=M,F=!1,W="top",ie,Re,Je=Y.left-Ie.left,ht=Ie.right-Y.right,wt=Te.right-Te.left,en=Te.bottom-Te.top;if(D&&Je=en||dn>Y.top?ie=oe.bottom-Y.top:(W="bottom",ie=Y.bottom-oe.top)}let nn=(Y.bottom-Y.top)/Xe.offsetHeight,Cr=(Y.right-Y.left)/Xe.offsetWidth;return{style:`${W}: ${ie/nn}px; max-width: ${Re/Cr}px`,class:"cm-completionInfo-"+(F?M?"left-narrow":"right-narrow":D?"left":"right")}}function Br(he){let Y=he.addToOptions.slice();return he.icons&&Y.push({render(oe){let Te=document.createElement("div");return Te.classList.add("cm-completionIcon"),oe.type&&Te.classList.add(...oe.type.split(/\s+/g).map(Ie=>"cm-completionIcon-"+Ie)),Te.setAttribute("aria-hidden","true"),Te},position:20}),Y.push({render(oe,Te,Ie,Xe){let M=document.createElement("span");M.className="cm-completionLabel";let D=oe.displayLabel||oe.label,F=0;for(let W=0;WF&&M.appendChild(document.createTextNode(D.slice(F,ie)));let Je=M.appendChild(document.createElement("span"));Je.appendChild(document.createTextNode(D.slice(ie,Re))),Je.className="cm-completionMatchedText",F=Re}return Foe.position-Te.position).map(oe=>oe.render)}function yr(he,Y,oe){if(he<=oe)return{from:0,to:he};if(Y<0&&(Y=0),Y<=he>>1){let Ie=Math.floor(Y/oe);return{from:Ie*oe,to:(Ie+1)*oe}}let Te=Math.floor((he-Y)/oe);return{from:he-(Te+1)*oe,to:he-Te*oe}}class Un{constructor(Y,oe,Te){this.view=Y,this.stateField=oe,this.applyCompletion=Te,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:F=>this.placeInfo(F),key:this},this.space=null,this.currentClass="";let Ie=Y.state.field(oe),{options:Xe,selected:M}=Ie.open,D=Y.state.facet(Zn);this.optionContent=Br(D),this.optionClass=D.optionClass,this.tooltipClass=D.tooltipClass,this.range=yr(Xe.length,M,D.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(Y.state),this.dom.addEventListener("mousedown",F=>{let{options:W}=Y.state.field(oe).open;for(let ie=F.target,Re;ie&&ie!=this.dom;ie=ie.parentNode)if(ie.nodeName=="LI"&&(Re=/-(\d+)$/.exec(ie.id))&&+Re[1]{let W=Y.state.field(this.stateField,!1);W&&W.tooltip&&Y.state.facet(Zn).closeOnBlur&&F.relatedTarget!=Y.contentDOM&&Y.dispatch({effects:Kn.of(null)})}),this.showOptions(Xe,Ie.id)}mount(){this.updateSel()}showOptions(Y,oe){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(Y,oe,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(Y){var oe;let Te=Y.state.field(this.stateField),Ie=Y.startState.field(this.stateField);if(this.updateTooltipClass(Y.state),Te!=Ie){let{options:Xe,selected:M,disabled:D}=Te.open;(!Ie.open||Ie.open.options!=Xe)&&(this.range=yr(Xe.length,M,Y.state.facet(Zn).maxRenderedOptions),this.showOptions(Xe,Te.id)),this.updateSel(),D!=((oe=Ie.open)===null||oe===void 0?void 0:oe.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!D)}}updateTooltipClass(Y){let oe=this.tooltipClass(Y);if(oe!=this.currentClass){for(let Te of this.currentClass.split(" "))Te&&this.dom.classList.remove(Te);for(let Te of oe.split(" "))Te&&this.dom.classList.add(Te);this.currentClass=oe}}positioned(Y){this.space=Y,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let Y=this.view.state.field(this.stateField),oe=Y.open;if((oe.selected>-1&&oe.selected=this.range.to)&&(this.range=yr(oe.options.length,oe.selected,this.view.state.facet(Zn).maxRenderedOptions),this.showOptions(oe.options,Y.id)),this.updateSelectedOption(oe.selected)){this.destroyInfo();let{completion:Te}=oe.options[oe.selected],{info:Ie}=Te;if(!Ie)return;let Xe=typeof Ie=="string"?document.createTextNode(Ie):Ie(Te);if(!Xe)return;"then"in Xe?Xe.then(M=>{M&&this.view.state.field(this.stateField,!1)==Y&&this.addInfoPane(M,Te)}).catch(M=>(0,Me.OO)(this.view.state,M,"completion info")):this.addInfoPane(Xe,Te)}}addInfoPane(Y,oe){this.destroyInfo();let Te=this.info=document.createElement("div");if(Te.className="cm-tooltip cm-completionInfo",Y.nodeType!=null)Te.appendChild(Y),this.infoDestroy=null;else{let{dom:Ie,destroy:Xe}=Y;Te.appendChild(Ie),this.infoDestroy=Xe||null}this.dom.appendChild(Te),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(Y){let oe=null;for(let Te=this.list.firstChild,Ie=this.range.from;Te;Te=Te.nextSibling,Ie++)Te.nodeName!="LI"||!Te.id?Ie--:Ie==Y?Te.hasAttribute("aria-selected")||(Te.setAttribute("aria-selected","true"),oe=Te):Te.hasAttribute("aria-selected")&&Te.removeAttribute("aria-selected");return oe&&sn(this.list,oe),oe}measureInfo(){let Y=this.dom.querySelector("[aria-selected]");if(!Y||!this.info)return null;let oe=this.dom.getBoundingClientRect(),Te=this.info.getBoundingClientRect(),Ie=Y.getBoundingClientRect(),Xe=this.space;if(!Xe){let M=this.dom.ownerDocument.defaultView||window;Xe={left:0,top:0,right:M.innerWidth,bottom:M.innerHeight}}return Ie.top>Math.min(Xe.bottom,oe.bottom)-10||Ie.bottomTe.from||Te.from==0))if(Xe=Je,typeof W!="string"&&W.header)Ie.appendChild(W.header(W));else{let ht=Ie.appendChild(document.createElement("completion-section"));ht.textContent=Je}}const ie=Ie.appendChild(document.createElement("li"));ie.id=oe+"-"+M,ie.setAttribute("role","option");let Re=this.optionClass(D);Re&&(ie.className=Re);for(let Je of this.optionContent){let ht=Je(D,this.view.state,this.view,F);ht&&ie.appendChild(ht)}}return Te.from&&Ie.classList.add("cm-completionListIncompleteTop"),Te.tonew Un(oe,he,Y)}function sn(he,Y){let oe=he.getBoundingClientRect(),Te=Y.getBoundingClientRect(),Ie=oe.height/he.offsetHeight;Te.topoe.bottom&&(he.scrollTop+=(Te.bottom-oe.bottom)/Ie)}function Yt(he){return(he.boost||0)*100+(he.apply?10:0)+(he.info?5:0)+(he.type?1:0)}function Ut(he,Y){let oe=[],Te=null,Ie=W=>{oe.push(W);let{section:ie}=W.completion;if(ie){Te||(Te=[]);let Re=typeof ie=="string"?ie:ie.name;Te.some(Je=>Je.name==Re)||Te.push(typeof ie=="string"?{name:Re}:ie)}},Xe=Y.facet(Zn);for(let W of he)if(W.hasResult()){let ie=W.result.getMatch;if(W.result.filter===!1)for(let Re of W.result.options)Ie(new ft(Re,W.source,ie?ie(Re):[],1e9-oe.length));else{let Re=Y.sliceDoc(W.from,W.to),Je,ht=Xe.filterStrict?new yn(Re):new Nn(Re);for(let wt of W.result.options)if(Je=ht.match(wt.label)){let en=wt.displayLabel?ie?ie(wt,Je.matched):[]:Je.matched;Ie(new ft(wt,W.source,en,Je.score+(wt.boost||0)))}}}if(Te){let W=Object.create(null),ie=0,Re=(Je,ht)=>{var wt,en;return((wt=Je.rank)!==null&&wt!==void 0?wt:1e9)-((en=ht.rank)!==null&&en!==void 0?en:1e9)||(Je.nameRe.score-ie.score||F(ie.completion,Re.completion))){let ie=W.completion;!D||D.label!=ie.label||D.detail!=ie.detail||D.type!=null&&ie.type!=null&&D.type!=ie.type||D.apply!=ie.apply||D.boost!=ie.boost?M.push(W):Yt(W.completion)>Yt(D)&&(M[M.length-1]=W),D=W.completion}return M}class Qt{constructor(Y,oe,Te,Ie,Xe,M){this.options=Y,this.attrs=oe,this.tooltip=Te,this.timestamp=Ie,this.selected=Xe,this.disabled=M}setSelected(Y,oe){return Y==this.selected||Y>=this.options.length?this:new Qt(this.options,Ze(oe,Y),this.tooltip,this.timestamp,Y,this.disabled)}static build(Y,oe,Te,Ie,Xe){let M=Ut(Y,oe);if(!M.length)return Ie&&Y.some(F=>F.state==1)?new Qt(Ie.options,Ie.attrs,Ie.tooltip,Ie.timestamp,Ie.selected,!0):null;let D=oe.facet(Zn).selectOnOpen?0:-1;if(Ie&&Ie.selected!=D&&Ie.selected!=-1){let F=Ie.options[Ie.selected].completion;for(let W=0;WW.hasResult()?Math.min(F,W.from):F,1e8),create:fr,above:Xe.aboveCursor},Ie?Ie.timestamp:Date.now(),D,!1)}map(Y){return new Qt(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:Y.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class X{constructor(Y,oe,Te){this.active=Y,this.id=oe,this.open=Te}static start(){return new X($e,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(Y){let{state:oe}=Y,Te=oe.facet(Zn),Xe=(Te.override||oe.languageDataAt("autocomplete",Pt(oe)).map(Pn)).map(D=>(this.active.find(W=>W.source==D)||new ut(D,this.active.some(W=>W.state!=0)?1:0)).update(Y,Te));Xe.length==this.active.length&&Xe.every((D,F)=>D==this.active[F])&&(Xe=this.active);let M=this.open;M&&Y.docChanged&&(M=M.map(Y.changes)),Y.selection||Xe.some(D=>D.hasResult()&&Y.changes.touchesRange(D.from,D.to))||!be(Xe,this.active)?M=Qt.build(Xe,oe,this.id,M,Te):M&&M.disabled&&!Xe.some(D=>D.state==1)&&(M=null),!M&&Xe.every(D=>D.state!=1)&&Xe.some(D=>D.hasResult())&&(Xe=Xe.map(D=>D.hasResult()?new ut(D.source,0):D));for(let D of Y.effects)D.is(Fn)&&(M=M&&M.setSelected(D.value,this.id));return Xe==this.active&&M==this.open?this:new X(Xe,this.id,M)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?Ne:ye}}function be(he,Y){if(he==Y)return!0;for(let oe=0,Te=0;;){for(;oe-1&&(oe["aria-activedescendant"]=he+"-"+Y),oe}const $e=[];function qe(he,Y){if(he.isUserEvent("input.complete")){let Te=he.annotation(gt);if(Te&&Y.activateOnCompletion(Te))return 12}let oe=he.isUserEvent("input.type");return oe&&Y.activateOnTyping?5:oe?1:he.isUserEvent("delete.backward")?2:he.selection?8:he.docChanged?16:0}class ut{constructor(Y,oe,Te=-1){this.source=Y,this.state=oe,this.explicitPos=Te}hasResult(){return!1}update(Y,oe){let Te=qe(Y,oe),Ie=this;(Te&8||Te&16&&this.touches(Y))&&(Ie=new ut(Ie.source,0)),Te&4&&Ie.state==0&&(Ie=new ut(this.source,1)),Ie=Ie.updateFor(Y,Te);for(let Xe of Y.effects)if(Xe.is(Nt))Ie=new ut(Ie.source,1,Xe.value?Pt(Y.state):-1);else if(Xe.is(Kn))Ie=new ut(Ie.source,0);else if(Xe.is(an))for(let M of Xe.value)M.source==Ie.source&&(Ie=M);return Ie}updateFor(Y,oe){return this.map(Y.changes)}map(Y){return Y.empty||this.explicitPos<0?this:new ut(this.source,this.state,Y.mapPos(this.explicitPos))}touches(Y){return Y.changes.touchesRange(Pt(Y.state))}}class Vt extends ut{constructor(Y,oe,Te,Ie,Xe){super(Y,2,oe),this.result=Te,this.from=Ie,this.to=Xe}hasResult(){return!0}updateFor(Y,oe){var Te;if(!(oe&3))return this.map(Y.changes);let Ie=this.result;Ie.map&&!Y.changes.empty&&(Ie=Ie.map(Ie,Y.changes));let Xe=Y.changes.mapPos(this.from),M=Y.changes.mapPos(this.to,1),D=Pt(Y.state);if((this.explicitPos<0?D<=Xe:DM||!Ie||oe&2&&Pt(Y.startState)==this.from)return new ut(this.source,oe&4?1:0);let F=this.explicitPos<0?-1:Y.changes.mapPos(this.explicitPos);return vn(Ie.validFor,Y.state,Xe,M)?new Vt(this.source,F,Ie,Xe,M):Ie.update&&(Ie=Ie.update(Ie,Xe,M,new lt(Y.state,D,F>=0)))?new Vt(this.source,F,Ie,Ie.from,(Te=Ie.to)!==null&&Te!==void 0?Te:Pt(Y.state)):new ut(this.source,1,F)}map(Y){return Y.empty?this:(this.result.map?this.result.map(this.result,Y):this.result)?new Vt(this.source,this.explicitPos<0?-1:Y.mapPos(this.explicitPos),this.result,Y.mapPos(this.from),Y.mapPos(this.to,1)):new ut(this.source,0)}touches(Y){return Y.changes.touchesRange(this.from,this.to)}}function vn(he,Y,oe,Te){if(!he)return!1;let Ie=Y.sliceDoc(oe,Te);return typeof he=="function"?he(Ie,oe,Te,Y):Hn(he,!0).test(Ie)}const an=ue.Py.define({map(he,Y){return he.map(oe=>oe.map(Y))}}),Fn=ue.Py.define(),Sn=ue.QQ.define({create(){return X.start()},update(he,Y){return he.update(Y)},provide:he=>[Me.hJ.from(he,Y=>Y.tooltip),Me.tk.contentAttributes.from(he,Y=>Y.attrs)]});function Bn(he,Y){const oe=Y.completion.apply||Y.completion.label;let Te=he.state.field(Sn).active.find(Ie=>Ie.source==Y.source);return Te instanceof Vt?(typeof oe=="string"?he.dispatch(Object.assign(Object.assign({},On(he.state,oe,Te.from,Te.to)),{annotations:gt.of(Y.completion)})):oe(he,Y.completion,Te.from,Te.to),!0):!1}const fr=Xt(Sn,Bn);function ir(he,Y="option"){return oe=>{let Te=oe.state.field(Sn,!1);if(!Te||!Te.open||Te.open.disabled||Date.now()-Te.open.timestamp-1?Te.open.selected+Ie*(he?1:-1):he?0:M-1;return D<0?D=Y=="page"?0:M-1:D>=M&&(D=Y=="page"?M-1:0),oe.dispatch({effects:Fn.of(D)}),!0}}const un=he=>{let Y=he.state.field(Sn,!1);return he.state.readOnly||!Y||!Y.open||Y.open.selected<0||Y.open.disabled||Date.now()-Y.open.timestamphe.state.field(Sn,!1)?(he.dispatch({effects:Nt.of(!0)}),!0):!1,et=he=>{let Y=he.state.field(Sn,!1);return!Y||!Y.active.some(oe=>oe.state!=0)?!1:(he.dispatch({effects:Kn.of(null)}),!0)};class Z{constructor(Y,oe){this.active=Y,this.context=oe,this.time=Date.now(),this.updates=[],this.done=void 0}}const re=50,we=1e3,ve=Me.lg.fromClass(class{constructor(he){this.view=he,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let Y of he.state.field(Sn).active)Y.state==1&&this.startQuery(Y)}update(he){let Y=he.state.field(Sn),oe=he.state.facet(Zn);if(!he.selectionSet&&!he.docChanged&&he.startState.field(Sn)==Y)return;let Te=he.transactions.some(Xe=>{let M=qe(Xe,oe);return M&8||(Xe.selection||Xe.docChanged)&&!(M&3)});for(let Xe=0;Xere&&Date.now()-M.time>we){for(let D of M.context.abortListeners)try{D()}catch(F){(0,Me.OO)(this.view.state,F)}M.context.abortListeners=null,this.running.splice(Xe--,1)}else M.updates.push(...he.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),he.transactions.some(Xe=>Xe.effects.some(M=>M.is(Nt)))&&(this.pendingStart=!0);let Ie=this.pendingStart?50:oe.activateOnTypingDelay;if(this.debounceUpdate=Y.active.some(Xe=>Xe.state==1&&!this.running.some(M=>M.active.source==Xe.source))?setTimeout(()=>this.startUpdate(),Ie):-1,this.composing!=0)for(let Xe of he.transactions)Xe.isUserEvent("input.type")?this.composing=2:this.composing==2&&Xe.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:he}=this.view,Y=he.field(Sn);for(let oe of Y.active)oe.state==1&&!this.running.some(Te=>Te.active.source==oe.source)&&this.startQuery(oe)}startQuery(he){let{state:Y}=this.view,oe=Pt(Y),Te=new lt(Y,oe,he.explicitPos==oe,this.view),Ie=new Z(he,Te);this.running.push(Ie),Promise.resolve(he.source(Te)).then(Xe=>{Ie.context.aborted||(Ie.done=Xe||null,this.scheduleAccept())},Xe=>{this.view.dispatch({effects:Kn.of(null)}),(0,Me.OO)(this.view.state,Xe)})}scheduleAccept(){this.running.every(he=>he.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Zn).updateSyncTime))}accept(){var he;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let Y=[],oe=this.view.state.facet(Zn);for(let Te=0;TeM.source==Ie.active.source);if(Xe&&Xe.state==1)if(Ie.done==null){let M=new ut(Ie.active.source,0);for(let D of Ie.updates)M=M.update(D,oe);M.state!=1&&Y.push(M)}else this.startQuery(Xe)}Y.length&&this.view.dispatch({effects:an.of(Y)})}},{eventHandlers:{blur(he){let Y=this.view.state.field(Sn,!1);if(Y&&Y.tooltip&&this.view.state.facet(Zn).closeOnBlur){let oe=Y.open&&(0,Me.gB)(this.view,Y.open.tooltip);(!oe||!oe.dom.contains(he.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Kn.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Nt.of(!1)}),20),this.composing=0}}}),Ce=typeof navigator=="object"&&/Win/.test(navigator.platform),tt=ue.Wl.highest(Me.tk.domEventHandlers({keydown(he,Y){let oe=Y.state.field(Sn,!1);if(!oe||!oe.open||oe.open.disabled||oe.open.selected<0||he.key.length>1||he.ctrlKey&&!(Ce&&he.altKey)||he.metaKey)return!1;let Te=oe.open.options[oe.open.selected],Ie=oe.active.find(M=>M.source==Te.source),Xe=Te.completion.commitCharacters||Ie.result.commitCharacters;return Xe&&Xe.indexOf(he.key)>-1&&Bn(Y,Te),!1}})),Rt=Me.tk.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xB7\xB7\xB7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25CB'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25CC'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1D465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1D436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1D461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222A'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25A1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1F511}\uFE0E'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25A2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Kt{constructor(Y,oe,Te,Ie){this.field=Y,this.line=oe,this.from=Te,this.to=Ie}}class Cn{constructor(Y,oe,Te){this.field=Y,this.from=oe,this.to=Te}map(Y){let oe=Y.mapPos(this.from,-1,ue.gc.TrackDel),Te=Y.mapPos(this.to,1,ue.gc.TrackDel);return oe==null||Te==null?null:new Cn(this.field,oe,Te)}}class bn{constructor(Y,oe){this.lines=Y,this.fieldPositions=oe}instantiate(Y,oe){let Te=[],Ie=[oe],Xe=Y.doc.lineAt(oe),M=/^\s*/.exec(Xe.text)[0];for(let F of this.lines){if(Te.length){let W=M,ie=/^\t*/.exec(F)[0].length;for(let Re=0;Renew Cn(F.field,Ie[F.line]+F.from,Ie[F.line]+F.to));return{text:Te,ranges:D}}static parse(Y){let oe=[],Te=[],Ie=[],Xe;for(let M of Y.split(/\r\n?|\n/)){for(;Xe=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(M);){let D=Xe[1]?+Xe[1]:null,F=Xe[2]||Xe[3]||"",W=-1,ie=F.replace(/\\[{}]/g,Re=>Re[1]);for(let Re=0;Re=W&&Je.field++}Ie.push(new Kt(W,Te.length,Xe.index,Xe.index+ie.length)),M=M.slice(0,Xe.index)+F+M.slice(Xe.index+Xe[0].length)}M=M.replace(/\\([{}])/g,(D,F,W)=>{for(let ie of Ie)ie.line==Te.length&&ie.from>W&&(ie.from--,ie.to--);return F}),Te.push(M)}return new bn(Te,Ie)}}let Dn=Me.p.widget({widget:new class extends Me.l9{toDOM(){let he=document.createElement("span");return he.className="cm-snippetFieldPosition",he}ignoreEvent(){return!1}}}),Yn=Me.p.mark({class:"cm-snippetField"});class $n{constructor(Y,oe){this.ranges=Y,this.active=oe,this.deco=Me.p.set(Y.map(Te=>(Te.from==Te.to?Dn:Yn).range(Te.from,Te.to)))}map(Y){let oe=[];for(let Te of this.ranges){let Ie=Te.map(Y);if(!Ie)return null;oe.push(Ie)}return new $n(oe,this.active)}selectionInsideField(Y){return Y.ranges.every(oe=>this.ranges.some(Te=>Te.field==this.active&&Te.from<=oe.from&&Te.to>=oe.to))}}const Pr=ue.Py.define({map(he,Y){return he&&he.map(Y)}}),Wr=ue.Py.define(),Wn=ue.QQ.define({create(){return null},update(he,Y){for(let oe of Y.effects){if(oe.is(Pr))return oe.value;if(oe.is(Wr)&&he)return new $n(he.ranges,oe.value)}return he&&Y.docChanged&&(he=he.map(Y.changes)),he&&Y.selection&&!he.selectionInsideField(Y.selection)&&(he=null),he},provide:he=>Me.tk.decorations.from(he,Y=>Y?Y.deco:Me.p.none)});function zr(he,Y){return ue.jT.create(he.filter(oe=>oe.field==Y).map(oe=>ue.jT.range(oe.from,oe.to)))}function Gr(he){let Y=bn.parse(he);return(oe,Te,Ie,Xe)=>{let{text:M,ranges:D}=Y.instantiate(oe.state,Ie),F={changes:{from:Ie,to:Xe,insert:ue.xv.of(M)},scrollIntoView:!0,annotations:Te?[gt.of(Te),ue.YW.userEvent.of("input.complete")]:void 0};if(D.length&&(F.selection=zr(D,0)),D.some(W=>W.field>0)){let W=new $n(D,0),ie=F.effects=[Pr.of(W)];oe.state.field(Wn,!1)===void 0&&ie.push(ue.Py.appendConfig.of([Wn,on,qn,Rt]))}oe.dispatch(oe.state.update(F))}}function Yr(he){return({state:Y,dispatch:oe})=>{let Te=Y.field(Wn,!1);if(!Te||he<0&&Te.active==0)return!1;let Ie=Te.active+he,Xe=he>0&&!Te.ranges.some(M=>M.field==Ie+he);return oe(Y.update({selection:zr(Te.ranges,Ie),effects:Pr.of(Xe?null:new $n(Te.ranges,Ie)),scrollIntoView:!0})),!0}}const Ti=({state:he,dispatch:Y})=>he.field(Wn,!1)?(Y(he.update({effects:Pr.of(null)})),!0):!1,er=Yr(1),Ye=Yr(-1);function bt(he){let Y=he.field(Wn,!1);return!!(Y&&Y.ranges.some(oe=>oe.field==Y.active+1))}function Mt(he){let Y=he.field(Wn,!1);return!!(Y&&Y.active>0)}const Tt=[{key:"Tab",run:er,shift:Ye},{key:"Escape",run:Ti}],hn=ue.r$.define({combine(he){return he.length?he[0]:Tt}}),on=ue.Wl.highest(Me.$f.compute([hn],he=>he.facet(hn)));function At(he,Y){return Object.assign(Object.assign({},Y),{apply:Gr(he)})}const qn=Me.tk.domEventHandlers({mousedown(he,Y){let oe=Y.state.field(Wn,!1),Te;if(!oe||(Te=Y.posAtCoords({x:he.clientX,y:he.clientY}))==null)return!1;let Ie=oe.ranges.find(Xe=>Xe.from<=Te&&Xe.to>=Te);return!Ie||Ie.field==oe.active?!1:(Y.dispatch({selection:zr(oe.ranges,Ie.field),effects:Pr.of(oe.ranges.some(Xe=>Xe.field>Ie.field)?new $n(oe.ranges,Ie.field):null),scrollIntoView:!0}),!0)}});function Ir(he){let Y=he.replace(/[\]\-\\]/g,"\\$&");try{return new RegExp(`[\\p{Alphabetic}\\p{Number}_${Y}]+`,"ug")}catch(oe){return new RegExp(`[w${Y}]`,"g")}}function rr(he,Y){return new RegExp(Y(he.source),he.unicode?"u":"")}const Ar=null;function ei(he){return Ar[he]||(Ar[he]=new WeakMap)}function qr(he,Y,oe,Te,Ie){for(let Xe=he.iterLines(),M=0;!Xe.next().done;){let{value:D}=Xe,F;for(Y.lastIndex=0;F=Y.exec(D);)if(!Te[F[0]]&&M+F.index!=Ie&&(oe.push({type:"text",label:F[0]}),Te[F[0]]=!0,oe.length>=2e3))return;M+=D.length+1}}function ur(he,Y,oe,Te,Ie){let Xe=he.length>=1e3,M=Xe&&Y.get(he);if(M)return M;let D=[],F=Object.create(null);if(he.children){let W=0;for(let ie of he.children){if(ie.length>=1e3)for(let Re of ur(ie,Y,oe,Te-W,Ie-W))F[Re.label]||(F[Re.label]=!0,D.push(Re));else qr(ie,oe,D,F,Ie-W);W+=ie.length+1}}else qr(he,oe,D,F,Ie);return Xe&&D.length<2e3&&Y.set(he,D),D}const Vr=he=>{let Y=he.state.languageDataAt("wordChars",he.pos).join(""),oe=Ir(Y),Te=he.matchBefore(rr(oe,M=>M+"$"));if(!Te&&!he.explicit)return null;let Ie=Te?Te.from:he.pos,Xe=ur(he.state.doc,ei(Y),oe,5e4,Ie);return{from:Ie,options:Xe,validFor:rr(oe,M=>"^"+M)}},Er={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ki=ue.Py.define({map(he,Y){let oe=Y.mapPos(he,-1,ue.gc.TrackAfter);return oe==null?void 0:oe}}),oi=new class extends ue.uU{};oi.startSide=1,oi.endSide=-1;const li=ue.QQ.define({create(){return ue.Xs.empty},update(he,Y){if(he=he.map(Y.changes),Y.selection){let oe=Y.state.doc.lineAt(Y.selection.main.head);he=he.update({filter:Te=>Te>=oe.from&&Te<=oe.to})}for(let oe of Y.effects)oe.is(ki)&&(he=he.update({add:[oi.range(oe.value,oe.value+1)]}));return he}});function Gi(){return[Si,li]}const ii="()[]{}<>";function Ui(he){for(let Y=0;Y{if((Ii?he.composing:he.compositionStarted)||he.state.readOnly)return!1;let Ie=he.state.selection.main;if(Te.length>2||Te.length==2&&(0,ue.nZ)((0,ue.gm)(Te,0))==1||Y!=Ie.from||oe!=Ie.to)return!1;let Xe=ea(he.state,Te);return Xe?(he.dispatch(Xe),!0):!1}),fs=[{key:"Backspace",run:({state:he,dispatch:Y})=>{if(he.readOnly)return!1;let Te=Hi(he,he.selection.main.head).brackets||Er.brackets,Ie=null,Xe=he.changeByRange(M=>{if(M.empty){let D=ke(he.doc,M.head);for(let F of Te)if(F==D&&na(he.doc,M.head)==Ui((0,ue.gm)(F,0)))return{changes:{from:M.head-F.length,to:M.head+F.length},range:ue.jT.cursor(M.head-F.length)}}return{range:Ie=M}});return Ie||Y(he.update(Xe,{scrollIntoView:!0,userEvent:"delete.backward"})),!Ie}}];function ea(he,Y){let oe=Hi(he,he.selection.main.head),Te=oe.brackets||Er.brackets;for(let Ie of Te){let Xe=Ui((0,ue.gm)(Ie,0));if(Y==Ie)return Xe==Ie?U(he,Ie,Te.indexOf(Ie+Ie+Ie)>-1,oe):A(he,Ie,Xe,oe.before||Er.before);if(Y==Xe&&ta(he,he.selection.main.from))return _(he,Ie,Xe)}return null}function ta(he,Y){let oe=!1;return he.field(li).between(0,he.doc.length,Te=>{Te==Y&&(oe=!0)}),oe}function na(he,Y){let oe=he.sliceString(Y,Y+2);return oe.slice(0,(0,ue.nZ)((0,ue.gm)(oe,0)))}function ke(he,Y){let oe=he.sliceString(Y-2,Y);return(0,ue.nZ)((0,ue.gm)(oe,0))==oe.length?oe:oe.slice(1)}function A(he,Y,oe,Te){let Ie=null,Xe=he.changeByRange(M=>{if(!M.empty)return{changes:[{insert:Y,from:M.from},{insert:oe,from:M.to}],effects:ki.of(M.to+Y.length),range:ue.jT.range(M.anchor+Y.length,M.head+Y.length)};let D=na(he.doc,M.head);return!D||/\s/.test(D)||Te.indexOf(D)>-1?{changes:{insert:Y+oe,from:M.head},effects:ki.of(M.head+Y.length),range:ue.jT.cursor(M.head+Y.length)}:{range:Ie=M}});return Ie?null:he.update(Xe,{scrollIntoView:!0,userEvent:"input.type"})}function _(he,Y,oe){let Te=null,Ie=he.changeByRange(Xe=>Xe.empty&&na(he.doc,Xe.head)==oe?{changes:{from:Xe.head,to:Xe.head+oe.length,insert:oe},range:ue.jT.cursor(Xe.head+oe.length)}:Te={range:Xe});return Te?null:he.update(Ie,{scrollIntoView:!0,userEvent:"input.type"})}function U(he,Y,oe,Te){let Ie=Te.stringPrefixes||Er.stringPrefixes,Xe=null,M=he.changeByRange(D=>{if(!D.empty)return{changes:[{insert:Y,from:D.from},{insert:Y,from:D.to}],effects:ki.of(D.to+Y.length),range:ue.jT.range(D.anchor+Y.length,D.head+Y.length)};let F=D.head,W=na(he.doc,F),ie;if(W==Y){if(V(he,F))return{changes:{insert:Y+Y,from:F},effects:ki.of(F+Y.length),range:ue.jT.cursor(F+Y.length)};if(ta(he,F)){let Je=oe&&he.sliceDoc(F,F+Y.length*3)==Y+Y+Y?Y+Y+Y:Y;return{changes:{from:F,to:F+Je.length,insert:Je},range:ue.jT.cursor(F+Je.length)}}}else{if(oe&&he.sliceDoc(F-2*Y.length,F)==Y+Y&&(ie=te(he,F-2*Y.length,Ie))>-1&&V(he,ie))return{changes:{insert:Y+Y+Y+Y,from:F},effects:ki.of(F+Y.length),range:ue.jT.cursor(F+Y.length)};if(he.charCategorizer(F)(W)!=ue.D0.Word&&te(he,F,Ie)>-1&&!ne(he,F,Y,Ie))return{changes:{insert:Y+Y,from:F},effects:ki.of(F+Y.length),range:ue.jT.cursor(F+Y.length)}}return{range:Xe=D}});return Xe?null:he.update(M,{scrollIntoView:!0,userEvent:"input.type"})}function V(he,Y){let oe=(0,Ue.qz)(he).resolveInner(Y+1);return oe.parent&&oe.from==Y}function ne(he,Y,oe,Te){let Ie=(0,Ue.qz)(he).resolveInner(Y,-1),Xe=Te.reduce((M,D)=>Math.max(M,D.length),0);for(let M=0;M<5;M++){let D=he.sliceDoc(Ie.from,Math.min(Ie.to,Ie.from+oe.length+Xe)),F=D.indexOf(oe);if(!F||F>-1&&Te.indexOf(D.slice(0,F))>-1){let ie=Ie.firstChild;for(;ie&&ie.from==Ie.from&&ie.to-ie.from>oe.length+F;){if(he.sliceDoc(ie.to-oe.length,ie.to)==oe)return!1;ie=ie.firstChild}return!0}let W=Ie.to==Y&&Ie.parent;if(!W)break;Ie=W}return!1}function te(he,Y,oe){let Te=he.charCategorizer(Y);if(Te(he.sliceDoc(Y-1,Y))!=ue.D0.Word)return Y;for(let Ie of oe){let Xe=Y-Ie.length;if(he.sliceDoc(Xe,Y)==Ie&&Te(he.sliceDoc(Xe-1,Xe))!=ue.D0.Word)return Xe}return-1}function _e(he={}){return[tt,Sn,Zn.of(he),ve,pt,Rt]}const ze=[{key:"Ctrl-Space",run:zt},{key:"Escape",run:et},{key:"ArrowDown",run:ir(!0)},{key:"ArrowUp",run:ir(!1)},{key:"PageDown",run:ir(!0,"page")},{key:"PageUp",run:ir(!1,"page")},{key:"Enter",run:un}],pt=ue.Wl.highest(Me.$f.computeN([Zn],he=>he.facet(Zn).defaultKeymap?[ze]:[]));function Dt(he){let Y=he.field(Sn,!1);return Y&&Y.active.some(oe=>oe.state==1)?"pending":Y&&Y.active.some(oe=>oe.state!=0)?"active":null}const Zt=new WeakMap;function Rn(he){var Y;let oe=(Y=he.field(Sn,!1))===null||Y===void 0?void 0:Y.open;if(!oe||oe.disabled)return[];let Te=Zt.get(oe.options);return Te||Zt.set(oe.options,Te=oe.options.map(Ie=>Ie.completion)),Te}function cn(he){var Y;let oe=(Y=he.field(Sn,!1))===null||Y===void 0?void 0:Y.open;return oe&&!oe.disabled&&oe.selected>=0?oe.options[oe.selected].completion:null}function Fr(he){var Y;let oe=(Y=he.field(Sn,!1))===null||Y===void 0?void 0:Y.open;return oe&&!oe.disabled&&oe.selected>=0?oe.selected:null}function Xr(he){return Fn.of(he)}},48120:function(ti,Gn,z){"use strict";z.r(Gn),z.d(Gn,{css:function(){return ir},cssCompletionSource:function(){return Bn},cssLanguage:function(){return fr},defineCSSCompletionSource:function(){return Sn}});var ue=z(53105),Me=z(35524);const Ue=99,lt=1,En=100,De=101,Ee=2,xt=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],In=58,ft=40,Pt=95,Hn=91,gt=45,On=46,st=35,Pn=37,Nt=38,Kn=92,Nn=10;function yn(un){return un>=65&&un<=90||un>=97&&un<=122||un>=161}function Zn(un){return un>=48&&un<=57}const Mn=new ue.Jq((un,zt)=>{for(let et=!1,Z=0,re=0;;re++){let{next:we}=un;if(yn(we)||we==gt||we==Pt||et&&Zn(we))!et&&(we!=gt||re>0)&&(et=!0),Z===re&&we==gt&&Z++,un.advance();else if(we==Kn&&un.peek(1)!=Nn)un.advance(),un.next>-1&&un.advance(),et=!0;else{et&&un.acceptToken(we==ft?En:Z==2&&zt.canShift(Ee)?Ee:De);break}}}),Tr=new ue.Jq(un=>{if(xt.includes(un.peek(-1))){let{next:zt}=un;(yn(zt)||zt==Pt||zt==st||zt==On||zt==Hn||zt==In&&yn(un.peek(1))||zt==gt||zt==Nt)&&un.acceptToken(Ue)}}),Br=new ue.Jq(un=>{if(!xt.includes(un.peek(-1))){let{next:zt}=un;if(zt==Pn&&(un.advance(),un.acceptToken(lt)),yn(zt)){do un.advance();while(yn(un.next)||Zn(un.next));un.acceptToken(lt)}}}),yr=(0,Me.Gv)({"AtKeyword import charset namespace keyframes media supports":Me.pJ.definitionKeyword,"from to selector":Me.pJ.keyword,NamespaceName:Me.pJ.namespace,KeyframeName:Me.pJ.labelName,KeyframeRangeName:Me.pJ.operatorKeyword,TagName:Me.pJ.tagName,ClassName:Me.pJ.className,PseudoClassName:Me.pJ.constant(Me.pJ.className),IdName:Me.pJ.labelName,"FeatureName PropertyName":Me.pJ.propertyName,AttributeName:Me.pJ.attributeName,NumberLiteral:Me.pJ.number,KeywordQuery:Me.pJ.keyword,UnaryQueryOp:Me.pJ.operatorKeyword,"CallTag ValueName":Me.pJ.atom,VariableName:Me.pJ.variableName,Callee:Me.pJ.operatorKeyword,Unit:Me.pJ.unit,"UniversalSelector NestingSelector":Me.pJ.definitionOperator,MatchOp:Me.pJ.compareOperator,"ChildOp SiblingOp, LogicOp":Me.pJ.logicOperator,BinOp:Me.pJ.arithmeticOperator,Important:Me.pJ.modifier,Comment:Me.pJ.blockComment,ColorLiteral:Me.pJ.color,"ParenthesizedContent StringLiteral":Me.pJ.string,":":Me.pJ.punctuation,"PseudoOp #":Me.pJ.derefOperator,"; ,":Me.pJ.separator,"( )":Me.pJ.paren,"[ ]":Me.pJ.squareBracket,"{ }":Me.pJ.brace}),Un={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},Xt={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},sn={__proto__:null,not:132,only:132},Yt=ue.WQ.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#DoO,jQWO'#DrOOQO'#Eu'#EuO)OQWO,5:`O,oQpO,5:bOOQS'#Dz'#DzO,wQWO,5:dO,|Q[O,5:dOOQO'#D}'#D}O-UQWO,5:gO-ZQWO,5:mO-cQWO,5:oOOQS-E8U-E8UO${QdO,59}O-kQ[O'#E^O-xQWO,5;_O-xQWO,5;_POOO'#EV'#EVP.TO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.zQXO,5:vOOQO-E8Y-E8YOOQS1G.g1G.gOOQP1G.n1G.nO)gQWO1G.nO)lQWO1G.nOOQP1G/Z1G/ZO/XQ`O1G/^O/rQXO1G/aO0YQXO1G/cO0pQXO1G/dO1WQWO,59|O1]Q[O'#DSO1dQdO'#CoOOQP1G/^1G/^O${QdO1G/^O1kQpO,59]OOQS,59_,59_O${QdO,59aO1sQWO1G/mOOQS,59c,59cO1xQ!bO,59eOOQS'#DP'#DPOOQS'#EY'#EYO2QQ[O,59jOOQS,59j,59jO2YQWO'#DjO2eQWO,5:VO2jQWO,5:]O&`Q[O,5:XO&`Q[O'#E_O2rQWO,5;`O2}QWO,5:ZO(aQ[O,5:^OOQS1G/z1G/zOOQS1G/|1G/|OOQS1G0O1G0OO3`QWO1G0OO3eQdO'#EOOOQS1G0R1G0ROOQS1G0X1G0XOOQS1G0Z1G0ZO3pQtO1G/iOOQO,5:x,5:xO4WQ[O,5:xOOQO-E8[-E8[O4eQWO1G0yPOOO-E8T-E8TPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$x7+$xO${QdO7+$xOOQS1G/h1G/hO4pQXO'#ErO4wQWO,59nO4|QtO'#EXO5tQdO'#EoO6OQWO,59ZO6TQpO7+$xOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%X7+%XO6]QWO1G/POOQS-E8W-E8WOOQS1G/U1G/UO${QdO1G/qOOQO1G/w1G/wOOQO1G/s1G/sO6bQWO,5:yOOQO-E8]-E8]O6pQXO1G/xOOQS7+%j7+%jO6wQYO'#CsOOQO'#EQ'#EQO7SQ`O'#EPOOQO'#EP'#EPO7_QWO'#E`O7gQdO,5:jOOQS,5:j,5:jO7rQtO'#E]O${QdO'#E]O8sQdO7+%TOOQO7+%T7+%TOOQO1G0d1G0dO9WQpO<OAN>OO:xQdO,5:uOOQO-E8X-E8XOOQO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#e[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSt^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#bQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#[~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Y^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[Tr,Br,Mn,1,2,3,4,new ue.RA("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:un=>Un[un]||-1},{term:58,get:un=>Xt[un]||-1},{term:101,get:un=>sn[un]||-1}],tokenPrec:1200});var Ut=z(59119),Qt=z(41113);let X=null;function be(){if(!X&&typeof document=="object"&&document.body){let{style:un}=document.body,zt=[],et=new Set;for(let Z in un)Z!="cssText"&&Z!="cssFloat"&&typeof un[Z]=="string"&&(/[A-Z]/.test(Z)&&(Z=Z.replace(/[A-Z]/g,re=>"-"+re.toLowerCase())),et.has(Z)||(zt.push(Z),et.add(Z)));X=zt.sort().map(Z=>({type:"property",label:Z}))}return X||[]}const Ne=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(un=>({type:"class",label:un})),ye=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(un=>({type:"keyword",label:un})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(un=>({type:"constant",label:un}))),Ze=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(un=>({type:"type",label:un})),$e=/^(\w[\w-]*|-\w[\w-]*|)$/,qe=/^-(-[\w-]*)?$/;function ut(un,zt){var et;if((un.name=="("||un.type.isError)&&(un=un.parent||un),un.name!="ArgList")return!1;let Z=(et=un.parent)===null||et===void 0?void 0:et.firstChild;return(Z==null?void 0:Z.name)!="Callee"?!1:zt.sliceString(Z.from,Z.to)=="var"}const Vt=new Qt.hr,vn=["Declaration"];function an(un){for(let zt=un;;){if(zt.type.isTop)return zt;if(!(zt=zt.parent))return un}}function Fn(un,zt,et){if(zt.to-zt.from>4096){let Z=Vt.get(zt);if(Z)return Z;let re=[],we=new Set,ve=zt.cursor(Qt.vj.IncludeAnonymous);if(ve.firstChild())do for(let Ce of Fn(un,ve.node,et))we.has(Ce.label)||(we.add(Ce.label),re.push(Ce));while(ve.nextSibling());return Vt.set(zt,re),re}else{let Z=[],re=new Set;return zt.cursor().iterate(we=>{var ve;if(et(we)&&we.matchContext(vn)&&((ve=we.node.nextSibling)===null||ve===void 0?void 0:ve.name)==":"){let Ce=un.sliceString(we.from,we.to);re.has(Ce)||(re.add(Ce),Z.push({label:Ce,type:"variable"}))}}),Z}}const Sn=un=>zt=>{let{state:et,pos:Z}=zt,re=(0,Ut.qz)(et).resolveInner(Z,-1),we=re.type.isError&&re.from==re.to-1&&et.doc.sliceString(re.from,re.to)=="-";if(re.name=="PropertyName"||(we||re.name=="TagName")&&/^(Block|Styles)$/.test(re.resolve(re.to).name))return{from:re.from,options:be(),validFor:$e};if(re.name=="ValueName")return{from:re.from,options:ye,validFor:$e};if(re.name=="PseudoClassName")return{from:re.from,options:Ne,validFor:$e};if(un(re)||(zt.explicit||we)&&ut(re,et.doc))return{from:un(re)||we?re.from:Z,options:Fn(et.doc,an(re),un),validFor:qe};if(re.name=="TagName"){for(let{parent:tt}=re;tt;tt=tt.parent)if(tt.name=="Block")return{from:re.from,options:be(),validFor:$e};return{from:re.from,options:Ze,validFor:$e}}if(!zt.explicit)return null;let ve=re.resolve(Z),Ce=ve.childBefore(Z);return Ce&&Ce.name==":"&&ve.name=="PseudoClassSelector"?{from:Z,options:Ne,validFor:$e}:Ce&&Ce.name==":"&&ve.name=="Declaration"||ve.name=="ArgList"?{from:Z,options:ye,validFor:$e}:ve.name=="Block"||ve.name=="Styles"?{from:Z,options:be(),validFor:$e}:null},Bn=Sn(un=>un.name=="VariableName"),fr=Ut.qp.define({name:"css",parser:Yt.configure({props:[Ut.uj.add({Declaration:(0,Ut.tC)()}),Ut.x0.add({"Block KeyframeList":Ut.Dv})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function ir(){return new Ut.ri(fr,fr.data.of({autocomplete:Bn}))}},82261:function(ti,Gn,z){"use strict";z.r(Gn),z.d(Gn,{autoCloseTags:function(){return A},html:function(){return na},htmlCompletionSource:function(){return Hi},htmlCompletionSourceWith:function(){return Ii},htmlLanguage:function(){return ta},htmlPlain:function(){return ea}});var ue=z(53105),Me=z(35524),Ue=z(41113);const lt=54,En=1,De=55,Ee=2,xt=56,In=3,ft=4,Pt=5,Hn=6,gt=7,On=8,st=9,Pn=10,Nt=11,Kn=12,Nn=13,yn=57,Zn=14,Mn=58,Tr=20,Br=22,yr=23,Un=24,Xt=26,sn=27,Yt=28,Ut=31,Qt=34,X=36,be=37,Ne=0,ye=1,Ze={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},$e={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},qe={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function ut(_){return _==45||_==46||_==58||_>=65&&_<=90||_==95||_>=97&&_<=122||_>=161}function Vt(_){return _==9||_==10||_==13||_==32}let vn=null,an=null,Fn=0;function Sn(_,U){let V=_.pos+U;if(Fn==V&&an==_)return vn;let ne=_.peek(U);for(;Vt(ne);)ne=_.peek(++U);let te="";for(;ut(ne);)te+=String.fromCharCode(ne),ne=_.peek(++U);return an=_,Fn=V,vn=te?te.toLowerCase():ne==un||ne==zt?void 0:null}const Bn=60,fr=62,ir=47,un=63,zt=33,et=45;function Z(_,U){this.name=_,this.parent=U}const re=[Hn,Pn,gt,On,st],we=new ue.IK({start:null,shift(_,U,V,ne){return re.indexOf(U)>-1?new Z(Sn(ne,1)||"",_):_},reduce(_,U){return U==Tr&&_?_.parent:_},reuse(_,U,V,ne){let te=U.type.id;return te==Hn||te==X?new Z(Sn(ne,1)||"",_):_},strict:!1}),ve=new ue.Jq((_,U)=>{if(_.next!=Bn){_.next<0&&U.context&&_.acceptToken(yn);return}_.advance();let V=_.next==ir;V&&_.advance();let ne=Sn(_,0);if(ne===void 0)return;if(!ne)return _.acceptToken(V?Zn:Hn);let te=U.context?U.context.name:null;if(V){if(ne==te)return _.acceptToken(Nt);if(te&&$e[te])return _.acceptToken(yn,-2);if(U.dialectEnabled(Ne))return _.acceptToken(Kn);for(let _e=U.context;_e;_e=_e.parent)if(_e.name==ne)return;_.acceptToken(Nn)}else{if(ne=="script")return _.acceptToken(gt);if(ne=="style")return _.acceptToken(On);if(ne=="textarea")return _.acceptToken(st);if(Ze.hasOwnProperty(ne))return _.acceptToken(Pn);te&&qe[te]&&qe[te][ne]?_.acceptToken(yn,-1):_.acceptToken(Hn)}},{contextual:!0}),Ce=new ue.Jq(_=>{for(let U=0,V=0;;V++){if(_.next<0){V&&_.acceptToken(Mn);break}if(_.next==et)U++;else if(_.next==fr&&U>=2){V>=3&&_.acceptToken(Mn,-2);break}else U=0;_.advance()}});function tt(_){for(;_;_=_.parent)if(_.name=="svg"||_.name=="math")return!0;return!1}const Rt=new ue.Jq((_,U)=>{if(_.next==ir&&_.peek(1)==fr){let V=U.dialectEnabled(ye)||tt(U.context);_.acceptToken(V?Pt:ft,2)}else _.next==fr&&_.acceptToken(ft,1)});function Kt(_,U,V){let ne=2+_.length;return new ue.Jq(te=>{for(let _e=0,ze=0,pt=0;;pt++){if(te.next<0){pt&&te.acceptToken(U);break}if(_e==0&&te.next==Bn||_e==1&&te.next==ir||_e>=2&&_eze?te.acceptToken(U,-ze):te.acceptToken(V,-(ze-2));break}else if((te.next==10||te.next==13)&&pt){te.acceptToken(U,1);break}else _e=ze=0;te.advance()}})}const Cn=Kt("script",lt,En),bn=Kt("style",De,Ee),Dn=Kt("textarea",xt,In),Yn=(0,Me.Gv)({"Text RawText":Me.pJ.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Me.pJ.angleBracket,TagName:Me.pJ.tagName,"MismatchedCloseTag/TagName":[Me.pJ.tagName,Me.pJ.invalid],AttributeName:Me.pJ.attributeName,"AttributeValue UnquotedAttributeValue":Me.pJ.attributeValue,Is:Me.pJ.definitionOperator,"EntityReference CharacterReference":Me.pJ.character,Comment:Me.pJ.blockComment,ProcessingInst:Me.pJ.processingInstruction,DoctypeDecl:Me.pJ.documentMeta}),$n=ue.WQ.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|O,59hO*fQ#|O,59kOOO`1G/X1G/XO*kO7[O'#CvO*|OMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O+_O7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+pOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:",]~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"\u26A0 StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:we,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[Yn],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let Zt=pt.type.id;if(Zt==Yt)return Wn(pt,Dt,V);if(Zt==Ut)return Wn(pt,Dt,ne);if(Zt==Qt)return Wn(pt,Dt,te);if(Zt==Tr&&_e.length){let Rn=pt.node,cn=Rn.firstChild,Fr=cn&&Wr(cn,Dt),Xr;if(Fr){for(let he of _e)if(he.tag==Fr&&(!he.attrs||he.attrs(Xr||(Xr=Pr(cn,Dt))))){let Y=Rn.lastChild,oe=Y.type.id==be?Y.from:Rn.to;if(oe>cn.to)return{parser:he.parser,overlay:[{from:cn.to,to:oe}]}}}}if(ze&&Zt==yr){let Rn=pt.node,cn;if(cn=Rn.firstChild){let Fr=ze[Dt.read(cn.from,cn.to)];if(Fr)for(let Xr of Fr){if(Xr.tagName&&Xr.tagName!=Wr(Rn.parent,Dt))continue;let he=Rn.lastChild;if(he.type.id==Xt){let Y=he.from+1,oe=he.lastChild,Te=he.to-(oe&&oe.isError?0:1);if(Te>Y)return{parser:Xr.parser,overlay:[{from:Y,to:Te}]}}else if(he.type.id==sn)return{parser:Xr.parser,overlay:[{from:he.from,to:he.to}]}}}}return null})}var Gr=z(48120),Yr=z(122),Ti=z(75533),er=z(78120),Ye=z(59119);const bt=["_blank","_self","_top","_parent"],Mt=["ascii","utf-8","utf-16","latin1","latin1"],Tt=["get","post","put","delete"],hn=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],on=["true","false"],At={},qn={a:{attrs:{href:null,ping:null,type:null,media:null,target:bt,hreflang:null}},abbr:At,address:At,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:At,aside:At,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:At,base:{attrs:{href:null,target:bt}},bdi:At,bdo:At,blockquote:{attrs:{cite:null}},body:At,br:At,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:hn,formmethod:Tt,formnovalidate:["novalidate"],formtarget:bt,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:At,center:At,cite:At,code:At,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:At,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:At,div:At,dl:At,dt:At,em:At,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:At,figure:At,footer:At,form:{attrs:{action:null,name:null,"accept-charset":Mt,autocomplete:["on","off"],enctype:hn,method:Tt,novalidate:["novalidate"],target:bt}},h1:At,h2:At,h3:At,h4:At,h5:At,h6:At,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:At,hgroup:At,hr:At,html:{attrs:{manifest:null}},i:At,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:hn,formmethod:Tt,formnovalidate:["novalidate"],formtarget:bt,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:At,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:At,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:At,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Mt,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:At,noscript:At,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:At,param:{attrs:{name:null,value:null}},pre:At,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:At,rt:At,ruby:At,samp:At,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Mt}},section:At,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:At,source:{attrs:{src:null,type:null,media:null}},span:At,strong:At,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:At,summary:At,sup:At,table:At,tbody:At,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:At,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:At,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:At,time:{attrs:{datetime:null}},title:At,tr:At,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:At,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:At},Ir={accesskey:null,class:null,contenteditable:on,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:on,autocorrect:on,autocapitalize:on,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":on,"aria-autocomplete":["inline","list","both","none"],"aria-busy":on,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":on,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":on,"aria-hidden":on,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":on,"aria-multiselectable":on,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":on,"aria-relevant":null,"aria-required":on,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},rr="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(_=>"on"+_);for(let _ of rr)Ir[_]=null;class Ar{constructor(U,V){this.tags=Object.assign(Object.assign({},qn),U),this.globalAttrs=Object.assign(Object.assign({},Ir),V),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}Ar.default=new Ar;function ei(_,U,V=_.length){if(!U)return"";let ne=U.firstChild,te=ne&&ne.getChild("TagName");return te?_.sliceString(te.from,Math.min(te.to,V)):""}function qr(_,U=!1){for(;_;_=_.parent)if(_.name=="Element")if(U)U=!1;else return _;return null}function ur(_,U,V){let ne=V.tags[ei(_,qr(U))];return(ne==null?void 0:ne.children)||V.allTags}function Vr(_,U){let V=[];for(let ne=qr(U);ne&&!ne.type.isTop;ne=qr(ne.parent)){let te=ei(_,ne);if(te&&ne.lastChild.name=="CloseTag")break;te&&V.indexOf(te)<0&&(U.name=="EndTag"||U.from>=ne.firstChild.to)&&V.push(te)}return V}const Er=/^[:\-\.\w\u00b7-\uffff]*$/;function ki(_,U,V,ne,te){let _e=/\s*>/.test(_.sliceDoc(te,te+5))?"":">",ze=qr(V,!0);return{from:ne,to:te,options:ur(_.doc,ze,U).map(pt=>({label:pt,type:"type"})).concat(Vr(_.doc,V).map((pt,Dt)=>({label:"/"+pt,apply:"/"+pt+_e,type:"type",boost:99-Dt}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function oi(_,U,V,ne){let te=/\s*>/.test(_.sliceDoc(ne,ne+5))?"":">";return{from:V,to:ne,options:Vr(_.doc,U).map((_e,ze)=>({label:_e,apply:_e+te,type:"type",boost:99-ze})),validFor:Er}}function li(_,U,V,ne){let te=[],_e=0;for(let ze of ur(_.doc,V,U))te.push({label:"<"+ze,type:"type"});for(let ze of Vr(_.doc,V))te.push({label:"",type:"type",boost:99-_e++});return{from:ne,to:ne,options:te,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function Gi(_,U,V,ne,te){let _e=qr(V),ze=_e?U.tags[ei(_.doc,_e)]:null,pt=ze&&ze.attrs?Object.keys(ze.attrs):[],Dt=ze&&ze.globalAttrs===!1?pt:pt.length?pt.concat(U.globalAttrNames):U.globalAttrNames;return{from:ne,to:te,options:Dt.map(Zt=>({label:Zt,type:"property"})),validFor:Er}}function ii(_,U,V,ne,te){var _e;let ze=(_e=V.parent)===null||_e===void 0?void 0:_e.getChild("AttributeName"),pt=[],Dt;if(ze){let Zt=_.sliceDoc(ze.from,ze.to),Rn=U.globalAttrs[Zt];if(!Rn){let cn=qr(V),Fr=cn?U.tags[ei(_.doc,cn)]:null;Rn=(Fr==null?void 0:Fr.attrs)&&Fr.attrs[Zt]}if(Rn){let cn=_.sliceDoc(ne,te).toLowerCase(),Fr='"',Xr='"';/^['"]/.test(cn)?(Dt=cn[0]=='"'?/^[^"]*$/:/^[^']*$/,Fr="",Xr=_.sliceDoc(te,te+1)==cn[0]?"":cn[0],cn=cn.slice(1),ne++):Dt=/^[^\s<>='"]*$/;for(let he of Rn)pt.push({label:he,apply:Fr+he+Xr,type:"constant"})}}return{from:ne,to:te,options:pt,validFor:Dt}}function Ui(_,U){let{state:V,pos:ne}=U,te=(0,Ye.qz)(V).resolveInner(ne,-1),_e=te.resolve(ne);for(let ze=ne,pt;_e==te&&(pt=te.childBefore(ze));){let Dt=pt.lastChild;if(!Dt||!Dt.type.isError||Dt.fromUi(ne,te)}const Si=Yr.javascriptLanguage.parser.configure({top:"SingleExpression"}),Sr=[{tag:"script",attrs:_=>_.type=="text/typescript"||_.lang=="ts",parser:Yr.typescriptLanguage.parser},{tag:"script",attrs:_=>_.type=="text/babel"||_.type=="text/jsx",parser:Yr.jsxLanguage.parser},{tag:"script",attrs:_=>_.type=="text/typescript-jsx",parser:Yr.tsxLanguage.parser},{tag:"script",attrs(_){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(_.type)},parser:Si},{tag:"script",attrs(_){return!_.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(_.type)},parser:Yr.javascriptLanguage.parser},{tag:"style",attrs(_){return(!_.lang||_.lang=="css")&&(!_.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(_.type))},parser:Gr.cssLanguage.parser}],fs=[{name:"style",parser:Gr.cssLanguage.parser.configure({top:"Styles"})}].concat(rr.map(_=>({name:_,parser:Yr.javascriptLanguage.parser}))),ea=Ye.qp.define({name:"html",parser:$n.configure({props:[Ye.uj.add({Element(_){let U=/^(\s*)(<\/)?/.exec(_.textAfter);return _.node.to<=_.pos+U[0].length?_.continue():_.lineIndent(_.node.from)+(U[2]?0:_.unit)},"OpenTag CloseTag SelfClosingTag"(_){return _.column(_.node.from)+_.unit},Document(_){if(_.pos+/\s*/.exec(_.textAfter)[0].length<_.node.to)return _.continue();let U=null,V;for(let ne=_.node;;){let te=ne.lastChild;if(!te||te.name!="Element"||te.to!=ne.to)break;U=ne=te}return U&&!((V=U.lastChild)&&(V.name=="CloseTag"||V.name=="SelfClosingTag"))?_.lineIndent(U.from)+_.unit:null}}),Ye.x0.add({Element(_){let U=_.firstChild,V=_.lastChild;return!U||U.name!="OpenTag"?null:{from:U.to,to:V.name=="CloseTag"?V.from:_.to}}}),Ye.a0.add({"OpenTag CloseTag":_=>_.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),ta=ea.configure({wrap:zr(Sr,fs)});function na(_={}){let U="",V;_.matchClosingTags===!1&&(U="noMatch"),_.selfClosingTags===!0&&(U=(U?U+" ":"")+"selfClosing"),(_.nestedLanguages&&_.nestedLanguages.length||_.nestedAttributes&&_.nestedAttributes.length)&&(V=zr((_.nestedLanguages||[]).concat(Sr),(_.nestedAttributes||[]).concat(fs)));let ne=V?ea.configure({wrap:V,dialect:U}):U?ta.configure({dialect:U}):ta;return new Ye.ri(ne,[ta.data.of({autocomplete:Ii(_)}),_.autoCloseTags!==!1?A:[],(0,Yr.javascript)().support,(0,Gr.css)().support])}const ke=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),A=Ti.tk.inputHandler.of((_,U,V,ne,te)=>{if(_.composing||_.state.readOnly||U!=V||ne!=">"&&ne!="/"||!ta.isActiveAt(_.state,U,-1))return!1;let _e=te(),{state:ze}=_e,pt=ze.changeByRange(Dt=>{var Zt,Rn,cn;let Fr=ze.doc.sliceString(Dt.from-1,Dt.to)==ne,{head:Xr}=Dt,he=(0,Ye.qz)(ze).resolveInner(Xr,-1),Y;if(Fr&&ne==">"&&he.name=="EndTag"){let oe=he.parent;if(((Rn=(Zt=oe.parent)===null||Zt===void 0?void 0:Zt.lastChild)===null||Rn===void 0?void 0:Rn.name)!="CloseTag"&&(Y=ei(ze.doc,oe.parent,Xr))&&!ke.has(Y)){let Te=Xr+(ze.doc.sliceString(Xr,Xr+1)===">"?1:0),Ie=``;return{range:Dt,changes:{from:Xr,to:Te,insert:Ie}}}}else if(Fr&&ne=="/"&&he.name=="IncompleteCloseTag"){let oe=he.parent;if(he.from==Xr-2&&((cn=oe.lastChild)===null||cn===void 0?void 0:cn.name)!="CloseTag"&&(Y=ei(ze.doc,oe,Xr))&&!ke.has(Y)){let Te=Xr+(ze.doc.sliceString(Xr,Xr+1)===">"?1:0),Ie=`${Y}>`;return{range:er.jT.cursor(Xr+Ie.length,-1),changes:{from:Xr,to:Te,insert:Ie}}}}return{range:Dt}});return pt.changes.empty?!1:(_.dispatch([_e,ze.update(pt,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})},122:function(ti,Gn,z){"use strict";z.r(Gn),z.d(Gn,{autoCloseTags:function(){return Gr},completionPath:function(){return we},esLint:function(){return Yr},javascript:function(){return Pr},javascriptLanguage:function(){return tt},jsxLanguage:function(){return Cn},localCompletionSource:function(){return Z},scopeCompletionSource:function(){return Ce},snippets:function(){return vn},tsxLanguage:function(){return bn},typescriptLanguage:function(){return Kt},typescriptSnippets:function(){return an}});var ue=z(53105),Me=z(35524);const Ue=312,lt=1,En=2,De=3,Ee=4,xt=313,In=315,ft=316,Pt=5,Hn=6,gt=0,On=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],st=125,Pn=59,Nt=47,Kn=42,Nn=43,yn=45,Zn=60,Mn=44,Tr=63,Br=46,yr=new ue.IK({start:!1,shift(Ye,bt){return bt==Pt||bt==Hn||bt==In?Ye:bt==ft},strict:!1}),Un=new ue.Jq((Ye,bt)=>{let{next:Mt}=Ye;(Mt==st||Mt==-1||bt.context)&&Ye.acceptToken(xt)},{contextual:!0,fallback:!0}),Xt=new ue.Jq((Ye,bt)=>{let{next:Mt}=Ye,Tt;On.indexOf(Mt)>-1||Mt==Nt&&((Tt=Ye.peek(1))==Nt||Tt==Kn)||Mt!=st&&Mt!=Pn&&Mt!=-1&&!bt.context&&Ye.acceptToken(Ue)},{contextual:!0}),sn=new ue.Jq((Ye,bt)=>{let{next:Mt}=Ye;if(Mt==Nn||Mt==yn){if(Ye.advance(),Mt==Ye.next){Ye.advance();let Tt=!bt.context&&bt.canShift(lt);Ye.acceptToken(Tt?lt:En)}}else Mt==Tr&&Ye.peek(1)==Br&&(Ye.advance(),Ye.advance(),(Ye.next<48||Ye.next>57)&&Ye.acceptToken(De))},{contextual:!0});function Yt(Ye,bt){return Ye>=65&&Ye<=90||Ye>=97&&Ye<=122||Ye==95||Ye>=192||!bt&&Ye>=48&&Ye<=57}const Ut=new ue.Jq((Ye,bt)=>{if(Ye.next!=Zn||!bt.dialectEnabled(gt)||(Ye.advance(),Ye.next==Nt))return;let Mt=0;for(;On.indexOf(Ye.next)>-1;)Ye.advance(),Mt++;if(Yt(Ye.next,!0)){for(Ye.advance(),Mt++;Yt(Ye.next,!1);)Ye.advance(),Mt++;for(;On.indexOf(Ye.next)>-1;)Ye.advance(),Mt++;if(Ye.next==Mn)return;for(let Tt=0;;Tt++){if(Tt==7){if(!Yt(Ye.next,!0))return;break}if(Ye.next!="extends".charCodeAt(Tt))break;Ye.advance(),Mt++}}Ye.acceptToken(Ee,-Mt)}),Qt=(0,Me.Gv)({"get set async static":Me.pJ.modifier,"for while do if else switch try catch finally return throw break continue default case":Me.pJ.controlKeyword,"in of await yield void typeof delete instanceof":Me.pJ.operatorKeyword,"let var const using function class extends":Me.pJ.definitionKeyword,"import export from":Me.pJ.moduleKeyword,"with debugger as new":Me.pJ.keyword,TemplateString:Me.pJ.special(Me.pJ.string),super:Me.pJ.atom,BooleanLiteral:Me.pJ.bool,this:Me.pJ.self,null:Me.pJ.null,Star:Me.pJ.modifier,VariableName:Me.pJ.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Me.pJ.function(Me.pJ.variableName),VariableDefinition:Me.pJ.definition(Me.pJ.variableName),Label:Me.pJ.labelName,PropertyName:Me.pJ.propertyName,PrivatePropertyName:Me.pJ.special(Me.pJ.propertyName),"CallExpression/MemberExpression/PropertyName":Me.pJ.function(Me.pJ.propertyName),"FunctionDeclaration/VariableDefinition":Me.pJ.function(Me.pJ.definition(Me.pJ.variableName)),"ClassDeclaration/VariableDefinition":Me.pJ.definition(Me.pJ.className),PropertyDefinition:Me.pJ.definition(Me.pJ.propertyName),PrivatePropertyDefinition:Me.pJ.definition(Me.pJ.special(Me.pJ.propertyName)),UpdateOp:Me.pJ.updateOperator,"LineComment Hashbang":Me.pJ.lineComment,BlockComment:Me.pJ.blockComment,Number:Me.pJ.number,String:Me.pJ.string,Escape:Me.pJ.escape,ArithOp:Me.pJ.arithmeticOperator,LogicOp:Me.pJ.logicOperator,BitOp:Me.pJ.bitwiseOperator,CompareOp:Me.pJ.compareOperator,RegExp:Me.pJ.regexp,Equals:Me.pJ.definitionOperator,Arrow:Me.pJ.function(Me.pJ.punctuation),": Spread":Me.pJ.punctuation,"( )":Me.pJ.paren,"[ ]":Me.pJ.squareBracket,"{ }":Me.pJ.brace,"InterpolationStart InterpolationEnd":Me.pJ.special(Me.pJ.brace),".":Me.pJ.derefOperator,", ;":Me.pJ.separator,"@":Me.pJ.meta,TypeName:Me.pJ.typeName,TypeDefinition:Me.pJ.definition(Me.pJ.typeName),"type enum interface implements namespace module declare":Me.pJ.definitionKeyword,"abstract global Privacy readonly override":Me.pJ.modifier,"is keyof unique infer":Me.pJ.operatorKeyword,JSXAttributeValue:Me.pJ.attributeValue,JSXText:Me.pJ.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Me.pJ.angleBracket,"JSXIdentifier JSXNameSpacedName":Me.pJ.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Me.pJ.attributeName,"JSXBuiltin/JSXIdentifier":Me.pJ.standard(Me.pJ.tagName)}),X={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538},be={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:395},Ne={__proto__:null,"<":187},ye=ue.WQ.deserialize({version:14,states:"$@QO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOO`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOOVQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#D}OAUQWO'#EQO:VQ7[O'#EkOAaQWO'#EkOAlQpO'#FdOOQU'#Cg'#CgOOQ?Mp'#Dn'#DnOOQ?Mp'#Jq'#JqO%[Q^O'#JqOOQO'#Jt'#JtOOQO'#Id'#IdOBlQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Jx'#JxOChQ?NQO'#EdOCrQ`O'#ETOOQO'#Js'#JsODWQ`O'#JtOEeQ`O'#ETOCrQ`O'#EdPErO#@ItO'#CbPOOO)CDx)CDxOOOO'#I['#I[OE}O!bO,59UOOQ?Mr,59U,59UOOOO'#I]'#I]OF]O#tO,59UO%[Q^O'#D`OOOO'#I_'#I_OFkO!0LbO,59xOOQ?Mr,59x,59xOFyQ^O'#I`OG^QWO'#JoOI]QrO'#JoO+}Q^O'#JoOIdQWO,5:OOIzQWO'#EmOJXQWO'#KOOJdQWO'#J}OJdQWO'#J}OJlQWO,5;ZOJqQWO'#J|OOQ?Mv,5:Z,5:ZOJxQ^O,5:ZOLvQ?NdO,5:cOMgQWO,5:kONQQ?MxO'#J{ONXQWO'#JzO9WQWO'#JzONmQWO'#JzONuQWO,5;YONzQWO'#JzO!#PQrO'#JnOOQ?Mr'#Ci'#CiO%[Q^O'#EPO!#oQrO,5:pOOQQ'#Ju'#JuOOQO-EpOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-EtQWO'#HTO9^QWO'#HVO!DgQWO'#HVO:VQ7[O'#HXO!DlQWO'#HXOOQU,5=m,5=mO!DqQWO'#HYO!ESQWO'#CoO!EXQWO,59PO!EcQWO,59PO!GhQ^O,59POOQU,59P,59PO!GxQ?MxO,59PO%[Q^O,59PO!JTQ^O'#HaOOQU'#Hb'#HbOOQU'#Hc'#HcO`Q^O,5=yO!JkQWO,5=yO`Q^O,5>PO`Q^O,5>RO!JpQWO,5>TO`Q^O,5>VO!JuQWO,5>YO!JzQ^O,5>`OOQU,5>f,5>fO%[Q^O,5>fO9hQ?MxO,5>hOOQU,5>j,5>jO# UQWO,5>jOOQU,5>l,5>lO# UQWO,5>lOOQU,5>n,5>nO# rQ`O'#D[O%[Q^O'#JqO# |Q`O'#JqO#!kQ`O'#DjO#!|Q`O'#DjO#%_Q^O'#DjO#%fQWO'#JpO#%nQWO,5:TO#%sQWO'#EqO#&RQWO'#KPO#&ZQWO,5;[O#&`Q`O'#DjO#&mQ`O'#ESOOQ?Mr,5:l,5:lO%[Q^O,5:lO#&tQWO,5:lO>tQWO,5;VO!A}Q`O,5;VO!BVQ7[O,5;VO:VQ7[O,5;VO#&|QWO,5@]O#'RQ(CYO,5:pOOQO-EzO+}Q^O,5>zOOQO,5?Q,5?QO#*ZQ^O'#I`OOQO-E<^-E<^O#*hQWO,5@ZO#*pQrO,5@ZO#*wQWO,5@iOOQ?Mr1G/j1G/jO%[Q^O,5@jO#+PQWO'#IfOOQO-EuQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-EoQWO1G3oO$3VQ^O1G3qO$7ZQ^O'#HpOOQU1G3t1G3tO$7hQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$7pQ^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$;wQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$;|Q07bO,5:UOOQO,5;],5;]O$tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-EjQpO,5rQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$>|QWO1G5uO$?UQWO1G6TO$?^QrO1G6UO9WQWO,5?QO$?hQ?NdO1G6RO%[Q^O1G6RO$?xQ?MxO1G6RO$@ZQWO1G6QO$@ZQWO1G6QO9WQWO1G6QO$@cQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$@wQWO,5?TO$(PQWO,5?TOOQO-E[OOQU,5>[,5>[O%[Q^O'#HqO%8mQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%8rQ`O1G5wO%9WQ07bO1G0wO%9bQWO1G0wOOQO1G/p1G/pO%9mQ07bO1G/pO>tQWO1G/pO!(oQ^O'#DjOOQO,5>{,5>{OOQO-E<_-E<_OOQO,5?R,5?ROOQO-EtQWO7+&]O!A}Q`O7+&]OOQO7+%u7+%uO$>`Q?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%9wQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%:SQ?MxO7+&UO%:bQ?NdO7++mO%[Q^O7++mO%:rQWO7++lO%:rQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%:zQWO1G4oOOQQ7+%z7+%zO#&wQWO<|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<tQWO<`Q?NdO<pQ?NdO,5?_O&@xQ?NdO7+'zO&CWQrO1G4hO&CbQ07bO7+&^O&EcQ07bO,5=UO&GgQ07bO,5=WO&GwQ07bO,5=UO&HXQ07bO,5=WO&HiQ07bO,59rO&JlQ07bO,5tQWO7+)hO'(OQWO<`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'kOh%VOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%VO!i%cO~Oh%VO!i%cO(O%eO~O!d#vO#h(tO~Ob+nO%g+oO(O+kO(QTO(TUO!Z)TP~O!Y+pO`)SX~O[+tO~O`+uO~O![%}O(O%eO(P!lO`)SP~Oh%VO#]+zO~Oh%VOk+}O![$|O~O![,PO~O},RO![XO~O%k%tO~O!u,WO~Oe,]O~Ob,^O(O#nO(QTO(TUO!Z)RP~Oe%{O~O%g!QO(O&WO~P=RO[,cO`,bO~OPYOQYOSfOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO!fuO!iZO!lYO!mYO!nYO!pvO!uxO!y]O%e}O(QTO(TUO([VO(j[O(yiO~O![!eO!r!gO$V!kO(O!dO~P!EkO`,bOa%lO'u%lO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa,hO!rwO#t!OO%i!OO%j!OO%k!OO~P!HTO!i&lO~O&Y,nO~O![,pO~O&k,rO&m,sOP&haQ&haS&haY&haa&had&hae&ham&hao&hap&haq&haw&hay&ha{&ha!P&ha!T&ha!U&ha![&ha!f&ha!i&ha!l&ha!m&ha!n&ha!p&ha!r&ha!u&ha!y&ha#t&ha$V&ha%e&ha%g&ha%i&ha%j&ha%k&ha%n&ha%p&ha%s&ha%t&ha%v&ha&S&ha&Y&ha&[&ha&^&ha&`&ha&c&ha&i&ha&o&ha&q&ha&s&ha&u&ha&w&ha's&ha(O&ha(Q&ha(T&ha([&ha(j&ha(y&ha!Z&ha&a&hab&ha&f&ha~O(O,xO~Oh!bX!Y!OX!Z!OX!d!OX!d!bX!i!bX#]!OX~O!Y!bX!Z!bX~P# ZO!d,}O#],|Oh(eX!Y#eX!Y(eX!Z#eX!Z(eX!d(eX!i(eX~Oh%VO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP;POQ;POSfOdkOg'XX!Y'XX~P!+hO!Y.wOg(ka~OSfO![3uO$c3vO~O!Z3zO~Os3{O~P#.aOa$lq!Y$lq'u$lq's$lq!V$lq!h$lqs$lq![$lq%f$lq!d$lq~P!9mO!V3|O~P#.aO})zO!P){O(u%POk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%)nO})zO!P){Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*aO(m$YO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(OQ#>g#@V#@e#@l#BR#Ba#C|#D[#Db#Dh#Dn#Dx#EO#EU#E`#Er#ExPPPPPPPPPP#FOPPPPPPP#Fs#Iz#KZ#Kb#KjPPP$!sP$!|$%t$,^$,a$,d$-P$-S$-Z$-cP$-i$-lP$.Y$.^$/U$0d$0i$1PPP$1U$1[$1`P$1c$1g$1k$2a$2x$3a$3e$3h$3k$3q$3t$3x$3|R!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5eQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*e$|*V*jQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*lQ1k,]R;v;T%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8rS#q];Q!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{ < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:376,context:yr,nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["closedBy",24,">",37,"InterpolationEnd",47,"]",58,"}",71,")",164,"JSXEndTag"]],propSources:[Qt],skippedNodes:[0,5,6,274],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Rp(U!b'w0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(S#S$h&j'x0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Rp(U!b'x0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!m),Q(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(Q':f$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(U!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Rp(U!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(U!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(RpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(RpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Rp(U!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$h&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$h&j(U!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(U!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(U!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(U!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(U!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#O-X[Ye]||-1},{term:338,get:Ye=>be[Ye]||-1},{term:92,get:Ye=>Ne[Ye]||-1}],tokenPrec:14749});var Ze=z(59119),$e=z(78120),qe=z(75533),ut=z(34790),Vt=z(41113);const vn=[(0,ut.Gn)("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,ut.Gn)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,ut.Gn)("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,ut.Gn)("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,ut.Gn)("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,ut.Gn)(`try { - \${} -} catch (\${error}) { - \${} -}`,{label:"try",detail:"/ catch block",type:"keyword"}),(0,ut.Gn)("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,ut.Gn)(`if (\${}) { - \${} -} else { - \${} -}`,{label:"if",detail:"/ else block",type:"keyword"}),(0,ut.Gn)(`class \${name} { - constructor(\${params}) { - \${} - } -}`,{label:"class",detail:"definition",type:"keyword"}),(0,ut.Gn)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,ut.Gn)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],an=vn.concat([(0,ut.Gn)("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),(0,ut.Gn)("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),(0,ut.Gn)("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Fn=new Vt.hr,Sn=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Bn(Ye){return(bt,Mt)=>{let Tt=bt.node.getChild("VariableDefinition");return Tt&&Mt(Tt,Ye),!0}}const fr=["FunctionDeclaration"],ir={FunctionDeclaration:Bn("function"),ClassDeclaration:Bn("class"),ClassExpression:()=>!0,EnumDeclaration:Bn("constant"),TypeAliasDeclaration:Bn("type"),NamespaceDeclaration:Bn("namespace"),VariableDefinition(Ye,bt){Ye.matchContext(fr)||bt(Ye,"variable")},TypeDefinition(Ye,bt){bt(Ye,"type")},__proto__:null};function un(Ye,bt){let Mt=Fn.get(bt);if(Mt)return Mt;let Tt=[],hn=!0;function on(At,qn){let Ir=Ye.sliceString(At.from,At.to);Tt.push({label:Ir,type:qn})}return bt.cursor(Vt.vj.IncludeAnonymous).iterate(At=>{if(hn)hn=!1;else if(At.name){let qn=ir[At.name];if(qn&&qn(At,on)||Sn.has(At.name))return!1}else if(At.to-At.from>8192){for(let qn of un(Ye,At.node))Tt.push(qn);return!1}}),Fn.set(bt,Tt),Tt}const zt=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,et=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function Z(Ye){let bt=(0,Ze.qz)(Ye.state).resolveInner(Ye.pos,-1);if(et.indexOf(bt.name)>-1)return null;let Mt=bt.name=="VariableName"||bt.to-bt.from<20&&zt.test(Ye.state.sliceDoc(bt.from,bt.to));if(!Mt&&!Ye.explicit)return null;let Tt=[];for(let hn=bt;hn;hn=hn.parent)Sn.has(hn.name)&&(Tt=Tt.concat(un(Ye.state.doc,hn)));return{options:Tt,from:Mt?bt.from:Ye.pos,validFor:zt}}function re(Ye,bt,Mt){var Tt;let hn=[];for(;;){let on=bt.firstChild,At;if((on==null?void 0:on.name)=="VariableName")return hn.push(Ye(on)),{path:hn.reverse(),name:Mt};if((on==null?void 0:on.name)=="MemberExpression"&&((Tt=At=on.lastChild)===null||Tt===void 0?void 0:Tt.name)=="PropertyName")hn.push(Ye(At)),bt=on;else return null}}function we(Ye){let bt=Tt=>Ye.state.doc.sliceString(Tt.from,Tt.to),Mt=(0,Ze.qz)(Ye.state).resolveInner(Ye.pos,-1);return Mt.name=="PropertyName"?re(bt,Mt.parent,bt(Mt)):(Mt.name=="."||Mt.name=="?.")&&Mt.parent.name=="MemberExpression"?re(bt,Mt.parent,""):et.indexOf(Mt.name)>-1?null:Mt.name=="VariableName"||Mt.to-Mt.from<20&&zt.test(bt(Mt))?{path:[],name:bt(Mt)}:Mt.name=="MemberExpression"?re(bt,Mt,""):Ye.explicit?{path:[],name:""}:null}function ve(Ye,bt){let Mt=[],Tt=new Set;for(let hn=0;;hn++){for(let At of(Object.getOwnPropertyNames||Object.keys)(Ye)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(At)||Tt.has(At))continue;Tt.add(At);let qn;try{qn=Ye[At]}catch(Ir){continue}Mt.push({label:At,type:typeof qn=="function"?/^[A-Z]/.test(At)?"class":bt?"function":"method":bt?"variable":"property",boost:-hn})}let on=Object.getPrototypeOf(Ye);if(!on)return Mt;Ye=on}}function Ce(Ye){let bt=new Map;return Mt=>{let Tt=we(Mt);if(!Tt)return null;let hn=Ye;for(let At of Tt.path)if(hn=hn[At],!hn)return null;let on=bt.get(hn);return on||bt.set(hn,on=ve(hn,!Tt.path.length)),{from:Mt.pos-Tt.name.length,options:on,validFor:zt}}}const tt=Ze.qp.define({name:"javascript",parser:ye.configure({props:[Ze.uj.add({IfStatement:(0,Ze.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,Ze.tC)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Ze.ze,SwitchBody:Ye=>{let bt=Ye.textAfter,Mt=/^\s*\}/.test(bt),Tt=/^\s*(case|default)\b/.test(bt);return Ye.baseIndent+(Mt?0:Tt?1:2)*Ye.unit},Block:(0,Ze.vw)({closing:"}"}),ArrowFunction:Ye=>Ye.baseIndent+Ye.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,Ze.tC)({except:/^{/}),JSXElement(Ye){let bt=/^\s*<\//.test(Ye.textAfter);return Ye.lineIndent(Ye.node.from)+(bt?0:Ye.unit)},JSXEscape(Ye){let bt=/\s*\}/.test(Ye.textAfter);return Ye.lineIndent(Ye.node.from)+(bt?0:Ye.unit)},"JSXOpenTag JSXSelfClosingTag"(Ye){return Ye.column(Ye.node.from)+Ye.unit}}),Ze.x0.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Ze.Dv,BlockComment(Ye){return{from:Ye.from+2,to:Ye.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Rt={test:Ye=>/^JSX/.test(Ye.name),facet:(0,Ze.kU)({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Kt=tt.configure({dialect:"ts"},"typescript"),Cn=tt.configure({dialect:"jsx",props:[Ze.KC.add(Ye=>Ye.isTop?[Rt]:void 0)]}),bn=tt.configure({dialect:"jsx ts",props:[Ze.KC.add(Ye=>Ye.isTop?[Rt]:void 0)]},"typescript");let Dn=Ye=>({label:Ye,type:"keyword"});const Yn="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Dn),$n=Yn.concat(["declare","implements","private","protected","public"].map(Dn));function Pr(Ye={}){let bt=Ye.jsx?Ye.typescript?bn:Cn:Ye.typescript?Kt:tt,Mt=Ye.typescript?an.concat($n):vn.concat(Yn);return new Ze.ri(bt,[tt.data.of({autocomplete:(0,ut.eC)(et,(0,ut.Mb)(Mt))}),tt.data.of({autocomplete:Z}),Ye.jsx?Gr:[]])}function Wr(Ye){for(;;){if(Ye.name=="JSXOpenTag"||Ye.name=="JSXSelfClosingTag"||Ye.name=="JSXFragmentTag")return Ye;if(Ye.name=="JSXEscape"||!Ye.parent)return null;Ye=Ye.parent}}function Wn(Ye,bt,Mt=Ye.length){for(let Tt=bt==null?void 0:bt.firstChild;Tt;Tt=Tt.nextSibling)if(Tt.name=="JSXIdentifier"||Tt.name=="JSXBuiltin"||Tt.name=="JSXNamespacedName"||Tt.name=="JSXMemberExpression")return Ye.sliceString(Tt.from,Math.min(Tt.to,Mt));return""}const zr=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Gr=qe.tk.inputHandler.of((Ye,bt,Mt,Tt,hn)=>{if((zr?Ye.composing:Ye.compositionStarted)||Ye.state.readOnly||bt!=Mt||Tt!=">"&&Tt!="/"||!tt.isActiveAt(Ye.state,bt,-1))return!1;let on=hn(),{state:At}=on,qn=At.changeByRange(Ir=>{var rr;let{head:Ar}=Ir,ei=(0,Ze.qz)(At).resolveInner(Ar-1,-1),qr;if(ei.name=="JSXStartTag"&&(ei=ei.parent),!(At.doc.sliceString(Ar-1,Ar)!=Tt||ei.name=="JSXAttributeValue"&&ei.to>Ar)){if(Tt==">"&&ei.name=="JSXFragmentTag")return{range:Ir,changes:{from:Ar,insert:""}};if(Tt=="/"&&ei.name=="JSXStartCloseTag"){let ur=ei.parent,Vr=ur.parent;if(Vr&&ur.from==Ar-2&&((qr=Wn(At.doc,Vr.firstChild,Ar))||((rr=Vr.firstChild)===null||rr===void 0?void 0:rr.name)=="JSXFragmentTag")){let Er=`${qr}>`;return{range:$e.jT.cursor(Ar+Er.length,-1),changes:{from:Ar,insert:Er}}}}else if(Tt==">"){let ur=Wr(ei);if(ur&&ur.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(At.doc.sliceString(Ar,Ar+2))&&(qr=Wn(At.doc,ur,Ar)))return{range:Ir,changes:{from:Ar,insert:``}}}}return{range:Ir}});return qn.changes.empty?!1:(Ye.dispatch([on,At.update(qn,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function Yr(Ye,bt){return bt||(bt={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},Ye.getRules().forEach((Mt,Tt)=>{Mt.meta.docs.recommended&&(bt.rules[Tt]=2)})),Mt=>{let{state:Tt}=Mt,hn=[];for(let{from:on,to:At}of tt.findRegions(Tt)){let qn=Tt.doc.lineAt(on),Ir={line:qn.number-1,col:on-qn.from,pos:on};for(let rr of Ye.verify(Tt.sliceDoc(on,At),bt))hn.push(er(rr,Tt.doc,Ir))}return hn}}function Ti(Ye,bt,Mt,Tt){return Mt.line(Ye+Tt.line).from+bt+(Ye==1?Tt.col-1:-1)}function er(Ye,bt,Mt){let Tt=Ti(Ye.line,Ye.column,bt,Mt),hn={from:Tt,to:Ye.endLine!=null&&Ye.endColumn!=1?Ti(Ye.endLine,Ye.endColumn,bt,Mt):Tt,message:Ye.message,source:Ye.ruleId?"eslint:"+Ye.ruleId:"eslint",severity:Ye.severity==1?"warning":"error"};if(Ye.fix){let{range:on,text:At}=Ye.fix,qn=on[0]+Mt.pos-Tt,Ir=on[1]+Mt.pos-Tt;hn.actions=[{name:"fix",apply(rr,Ar){rr.dispatch({changes:{from:Ar+qn,to:Ar+Ir,insert:At},scrollIntoView:!0})}}]}return hn}},48825:function(ti,Gn,z){"use strict";z.r(Gn),z.d(Gn,{commonmarkLanguage:function(){return A},deleteMarkupBackward:function(){return Xr},insertNewlineContinueMarkup:function(){return Dt},markdown:function(){return oe},markdownKeymap:function(){return he},markdownLanguage:function(){return U}});var ue=z(78120),Me=z(75533),Ue=z(59119),lt=z(34790),En=z(41113),De=z(35524);class Ee{static create(D,F,W,ie,Re){let Je=ie+(ie<<8)+D+(F<<4)|0;return new Ee(D,F,W,Je,Re,[],[])}constructor(D,F,W,ie,Re,Je,ht){this.type=D,this.value=F,this.from=W,this.hash=ie,this.end=Re,this.children=Je,this.positions=ht,this.hashProp=[[En.md.contextHash,ie]]}addChild(D,F){D.prop(En.md.contextHash)!=this.hash&&(D=new En.mp(D.type,D.children,D.positions,D.length,this.hashProp)),this.children.push(D),this.positions.push(F)}toTree(D,F=this.end){let W=this.children.length-1;return W>=0&&(F=Math.max(F,this.positions[W]+this.children[W].length+this.from)),new En.mp(D.types[this.type],this.children,this.positions,F-this.from).balance({makeTree:(ie,Re,Je)=>new En.mp(En.Jq.none,ie,Re,Je,this.hashProp)})}}var xt;(function(M){M[M.Document=1]="Document",M[M.CodeBlock=2]="CodeBlock",M[M.FencedCode=3]="FencedCode",M[M.Blockquote=4]="Blockquote",M[M.HorizontalRule=5]="HorizontalRule",M[M.BulletList=6]="BulletList",M[M.OrderedList=7]="OrderedList",M[M.ListItem=8]="ListItem",M[M.ATXHeading1=9]="ATXHeading1",M[M.ATXHeading2=10]="ATXHeading2",M[M.ATXHeading3=11]="ATXHeading3",M[M.ATXHeading4=12]="ATXHeading4",M[M.ATXHeading5=13]="ATXHeading5",M[M.ATXHeading6=14]="ATXHeading6",M[M.SetextHeading1=15]="SetextHeading1",M[M.SetextHeading2=16]="SetextHeading2",M[M.HTMLBlock=17]="HTMLBlock",M[M.LinkReference=18]="LinkReference",M[M.Paragraph=19]="Paragraph",M[M.CommentBlock=20]="CommentBlock",M[M.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",M[M.Escape=22]="Escape",M[M.Entity=23]="Entity",M[M.HardBreak=24]="HardBreak",M[M.Emphasis=25]="Emphasis",M[M.StrongEmphasis=26]="StrongEmphasis",M[M.Link=27]="Link",M[M.Image=28]="Image",M[M.InlineCode=29]="InlineCode",M[M.HTMLTag=30]="HTMLTag",M[M.Comment=31]="Comment",M[M.ProcessingInstruction=32]="ProcessingInstruction",M[M.Autolink=33]="Autolink",M[M.HeaderMark=34]="HeaderMark",M[M.QuoteMark=35]="QuoteMark",M[M.ListMark=36]="ListMark",M[M.LinkMark=37]="LinkMark",M[M.EmphasisMark=38]="EmphasisMark",M[M.CodeMark=39]="CodeMark",M[M.CodeText=40]="CodeText",M[M.CodeInfo=41]="CodeInfo",M[M.LinkTitle=42]="LinkTitle",M[M.LinkLabel=43]="LinkLabel",M[M.URL=44]="URL"})(xt||(xt={}));class In{constructor(D,F){this.start=D,this.content=F,this.marks=[],this.parsers=[]}}class ft{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let D=this.skipSpace(this.basePos);this.indent=this.countIndent(D,this.pos,this.indent),this.pos=D,this.next=D==this.text.length?-1:this.text.charCodeAt(D)}skipSpace(D){return On(this.text,D)}reset(D){for(this.text=D,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(D){this.basePos=D,this.baseIndent=this.countIndent(D,this.pos,this.indent)}moveBaseColumn(D){this.baseIndent=D,this.basePos=this.findColumn(D)}addMarker(D){this.markers.push(D)}countIndent(D,F=0,W=0){for(let ie=F;ie=D.stack[F.depth+1].value+F.baseIndent)return!0;if(F.indent>=F.baseIndent+4)return!1;let W=(M.type==xt.OrderedList?Zn:yn)(F,D,!1);return W>0&&(M.type!=xt.BulletList||Kn(F,D,!1)<0)&&F.text.charCodeAt(F.pos+W-1)==M.value}const Hn={[xt.Blockquote](M,D,F){return F.next!=62?!1:(F.markers.push(zt(xt.QuoteMark,D.lineStart+F.pos,D.lineStart+F.pos+1)),F.moveBase(F.pos+(gt(F.text.charCodeAt(F.pos+1))?2:1)),M.end=D.lineStart+F.text.length,!0)},[xt.ListItem](M,D,F){return F.indent-1?!1:(F.moveBaseColumn(F.baseIndent+M.value),!0)},[xt.OrderedList]:Pt,[xt.BulletList]:Pt,[xt.Document](){return!0}};function gt(M){return M==32||M==9||M==10||M==13}function On(M,D=0){for(;DF&>(M.charCodeAt(D-1));)D--;return D}function Pn(M){if(M.next!=96&&M.next!=126)return-1;let D=M.pos+1;for(;D-1&&M.depth==D.stack.length||W<3?-1:1}function Nn(M,D){for(let F=M.stack.length-1;F>=0;F--)if(M.stack[F].type==D)return!0;return!1}function yn(M,D,F){return(M.next==45||M.next==43||M.next==42)&&(M.pos==M.text.length-1||gt(M.text.charCodeAt(M.pos+1)))&&(!F||Nn(D,xt.BulletList)||M.skipSpace(M.pos+2)=48&&ie<=57;){W++;if(W==M.text.length)return-1;ie=M.text.charCodeAt(W)}return W==M.pos||W>M.pos+9||ie!=46&&ie!=41||WM.pos+1||M.next!=49)?-1:W+1-M.pos}function Mn(M){if(M.next!=35)return-1;let D=M.pos+1;for(;D6?-1:F}function Tr(M){if(M.next!=45&&M.next!=61||M.indent>=M.baseIndent+4)return-1;let D=M.pos+1;for(;D/,Un=/\?>/,Xt=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(W);if(Re)return M.append(zt(xt.Comment,F,F+1+Re[0].length));let Je=/^\?[^]*?\?>/.exec(W);if(Je)return M.append(zt(xt.ProcessingInstruction,F,F+1+Je[0].length));let ht=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(W);return ht?M.append(zt(xt.HTMLTag,F,F+1+ht[0].length)):-1},Emphasis(M,D,F){if(D!=95&&D!=42)return-1;let W=F+1;for(;M.char(W)==D;)W++;let ie=M.slice(F-1,F),Re=M.slice(W,W+1),Je=tt.test(ie),ht=tt.test(Re),wt=/\s|^$/.test(ie),en=/\s|^$/.test(Re),nn=!en&&(!ht||wt||Je),Cr=!wt&&(!Je||en||ht),dn=nn&&(D==42||!Cr||Je),cr=Cr&&(D==42||!nn||ht);return M.append(new ve(D==95?et:Z,F,W,(dn?1:0)|(cr?2:0)))},HardBreak(M,D,F){if(D==92&&M.char(F+1)==10)return M.append(zt(xt.HardBreak,F,F+2));if(D==32){let W=F+1;for(;M.char(W)==32;)W++;if(M.char(W)==10&&W>=F+2)return M.append(zt(xt.HardBreak,F,W+1))}return-1},Link(M,D,F){return D==91?M.append(new ve(re,F,F+1,1)):-1},Image(M,D,F){return D==33&&M.char(F+1)==91?M.append(new ve(we,F,F+2,1)):-1},LinkEnd(M,D,F){if(D!=93)return-1;for(let W=M.parts.length-1;W>=0;W--){let ie=M.parts[W];if(ie instanceof ve&&(ie.type==re||ie.type==we)){if(!ie.side||M.skipSpace(ie.to)==F&&!/[(\[]/.test(M.slice(F+1,F+2)))return M.parts[W]=null,-1;let Re=M.takeContent(W),Je=M.parts[W]=Kt(M,Re,ie.type==re?xt.Link:xt.Image,ie.from,F+1);if(ie.type==re)for(let ht=0;htD?zt(xt.URL,D+F,Re+F):Re==M.length?null:!1}}function bn(M,D,F){let W=M.charCodeAt(D);if(W!=39&&W!=34&&W!=40)return!1;let ie=W==40?41:W;for(let Re=D+1,Je=!1;Re=this.end?-1:this.text.charCodeAt(D-this.offset)}get end(){return this.offset+this.text.length}slice(D,F){return this.text.slice(D-this.offset,F-this.offset)}append(D){return this.parts.push(D),D.to}addDelimiter(D,F,W,ie,Re){return this.append(new ve(D,F,W,(ie?1:0)|(Re?2:0)))}get hasOpenLink(){for(let D=this.parts.length-1;D>=0;D--){let F=this.parts[D];if(F instanceof ve&&(F.type==re||F.type==we))return!0}return!1}addElement(D){return this.append(D)}resolveMarkers(D){for(let W=D;W=D;wt--){let _r=this.parts[wt];if(_r instanceof ve&&_r.side&1&&_r.type==ie.type&&!(Re&&(ie.side&1||_r.side&2)&&(_r.to-_r.from+Je)%3==0&&((_r.to-_r.from)%3||Je%3))){ht=_r;break}}if(!ht)continue;let en=ie.type.resolve,nn=[],Cr=ht.from,dn=ie.to;if(Re){let _r=Math.min(2,ht.to-ht.from,Je);Cr=ht.to-_r,dn=ie.from+_r,en=_r==1?"Emphasis":"StrongEmphasis"}ht.type.mark&&nn.push(this.elt(ht.type.mark,Cr,ht.to));for(let _r=wt+1;_r=0;F--){let W=this.parts[F];if(W instanceof ve&&W.type==D)return F}return null}takeContent(D){let F=this.resolveMarkers(D);return this.parts.length=D,F}skipSpace(D){return On(this.text,D-this.offset)+this.offset}elt(D,F,W,ie){return typeof D=="string"?zt(this.parser.getNodeType(D),F,W,ie):new un(D,F)}}function $n(M,D){if(!D.length)return M;if(!M.length)return D;let F=M.slice(),W=0;for(let ie of D){for(;W(D?D-1:0))return!1;if(this.fragmentEnd<0){let Re=this.fragment.to;for(;Re>0&&this.input.read(Re-1,Re)!=` -`;)Re--;this.fragmentEnd=Re?Re-1:0}let W=this.cursor;W||(W=this.cursor=this.fragment.tree.cursor(),W.firstChild());let ie=D+this.fragment.offset;for(;W.to<=ie;)if(!W.parent())return!1;for(;;){if(W.from>=ie)return this.fragment.from<=F;if(!W.childAfter(ie))return!1}}matches(D){let F=this.cursor.tree;return F&&F.prop(En.md.contextHash)==D}takeNodes(D){let F=this.cursor,W=this.fragment.offset,ie=this.fragmentEnd-(this.fragment.openEnd?1:0),Re=D.absoluteLineStart,Je=Re,ht=D.block.children.length,wt=Je,en=ht;for(;;){if(F.to-W>ie){if(F.type.isAnonymous&&F.firstChild())continue;break}let nn=Wn(F.from-W,D.ranges);if(F.to-W<=D.ranges[D.rangeI].to)D.addNode(F.tree,nn);else{let Cr=new En.mp(D.parser.nodeSet.types[xt.Paragraph],[],[],0,D.block.hashProp);D.reusePlaceholders.set(Cr,F.tree),D.addNode(Cr,nn)}if(F.type.is("Block")&&(Pr.indexOf(F.type.id)<0?(Je=F.to-W,ht=D.block.children.length):(Je=wt,ht=en,wt=F.to-W,en=D.block.children.length)),!F.nextSibling())break}for(;D.block.children.length>ht;)D.block.children.pop(),D.block.positions.pop();return Je-Re}}function Wn(M,D){let F=M;for(let W=1;WQt[M]),Object.keys(Qt).map(M=>ye[M]),Object.keys(Qt),Ze,Hn,Object.keys(Rt).map(M=>Rt[M]),Object.keys(Rt),[]);function Yr(M,D,F){let W=[];for(let ie=M.firstChild,Re=D;;ie=ie.nextSibling){let Je=ie?ie.from:F;if(Je>Re&&W.push({from:Re,to:Je}),!ie)break;Re=ie.to}return W}function Ti(M){let{codeParser:D,htmlParser:F}=M;return{wrap:(0,En.FE)((ie,Re)=>{let Je=ie.type.id;if(D&&(Je==xt.CodeBlock||Je==xt.FencedCode)){let ht="";if(Je==xt.FencedCode){let en=ie.node.getChild(xt.CodeInfo);en&&(ht=Re.read(en.from,en.to))}let wt=D(ht);if(wt)return{parser:wt,overlay:en=>en.type.id==xt.CodeText}}else if(F&&(Je==xt.HTMLBlock||Je==xt.HTMLTag))return{parser:F,overlay:Yr(ie.node,ie.from,ie.to)};return null})}}const er={resolve:"Strikethrough",mark:"StrikethroughMark"},Ye={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":De.pJ.strikethrough}},{name:"StrikethroughMark",style:De.pJ.processingInstruction}],parseInline:[{name:"Strikethrough",parse(M,D,F){if(D!=126||M.char(F+1)!=126||M.char(F+2)==126)return-1;let W=M.slice(F-1,F),ie=M.slice(F+2,F+3),Re=/\s|^$/.test(W),Je=/\s|^$/.test(ie),ht=tt.test(W),wt=tt.test(ie);return M.addDelimiter(er,F,F+2,!Je&&(!wt||Re||ht),!Re&&(!ht||Je||wt))},after:"Emphasis"}]};function bt(M,D,F=0,W,ie=0){let Re=0,Je=!0,ht=-1,wt=-1,en=!1,nn=()=>{W.push(M.elt("TableCell",ie+ht,ie+wt,M.parser.parseInline(D.slice(ht,wt),ie+ht)))};for(let Cr=F;Cr-1)&&Re++,Je=!1,W&&(ht>-1&&nn(),W.push(M.elt("TableDelimiter",Cr+ie,Cr+ie+1))),ht=wt=-1):(en||dn!=32&&dn!=9)&&(ht<0&&(ht=Cr),wt=Cr+1),en=!en&&dn==92}return ht>-1&&(Re++,W&&nn()),Re}function Mt(M,D){for(let F=D;Fie instanceof hn)||!Mt(D.text,D.basePos))return!1;let W=M.scanLine(M.absoluteLineEnd+1).text;return Tt.test(W)&&bt(M,D.text,D.basePos)==bt(M,W,D.basePos)},before:"SetextHeading"}]};class At{nextLine(){return!1}finish(D,F){return D.addLeafElement(F,D.elt("Task",F.start,F.start+F.content.length,[D.elt("TaskMarker",F.start,F.start+3),...D.parser.parseInline(F.content.slice(3),F.start+3)])),!0}}const qn={defineNodes:[{name:"Task",block:!0,style:De.pJ.list},{name:"TaskMarker",style:De.pJ.atom}],parseBlock:[{name:"TaskList",leaf(M,D){return/^\[[ xX]\][ \t]/.test(D.content)&&M.parentType().name=="ListItem"?new At:null},after:"SetextHeading"}]},Ir=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,rr=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,Ar=/[\w-]+\.[\w-]+($|\/)/,ei=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,qr=/\/[a-zA-Z\d@.]+/gy;function ur(M,D,F,W){let ie=0;for(let Re=D;Re-1)return-1;let W=D+F[0].length;for(;;){let ie=M[W-1],Re;if(/[?!.,:*_~]/.test(ie)||ie==")"&&ur(M,D,W,")")>ur(M,D,W,"("))W--;else if(ie==";"&&(Re=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(M.slice(D,W))))W=D+Re.index;else break}return W}function Er(M,D){ei.lastIndex=D;let F=ei.exec(M);if(!F)return-1;let W=F[0][F[0].length-1];return W=="_"||W=="-"?-1:D+F[0].length-(W=="."?1:0)}const oi=[on,qn,Ye,{parseInline:[{name:"Autolink",parse(M,D,F){let W=F-M.offset;Ir.lastIndex=W;let ie=Ir.exec(M.text),Re=-1;if(!ie)return-1;if(ie[1]||ie[2]){if(Re=Vr(M.text,W+ie[0].length),Re>-1&&M.hasOpenLink){let Je=/([^\[\]]|\[[^\]]*\])*/.exec(M.text.slice(W,Re));Re=W+Je[0].length}}else ie[3]?Re=Er(M.text,W):(Re=Er(M.text,W+ie[0].length),Re>-1&&ie[0]=="xmpp:"&&(qr.lastIndex=Re,ie=qr.exec(M.text),ie&&(Re=ie.index+ie[0].length)));return Re<0?-1:(M.addElement(M.elt("URL",F,Re+M.offset)),Re+M.offset)}}]}];function li(M,D,F){return(W,ie,Re)=>{if(ie!=M||W.char(Re+1)==M)return-1;let Je=[W.elt(F,Re,Re+1)];for(let ht=Re+1;ht"}}}),Si=new En.md,Sr=Gr.configure({props:[Ue.x0.add(M=>!M.is("Block")||M.is("Document")||fs(M)!=null||ea(M)?void 0:(D,F)=>({from:F.doc.lineAt(D.from).to,to:D.to})),Si.add(fs),Ue.uj.add({Document:()=>null}),Ue.pp.add({Document:Ii})]});function fs(M){let D=/^(?:ATX|Setext)Heading(\d)$/.exec(M.name);return D?+D[1]:void 0}function ea(M){return M.name=="OrderedList"||M.name=="BulletList"}function ta(M,D){let F=M;for(;;){let W=F.nextSibling,ie;if(!W||(ie=fs(W.type))!=null&&ie<=D)break;F=W}return F.to}const na=Ue.rs.of((M,D,F)=>{for(let W=(0,Ue.qz)(M).resolveInner(F,-1);W&&!(W.fromF)return{from:F,to:Re}}return null});function ke(M){return new Ue.SQ(Ii,M,[na],"markdown")}const A=ke(Sr),U=ke(Sr.configure([oi,ii,Gi,Ui,{props:[Ue.x0.add({Table:(M,D)=>({from:D.doc.lineAt(M.from).to,to:M.to})})]}]));function V(M,D){return F=>{if(F&&M){let W=null;if(F=/\S*/.exec(F)[0],typeof M=="function"?W=M(F):W=Ue.c6.matchLanguageName(M,F,!0),W instanceof Ue.c6)return W.support?W.support.language.parser:Ue.Be.getSkippingParser(W.load());if(W)return W.parser}return D?D.parser:null}}class ne{constructor(D,F,W,ie,Re,Je,ht){this.node=D,this.from=F,this.to=W,this.spaceBefore=ie,this.spaceAfter=Re,this.type=Je,this.item=ht}blank(D,F=!0){let W=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(D!=null){for(;W.length0;ie--)W+=" ";return W+(F?this.spaceAfter:"")}}marker(D,F){let W=this.node.name=="OrderedList"?String(+_e(this.item,D)[2]+F):"";return this.spaceBefore+W+this.type+this.spaceAfter}}function te(M,D){let F=[];for(let ie=M;ie&&ie.name!="Document";ie=ie.parent)(ie.name=="ListItem"||ie.name=="Blockquote"||ie.name=="FencedCode")&&F.push(ie);let W=[];for(let ie=F.length-1;ie>=0;ie--){let Re=F[ie],Je,ht=D.lineAt(Re.from),wt=Re.from-ht.from;if(Re.name=="FencedCode")W.push(new ne(Re,wt,wt,"","","",null));else if(Re.name=="Blockquote"&&(Je=/^ *>( ?)/.exec(ht.text.slice(wt))))W.push(new ne(Re,wt,wt+Je[0].length,"",Je[1],">",null));else if(Re.name=="ListItem"&&Re.parent.name=="OrderedList"&&(Je=/^( *)\d+([.)])( *)/.exec(ht.text.slice(wt)))){let en=Je[3],nn=Je[0].length;en.length>=4&&(en=en.slice(0,en.length-4),nn-=4),W.push(new ne(Re.parent,wt,wt+nn,Je[1],en,Je[2],Re))}else if(Re.name=="ListItem"&&Re.parent.name=="BulletList"&&(Je=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(ht.text.slice(wt)))){let en=Je[4],nn=Je[0].length;en.length>4&&(en=en.slice(0,en.length-4),nn-=4);let Cr=Je[2];Je[3]&&(Cr+=Je[3].replace(/[xX]/," ")),W.push(new ne(Re.parent,wt,wt+nn,Je[1],en,Cr,Re))}}return W}function _e(M,D){return/^(\s*)(\d+)(?=[.)])/.exec(D.sliceString(M.from,M.from+10))}function ze(M,D,F,W=0){for(let ie=-1,Re=M;;){if(Re.name=="ListItem"){let ht=_e(Re,D),wt=+ht[2];if(ie>=0){if(wt!=ie+1)return;F.push({from:Re.from+ht[1].length,to:Re.from+ht[0].length,insert:String(ie+2+W)})}ie=wt}let Je=Re.nextSibling;if(!Je)break;Re=Je}}function pt(M,D){let F=/^[ \t]*/.exec(M)[0].length;if(!F||D.facet(Ue.c)!=" ")return M;let W=(0,ue.IS)(M,4,F),ie="";for(let Re=W;Re>0;)Re>=4?(ie+=" ",Re-=4):(ie+=" ",Re--);return ie+M.slice(F)}const Dt=({state:M,dispatch:D})=>{let F=(0,Ue.qz)(M),{doc:W}=M,ie=null,Re=M.changeByRange(Je=>{if(!Je.empty||!U.isActiveAt(M,Je.from))return ie={range:Je};let ht=Je.from,wt=W.lineAt(ht),en=te(F.resolveInner(ht,-1),W);for(;en.length&&en[en.length-1].from>ht-wt.from;)en.pop();if(!en.length)return ie={range:Je};let nn=en[en.length-1];if(nn.to-nn.spaceAfter.length>ht-wt.from)return ie={range:Je};let Cr=ht>=nn.to-nn.spaceAfter.length&&!/\S/.test(wt.text.slice(nn.to));if(nn.item&&Cr){let ce=nn.node.firstChild,B=nn.node.getChild("ListItem","ListItem");if(ce.to>=ht||B&&B.to0&&!/[^\s>]/.test(W.lineAt(wt.from-1).text)){let J=en.length>1?en[en.length-2]:null,me,Le="";J&&J.item?(me=wt.from+J.from,Le=J.marker(W,1)):me=wt.from+(J?J.to:0);let Be=[{from:me,to:ht,insert:Le}];return nn.node.name=="OrderedList"&&ze(nn.item,W,Be,-2),J&&J.node.name=="OrderedList"&&ze(J.item,W,Be),{range:ue.jT.cursor(me+Le.length),changes:Be}}else{let J=cn(en,M,wt);return{range:ue.jT.cursor(ht+J.length+1),changes:{from:wt.from,insert:J+M.lineBreak}}}}if(nn.node.name=="Blockquote"&&Cr&&wt.from){let ce=W.lineAt(wt.from-1),B=/>\s*$/.exec(ce.text);if(B&&B.index==nn.from){let J=M.changes([{from:ce.from+B.index,to:ce.to},{from:wt.from+nn.from,to:wt.to}]);return{range:Je.map(J),changes:J}}}let dn=[];nn.node.name=="OrderedList"&&ze(nn.item,W,dn);let cr=nn.item&&nn.item.from]*/.exec(wt.text)[0].length>=nn.to)for(let ce=0,B=en.length-1;ce<=B;ce++)$r+=ce==B&&!cr?en[ce].marker(W,1):en[ce].blank(cewt.from&&/\s/.test(wt.text.charAt(_r-wt.from-1));)_r--;return $r=pt($r,M),Rn(nn.node,M.doc)&&($r=cn(en,M,wt)+M.lineBreak+$r),dn.push({from:_r,to:ht,insert:M.lineBreak+$r}),{range:ue.jT.cursor(_r+$r.length+1),changes:dn}});return ie?!1:(D(M.update(Re,{scrollIntoView:!0,userEvent:"input"})),!0)};function Zt(M){return M.name=="QuoteMark"||M.name=="ListMark"}function Rn(M,D){if(M.name!="OrderedList"&&M.name!="BulletList")return!1;let F=M.firstChild,W=M.getChild("ListItem","ListItem");if(!W)return!1;let ie=D.lineAt(F.to),Re=D.lineAt(W.from),Je=/^[\s>]*$/.test(ie.text);return ie.number+(Je?0:1){let F=(0,Ue.qz)(M),W=null,ie=M.changeByRange(Re=>{let Je=Re.from,{doc:ht}=M;if(Re.empty&&U.isActiveAt(M,Re.from)){let wt=ht.lineAt(Je),en=te(Fr(F,Je),ht);if(en.length){let nn=en[en.length-1],Cr=nn.to-nn.spaceAfter.length+(nn.spaceAfter?1:0);if(Je-wt.from>Cr&&!/\S/.test(wt.text.slice(Cr,Je-wt.from)))return{range:ue.jT.cursor(wt.from+Cr),changes:{from:wt.from+Cr,to:Je}};if(Je-wt.from==Cr&&(!nn.item||wt.from<=nn.item.from||!/\S/.test(wt.text.slice(0,nn.to)))){let dn=wt.from+nn.from;if(nn.item&&nn.node.fromB.concat(ce):void 0})}const In=new ue.md;class ft{constructor(B,J,me=[],Le=""){this.data=B,this.name=Le,Me.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(Me.yy.prototype,"tree",{get(){return gt(this)}}),this.parser=J,this.extension=[Un.of(this),Me.yy.languageData.of((Be,nt,ct)=>{let Ft=Pt(Be,nt,ct),Tn=Ft.type.prop(Ee);if(!Tn)return[];let vr=Be.facet(Tn),hi=Ft.type.prop(In);if(hi){let ms=Ft.resolve(nt-Ft.from,ct);for(let gs of hi)if(gs.test(ms,Be)){let Ss=Be.facet(gs.facet);return gs.type=="replace"?Ss:Ss.concat(vr)}}return vr})].concat(me)}isActiveAt(B,J,me=-1){return Pt(B,J,me).type.prop(Ee)==this.data}findRegions(B){let J=B.facet(Un);if((J==null?void 0:J.data)==this.data)return[{from:0,to:B.doc.length}];if(!J||!J.allowsNesting)return[];let me=[],Le=(Be,nt)=>{if(Be.prop(Ee)==this.data){me.push({from:nt,to:nt+Be.length});return}let ct=Be.prop(ue.md.mounted);if(ct){if(ct.tree.prop(Ee)==this.data){if(ct.overlay)for(let Ft of ct.overlay)me.push({from:Ft.from+nt,to:Ft.to+nt});else me.push({from:nt,to:nt+Be.length});return}else if(ct.overlay){let Ft=me.length;if(Le(ct.tree,ct.overlay[0].from+nt),me.length>Ft)return}}for(let Ft=0;Ftme.isTop?J:void 0)]}),B.name)}configure(B,J){return new Hn(this.data,this.parser.configure(B),J||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function gt(ce){let B=ce.field(ft.state,!1);return B?B.tree:ue.mp.empty}function On(ce,B,J=50){var me;let Le=(me=ce.field(ft.state,!1))===null||me===void 0?void 0:me.context;if(!Le)return null;let Be=Le.viewport;Le.updateViewport({from:0,to:B});let nt=Le.isDone(B)||Le.work(J,B)?Le.tree:null;return Le.updateViewport(Be),nt}function st(ce,B=ce.doc.length){var J;return((J=ce.field(ft.state,!1))===null||J===void 0?void 0:J.context.isDone(B))||!1}function Pn(ce,B=ce.viewport.to,J=100){let me=On(ce.state,B,J);return me!=gt(ce.state)&&ce.dispatch({}),!!me}function Nt(ce){var B;return((B=ce.plugin(yr))===null||B===void 0?void 0:B.isWorking())||!1}class Kn{constructor(B){this.doc=B,this.cursorPos=0,this.string="",this.cursor=B.iter()}get length(){return this.doc.length}syncTo(B){return this.string=this.cursor.next(B-this.cursorPos).value,this.cursorPos=B+this.string.length,this.cursorPos-this.string.length}chunk(B){return this.syncTo(B),this.string}get lineChunks(){return!0}read(B,J){let me=this.cursorPos-this.string.length;return B=this.cursorPos?this.doc.sliceString(B,J):this.string.slice(B-me,J-me)}}let Nn=null;class yn{constructor(B,J,me=[],Le,Be,nt,ct,Ft){this.parser=B,this.state=J,this.fragments=me,this.tree=Le,this.treeLen=Be,this.viewport=nt,this.skipped=ct,this.scheduleOn=Ft,this.parse=null,this.tempSkipped=[]}static create(B,J,me){return new yn(B,J,[],ue.mp.empty,0,me,[],null)}startParse(){return this.parser.startParse(new Kn(this.state.doc),this.fragments)}work(B,J){return J!=null&&J>=this.state.doc.length&&(J=void 0),this.tree!=ue.mp.empty&&this.isDone(J!=null?J:this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var me;if(typeof B=="number"){let Le=Date.now()+B;B=()=>Date.now()>Le}for(this.parse||(this.parse=this.startParse()),J!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>J)&&J=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>B)&&this.parse.stopAt(B),this.withContext(()=>{for(;!(J=this.parse.advance()););}),this.treeLen=B,this.tree=J,this.fragments=this.withoutTempSkipped(ue.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(B){let J=Nn;Nn=this;try{return B()}finally{Nn=J}}withoutTempSkipped(B){for(let J;J=this.tempSkipped.pop();)B=Zn(B,J.from,J.to);return B}changes(B,J){let{fragments:me,tree:Le,treeLen:Be,viewport:nt,skipped:ct}=this;if(this.takeTree(),!B.empty){let Ft=[];if(B.iterChangedRanges((Tn,vr,hi,ms)=>Ft.push({fromA:Tn,toA:vr,fromB:hi,toB:ms})),me=ue.i9.applyChanges(me,Ft),Le=ue.mp.empty,Be=0,nt={from:B.mapPos(nt.from,-1),to:B.mapPos(nt.to,1)},this.skipped.length){ct=[];for(let Tn of this.skipped){let vr=B.mapPos(Tn.from,1),hi=B.mapPos(Tn.to,-1);vrB.from&&(this.fragments=Zn(this.fragments,Le,Be),this.skipped.splice(me--,1))}return this.skipped.length>=J?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(B,J){this.skipped.push({from:B,to:J})}static getSkippingParser(B){return new class extends ue._b{createParse(J,me,Le){let Be=Le[0].from,nt=Le[Le.length-1].to;return{parsedPos:Be,advance(){let Ft=Nn;if(Ft){for(let Tn of Le)Ft.tempSkipped.push(Tn);B&&(Ft.scheduleOn=Ft.scheduleOn?Promise.all([Ft.scheduleOn,B]):B)}return this.parsedPos=nt,new ue.mp(ue.Jq.none,[],[],nt-Be)},stoppedAt:null,stopAt(){}}}}}isDone(B){B=Math.min(B,this.state.doc.length);let J=this.fragments;return this.treeLen>=B&&J.length&&J[0].from==0&&J[0].to>=B}static get(){return Nn}}function Zn(ce,B,J){return ue.i9.applyChanges(ce,[{fromA:B,toA:J,fromB:B,toB:J}])}class Mn{constructor(B){this.context=B,this.tree=B.tree}apply(B){if(!B.docChanged&&this.tree==this.context.tree)return this;let J=this.context.changes(B.changes,B.state),me=this.context.treeLen==B.startState.doc.length?void 0:Math.max(B.changes.mapPos(this.context.treeLen),J.viewport.to);return J.work(20,me)||J.takeTree(),new Mn(J)}static init(B){let J=Math.min(3e3,B.doc.length),me=yn.create(B.facet(Un).parser,B,{from:0,to:J});return me.work(20,J)||me.takeTree(),new Mn(me)}}ft.state=Me.QQ.define({create:Mn.init,update(ce,B){for(let J of B.effects)if(J.is(ft.setState))return J.value;return B.startState.facet(Un)!=B.state.facet(Un)?Mn.init(B.state):ce.apply(B)}});let Tr=ce=>{let B=setTimeout(()=>ce(),500);return()=>clearTimeout(B)};typeof requestIdleCallback!="undefined"&&(Tr=ce=>{let B=-1,J=setTimeout(()=>{B=requestIdleCallback(ce,{timeout:400})},100);return()=>B<0?clearTimeout(J):cancelIdleCallback(B)});const Br=typeof navigator!="undefined"&&(!((De=navigator.scheduling)===null||De===void 0)&&De.isInputPending)?()=>navigator.scheduling.isInputPending():null,yr=Ue.lg.fromClass(class{constructor(B){this.view=B,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(B){let J=this.view.state.field(ft.state).context;(J.updateViewport(B.view.viewport)||this.view.viewport.to>J.treeLen)&&this.scheduleWork(),(B.docChanged||B.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(J)}scheduleWork(){if(this.working)return;let{state:B}=this.view,J=B.field(ft.state);(J.tree!=J.context.tree||!J.context.isDone(B.doc.length))&&(this.working=Tr(this.work))}work(B){this.working=null;let J=Date.now();if(this.chunkEndLe+1e3,Ft=Be.context.work(()=>Br&&Br()||Date.now()>nt,Le+(ct?0:1e5));this.chunkBudget-=Date.now()-J,(Ft||this.chunkBudget<=0)&&(Be.context.takeTree(),this.view.dispatch({effects:ft.setState.of(new Mn(Be.context))})),this.chunkBudget>0&&!(Ft&&!ct)&&this.scheduleWork(),this.checkAsyncSchedule(Be.context)}checkAsyncSchedule(B){B.scheduleOn&&(this.workScheduled++,B.scheduleOn.then(()=>this.scheduleWork()).catch(J=>(0,Ue.OO)(this.view.state,J)).then(()=>this.workScheduled--),B.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Un=Me.r$.define({combine(ce){return ce.length?ce[0]:null},enables:ce=>[ft.state,yr,Ue.tk.contentAttributes.compute([ce],B=>{let J=B.facet(ce);return J&&J.name?{"data-language":J.name}:{}})]});class Xt{constructor(B,J=[]){this.language=B,this.support=J,this.extension=[B,J]}}class sn{constructor(B,J,me,Le,Be,nt=void 0){this.name=B,this.alias=J,this.extensions=me,this.filename=Le,this.loadFunc=Be,this.support=nt,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(B=>this.support=B,B=>{throw this.loading=null,B}))}static of(B){let{load:J,support:me}=B;if(!J){if(!me)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");J=()=>Promise.resolve(me)}return new sn(B.name,(B.alias||[]).concat(B.name).map(Le=>Le.toLowerCase()),B.extensions||[],B.filename,J,me)}static matchFilename(B,J){for(let Le of B)if(Le.filename&&Le.filename.test(J))return Le;let me=/\.([^.]+)$/.exec(J);if(me){for(let Le of B)if(Le.extensions.indexOf(me[1])>-1)return Le}return null}static matchLanguageName(B,J,me=!0){J=J.toLowerCase();for(let Le of B)if(Le.alias.some(Be=>Be==J))return Le;if(me)for(let Le of B)for(let Be of Le.alias){let nt=J.indexOf(Be);if(nt>-1&&(Be.length>2||!/\w/.test(J[nt-1])&&!/\w/.test(J[nt+Be.length])))return Le}return null}}const Yt=Me.r$.define(),Ut=Me.r$.define({combine:ce=>{if(!ce.length)return" ";let B=ce[0];if(!B||/\S/.test(B)||Array.from(B).some(J=>J!=B[0]))throw new Error("Invalid indent unit: "+JSON.stringify(ce[0]));return B}});function Qt(ce){let B=ce.facet(Ut);return B.charCodeAt(0)==9?ce.tabSize*B.length:B.length}function X(ce,B){let J="",me=ce.tabSize,Le=ce.facet(Ut)[0];if(Le==" "){for(;B>=me;)J+=" ",B-=me;Le=" "}for(let Be=0;Be=B?$e(ce,J,B):null}function Ne(ce,B,J){let me=Object.create(null),Le=new ye(ce,{overrideIndentation:nt=>{var ct;return(ct=me[nt])!==null&&ct!==void 0?ct:-1}}),Be=[];for(let nt=B;nt<=J;){let ct=ce.doc.lineAt(nt);nt=ct.to+1;let Ft=be(Le,ct.from);if(Ft==null)continue;/\S/.test(ct.text)||(Ft=0);let Tn=/^\s*/.exec(ct.text)[0],vr=X(ce,Ft);Tn!=vr&&(me[ct.from]=Ft,Be.push({from:ct.from,to:ct.from+Tn.length,insert:vr}))}return ce.changes(Be)}class ye{constructor(B,J={}){this.state=B,this.options=J,this.unit=Qt(B)}lineAt(B,J=1){let me=this.state.doc.lineAt(B),{simulateBreak:Le,simulateDoubleBreak:Be}=this.options;return Le!=null&&Le>=me.from&&Le<=me.to?Be&&Le==B?{text:"",from:B}:(J<0?Le-1&&(Be+=nt-this.countColumn(me,me.search(/\S|$/))),Be}countColumn(B,J=B.length){return(0,Me.IS)(B,this.state.tabSize,J)}lineIndent(B,J=1){let{text:me,from:Le}=this.lineAt(B,J),Be=this.options.overrideIndentation;if(Be){let nt=Be(Le);if(nt>-1)return nt}return this.countColumn(me,me.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Ze=new ue.md;function $e(ce,B,J){let me=B.resolveStack(J),Le=me.node.enterUnfinishedNodesBefore(J);if(Le!=me.node){let Be=[];for(let nt=Le;nt!=me.node;nt=nt.parent)Be.push(nt);for(let nt=Be.length-1;nt>=0;nt--)me={node:Be[nt],next:me}}return qe(me,ce,J)}function qe(ce,B,J){for(let me=ce;me;me=me.next){let Le=Vt(me.node);if(Le)return Le(an.create(B,J,me))}return 0}function ut(ce){return ce.pos==ce.options.simulateBreak&&ce.options.simulateDoubleBreak}function Vt(ce){let B=ce.type.prop(Ze);if(B)return B;let J=ce.firstChild,me;if(J&&(me=J.type.prop(ue.md.closedBy))){let Le=ce.lastChild,Be=Le&&me.indexOf(Le.name)>-1;return nt=>fr(nt,!0,1,void 0,Be&&!ut(nt)?Le.from:void 0)}return ce.parent==null?vn:null}function vn(){return 0}class an extends ye{constructor(B,J,me){super(B.state,B.options),this.base=B,this.pos=J,this.context=me}get node(){return this.context.node}static create(B,J,me){return new an(B,J,me)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(B){let J=this.state.doc.lineAt(B.from);for(;;){let me=B.resolve(J.from);for(;me.parent&&me.parent.from==me.from;)me=me.parent;if(Fn(me,B))break;J=this.state.doc.lineAt(me.from)}return this.lineIndent(J.from)}continue(){return qe(this.context.next,this.base,this.pos)}}function Fn(ce,B){for(let J=B;J;J=J.parent)if(ce==J)return!0;return!1}function Sn(ce){let B=ce.node,J=B.childAfter(B.from),me=B.lastChild;if(!J)return null;let Le=ce.options.simulateBreak,Be=ce.state.doc.lineAt(J.from),nt=Le==null||Le<=Be.from?Be.to:Math.min(Be.to,Le);for(let ct=J.to;;){let Ft=B.childAfter(ct);if(!Ft||Ft==me)return null;if(!Ft.type.isSkipped)return Ft.fromfr(me,B,J,ce)}function fr(ce,B,J,me,Le){let Be=ce.textAfter,nt=Be.match(/^\s*/)[0].length,ct=me&&Be.slice(nt,nt+me.length)==me||Le==ce.pos+nt,Ft=B?Sn(ce):null;return Ft?ct?ce.column(Ft.from):ce.column(Ft.to):ce.baseIndent+(ct?0:ce.unit*J)}const ir=ce=>ce.baseIndent;function un({except:ce,units:B=1}={}){return J=>{let me=ce&&ce.test(J.textAfter);return J.baseIndent+(me?0:B*J.unit)}}const zt=200;function et(){return Me.yy.transactionFilter.of(ce=>{if(!ce.docChanged||!ce.isUserEvent("input.type")&&!ce.isUserEvent("input.complete"))return ce;let B=ce.startState.languageDataAt("indentOnInput",ce.startState.selection.main.head);if(!B.length)return ce;let J=ce.newDoc,{head:me}=ce.newSelection.main,Le=J.lineAt(me);if(me>Le.from+zt)return ce;let Be=J.sliceString(Le.from,me);if(!B.some(Tn=>Tn.test(Be)))return ce;let{state:nt}=ce,ct=-1,Ft=[];for(let{head:Tn}of nt.selection.ranges){let vr=nt.doc.lineAt(Tn);if(vr.from==ct)continue;ct=vr.from;let hi=be(nt,vr.from);if(hi==null)continue;let ms=/^\s*/.exec(vr.text)[0],gs=X(nt,hi);ms!=gs&&Ft.push({from:vr.from,to:vr.from+ms.length,insert:gs})}return Ft.length?[ce,{changes:Ft,sequential:!0}]:ce})}const Z=Me.r$.define(),re=new ue.md;function we(ce){let B=ce.firstChild,J=ce.lastChild;return B&&B.toJ)continue;if(Be&&ct.from=B&&Tn.to>J&&(Be=Tn)}}return Be}function Ce(ce){let B=ce.lastChild;return B&&B.to==ce.to&&B.type.isError}function tt(ce,B,J){for(let me of ce.facet(Z)){let Le=me(ce,B,J);if(Le)return Le}return ve(ce,B,J)}function Rt(ce,B){let J=B.mapPos(ce.from,1),me=B.mapPos(ce.to,-1);return J>=me?void 0:{from:J,to:me}}const Kt=Me.Py.define({map:Rt}),Cn=Me.Py.define({map:Rt});function bn(ce){let B=[];for(let{head:J}of ce.state.selection.ranges)B.some(me=>me.from<=J&&me.to>=J)||B.push(ce.lineBlockAt(J));return B}const Dn=Me.QQ.define({create(){return Ue.p.none},update(ce,B){ce=ce.map(B.changes);for(let J of B.effects)if(J.is(Kt)&&!Pr(ce,J.value.from,J.value.to)){let{preparePlaceholder:me}=B.state.facet(Tt),Le=me?Ue.p.replace({widget:new qn(me(B.state,J.value))}):At;ce=ce.update({add:[Le.range(J.value.from,J.value.to)]})}else J.is(Cn)&&(ce=ce.update({filter:(me,Le)=>J.value.from!=me||J.value.to!=Le,filterFrom:J.value.from,filterTo:J.value.to}));if(B.selection){let J=!1,{head:me}=B.selection.main;ce.between(me,me,(Le,Be)=>{Leme&&(J=!0)}),J&&(ce=ce.update({filterFrom:me,filterTo:me,filter:(Le,Be)=>Be<=me||Le>=me}))}return ce},provide:ce=>Ue.tk.decorations.from(ce),toJSON(ce,B){let J=[];return ce.between(0,B.doc.length,(me,Le)=>{J.push(me,Le)}),J},fromJSON(ce){if(!Array.isArray(ce)||ce.length%2)throw new RangeError("Invalid JSON for fold state");let B=[];for(let J=0;J{(!Le||Le.from>Be)&&(Le={from:Be,to:nt})}),Le}function Pr(ce,B,J){let me=!1;return ce.between(B,B,(Le,Be)=>{Le==B&&Be==J&&(me=!0)}),me}function Wr(ce,B){return ce.field(Dn,!1)?B:B.concat(Me.Py.appendConfig.of(hn()))}const Wn=ce=>{for(let B of bn(ce)){let J=tt(ce.state,B.from,B.to);if(J)return ce.dispatch({effects:Wr(ce.state,[Kt.of(J),Gr(ce,J)])}),!0}return!1},zr=ce=>{if(!ce.state.field(Dn,!1))return!1;let B=[];for(let J of bn(ce)){let me=$n(ce.state,J.from,J.to);me&&B.push(Cn.of(me),Gr(ce,me,!1))}return B.length&&ce.dispatch({effects:B}),B.length>0};function Gr(ce,B,J=!0){let me=ce.state.doc.lineAt(B.from).number,Le=ce.state.doc.lineAt(B.to).number;return Ue.tk.announce.of(`${ce.state.phrase(J?"Folded lines":"Unfolded lines")} ${me} ${ce.state.phrase("to")} ${Le}.`)}const Yr=ce=>{let{state:B}=ce,J=[];for(let me=0;me{let B=ce.state.field(Dn,!1);if(!B||!B.size)return!1;let J=[];return B.between(0,ce.state.doc.length,(me,Le)=>{J.push(Cn.of({from:me,to:Le}))}),ce.dispatch({effects:J}),!0};function er(ce,B){for(let J=B;;){let me=tt(ce.state,J.from,J.to);if(me&&me.to>B.from)return me;if(!J.from)return null;J=ce.lineBlockAt(J.from-1)}}const Ye=ce=>{let B=[];for(let J of bn(ce)){let me=$n(ce.state,J.from,J.to);if(me)B.push(Cn.of(me),Gr(ce,me,!1));else{let Le=er(ce,J);Le&&B.push(Kt.of(Le),Gr(ce,Le))}}return B.length>0&&ce.dispatch({effects:Wr(ce.state,B)}),!!B.length},bt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Wn},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:zr},{key:"Ctrl-Alt-[",run:Yr},{key:"Ctrl-Alt-]",run:Ti}],Mt={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},Tt=Me.r$.define({combine(ce){return(0,Me.BO)(ce,Mt)}});function hn(ce){let B=[Dn,ei];return ce&&B.push(Tt.of(ce)),B}function on(ce,B){let{state:J}=ce,me=J.facet(Tt),Le=nt=>{let ct=ce.lineBlockAt(ce.posAtDOM(nt.target)),Ft=$n(ce.state,ct.from,ct.to);Ft&&ce.dispatch({effects:Cn.of(Ft)}),nt.preventDefault()};if(me.placeholderDOM)return me.placeholderDOM(ce,Le,B);let Be=document.createElement("span");return Be.textContent=me.placeholderText,Be.setAttribute("aria-label",J.phrase("folded code")),Be.title=J.phrase("unfold"),Be.className="cm-foldPlaceholder",Be.onclick=Le,Be}const At=Ue.p.replace({widget:new class extends Ue.l9{toDOM(ce){return on(ce,null)}}});class qn extends Ue.l9{constructor(B){super(),this.value=B}eq(B){return this.value==B.value}toDOM(B){return on(B,this.value)}}const Ir={openText:"\u2304",closedText:"\u203A",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class rr extends Ue.SJ{constructor(B,J){super(),this.config=B,this.open=J}eq(B){return this.config==B.config&&this.open==B.open}toDOM(B){if(this.config.markerDOM)return this.config.markerDOM(this.open);let J=document.createElement("span");return J.textContent=this.open?this.config.openText:this.config.closedText,J.title=B.state.phrase(this.open?"Fold line":"Unfold line"),J}}function Ar(ce={}){let B=Object.assign(Object.assign({},Ir),ce),J=new rr(B,!0),me=new rr(B,!1),Le=Ue.lg.fromClass(class{constructor(nt){this.from=nt.viewport.from,this.markers=this.buildMarkers(nt)}update(nt){(nt.docChanged||nt.viewportChanged||nt.startState.facet(Un)!=nt.state.facet(Un)||nt.startState.field(Dn,!1)!=nt.state.field(Dn,!1)||gt(nt.startState)!=gt(nt.state)||B.foldingChanged(nt))&&(this.markers=this.buildMarkers(nt.view))}buildMarkers(nt){let ct=new Me.f_;for(let Ft of nt.viewportLineBlocks){let Tn=$n(nt.state,Ft.from,Ft.to)?me:tt(nt.state,Ft.from,Ft.to)?J:null;Tn&&ct.add(Ft.from,Ft.from,Tn)}return ct.finish()}}),{domEventHandlers:Be}=B;return[Le,(0,Ue.v5)({class:"cm-foldGutter",markers(nt){var ct;return((ct=nt.plugin(Le))===null||ct===void 0?void 0:ct.markers)||Me.Xs.empty},initialSpacer(){return new rr(B,!1)},domEventHandlers:Object.assign(Object.assign({},Be),{click:(nt,ct,Ft)=>{if(Be.click&&Be.click(nt,ct,Ft))return!0;let Tn=$n(nt.state,ct.from,ct.to);if(Tn)return nt.dispatch({effects:Cn.of(Tn)}),!0;let vr=tt(nt.state,ct.from,ct.to);return vr?(nt.dispatch({effects:Kt.of(vr)}),!0):!1}})}),hn()]}const ei=Ue.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class qr{constructor(B,J){this.specs=B;let me;function Le(ct){let Ft=En.V.newName();return(me||(me=Object.create(null)))["."+Ft]=ct,Ft}const Be=typeof J.all=="string"?J.all:J.all?Le(J.all):void 0,nt=J.scope;this.scope=nt instanceof ft?ct=>ct.prop(Ee)==nt.data:nt?ct=>ct==nt:void 0,this.style=(0,lt.QR)(B.map(ct=>({tag:ct.tag,class:ct.class||Le(Object.assign({},ct,{tag:null}))})),{all:Be}).style,this.module=me?new En.V(me):null,this.themeType=J.themeType}static define(B,J){return new qr(B,J||{})}}const ur=Me.r$.define(),Vr=Me.r$.define({combine(ce){return ce.length?[ce[0]]:null}});function Er(ce){let B=ce.facet(ur);return B.length?B:ce.facet(Vr)}function ki(ce,B){let J=[Gi],me;return ce instanceof qr&&(ce.module&&J.push(Ue.tk.styleModule.of(ce.module)),me=ce.themeType),B!=null&&B.fallback?J.push(Vr.of(ce)):me?J.push(ur.computeN([Ue.tk.darkTheme],Le=>Le.facet(Ue.tk.darkTheme)==(me=="dark")?[ce]:[])):J.push(ur.of(ce)),J}function oi(ce,B,J){let me=Er(ce),Le=null;if(me){for(let Be of me)if(!Be.scope||J&&Be.scope(J)){let nt=Be.style(B);nt&&(Le=Le?Le+" "+nt:nt)}}return Le}class li{constructor(B){this.markCache=Object.create(null),this.tree=gt(B.state),this.decorations=this.buildDeco(B,Er(B.state)),this.decoratedTo=B.viewport.to}update(B){let J=gt(B.state),me=Er(B.state),Le=me!=Er(B.startState),{viewport:Be}=B.view,nt=B.changes.mapPos(this.decoratedTo,1);J.length=Be.to?(this.decorations=this.decorations.map(B.changes),this.decoratedTo=nt):(J!=this.tree||B.viewportChanged||Le)&&(this.tree=J,this.decorations=this.buildDeco(B.view,me),this.decoratedTo=Be.to)}buildDeco(B,J){if(!J||!this.tree.length)return Ue.p.none;let me=new Me.f_;for(let{from:Le,to:Be}of B.visibleRanges)(0,lt.bW)(this.tree,J,(nt,ct,Ft)=>{me.add(nt,ct,this.markCache[Ft]||(this.markCache[Ft]=Ue.p.mark({class:Ft})))},Le,Be);return me.finish()}}const Gi=Me.Wl.high(Ue.lg.fromClass(li,{decorations:ce=>ce.decorations})),ii=qr.define([{tag:lt.pJ.meta,color:"#404740"},{tag:lt.pJ.link,textDecoration:"underline"},{tag:lt.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:lt.pJ.emphasis,fontStyle:"italic"},{tag:lt.pJ.strong,fontWeight:"bold"},{tag:lt.pJ.strikethrough,textDecoration:"line-through"},{tag:lt.pJ.keyword,color:"#708"},{tag:[lt.pJ.atom,lt.pJ.bool,lt.pJ.url,lt.pJ.contentSeparator,lt.pJ.labelName],color:"#219"},{tag:[lt.pJ.literal,lt.pJ.inserted],color:"#164"},{tag:[lt.pJ.string,lt.pJ.deleted],color:"#a11"},{tag:[lt.pJ.regexp,lt.pJ.escape,lt.pJ.special(lt.pJ.string)],color:"#e40"},{tag:lt.pJ.definition(lt.pJ.variableName),color:"#00f"},{tag:lt.pJ.local(lt.pJ.variableName),color:"#30a"},{tag:[lt.pJ.typeName,lt.pJ.namespace],color:"#085"},{tag:lt.pJ.className,color:"#167"},{tag:[lt.pJ.special(lt.pJ.variableName),lt.pJ.macroName],color:"#256"},{tag:lt.pJ.definition(lt.pJ.propertyName),color:"#00c"},{tag:lt.pJ.comment,color:"#940"},{tag:lt.pJ.invalid,color:"#f00"}]),Ui=Ue.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Hi=1e4,Ii="()[]{}",Si=Me.r$.define({combine(ce){return(0,Me.BO)(ce,{afterCursor:!0,brackets:Ii,maxScanDistance:Hi,renderMatch:ea})}}),Sr=Ue.p.mark({class:"cm-matchingBracket"}),fs=Ue.p.mark({class:"cm-nonmatchingBracket"});function ea(ce){let B=[],J=ce.matched?Sr:fs;return B.push(J.range(ce.start.from,ce.start.to)),ce.end&&B.push(J.range(ce.end.from,ce.end.to)),B}const na=[Me.QQ.define({create(){return Ue.p.none},update(ce,B){if(!B.docChanged&&!B.selection)return ce;let J=[],me=B.state.facet(Si);for(let Le of B.state.selection.ranges){if(!Le.empty)continue;let Be=V(B.state,Le.head,-1,me)||Le.head>0&&V(B.state,Le.head-1,1,me)||me.afterCursor&&(V(B.state,Le.head,1,me)||Le.headUe.tk.decorations.from(ce)}),Ui];function ke(ce={}){return[Si.of(ce),na]}const A=new ue.md;function _(ce,B,J){let me=ce.prop(B<0?ue.md.openedBy:ue.md.closedBy);if(me)return me;if(ce.name.length==1){let Le=J.indexOf(ce.name);if(Le>-1&&Le%2==(B<0?1:0))return[J[Le+B]]}return null}function U(ce){let B=ce.type.prop(A);return B?B(ce.node):ce}function V(ce,B,J,me={}){let Le=me.maxScanDistance||Hi,Be=me.brackets||Ii,nt=gt(ce),ct=nt.resolveInner(B,J);for(let Ft=ct;Ft;Ft=Ft.parent){let Tn=_(Ft.type,J,Be);if(Tn&&Ft.from0?B>=vr.from&&Bvr.from&&B<=vr.to))return ne(ce,B,J,Ft,vr,Tn,Be)}}return te(ce,B,J,nt,ct.type,Le,Be)}function ne(ce,B,J,me,Le,Be,nt){let ct=me.parent,Ft={from:Le.from,to:Le.to},Tn=0,vr=ct==null?void 0:ct.cursor();if(vr&&(J<0?vr.childBefore(me.from):vr.childAfter(me.to)))do if(J<0?vr.to<=me.from:vr.from>=me.to){if(Tn==0&&Be.indexOf(vr.type.name)>-1&&vr.from0)return null;let Tn={from:J<0?B-1:B,to:J>0?B+1:B},vr=ce.doc.iterRange(B,J>0?ce.doc.length:0),hi=0;for(let ms=0;!vr.next().done&&ms<=Be;){let gs=vr.value;J<0&&(ms+=gs.length);let Ss=B+ms*J;for(let _a=J>0?0:gs.length-1,pd=J>0?gs.length:-1;_a!=pd;_a+=J){let Tl=nt.indexOf(gs[_a]);if(!(Tl<0||me.resolveInner(Ss+_a,1).type!=Le))if(Tl%2==0==J>0)hi++;else{if(hi==1)return{start:Tn,end:{from:Ss+_a,to:Ss+_a+1},matched:Tl>>1==Ft>>1};hi--}}J>0&&(ms+=gs.length)}return vr.done?{start:Tn,matched:!1}:null}function _e(ce,B,J,me=0,Le=0){B==null&&(B=ce.search(/[^\s\u00a0]/),B==-1&&(B=ce.length));let Be=Le;for(let nt=me;nt=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.posJ}eatSpace(){let B=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>B}skipToEnd(){this.pos=this.string.length}skipTo(B){let J=this.string.indexOf(B,this.pos);if(J>-1)return this.pos=J,!0}backUp(B){this.pos-=B}column(){return this.lastColumnPosme?nt.toLowerCase():nt,Be=this.string.substr(this.pos,B.length);return Le(Be)==Le(B)?(J!==!1&&(this.pos+=B.length),!0):null}else{let Le=this.string.slice(this.pos).match(B);return Le&&Le.index>0?null:(Le&&J!==!1&&(this.pos+=Le[0].length),Le)}}current(){return this.string.slice(this.start,this.pos)}}function pt(ce){return{name:ce.name||"",token:ce.token,blankLine:ce.blankLine||(()=>{}),startState:ce.startState||(()=>!0),copyState:ce.copyState||Dt,indent:ce.indent||(()=>null),languageData:ce.languageData||{},tokenTable:ce.tokenTable||oe}}function Dt(ce){if(typeof ce!="object")return ce;let B={};for(let J in ce){let me=ce[J];B[J]=me instanceof Array?me.slice():me}return B}const Zt=new WeakMap;class Rn extends ft{constructor(B){let J=xt(B.languageData),me=pt(B),Le,Be=new class extends ue._b{createParse(nt,ct,Ft){return new he(Le,nt,ct,Ft)}};super(J,Be,[Yt.of((nt,ct)=>this.getIndent(nt,ct))],B.name),this.topNode=Je(J),Le=this,this.streamParser=me,this.stateAfter=new ue.md({perNode:!0}),this.tokenTable=B.tokenTable?new F(me.tokenTable):W}static define(B){return new Rn(B)}getIndent(B,J){let me=gt(B.state),Le=me.resolve(J);for(;Le&&Le.type!=this.topNode;)Le=Le.parent;if(!Le)return null;let Be,{overrideIndentation:nt}=B.options;nt&&(Be=Zt.get(B.state),Be!=null&&Be1e4)return null;for(;Ft=me&&J+B.length<=Le&&B.prop(ce.stateAfter);if(Be)return{state:ce.streamParser.copyState(Be),pos:J+B.length};for(let nt=B.children.length-1;nt>=0;nt--){let ct=B.children[nt],Ft=J+B.positions[nt],Tn=ct instanceof ue.mp&&Ft=B.length)return B;!Le&&B.type==ce.topNode&&(Le=!0);for(let Be=B.children.length-1;Be>=0;Be--){let nt=B.positions[Be],ct=B.children[Be],Ft;if(ntJ&&cn(ce,Le.tree,0-Le.offset,J,nt),Ft;if(ct&&(Ft=Fr(ce,Le.tree,J+Le.offset,ct.pos+Le.offset,!1)))return{state:ct.state,tree:Ft}}return{state:ce.streamParser.startState(me?Qt(me):4),tree:ue.mp.empty}}class he{constructor(B,J,me,Le){this.lang=B,this.input=J,this.fragments=me,this.ranges=Le,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=Le[Le.length-1].to;let Be=yn.get(),nt=Le[0].from,{state:ct,tree:Ft}=Xr(B,me,nt,Be==null?void 0:Be.state);this.state=ct,this.parsedPos=this.chunkStart=nt+Ft.length;for(let Tn=0;Tn=J?this.finish():B&&this.parsedPos>=B.viewport.to?(B.skipUntilInView(this.parsedPos,J),this.finish()):null}stopAt(B){this.stoppedAt=B}lineAfter(B){let J=this.input.chunk(B);if(this.input.lineChunks)J==` -`&&(J="");else{let me=J.indexOf(` -`);me>-1&&(J=J.slice(0,me))}return B+J.length<=this.to?J:J.slice(0,this.to-B)}nextLine(){let B=this.parsedPos,J=this.lineAfter(B),me=B+J.length;for(let Le=this.rangeIndex;;){let Be=this.ranges[Le].to;if(Be>=me||(J=J.slice(0,Be-(me-J.length)),Le++,Le==this.ranges.length))break;let nt=this.ranges[Le].from,ct=this.lineAfter(nt);J+=ct,me=nt+ct.length}return{line:J,end:me}}skipGapsTo(B,J,me){for(;;){let Le=this.ranges[this.rangeIndex].to,Be=B+J;if(me>0?Le>Be:Le>=Be)break;let nt=this.ranges[++this.rangeIndex].from;J+=nt-Le}return J}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){Be=this.skipGapsTo(J,Be,1),J+=Be;let nt=this.chunk.length;Be=this.skipGapsTo(me,Be,-1),me+=Be,Le+=this.chunk.length-nt}return this.chunk.push(B,J,me,Le),Be}parseLine(B){let{line:J,end:me}=this.nextLine(),Le=0,{streamParser:Be}=this.lang,nt=new ze(J,B?B.state.tabSize:4,B?Qt(B.state):2);if(nt.eol())Be.blankLine(this.state,nt.indentUnit);else for(;!nt.eol();){let ct=Y(Be.token,nt,this.state);if(ct&&(Le=this.emitToken(this.lang.tokenTable.resolve(ct),this.parsedPos+nt.start,this.parsedPos+nt.pos,4,Le)),nt.start>1e4)break}this.parsedPos=me,this.moveRangeIndex(),this.parsedPosB.start)return Le}throw new Error("Stream parser failed to advance stream.")}const oe=Object.create(null),Te=[ue.Jq.none],Ie=new ue.Lj(Te),Xe=[],M=Object.create(null),D=Object.create(null);for(let[ce,B]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])D[ce]=Re(oe,B);class F{constructor(B){this.extra=B,this.table=Object.assign(Object.create(null),D)}resolve(B){return B?this.table[B]||(this.table[B]=Re(this.extra,B)):0}}const W=new F(oe);function ie(ce,B){Xe.indexOf(ce)>-1||(Xe.push(ce),console.warn(B))}function Re(ce,B){let J=[];for(let ct of B.split(" ")){let Ft=[];for(let Tn of ct.split(".")){let vr=ce[Tn]||lt.pJ[Tn];vr?typeof vr=="function"?Ft.length?Ft=Ft.map(vr):ie(Tn,`Modifier ${Tn} used at start of tag`):Ft.length?ie(Tn,`Tag ${Tn} used as modifier`):Ft=Array.isArray(vr)?vr:[vr]:ie(Tn,`Unknown highlighting tag ${Tn}`)}for(let Tn of Ft)J.push(Tn)}if(!J.length)return 0;let me=B.replace(/ /g,"_"),Le=me+" "+J.map(ct=>ct.id),Be=M[Le];if(Be)return Be.id;let nt=M[Le]=ue.Jq.define({id:Te.length,name:me,props:[(0,lt.Gv)({[me]:J})]});return Te.push(nt),nt.id}function Je(ce){let B=ue.Jq.define({id:Te.length,name:"Document",props:[Ee.add(()=>ce)],top:!0});return Te.push(B),B}function ht(ce){return ce.length<=4096&&/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/.test(ce)}function wt(ce){for(let B=ce.iter();!B.next().done;)if(ht(B.value))return!0;return!1}function en(ce){let B=!1;return ce.iterChanges((J,me,Le,Be,nt)=>{!B&&wt(nt)&&(B=!0)}),B}const nn=Me.r$.define({combine:ce=>ce.some(B=>B)});function Cr(ce={}){let B=[dn];return ce.alwaysIsolate&&B.push(nn.of(!0)),B}const dn=Ue.lg.fromClass(class{constructor(ce){this.always=ce.state.facet(nn)||ce.textDirection!=Ue.Nm.LTR||ce.state.facet(Ue.tk.perLineTextDirection),this.hasRTL=!this.always&&wt(ce.state.doc),this.tree=gt(ce.state),this.decorations=this.always||this.hasRTL?cr(ce,this.tree,this.always):Ue.p.none}update(ce){let B=ce.state.facet(nn)||ce.view.textDirection!=Ue.Nm.LTR||ce.state.facet(Ue.tk.perLineTextDirection);if(!B&&!this.hasRTL&&en(ce.changes)&&(this.hasRTL=!0),!B&&!this.hasRTL)return;let J=gt(ce.state);(B!=this.always||J!=this.tree||ce.docChanged||ce.viewportChanged)&&(this.tree=J,this.always=B,this.decorations=cr(ce.view,J,B))}},{provide:ce=>{function B(J){var me,Le;return(Le=(me=J.plugin(ce))===null||me===void 0?void 0:me.decorations)!==null&&Le!==void 0?Le:Ue.p.none}return[Ue.tk.outerDecorations.of(B),Me.Wl.lowest(Ue.tk.bidiIsolatedRanges.of(B))]}});function cr(ce,B,J){let me=new Me.f_,Le=ce.visibleRanges;J||(Le=$r(Le,ce.state.doc));for(let{from:Be,to:nt}of Le)B.iterate({enter:ct=>{let Ft=ct.type.prop(ue.md.isolate);Ft&&me.add(ct.from,ct.to,_r[Ft])},from:Be,to:nt});return me.finish()}function $r(ce,B){let J=B.iter(),me=0,Le=[],Be=null;for(let{from:nt,to:ct}of ce)if(!(Be&&Be.to>nt&&(nt=Be.to,nt>=ct)))for(me+J.value.lengthFt-10?Be.to=Math.min(ct,Tn):Le.push(Be={from:Ft,to:Math.min(ct,Tn)})),Tn>=ct)break;me=Tn,J.next()}return Le}const _r={rtl:Ue.p.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:Ue.Nm.RTL}),ltr:Ue.p.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:Ue.Nm.LTR}),auto:Ue.p.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})}},78120:function(ti,Gn,z){"use strict";z.d(Gn,{BO:function(){return Ar},D0:function(){return hn},Gz:function(){return na},IS:function(){return ta},Py:function(){return Wn},QQ:function(){return Bn},Wl:function(){return un},Xs:function(){return Er},YW:function(){return zr},as:function(){return Xt},bg:function(){return Mn},cp:function(){return Pn},f_:function(){return oi},gc:function(){return yr},gm:function(){return Zn},jT:function(){return ye},n0:function(){return Un},nZ:function(){return Tr},q6:function(){return $n},r$:function(){return qe},uU:function(){return ei},xv:function(){return ue},yy:function(){return rr}});class ue{lineAt(A){if(A<0||A>this.length)throw new RangeError(`Invalid position ${A} in document of length ${this.length}`);return this.lineInner(A,!1,1,0)}line(A){if(A<1||A>this.lines)throw new RangeError(`Invalid line number ${A} in ${this.lines}-line document`);return this.lineInner(A,!0,1,0)}replace(A,_,U){[A,_]=Pt(this,A,_);let V=[];return this.decompose(0,A,V,2),U.length&&U.decompose(0,U.length,V,3),this.decompose(_,this.length,V,1),Ue.from(V,this.length-(_-A)+U.length)}append(A){return this.replace(this.length,this.length,A)}slice(A,_=this.length){[A,_]=Pt(this,A,_);let U=[];return this.decompose(A,_,U,0),Ue.from(U,_-A)}eq(A){if(A==this)return!0;if(A.length!=this.length||A.lines!=this.lines)return!1;let _=this.scanIdentical(A,1),U=this.length-this.scanIdentical(A,-1),V=new Ee(this),ne=new Ee(A);for(let te=_,_e=_;;){if(V.next(te),ne.next(te),te=0,V.lineBreak!=ne.lineBreak||V.done!=ne.done||V.value!=ne.value)return!1;if(_e+=V.value.length,V.done||_e>=U)return!0}}iter(A=1){return new Ee(this,A)}iterRange(A,_=this.length){return new xt(this,A,_)}iterLines(A,_){let U;if(A==null)U=this.iter();else{_==null&&(_=this.lines+1);let V=this.line(A).from;U=this.iterRange(V,Math.max(V,_==this.lines+1?this.length:_<=1?0:this.line(_-1).to))}return new In(U)}toString(){return this.sliceString(0)}toJSON(){let A=[];return this.flatten(A),A}constructor(){}static of(A){if(A.length==0)throw new RangeError("A document must have at least one line");return A.length==1&&!A[0]?ue.empty:A.length<=32?new Me(A):Ue.from(Me.split(A,[]))}}class Me extends ue{constructor(A,_=lt(A)){super(),this.text=A,this.length=_}get lines(){return this.text.length}get children(){return null}lineInner(A,_,U,V){for(let ne=0;;ne++){let te=this.text[ne],_e=V+te.length;if((_?U:_e)>=A)return new ft(V,_e,U,te);V=_e+1,U++}}decompose(A,_,U,V){let ne=A<=0&&_>=this.length?this:new Me(De(this.text,A,_),Math.min(_,this.length)-Math.max(0,A));if(V&1){let te=U.pop(),_e=En(ne.text,te.text.slice(),0,ne.length);if(_e.length<=32)U.push(new Me(_e,te.length+ne.length));else{let ze=_e.length>>1;U.push(new Me(_e.slice(0,ze)),new Me(_e.slice(ze)))}}else U.push(ne)}replace(A,_,U){if(!(U instanceof Me))return super.replace(A,_,U);[A,_]=Pt(this,A,_);let V=En(this.text,En(U.text,De(this.text,0,A)),_),ne=this.length+U.length-(_-A);return V.length<=32?new Me(V,ne):Ue.from(Me.split(V,[]),ne)}sliceString(A,_=this.length,U=` -`){[A,_]=Pt(this,A,_);let V="";for(let ne=0,te=0;ne<=_&&teA&&te&&(V+=U),Ane&&(V+=_e.slice(Math.max(0,A-ne),_-ne)),ne=ze+1}return V}flatten(A){for(let _ of this.text)A.push(_)}scanIdentical(){return 0}static split(A,_){let U=[],V=-1;for(let ne of A)U.push(ne),V+=ne.length+1,U.length==32&&(_.push(new Me(U,V)),U=[],V=-1);return V>-1&&_.push(new Me(U,V)),_}}class Ue extends ue{constructor(A,_){super(),this.children=A,this.length=_,this.lines=0;for(let U of A)this.lines+=U.lines}lineInner(A,_,U,V){for(let ne=0;;ne++){let te=this.children[ne],_e=V+te.length,ze=U+te.lines-1;if((_?ze:_e)>=A)return te.lineInner(A,_,U,V);V=_e+1,U=ze+1}}decompose(A,_,U,V){for(let ne=0,te=0;te<=_&&ne=te){let pt=V&((te<=A?1:0)|(ze>=_?2:0));te>=A&&ze<=_&&!pt?U.push(_e):_e.decompose(A-te,_-te,U,pt)}te=ze+1}}replace(A,_,U){if([A,_]=Pt(this,A,_),U.lines=ne&&_<=_e){let ze=te.replace(A-ne,_-ne,U),pt=this.lines-te.lines+ze.lines;if(ze.lines>4&&ze.lines>pt>>6){let Dt=this.children.slice();return Dt[V]=ze,new Ue(Dt,this.length-(_-A)+U.length)}return super.replace(ne,_e,ze)}ne=_e+1}return super.replace(A,_,U)}sliceString(A,_=this.length,U=` -`){[A,_]=Pt(this,A,_);let V="";for(let ne=0,te=0;neA&&ne&&(V+=U),Ate&&(V+=_e.sliceString(A-te,_-te,U)),te=ze+1}return V}flatten(A){for(let _ of this.children)_.flatten(A)}scanIdentical(A,_){if(!(A instanceof Ue))return 0;let U=0,[V,ne,te,_e]=_>0?[0,0,this.children.length,A.children.length]:[this.children.length-1,A.children.length-1,-1,-1];for(;;V+=_,ne+=_){if(V==te||ne==_e)return U;let ze=this.children[V],pt=A.children[ne];if(ze!=pt)return U+ze.scanIdentical(pt,_);U+=ze.length+1}}static from(A,_=A.reduce((U,V)=>U+V.length+1,-1)){let U=0;for(let cn of A)U+=cn.lines;if(U<32){let cn=[];for(let Fr of A)Fr.flatten(cn);return new Me(cn,_)}let V=Math.max(32,U>>5),ne=V<<1,te=V>>1,_e=[],ze=0,pt=-1,Dt=[];function Zt(cn){let Fr;if(cn.lines>ne&&cn instanceof Ue)for(let Xr of cn.children)Zt(Xr);else cn.lines>te&&(ze>te||!ze)?(Rn(),_e.push(cn)):cn instanceof Me&&ze&&(Fr=Dt[Dt.length-1])instanceof Me&&cn.lines+Fr.lines<=32?(ze+=cn.lines,pt+=cn.length+1,Dt[Dt.length-1]=new Me(Fr.text.concat(cn.text),Fr.length+1+cn.length)):(ze+cn.lines>V&&Rn(),ze+=cn.lines,pt+=cn.length+1,Dt.push(cn))}function Rn(){ze!=0&&(_e.push(Dt.length==1?Dt[0]:Ue.from(Dt,pt)),pt=-1,ze=Dt.length=0)}for(let cn of A)Zt(cn);return Rn(),_e.length==1?_e[0]:new Ue(_e,_)}}ue.empty=new Me([""],0);function lt(ke){let A=-1;for(let _ of ke)A+=_.length+1;return A}function En(ke,A,_=0,U=1e9){for(let V=0,ne=0,te=!0;ne=_&&(ze>U&&(_e=_e.slice(0,U-V)),V<_&&(_e=_e.slice(_-V)),te?(A[A.length-1]+=_e,te=!1):A.push(_e)),V=ze+1}return A}function De(ke,A,_){return En(ke,[""],A,_)}class Ee{constructor(A,_=1){this.dir=_,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[A],this.offsets=[_>0?1:(A instanceof Me?A.text.length:A.children.length)<<1]}nextInner(A,_){for(this.done=this.lineBreak=!1;;){let U=this.nodes.length-1,V=this.nodes[U],ne=this.offsets[U],te=ne>>1,_e=V instanceof Me?V.text.length:V.children.length;if(te==(_>0?_e:0)){if(U==0)return this.done=!0,this.value="",this;_>0&&this.offsets[U-1]++,this.nodes.pop(),this.offsets.pop()}else if((ne&1)==(_>0?0:1)){if(this.offsets[U]+=_,A==0)return this.lineBreak=!0,this.value=` -`,this;A--}else if(V instanceof Me){let ze=V.text[te+(_<0?-1:0)];if(this.offsets[U]+=_,ze.length>Math.max(0,A))return this.value=A==0?ze:_>0?ze.slice(A):ze.slice(0,ze.length-A),this;A-=ze.length}else{let ze=V.children[te+(_<0?-1:0)];A>ze.length?(A-=ze.length,this.offsets[U]+=_):(_<0&&this.offsets[U]--,this.nodes.push(ze),this.offsets.push(_>0?1:(ze instanceof Me?ze.text.length:ze.children.length)<<1))}}}next(A=0){return A<0&&(this.nextInner(-A,-this.dir),A=this.value.length),this.nextInner(A,this.dir)}}class xt{constructor(A,_,U){this.value="",this.done=!1,this.cursor=new Ee(A,_>U?-1:1),this.pos=_>U?A.length:0,this.from=Math.min(_,U),this.to=Math.max(_,U)}nextInner(A,_){if(_<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;A+=Math.max(0,_<0?this.pos-this.to:this.from-this.pos);let U=_<0?this.pos-this.from:this.to-this.pos;A>U&&(A=U),U-=A;let{value:V}=this.cursor.next(A);return this.pos+=(V.length+A)*_,this.value=V.length<=U?V:_<0?V.slice(V.length-U):V.slice(0,U),this.done=!this.value,this}next(A=0){return A<0?A=Math.max(A,this.from-this.pos):A>0&&(A=Math.min(A,this.to-this.pos)),this.nextInner(A,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class In{constructor(A){this.inner=A,this.afterBreak=!0,this.value="",this.done=!1}next(A=0){let{done:_,lineBreak:U,value:V}=this.inner.next(A);return _&&this.afterBreak?(this.value="",this.afterBreak=!1):_?(this.done=!0,this.value=""):U?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=V,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol!="undefined"&&(ue.prototype[Symbol.iterator]=function(){return this.iter()},Ee.prototype[Symbol.iterator]=xt.prototype[Symbol.iterator]=In.prototype[Symbol.iterator]=function(){return this});class ft{constructor(A,_,U,V){this.from=A,this.to=_,this.number=U,this.text=V}get length(){return this.to-this.from}}function Pt(ke,A,_){return A=Math.max(0,Math.min(ke.length,A)),[A,Math.max(A,Math.min(ke.length,_))]}let Hn="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(ke=>ke?parseInt(ke,36):1);for(let ke=1;keke)return Hn[A-1]<=ke;return!1}function On(ke){return ke>=127462&&ke<=127487}const st=8205;function Pn(ke,A,_=!0,U=!0){return(_?Nt:Kn)(ke,A,U)}function Nt(ke,A,_){if(A==ke.length)return A;A&&Nn(ke.charCodeAt(A))&&yn(ke.charCodeAt(A-1))&&A--;let U=Zn(ke,A);for(A+=Tr(U);A=0&&On(Zn(ke,te));)ne++,te-=2;if(ne%2==0)break;A+=2}else break}return A}function Kn(ke,A,_){for(;A>0;){let U=Nt(ke,A-2,_);if(U=56320&&ke<57344}function yn(ke){return ke>=55296&&ke<56320}function Zn(ke,A){let _=ke.charCodeAt(A);if(!yn(_)||A+1==ke.length)return _;let U=ke.charCodeAt(A+1);return Nn(U)?(_-55296<<10)+(U-56320)+65536:_}function Mn(ke){return ke<=65535?String.fromCharCode(ke):(ke-=65536,String.fromCharCode((ke>>10)+55296,(ke&1023)+56320))}function Tr(ke){return ke<65536?1:2}const Br=/\r\n?|\n/;var yr=function(ke){return ke[ke.Simple=0]="Simple",ke[ke.TrackDel=1]="TrackDel",ke[ke.TrackBefore=2]="TrackBefore",ke[ke.TrackAfter=3]="TrackAfter",ke}(yr||(yr={}));class Un{constructor(A){this.sections=A}get length(){let A=0;for(let _=0;_A)return ne+(A-V);ne+=_e}else{if(U!=yr.Simple&&pt>=A&&(U==yr.TrackDel&&VA||U==yr.TrackBefore&&VA))return null;if(pt>A||pt==A&&_<0&&!_e)return A==V||_<0?ne:ne+ze;ne+=ze}V=pt}if(A>V)throw new RangeError(`Position ${A} is out of range for changeset of length ${V}`);return ne}touchesRange(A,_=A){for(let U=0,V=0;U=0&&V<=_&&_e>=A)return V_?"cover":!0;V=_e}return!1}toString(){let A="";for(let _=0;_=0?":"+V:"")}return A}toJSON(){return this.sections}static fromJSON(A){if(!Array.isArray(A)||A.length%2||A.some(_=>typeof _!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Un(A)}static create(A){return new Un(A)}}class Xt extends Un{constructor(A,_){super(A),this.inserted=_}apply(A){if(this.length!=A.length)throw new RangeError("Applying change set to a document with the wrong length");return Ut(this,(_,U,V,ne,te)=>A=A.replace(V,V+(U-_),te),!1),A}mapDesc(A,_=!1){return Qt(this,A,_,!0)}invert(A){let _=this.sections.slice(),U=[];for(let V=0,ne=0;V<_.length;V+=2){let te=_[V],_e=_[V+1];if(_e>=0){_[V]=_e,_[V+1]=te;let ze=V>>1;for(;U.length0&&Yt(U,_,ne.text),ne.forward(Dt),_e+=Dt}let pt=A[te++];for(;_e>1].toJSON()))}return A}static of(A,_,U){let V=[],ne=[],te=0,_e=null;function ze(Dt=!1){if(!Dt&&!V.length)return;te<_&&sn(V,_-te,-1);let Zt=new Xt(V,ne);_e=_e?_e.compose(Zt.map(_e)):Zt,V=[],ne=[],te=0}function pt(Dt){if(Array.isArray(Dt))for(let Zt of Dt)pt(Zt);else if(Dt instanceof Xt){if(Dt.length!=_)throw new RangeError(`Mismatched change set length (got ${Dt.length}, expected ${_})`);ze(),_e=_e?_e.compose(Dt.map(_e)):Dt}else{let{from:Zt,to:Rn=Zt,insert:cn}=Dt;if(Zt>Rn||Zt<0||Rn>_)throw new RangeError(`Invalid change range ${Zt} to ${Rn} (in doc of length ${_})`);let Fr=cn?typeof cn=="string"?ue.of(cn.split(U||Br)):cn:ue.empty,Xr=Fr.length;if(Zt==Rn&&Xr==0)return;Ztte&&sn(V,Zt-te,-1),sn(V,Rn-Zt,Xr),Yt(ne,V,Fr),te=Rn}}return pt(A),ze(!_e),_e}static empty(A){return new Xt(A?[A,-1]:[],[])}static fromJSON(A){if(!Array.isArray(A))throw new RangeError("Invalid JSON representation of ChangeSet");let _=[],U=[];for(let V=0;V_e&&typeof te!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(ne.length==1)_.push(ne[0],0);else{for(;U.length=0&&_<=0&&_==ke[V+1]?ke[V]+=A:A==0&&ke[V]==0?ke[V+1]+=_:U?(ke[V]+=A,ke[V+1]+=_):ke.push(A,_)}function Yt(ke,A,_){if(_.length==0)return;let U=A.length-2>>1;if(U>1])),!(_||te==ke.sections.length||ke.sections[te+1]<0);)_e=ke.sections[te++],ze=ke.sections[te++];A(V,pt,ne,Dt,Zt),V=pt,ne=Dt}}}function Qt(ke,A,_,U=!1){let V=[],ne=U?[]:null,te=new be(ke),_e=new be(A);for(let ze=-1;;)if(te.ins==-1&&_e.ins==-1){let pt=Math.min(te.len,_e.len);sn(V,pt,-1),te.forward(pt),_e.forward(pt)}else if(_e.ins>=0&&(te.ins<0||ze==te.i||te.off==0&&(_e.len=0&&ze=0){let pt=0,Dt=te.len;for(;Dt;)if(_e.ins==-1){let Zt=Math.min(Dt,_e.len);pt+=Zt,Dt-=Zt,_e.forward(Zt)}else if(_e.ins==0&&_e.lenze||te.ins>=0&&te.len>ze)&&(_e||U.length>pt),ne.forward2(ze),te.forward(ze)}}}}class be{constructor(A){this.set=A,this.i=0,this.next()}next(){let{sections:A}=this.set;this.i>1;return _>=A.length?ue.empty:A[_]}textBit(A){let{inserted:_}=this.set,U=this.i-2>>1;return U>=_.length&&!A?ue.empty:_[U].slice(this.off,A==null?void 0:this.off+A)}forward(A){A==this.len?this.next():(this.len-=A,this.off+=A)}forward2(A){this.ins==-1?this.forward(A):A==this.ins?this.next():(this.ins-=A,this.off+=A)}}class Ne{constructor(A,_,U){this.from=A,this.to=_,this.flags=U}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let A=this.flags&7;return A==7?null:A}get goalColumn(){let A=this.flags>>6;return A==16777215?void 0:A}map(A,_=-1){let U,V;return this.empty?U=V=A.mapPos(this.from,_):(U=A.mapPos(this.from,1),V=A.mapPos(this.to,-1)),U==this.from&&V==this.to?this:new Ne(U,V,this.flags)}extend(A,_=A){if(A<=this.anchor&&_>=this.anchor)return ye.range(A,_);let U=Math.abs(A-this.anchor)>Math.abs(_-this.anchor)?A:_;return ye.range(this.anchor,U)}eq(A,_=!1){return this.anchor==A.anchor&&this.head==A.head&&(!_||!this.empty||this.assoc==A.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(A){if(!A||typeof A.anchor!="number"||typeof A.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return ye.range(A.anchor,A.head)}static create(A,_,U){return new Ne(A,_,U)}}class ye{constructor(A,_){this.ranges=A,this.mainIndex=_}map(A,_=-1){return A.empty?this:ye.create(this.ranges.map(U=>U.map(A,_)),this.mainIndex)}eq(A,_=!1){if(this.ranges.length!=A.ranges.length||this.mainIndex!=A.mainIndex)return!1;for(let U=0;UA.toJSON()),main:this.mainIndex}}static fromJSON(A){if(!A||!Array.isArray(A.ranges)||typeof A.main!="number"||A.main>=A.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new ye(A.ranges.map(_=>Ne.fromJSON(_)),A.main)}static single(A,_=A){return new ye([ye.range(A,_)],0)}static create(A,_=0){if(A.length==0)throw new RangeError("A selection needs at least one range");for(let U=0,V=0;VA?8:0)|ne)}static normalized(A,_=0){let U=A[_];A.sort((V,ne)=>V.from-ne.from),_=A.indexOf(U);for(let V=1;Vne.head?ye.range(ze,_e):ye.range(_e,ze))}}return new ye(A,_)}}function Ze(ke,A){for(let _ of ke.ranges)if(_.to>A)throw new RangeError("Selection points outside of document")}let $e=0;class qe{constructor(A,_,U,V,ne){this.combine=A,this.compareInput=_,this.compare=U,this.isStatic=V,this.id=$e++,this.default=A([]),this.extensions=typeof ne=="function"?ne(this):ne}get reader(){return this}static define(A={}){return new qe(A.combine||(_=>_),A.compareInput||((_,U)=>_===U),A.compare||(A.combine?(_,U)=>_===U:ut),!!A.static,A.enables)}of(A){return new Vt([],this,0,A)}compute(A,_){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vt(A,this,1,_)}computeN(A,_){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vt(A,this,2,_)}from(A,_){return _||(_=U=>U),this.compute([A],U=>_(U.field(A)))}}function ut(ke,A){return ke==A||ke.length==A.length&&ke.every((_,U)=>_===A[U])}class Vt{constructor(A,_,U,V){this.dependencies=A,this.facet=_,this.type=U,this.value=V,this.id=$e++}dynamicSlot(A){var _;let U=this.value,V=this.facet.compareInput,ne=this.id,te=A[ne]>>1,_e=this.type==2,ze=!1,pt=!1,Dt=[];for(let Zt of this.dependencies)Zt=="doc"?ze=!0:Zt=="selection"?pt=!0:((_=A[Zt.id])!==null&&_!==void 0?_:1)&1||Dt.push(A[Zt.id]);return{create(Zt){return Zt.values[te]=U(Zt),1},update(Zt,Rn){if(ze&&Rn.docChanged||pt&&(Rn.docChanged||Rn.selection)||an(Zt,Dt)){let cn=U(Zt);if(_e?!vn(cn,Zt.values[te],V):!V(cn,Zt.values[te]))return Zt.values[te]=cn,1}return 0},reconfigure:(Zt,Rn)=>{let cn,Fr=Rn.config.address[ne];if(Fr!=null){let Xr=Ce(Rn,Fr);if(this.dependencies.every(he=>he instanceof qe?Rn.facet(he)===Zt.facet(he):he instanceof Bn?Rn.field(he,!1)==Zt.field(he,!1):!0)||(_e?vn(cn=U(Zt),Xr,V):V(cn=U(Zt),Xr)))return Zt.values[te]=Xr,0}else cn=U(Zt);return Zt.values[te]=cn,1}}}}function vn(ke,A,_){if(ke.length!=A.length)return!1;for(let U=0;Uke[ze.id]),V=_.map(ze=>ze.type),ne=U.filter(ze=>!(ze&1)),te=ke[A.id]>>1;function _e(ze){let pt=[];for(let Dt=0;DtU===V),A);return A.provide&&(_.provides=A.provide(_)),_}create(A){let _=A.facet(Sn).find(U=>U.field==this);return((_==null?void 0:_.create)||this.createF)(A)}slot(A){let _=A[this.id]>>1;return{create:U=>(U.values[_]=this.create(U),1),update:(U,V)=>{let ne=U.values[_],te=this.updateF(ne,V);return this.compareF(ne,te)?0:(U.values[_]=te,1)},reconfigure:(U,V)=>V.config.address[this.id]!=null?(U.values[_]=V.field(this),0):(U.values[_]=this.create(U),1)}}init(A){return[this,Sn.of({field:this,create:A})]}get extension(){return this}}const fr={lowest:4,low:3,default:2,high:1,highest:0};function ir(ke){return A=>new zt(A,ke)}const un={highest:ir(fr.highest),high:ir(fr.high),default:ir(fr.default),low:ir(fr.low),lowest:ir(fr.lowest)};class zt{constructor(A,_){this.inner=A,this.prec=_}}class et{of(A){return new Z(this,A)}reconfigure(A){return et.reconfigure.of({compartment:this,extension:A})}get(A){return A.config.compartments.get(this)}}class Z{constructor(A,_){this.compartment=A,this.inner=_}}class re{constructor(A,_,U,V,ne,te){for(this.base=A,this.compartments=_,this.dynamicSlots=U,this.address=V,this.staticValues=ne,this.facets=te,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(A,_,U){let V=[],ne=Object.create(null),te=new Map;for(let Rn of we(A,_,te))Rn instanceof Bn?V.push(Rn):(ne[Rn.facet.id]||(ne[Rn.facet.id]=[])).push(Rn);let _e=Object.create(null),ze=[],pt=[];for(let Rn of V)_e[Rn.id]=pt.length<<1,pt.push(cn=>Rn.slot(cn));let Dt=U==null?void 0:U.config.facets;for(let Rn in ne){let cn=ne[Rn],Fr=cn[0].facet,Xr=Dt&&Dt[Rn]||[];if(cn.every(he=>he.type==0))if(_e[Fr.id]=ze.length<<1|1,ut(Xr,cn))ze.push(U.facet(Fr));else{let he=Fr.combine(cn.map(Y=>Y.value));ze.push(U&&Fr.compare(he,U.facet(Fr))?U.facet(Fr):he)}else{for(let he of cn)he.type==0?(_e[he.id]=ze.length<<1|1,ze.push(he.value)):(_e[he.id]=pt.length<<1,pt.push(Y=>he.dynamicSlot(Y)));_e[Fr.id]=pt.length<<1,pt.push(he=>Fn(he,Fr,cn))}}let Zt=pt.map(Rn=>Rn(_e));return new re(A,te,Zt,_e,ze,ne)}}function we(ke,A,_){let U=[[],[],[],[],[]],V=new Map;function ne(te,_e){let ze=V.get(te);if(ze!=null){if(ze<=_e)return;let pt=U[ze].indexOf(te);pt>-1&&U[ze].splice(pt,1),te instanceof Z&&_.delete(te.compartment)}if(V.set(te,_e),Array.isArray(te))for(let pt of te)ne(pt,_e);else if(te instanceof Z){if(_.has(te.compartment))throw new RangeError("Duplicate use of compartment in extensions");let pt=A.get(te.compartment)||te.inner;_.set(te.compartment,pt),ne(pt,_e)}else if(te instanceof zt)ne(te.inner,te.prec);else if(te instanceof Bn)U[_e].push(te),te.provides&&ne(te.provides,_e);else if(te instanceof Vt)U[_e].push(te),te.facet.extensions&&ne(te.facet.extensions,fr.default);else{let pt=te.extension;if(!pt)throw new Error(`Unrecognized extension value in extension set (${te}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);ne(pt,_e)}}return ne(ke,fr.default),U.reduce((te,_e)=>te.concat(_e))}function ve(ke,A){if(A&1)return 2;let _=A>>1,U=ke.status[_];if(U==4)throw new Error("Cyclic dependency between fields and/or facets");if(U&2)return U;ke.status[_]=4;let V=ke.computeSlot(ke,ke.config.dynamicSlots[_]);return ke.status[_]=2|V}function Ce(ke,A){return A&1?ke.config.staticValues[A>>1]:ke.values[A>>1]}const tt=qe.define(),Rt=qe.define({combine:ke=>ke.some(A=>A),static:!0}),Kt=qe.define({combine:ke=>ke.length?ke[0]:void 0,static:!0}),Cn=qe.define(),bn=qe.define(),Dn=qe.define(),Yn=qe.define({combine:ke=>ke.length?ke[0]:!1});class $n{constructor(A,_){this.type=A,this.value=_}static define(){return new Pr}}class Pr{of(A){return new $n(this,A)}}class Wr{constructor(A){this.map=A}of(A){return new Wn(this,A)}}class Wn{constructor(A,_){this.type=A,this.value=_}map(A){let _=this.type.map(this.value,A);return _===void 0?void 0:_==this.value?this:new Wn(this.type,_)}is(A){return this.type==A}static define(A={}){return new Wr(A.map||(_=>_))}static mapEffects(A,_){if(!A.length)return A;let U=[];for(let V of A){let ne=V.map(_);ne&&U.push(ne)}return U}}Wn.reconfigure=Wn.define(),Wn.appendConfig=Wn.define();class zr{constructor(A,_,U,V,ne,te){this.startState=A,this.changes=_,this.selection=U,this.effects=V,this.annotations=ne,this.scrollIntoView=te,this._doc=null,this._state=null,U&&Ze(U,_.newLength),ne.some(_e=>_e.type==zr.time)||(this.annotations=ne.concat(zr.time.of(Date.now())))}static create(A,_,U,V,ne,te){return new zr(A,_,U,V,ne,te)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(A){for(let _ of this.annotations)if(_.type==A)return _.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(A){let _=this.annotation(zr.userEvent);return!!(_&&(_==A||_.length>A.length&&_.slice(0,A.length)==A&&_[A.length]=="."))}}zr.time=$n.define(),zr.userEvent=$n.define(),zr.addToHistory=$n.define(),zr.remote=$n.define();function Gr(ke,A){let _=[];for(let U=0,V=0;;){let ne,te;if(U=ke[U]))ne=ke[U++],te=ke[U++];else if(V=0;V--){let ne=U[V](ke);ne instanceof zr?ke=ne:Array.isArray(ne)&&ne.length==1&&ne[0]instanceof zr?ke=ne[0]:ke=er(A,Tt(ne),!1)}return ke}function bt(ke){let A=ke.startState,_=A.facet(Dn),U=ke;for(let V=_.length-1;V>=0;V--){let ne=_[V](ke);ne&&Object.keys(ne).length&&(U=Yr(U,Ti(A,ne,ke.changes.newLength),!0))}return U==ke?ke:zr.create(A,ke.changes,ke.selection,U.effects,U.annotations,U.scrollIntoView)}const Mt=[];function Tt(ke){return ke==null?Mt:Array.isArray(ke)?ke:[ke]}var hn=function(ke){return ke[ke.Word=0]="Word",ke[ke.Space=1]="Space",ke[ke.Other=2]="Other",ke}(hn||(hn={}));const on=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let At;try{At=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(ke){}function qn(ke){if(At)return At.test(ke);for(let A=0;A"\x80"&&(_.toUpperCase()!=_.toLowerCase()||on.test(_)))return!0}return!1}function Ir(ke){return A=>{if(!/\S/.test(A))return hn.Space;if(qn(A))return hn.Word;for(let _=0;_-1)return hn.Word;return hn.Other}}class rr{constructor(A,_,U,V,ne,te){this.config=A,this.doc=_,this.selection=U,this.values=V,this.status=A.statusTemplate.slice(),this.computeSlot=ne,te&&(te._state=this);for(let _e=0;_eV.set(pt,ze)),_=null),V.set(_e.value.compartment,_e.value.extension)):_e.is(Wn.reconfigure)?(_=null,U=_e.value):_e.is(Wn.appendConfig)&&(_=null,U=Tt(U).concat(_e.value));let ne;_?ne=A.startState.values.slice():(_=re.resolve(U,V,this),ne=new rr(_,this.doc,this.selection,_.dynamicSlots.map(()=>null),(ze,pt)=>pt.reconfigure(ze,this),null).values);let te=A.startState.facet(Rt)?A.newSelection:A.newSelection.asSingle();new rr(_,A.newDoc,te,ne,(_e,ze)=>ze.update(_e,A),A)}replaceSelection(A){return typeof A=="string"&&(A=this.toText(A)),this.changeByRange(_=>({changes:{from:_.from,to:_.to,insert:A},range:ye.cursor(_.from+A.length)}))}changeByRange(A){let _=this.selection,U=A(_.ranges[0]),V=this.changes(U.changes),ne=[U.range],te=Tt(U.effects);for(let _e=1;_e<_.ranges.length;_e++){let ze=A(_.ranges[_e]),pt=this.changes(ze.changes),Dt=pt.map(V);for(let Rn=0;Rn<_e;Rn++)ne[Rn]=ne[Rn].map(Dt);let Zt=V.mapDesc(pt,!0);ne.push(ze.range.map(Zt)),V=V.compose(Dt),te=Wn.mapEffects(te,Dt).concat(Wn.mapEffects(Tt(ze.effects),Zt))}return{changes:V,selection:ye.create(ne,_.mainIndex),effects:te}}changes(A=[]){return A instanceof Xt?A:Xt.of(A,this.doc.length,this.facet(rr.lineSeparator))}toText(A){return ue.of(A.split(this.facet(rr.lineSeparator)||Br))}sliceDoc(A=0,_=this.doc.length){return this.doc.sliceString(A,_,this.lineBreak)}facet(A){let _=this.config.address[A.id];return _==null?A.default:(ve(this,_),Ce(this,_))}toJSON(A){let _={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(A)for(let U in A){let V=A[U];V instanceof Bn&&this.config.address[V.id]!=null&&(_[U]=V.spec.toJSON(this.field(A[U]),this))}return _}static fromJSON(A,_={},U){if(!A||typeof A.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let V=[];if(U){for(let ne in U)if(Object.prototype.hasOwnProperty.call(A,ne)){let te=U[ne],_e=A[ne];V.push(te.init(ze=>te.spec.fromJSON(_e,ze)))}}return rr.create({doc:A.doc,selection:ye.fromJSON(A.selection),extensions:_.extensions?V.concat([_.extensions]):V})}static create(A={}){let _=re.resolve(A.extensions||[],new Map),U=A.doc instanceof ue?A.doc:ue.of((A.doc||"").split(_.staticFacet(rr.lineSeparator)||Br)),V=A.selection?A.selection instanceof ye?A.selection:ye.single(A.selection.anchor,A.selection.head):ye.single(0);return Ze(V,U.length),_.staticFacet(Rt)||(V=V.asSingle()),new rr(_,U,V,_.dynamicSlots.map(()=>null),(ne,te)=>te.create(ne),null)}get tabSize(){return this.facet(rr.tabSize)}get lineBreak(){return this.facet(rr.lineSeparator)||` -`}get readOnly(){return this.facet(Yn)}phrase(A,..._){for(let U of this.facet(rr.phrases))if(Object.prototype.hasOwnProperty.call(U,A)){A=U[A];break}return _.length&&(A=A.replace(/\$(\$|\d*)/g,(U,V)=>{if(V=="$")return"$";let ne=+(V||1);return!ne||ne>_.length?U:_[ne-1]})),A}languageDataAt(A,_,U=-1){let V=[];for(let ne of this.facet(tt))for(let te of ne(this,_,U))Object.prototype.hasOwnProperty.call(te,A)&&V.push(te[A]);return V}charCategorizer(A){return Ir(this.languageDataAt("wordChars",A).join(""))}wordAt(A){let{text:_,from:U,length:V}=this.doc.lineAt(A),ne=this.charCategorizer(A),te=A-U,_e=A-U;for(;te>0;){let ze=Pn(_,te,!1);if(ne(_.slice(ze,te))!=hn.Word)break;te=ze}for(;_eke.length?ke[0]:4}),rr.lineSeparator=Kt,rr.readOnly=Yn,rr.phrases=qe.define({compare(ke,A){let _=Object.keys(ke),U=Object.keys(A);return _.length==U.length&&_.every(V=>ke[V]==A[V])}}),rr.languageData=tt,rr.changeFilter=Cn,rr.transactionFilter=bn,rr.transactionExtender=Dn,et.reconfigure=Wn.define();function Ar(ke,A,_={}){let U={};for(let V of ke)for(let ne of Object.keys(V)){let te=V[ne],_e=U[ne];if(_e===void 0)U[ne]=te;else if(!(_e===te||te===void 0))if(Object.hasOwnProperty.call(_,ne))U[ne]=_[ne](_e,te);else throw new Error("Config merge conflict for field "+ne)}for(let V in A)U[V]===void 0&&(U[V]=A[V]);return U}class ei{eq(A){return this==A}range(A,_=A){return qr.create(A,_,this)}}ei.prototype.startSide=ei.prototype.endSide=0,ei.prototype.point=!1,ei.prototype.mapMode=yr.TrackDel;class qr{constructor(A,_,U){this.from=A,this.to=_,this.value=U}static create(A,_,U){return new qr(A,_,U)}}function ur(ke,A){return ke.from-A.from||ke.value.startSide-A.value.startSide}class Vr{constructor(A,_,U,V){this.from=A,this.to=_,this.value=U,this.maxPoint=V}get length(){return this.to[this.to.length-1]}findIndex(A,_,U,V=0){let ne=U?this.to:this.from;for(let te=V,_e=ne.length;;){if(te==_e)return te;let ze=te+_e>>1,pt=ne[ze]-A||(U?this.value[ze].endSide:this.value[ze].startSide)-_;if(ze==te)return pt>=0?te:_e;pt>=0?_e=ze:te=ze+1}}between(A,_,U,V){for(let ne=this.findIndex(_,-1e9,!0),te=this.findIndex(U,1e9,!1,ne);necn||Rn==cn&&pt.startSide>0&&pt.endSide<=0)continue;(cn-Rn||pt.endSide-pt.startSide)<0||(te<0&&(te=Rn),pt.point&&(_e=Math.max(_e,cn-Rn)),U.push(pt),V.push(Rn-te),ne.push(cn-te))}return{mapped:U.length?new Vr(V,ne,U,_e):null,pos:te}}}class Er{constructor(A,_,U,V){this.chunkPos=A,this.chunk=_,this.nextLayer=U,this.maxPoint=V}static create(A,_,U,V){return new Er(A,_,U,V)}get length(){let A=this.chunk.length-1;return A<0?0:Math.max(this.chunkEnd(A),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let A=this.nextLayer.size;for(let _ of this.chunk)A+=_.value.length;return A}chunkEnd(A){return this.chunkPos[A]+this.chunk[A].length}update(A){let{add:_=[],sort:U=!1,filterFrom:V=0,filterTo:ne=this.length}=A,te=A.filter;if(_.length==0&&!te)return this;if(U&&(_=_.slice().sort(ur)),this.isEmpty)return _.length?Er.of(_):this;let _e=new Gi(this,null,-1).goto(0),ze=0,pt=[],Dt=new oi;for(;_e.value||ze<_.length;)if(ze<_.length&&(_e.from-_[ze].from||_e.startSide-_[ze].value.startSide)>=0){let Zt=_[ze++];Dt.addInner(Zt.from,Zt.to,Zt.value)||pt.push(Zt)}else _e.rangeIndex==1&&_e.chunkIndexthis.chunkEnd(_e.chunkIndex)||ne_e.to||ne<_e.from||te(_e.from,_e.to,_e.value))&&(Dt.addInner(_e.from,_e.to,_e.value)||pt.push(qr.create(_e.from,_e.to,_e.value))),_e.next());return Dt.finishInner(this.nextLayer.isEmpty&&!pt.length?Er.empty:this.nextLayer.update({add:pt,filter:te,filterFrom:V,filterTo:ne}))}map(A){if(A.empty||this.isEmpty)return this;let _=[],U=[],V=-1;for(let te=0;te=ne&&A<=ne+te.length&&te.between(ne,A-ne,_-ne,U)===!1)return}this.nextLayer.between(A,_,U)}}iter(A=0){return ii.from([this]).goto(A)}get isEmpty(){return this.nextLayer==this}static iter(A,_=0){return ii.from(A).goto(_)}static compare(A,_,U,V,ne=-1){let te=A.filter(Zt=>Zt.maxPoint>0||!Zt.isEmpty&&Zt.maxPoint>=ne),_e=_.filter(Zt=>Zt.maxPoint>0||!Zt.isEmpty&&Zt.maxPoint>=ne),ze=li(te,_e,U),pt=new Hi(te,ze,ne),Dt=new Hi(_e,ze,ne);U.iterGaps((Zt,Rn,cn)=>Ii(pt,Zt,Dt,Rn,cn,V)),U.empty&&U.length==0&&Ii(pt,0,Dt,0,0,V)}static eq(A,_,U=0,V){V==null&&(V=999999999);let ne=A.filter(Dt=>!Dt.isEmpty&&_.indexOf(Dt)<0),te=_.filter(Dt=>!Dt.isEmpty&&A.indexOf(Dt)<0);if(ne.length!=te.length)return!1;if(!ne.length)return!0;let _e=li(ne,te),ze=new Hi(ne,_e,0).goto(U),pt=new Hi(te,_e,0).goto(U);for(;;){if(ze.to!=pt.to||!Si(ze.active,pt.active)||ze.point&&(!pt.point||!ze.point.eq(pt.point)))return!1;if(ze.to>V)return!0;ze.next(),pt.next()}}static spans(A,_,U,V,ne=-1){let te=new Hi(A,null,ne).goto(_),_e=_,ze=te.openStart;for(;;){let pt=Math.min(te.to,U);if(te.point){let Dt=te.activeForPoint(te.to),Zt=te.pointFrom<_?Dt.length+1:te.point.startSide<0?Dt.length:Math.min(Dt.length,ze);V.point(_e,pt,te.point,Dt,Zt,te.pointRank),ze=Math.min(te.openEnd(pt),Dt.length)}else pt>_e&&(V.span(_e,pt,te.active,ze),ze=te.openEnd(pt));if(te.to>U)return ze+(te.point&&te.to>U?1:0);_e=te.to,te.next()}}static of(A,_=!1){let U=new oi;for(let V of A instanceof qr?[A]:_?ki(A):A)U.add(V.from,V.to,V.value);return U.finish()}static join(A){if(!A.length)return Er.empty;let _=A[A.length-1];for(let U=A.length-2;U>=0;U--)for(let V=A[U];V!=Er.empty;V=V.nextLayer)_=new Er(V.chunkPos,V.chunk,_,Math.max(V.maxPoint,_.maxPoint));return _}}Er.empty=new Er([],[],null,-1);function ki(ke){if(ke.length>1)for(let A=ke[0],_=1;_0)return ke.slice().sort(ur);A=U}return ke}Er.empty.nextLayer=Er.empty;class oi{finishChunk(A){this.chunks.push(new Vr(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,A&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(A,_,U){this.addInner(A,_,U)||(this.nextLayer||(this.nextLayer=new oi)).add(A,_,U)}addInner(A,_,U){let V=A-this.lastTo||U.startSide-this.last.endSide;if(V<=0&&(A-this.lastFrom||U.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return V<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=A),this.from.push(A-this.chunkStart),this.to.push(_-this.chunkStart),this.last=U,this.lastFrom=A,this.lastTo=_,this.value.push(U),U.point&&(this.maxPoint=Math.max(this.maxPoint,_-A)),!0)}addChunk(A,_){if((A-this.lastTo||_.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,_.maxPoint),this.chunks.push(_),this.chunkPos.push(A);let U=_.value.length-1;return this.last=_.value[U],this.lastFrom=_.from[U]+A,this.lastTo=_.to[U]+A,!0}finish(){return this.finishInner(Er.empty)}finishInner(A){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return A;let _=Er.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(A):A,this.setMaxPoint);return this.from=null,_}}function li(ke,A,_){let U=new Map;for(let ne of ke)for(let te=0;te=this.minPoint)break}}setRangeIndex(A){if(A==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=U&&V.push(new Gi(te,_,U,ne));return V.length==1?V[0]:new ii(V)}get startSide(){return this.value?this.value.startSide:0}goto(A,_=-1e9){for(let U of this.heap)U.goto(A,_);for(let U=this.heap.length>>1;U>=0;U--)Ui(this.heap,U);return this.next(),this}forward(A,_){for(let U of this.heap)U.forward(A,_);for(let U=this.heap.length>>1;U>=0;U--)Ui(this.heap,U);(this.to-A||this.value.endSide-_)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let A=this.heap[0];this.from=A.from,this.to=A.to,this.value=A.value,this.rank=A.rank,A.value&&A.next(),Ui(this.heap,0)}}}function Ui(ke,A){for(let _=ke[A];;){let U=(A<<1)+1;if(U>=ke.length)break;let V=ke[U];if(U+1=0&&(V=ke[U+1],U++),_.compare(V)<0)break;ke[U]=_,ke[A]=V,A=U}}class Hi{constructor(A,_,U){this.minPoint=U,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=ii.from(A,_,U)}goto(A,_=-1e9){return this.cursor.goto(A,_),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=A,this.endSide=_,this.openStart=-1,this.next(),this}forward(A,_){for(;this.minActive>-1&&(this.activeTo[this.minActive]-A||this.active[this.minActive].endSide-_)<0;)this.removeActive(this.minActive);this.cursor.forward(A,_)}removeActive(A){Sr(this.active,A),Sr(this.activeTo,A),Sr(this.activeRank,A),this.minActive=ea(this.active,this.activeTo)}addActive(A){let _=0,{value:U,to:V,rank:ne}=this.cursor;for(;_0;)_++;fs(this.active,_,U),fs(this.activeTo,_,V),fs(this.activeRank,_,ne),A&&fs(A,_,this.cursor.from),this.minActive=ea(this.active,this.activeTo)}next(){let A=this.to,_=this.point;this.point=null;let U=this.openStart<0?[]:null;for(;;){let V=this.minActive;if(V>-1&&(this.activeTo[V]-this.cursor.from||this.active[V].endSide-this.cursor.startSide)<0){if(this.activeTo[V]>A){this.to=this.activeTo[V],this.endSide=this.active[V].endSide;break}this.removeActive(V),U&&Sr(U,V)}else if(this.cursor.value)if(this.cursor.from>A){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let ne=this.cursor.value;if(!ne.point)this.addActive(U),this.cursor.next();else if(_&&this.cursor.to==this.to&&this.cursor.from=0&&U[V]=0&&!(this.activeRank[U]A||this.activeTo[U]==A&&this.active[U].endSide>=this.point.endSide)&&_.push(this.active[U]);return _.reverse()}openEnd(A){let _=0;for(let U=this.activeTo.length-1;U>=0&&this.activeTo[U]>A;U--)_++;return _}}function Ii(ke,A,_,U,V,ne){ke.goto(A),_.goto(U);let te=U+V,_e=U,ze=U-A;for(;;){let pt=ke.to+ze-_.to||ke.endSide-_.endSide,Dt=pt<0?ke.to+ze:_.to,Zt=Math.min(Dt,te);if(ke.point||_.point?ke.point&&_.point&&(ke.point==_.point||ke.point.eq(_.point))&&Si(ke.activeForPoint(ke.to),_.activeForPoint(_.to))||ne.comparePoint(_e,Zt,ke.point,_.point):Zt>_e&&!Si(ke.active,_.active)&&ne.compareRange(_e,Zt,ke.active,_.active),Dt>te)break;_e=Dt,pt<=0&&ke.next(),pt>=0&&_.next()}}function Si(ke,A){if(ke.length!=A.length)return!1;for(let _=0;_=A;U--)ke[U+1]=ke[U];ke[A]=_}function ea(ke,A){let _=-1,U=1e9;for(let V=0;V=A)return V;if(V==ke.length)break;ne+=ke.charCodeAt(V)==9?_-ne%_:1,V=Pn(ke,V)}return U===!0?-1:ke.length}},75533:function(ti,Gn,z){"use strict";z.d(Gn,{p:function(){return Tt},Nm:function(){return ur},tk:function(){return bi},SJ:function(){return Ia},lg:function(){return D},l9:function(){return bt},S2:function(){return gb},Uw:function(){return Cd},qr:function(){return cm},Sd:function(){return Ai},gB:function(){return Ec},v5:function(){return ua},ZO:function(){return hp},HQ:function(){return Du},AE:function(){return dp},bF:function(){return fm},$f:function(){return Pl},Eu:function(){return Fd},OO:function(){return Te},W$:function(){return Dd},Zs:function(){return fb},$1:function(){return rp},mH:function(){return lo},hJ:function(){return Ql}});for(var ue=z(78120),Me=z(28699),Ue={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},lt={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},En=typeof navigator!="undefined"&&/Mac/.test(navigator.platform),De=typeof navigator!="undefined"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Ee=0;Ee<10;Ee++)Ue[48+Ee]=Ue[96+Ee]=String(Ee);for(var Ee=1;Ee<=24;Ee++)Ue[Ee+111]="F"+Ee;for(var Ee=65;Ee<=90;Ee++)Ue[Ee]=String.fromCharCode(Ee+32),lt[Ee]=String.fromCharCode(Ee);for(var xt in Ue)lt.hasOwnProperty(xt)||(lt[xt]=Ue[xt]);function In(v){var h=En&&v.metaKey&&v.shiftKey&&!v.ctrlKey&&!v.altKey||De&&v.shiftKey&&v.key&&v.key.length==1||v.key=="Unidentified",m=!h&&v.key||(v.shiftKey?lt:Ue)[v.keyCode]||v.key||"Unidentified";return m=="Esc"&&(m="Escape"),m=="Del"&&(m="Delete"),m=="Left"&&(m="ArrowLeft"),m=="Up"&&(m="ArrowUp"),m=="Right"&&(m="ArrowRight"),m=="Down"&&(m="ArrowDown"),m}function ft(v){let h;return v.nodeType==11?h=v.getSelection?v:v.ownerDocument:h=v,h.getSelection()}function Pt(v,h){return h?v==h||v.contains(h.nodeType!=1?h.parentNode:h):!1}function Hn(v){let h=v.activeElement;for(;h&&h.shadowRoot;)h=h.shadowRoot.activeElement;return h}function gt(v,h){if(!h.anchorNode)return!1;try{return Pt(v,h.anchorNode)}catch(m){return!1}}function On(v){return v.nodeType==3?Yt(v,0,v.nodeValue.length).getClientRects():v.nodeType==1?v.getClientRects():[]}function st(v,h,m,y){return m?Kn(v,h,m,y,-1)||Kn(v,h,m,y,1):!1}function Pn(v){for(var h=0;;h++)if(v=v.previousSibling,!v)return h}function Nt(v){return v.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(v.nodeName)}function Kn(v,h,m,y,S){for(;;){if(v==m&&h==y)return!0;if(h==(S<0?0:Nn(v))){if(v.nodeName=="DIV")return!1;let T=v.parentNode;if(!T||T.nodeType!=1)return!1;h=Pn(v)+(S<0?0:1),v=T}else if(v.nodeType==1){if(v=v.childNodes[h+(S<0?-1:0)],v.nodeType==1&&v.contentEditable=="false")return!1;h=S<0?Nn(v):0}else return!1}}function Nn(v){return v.nodeType==3?v.nodeValue.length:v.childNodes.length}function yn(v,h){let m=h?v.left:v.right;return{left:m,right:m,top:v.top,bottom:v.bottom}}function Zn(v){let h=v.visualViewport;return h?{left:0,right:h.width,top:0,bottom:h.height}:{left:0,right:v.innerWidth,top:0,bottom:v.innerHeight}}function Mn(v,h){let m=h.width/v.offsetWidth,y=h.height/v.offsetHeight;return(m>.995&&m<1.005||!isFinite(m)||Math.abs(h.width-v.offsetWidth)<1)&&(m=1),(y>.995&&y<1.005||!isFinite(y)||Math.abs(h.height-v.offsetHeight)<1)&&(y=1),{scaleX:m,scaleY:y}}function Tr(v,h,m,y,S,T,P,Q){let q=v.ownerDocument,fe=q.defaultView||window;for(let le=v,Pe=!1;le&&!Pe;)if(le.nodeType==1){let We,mt=le==q.body,Ct=1,Bt=1;if(mt)We=Zn(fe);else{if(/^(fixed|sticky)$/.test(getComputedStyle(le).position)&&(Pe=!0),le.scrollHeight<=le.clientHeight&&le.scrollWidth<=le.clientWidth){le=le.assignedSlot||le.parentNode;continue}let ar=le.getBoundingClientRect();({scaleX:Ct,scaleY:Bt}=Mn(le,ar)),We={left:ar.left,right:ar.left+le.clientWidth*Ct,top:ar.top,bottom:ar.top+le.clientHeight*Bt}}let Ht=0,It=0;if(S=="nearest")h.top0&&h.bottom>We.bottom+It&&(It=h.bottom-We.bottom+It+P)):h.bottom>We.bottom&&(It=h.bottom-We.bottom+P,m<0&&h.top-It0&&h.right>We.right+Ht&&(Ht=h.right-We.right+Ht+T)):h.right>We.right&&(Ht=h.right-We.right+T,m<0&&h.leftS.clientHeight&&(y=S),!m&&S.scrollWidth>S.clientWidth&&(m=S),S=S.assignedSlot||S.parentNode;else if(S.nodeType==11)S=S.host;else break;return{x:m,y}}class yr{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(h){return this.anchorNode==h.anchorNode&&this.anchorOffset==h.anchorOffset&&this.focusNode==h.focusNode&&this.focusOffset==h.focusOffset}setRange(h){let{anchorNode:m,focusNode:y}=h;this.set(m,Math.min(h.anchorOffset,m?Nn(m):0),y,Math.min(h.focusOffset,y?Nn(y):0))}set(h,m,y,S){this.anchorNode=h,this.anchorOffset=m,this.focusNode=y,this.focusOffset=S}}let Un=null;function Xt(v){if(v.setActive)return v.setActive();if(Un)return v.focus(Un);let h=[];for(let m=v;m&&(h.push(m,m.scrollTop,m.scrollLeft),m!=m.ownerDocument);m=m.parentNode);if(v.focus(Un==null?{get preventScroll(){return Un={preventScroll:!0},!0}}:void 0),!Un){Un=!1;for(let m=0;mMath.max(1,v.scrollHeight-v.clientHeight-4)}function ye(v,h){for(let m=v,y=h;;){if(m.nodeType==3&&y>0)return{node:m,offset:y};if(m.nodeType==1&&y>0){if(m.contentEditable=="false")return null;m=m.childNodes[y-1],y=Nn(m)}else if(m.parentNode&&!Nt(m))y=Pn(m),m=m.parentNode;else return null}}function Ze(v,h){for(let m=v,y=h;;){if(m.nodeType==3&&ym)return Pe.domBoundsAround(h,m,fe);if(We>=h&&S==-1&&(S=q,T=fe),fe>m&&Pe.dom.parentNode==this.dom){P=q,Q=le;break}le=We,fe=We+Pe.breakAfter}return{from:T,to:Q<0?y+this.length:Q,startDOM:(S?this.children[S-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:P=0?this.children[P].dom:null}}markDirty(h=!1){this.flags|=2,this.markParentsDirty(h)}markParentsDirty(h){for(let m=this.parent;m;m=m.parent){if(h&&(m.flags|=2),m.flags&1)return;m.flags|=1,h=!1}}setParent(h){this.parent!=h&&(this.parent=h,this.flags&7&&this.markParentsDirty(!0))}setDOM(h){this.dom!=h&&(this.dom&&(this.dom.cmView=null),this.dom=h,h.cmView=this)}get rootView(){for(let h=this;;){let m=h.parent;if(!m)return h;h=m}}replaceChildren(h,m,y=qe){this.markDirty();for(let S=h;Sthis.pos||h==this.pos&&(m>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=h-this.pos,this;let y=this.children[--this.i];this.pos-=y.length+y.breakAfter}}}function an(v,h,m,y,S,T,P,Q,q){let{children:fe}=v,le=fe.length?fe[h]:null,Pe=T.length?T[T.length-1]:null,We=Pe?Pe.breakAfter:P;if(!(h==y&&le&&!P&&!We&&T.length<2&&le.merge(m,S,T.length?Pe:null,m==0,Q,q))){if(y0&&(!P&&T.length&&le.merge(m,le.length,T[0],!1,Q,0)?le.breakAfter=T.shift().breakAfter:(m2);var Ce={mac:ve||/Mac/.test(Sn.platform),windows:/Win/.test(Sn.platform),linux:/Linux|X11/.test(Sn.platform),ie:zt,ie_version:ir?Bn.documentMode||6:un?+un[1]:fr?+fr[1]:0,gecko:et,gecko_version:et?+(/Firefox\/(\d+)/.exec(Sn.userAgent)||[0,0])[1]:0,chrome:!!Z,chrome_version:Z?+Z[1]:0,ios:ve,android:/Android\b/.test(Sn.userAgent),webkit:re,safari:we,webkit_version:re?+(/\bAppleWebKit\/(\d+)/.exec(Sn.userAgent)||[0,0])[1]:0,tabSize:Bn.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const tt=256;class Rt extends ut{constructor(h){super(),this.text=h}get length(){return this.text.length}createDOM(h){this.setDOM(h||document.createTextNode(this.text))}sync(h,m){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(m&&m.node==this.dom&&(m.written=!0),this.dom.nodeValue=this.text)}reuseDOM(h){h.nodeType==3&&this.createDOM(h)}merge(h,m,y){return this.flags&8||y&&(!(y instanceof Rt)||this.length-(m-h)+y.length>tt||y.flags&8)?!1:(this.text=this.text.slice(0,h)+(y?y.text:"")+this.text.slice(m),this.markDirty(),!0)}split(h){let m=new Rt(this.text.slice(h));return this.text=this.text.slice(0,h),this.markDirty(),m.flags|=this.flags&8,m}localPosFromDOM(h,m){return h==this.dom?m:m?this.text.length:0}domAtPos(h){return new $e(this.dom,h)}domBoundsAround(h,m,y){return{from:y,to:y+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(h,m){return Cn(this.dom,h,m)}}class Kt extends ut{constructor(h,m=[],y=0){super(),this.mark=h,this.children=m,this.length=y;for(let S of m)S.setParent(this)}setAttrs(h){if(X(h),this.mark.class&&(h.className=this.mark.class),this.mark.attrs)for(let m in this.mark.attrs)h.setAttribute(m,this.mark.attrs[m]);return h}canReuseDOM(h){return super.canReuseDOM(h)&&!((this.flags|h.flags)&8)}reuseDOM(h){h.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(h),this.flags|=6)}sync(h,m){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(h,m)}merge(h,m,y,S,T,P){return y&&(!(y instanceof Kt&&y.mark.eq(this.mark))||h&&T<=0||mh&&m.push(y=h&&(S=T),y=q,T++}let P=this.length-h;return this.length=h,S>-1&&(this.children.length=S,this.markDirty()),new Kt(this.mark,m,P)}domAtPos(h){return Yn(this,h)}coordsAt(h,m){return Pr(this,h,m)}}function Cn(v,h,m){let y=v.nodeValue.length;h>y&&(h=y);let S=h,T=h,P=0;h==0&&m<0||h==y&&m>=0?Ce.chrome||Ce.gecko||(h?(S--,P=1):T=0)?0:Q.length-1];return Ce.safari&&!P&&q.width==0&&(q=Array.prototype.find.call(Q,fe=>fe.width)||q),P?yn(q,P<0):q||null}class bn extends ut{static create(h,m,y){return new bn(h,m,y)}constructor(h,m,y){super(),this.widget=h,this.length=m,this.side=y,this.prevWidget=null}split(h){let m=bn.create(this.widget,this.length-h,this.side);return this.length-=h,m}sync(h){(!this.dom||!this.widget.updateDOM(this.dom,h))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(h)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(h,m,y,S,T,P){return y&&(!(y instanceof bn)||!this.widget.compare(y.widget)||h>0&&T<=0||m0)?$e.before(this.dom):$e.after(this.dom,h==this.length)}domBoundsAround(){return null}coordsAt(h,m){let y=this.widget.coordsAt(this.dom,h,m);if(y)return y;let S=this.dom.getClientRects(),T=null;if(!S.length)return null;let P=this.side?this.side<0:h>0;for(let Q=P?S.length-1:0;T=S[Q],!(h>0?Q==0:Q==S.length-1||T.top0?$e.before(this.dom):$e.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(h){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ue.xv.empty}get isHidden(){return!0}}Rt.prototype.children=bn.prototype.children=Dn.prototype.children=qe;function Yn(v,h){let m=v.dom,{children:y}=v,S=0;for(let T=0;ST&&h0;T--){let P=y[T-1];if(P.dom.parentNode==m)return P.domAtPos(P.length)}for(let T=S;T0&&h instanceof Kt&&S.length&&(y=S[S.length-1])instanceof Kt&&y.mark.eq(h.mark)?$n(y,h.children[0],m-1):(S.push(h),h.setParent(v)),v.length+=h.length}function Pr(v,h,m){let y=null,S=-1,T=null,P=-1;function Q(fe,le){for(let Pe=0,We=0;Pe=le&&(mt.children.length?Q(mt,le-We):(!T||T.isHidden&&m>0)&&(Ct>le||We==Ct&&mt.getSide()>0)?(T=mt,P=le-We):(We-1?1:0)!=S.length-(m&&S.indexOf(m)>-1?1:0))return!1;for(let T of y)if(T!=m&&(S.indexOf(T)==-1||v[T]!==h[T]))return!1;return!0}function Yr(v,h,m){let y=!1;if(h)for(let S in h)m&&S in m||(y=!0,S=="style"?v.style.cssText="":v.removeAttribute(S));if(m)for(let S in m)h&&h[S]==m[S]||(y=!0,S=="style"?v.style.cssText=m[S]:v.setAttribute(S,m[S]));return y}function Ti(v){let h=Object.create(null);for(let m=0;m0&&this.children[y-1].length==0;)this.children[--y].destroy();return this.children.length=y,this.markDirty(),this.length=h,m}transferDOM(h){this.dom&&(this.markDirty(),h.setDOM(this.dom),h.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(h){Gr(this.attrs,h)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=h)}append(h,m){$n(this,h,m)}addLineDeco(h){let m=h.spec.attributes,y=h.spec.class;m&&(this.attrs=Wn(m,this.attrs||{})),y&&(this.attrs=Wn({class:y},this.attrs||{}))}domAtPos(h){return Yn(this,h)}reuseDOM(h){h.nodeName=="DIV"&&(this.setDOM(h),this.flags|=6)}sync(h,m){var y;this.dom?this.flags&4&&(X(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Yr(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(h,m);let S=this.dom.lastChild;for(;S&&ut.get(S)instanceof Kt;)S=S.lastChild;if(!S||!this.length||S.nodeName!="BR"&&((y=ut.get(S))===null||y===void 0?void 0:y.isEditable)==!1&&(!Ce.ios||!this.children.some(T=>T instanceof Rt))){let T=document.createElement("BR");T.cmIgnore=!0,this.dom.appendChild(T)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let h=0,m;for(let y of this.children){if(!(y instanceof Rt)||/[^ -~]/.test(y.text))return null;let S=On(y.dom);if(S.length!=1)return null;h+=S[0].width,m=S[0].height}return h?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:h/this.length,textHeight:m}:null}coordsAt(h,m){let y=Pr(this,h,m);if(!this.children.length&&y&&this.parent){let{heightOracle:S}=this.parent.view.viewState,T=y.bottom-y.top;if(Math.abs(T-S.lineHeight)<2&&S.textHeight=m){if(T instanceof er)return T;if(P>m)break}S=P+T.breakAfter}return null}}class Ye extends ut{constructor(h,m,y){super(),this.widget=h,this.length=m,this.deco=y,this.breakAfter=0,this.prevWidget=null}merge(h,m,y,S,T,P){return y&&(!(y instanceof Ye)||!this.widget.compare(y.widget)||h>0&&T<=0||m0}}class bt{eq(h){return!1}updateDOM(h,m){return!1}compare(h){return this==h||this.constructor==h.constructor&&this.eq(h)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(h){return!0}coordsAt(h,m,y){return null}get isHidden(){return!1}get editable(){return!1}destroy(h){}}var Mt=function(v){return v[v.Text=0]="Text",v[v.WidgetBefore=1]="WidgetBefore",v[v.WidgetAfter=2]="WidgetAfter",v[v.WidgetRange=3]="WidgetRange",v}(Mt||(Mt={}));class Tt extends ue.uU{constructor(h,m,y,S){super(),this.startSide=h,this.endSide=m,this.widget=y,this.spec=S}get heightRelevant(){return!1}static mark(h){return new hn(h)}static widget(h){let m=Math.max(-1e4,Math.min(1e4,h.side||0)),y=!!h.block;return m+=y&&!h.inlineOrder?m>0?3e8:-4e8:m>0?1e8:-1e8,new At(h,m,m,y,h.widget||null,!1)}static replace(h){let m=!!h.block,y,S;if(h.isBlockGap)y=-5e8,S=4e8;else{let{start:T,end:P}=qn(h,m);y=(T?m?-3e8:-1:5e8)-1,S=(P?m?2e8:1:-6e8)+1}return new At(h,y,S,m,h.widget||null,!0)}static line(h){return new on(h)}static set(h,m=!1){return ue.Xs.of(h,m)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Tt.none=ue.Xs.empty;class hn extends Tt{constructor(h){let{start:m,end:y}=qn(h);super(m?-1:5e8,y?1:-6e8,null,h),this.tagName=h.tagName||"span",this.class=h.class||"",this.attrs=h.attributes||null}eq(h){var m,y;return this==h||h instanceof hn&&this.tagName==h.tagName&&(this.class||((m=this.attrs)===null||m===void 0?void 0:m.class))==(h.class||((y=h.attrs)===null||y===void 0?void 0:y.class))&&Gr(this.attrs,h.attrs,"class")}range(h,m=h){if(h>=m)throw new RangeError("Mark decorations may not be empty");return super.range(h,m)}}hn.prototype.point=!1;class on extends Tt{constructor(h){super(-2e8,-2e8,null,h)}eq(h){return h instanceof on&&this.spec.class==h.spec.class&&Gr(this.spec.attributes,h.spec.attributes)}range(h,m=h){if(m!=h)throw new RangeError("Line decoration ranges must be zero-length");return super.range(h,m)}}on.prototype.mapMode=ue.gc.TrackBefore,on.prototype.point=!0;class At extends Tt{constructor(h,m,y,S,T,P){super(m,y,T,h),this.block=S,this.isReplace=P,this.mapMode=S?m<=0?ue.gc.TrackBefore:ue.gc.TrackAfter:ue.gc.TrackDel}get type(){return this.startSide!=this.endSide?Mt.WidgetRange:this.startSide<=0?Mt.WidgetBefore:Mt.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(h){return h instanceof At&&Ir(this.widget,h.widget)&&this.block==h.block&&this.startSide==h.startSide&&this.endSide==h.endSide}range(h,m=h){if(this.isReplace&&(h>m||h==m&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&m!=h)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(h,m)}}At.prototype.point=!0;function qn(v,h=!1){let{inclusiveStart:m,inclusiveEnd:y}=v;return m==null&&(m=v.inclusive),y==null&&(y=v.inclusive),{start:m!=null?m:h,end:y!=null?y:h}}function Ir(v,h){return v==h||!!(v&&h&&v.compare(h))}function rr(v,h,m,y=0){let S=m.length-1;S>=0&&m[S]+y>=v?m[S]=Math.max(m[S],h):m.push(v,h)}class Ar{constructor(h,m,y,S){this.doc=h,this.pos=m,this.end=y,this.disallowBlockEffectsFor=S,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=h.iter(),this.skip=m}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let h=this.content[this.content.length-1];return!(h.breakAfter||h instanceof Ye&&h.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new er),this.atCursorPos=!0),this.curLine}flushBuffer(h=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(ei(new Dn(-1),h),h.length),this.pendingBuffer=0)}addBlockWidget(h){this.flushBuffer(),this.curLine=null,this.content.push(h)}finish(h){this.pendingBuffer&&h<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(h&&this.content.length&&this.content[this.content.length-1]instanceof Ye)&&this.getLine()}buildText(h,m,y){for(;h>0;){if(this.textOff==this.text.length){let{value:T,lineBreak:P,done:Q}=this.cursor.next(this.skip);if(this.skip=0,Q)throw new Error("Ran out of text content when drawing inline views");if(P){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,h--;continue}else this.text=T,this.textOff=0}let S=Math.min(this.text.length-this.textOff,h,512);this.flushBuffer(m.slice(m.length-y)),this.getLine().append(ei(new Rt(this.text.slice(this.textOff,this.textOff+S)),m),y),this.atCursorPos=!0,this.textOff+=S,h-=S,y=0}}span(h,m,y,S){this.buildText(m-h,y,S),this.pos=m,this.openStart<0&&(this.openStart=S)}point(h,m,y,S,T,P){if(this.disallowBlockEffectsFor[P]&&y instanceof At){if(y.block)throw new RangeError("Block decorations may not be specified via plugins");if(m>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let Q=m-h;if(y instanceof At)if(y.block)y.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Ye(y.widget||qr.block,Q,y));else{let q=bn.create(y.widget||qr.inline,Q,Q?0:y.startSide),fe=this.atCursorPos&&!q.isEditable&&T<=S.length&&(h0),le=!q.isEditable&&(hS.length||y.startSide<=0),Pe=this.getLine();this.pendingBuffer==2&&!fe&&!q.isEditable&&(this.pendingBuffer=0),this.flushBuffer(S),fe&&(Pe.append(ei(new Dn(1),S),T),T=S.length+Math.max(0,T-S.length)),Pe.append(ei(q,S),T),this.atCursorPos=le,this.pendingBuffer=le?hS.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=S.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(y);Q&&(this.textOff+Q<=this.text.length?this.textOff+=Q:(this.skip+=Q-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=m),this.openStart<0&&(this.openStart=T)}static build(h,m,y,S,T){let P=new Ar(h,m,y,T);return P.openEnd=ue.Xs.spans(S,m,y,P),P.openStart<0&&(P.openStart=P.openEnd),P.finish(P.openEnd),P}}function ei(v,h){for(let m of h)v=new Kt(m,[v],v.length);return v}class qr extends bt{constructor(h){super(),this.tag=h}eq(h){return h.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(h){return h.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}qr.inline=new qr("span"),qr.block=new qr("div");var ur=function(v){return v[v.LTR=0]="LTR",v[v.RTL=1]="RTL",v}(ur||(ur={}));const Vr=ur.LTR,Er=ur.RTL;function ki(v){let h=[];for(let m=0;m=m){if(Q.level==y)return P;(T<0||(S!=0?S<0?Q.fromm:h[T].level>Q.level))&&(T=P)}}if(T<0)throw new RangeError("Index out of range");return T}}function Si(v,h){if(v.length!=h.length)return!1;for(let m=0;m=0;Bt-=3)if(ii[Bt+1]==-mt){let Ht=ii[Bt+2],It=Ht&2?S:Ht&4?Ht&1?T:S:0;It&&(Sr[Pe]=Sr[ii[Bt]]=It),Q=Bt;break}}else{if(ii.length==189)break;ii[Q++]=Pe,ii[Q++]=We,ii[Q++]=q}else if((Ct=Sr[Pe])==2||Ct==1){let Bt=Ct==S;q=Bt?0:1;for(let Ht=Q-3;Ht>=0;Ht-=3){let It=ii[Ht+2];if(It&2)break;if(Bt)ii[Ht+2]|=2;else{if(It&4)break;ii[Ht+2]|=4}}}}}function ta(v,h,m,y){for(let S=0,T=y;S<=m.length;S++){let P=S?m[S-1].to:v,Q=Sq;)Ct==Ht&&(Ct=m[--Bt].from,Ht=Bt?m[Bt-1].to:v),Sr[--Ct]=mt;q=le}else T=fe,q++}}}function na(v,h,m,y,S,T,P){let Q=y%2?2:1;if(y%2==S%2)for(let q=h,fe=0;qq&&P.push(new Ii(q,Bt.from,mt));let Ht=Bt.direction==Vr!=!(mt%2);ke(v,Ht?y+1:y,S,Bt.inner,Bt.from,Bt.to,P),q=Bt.to}Ct=Bt.to}else{if(Ct==m||(le?Sr[Ct]!=Q:Sr[Ct]==Q))break;Ct++}We?na(v,q,Ct,y+1,S,We,P):qh;){let le=!0,Pe=!1;if(!fe||q>T[fe-1].to){let Bt=Sr[q-1];Bt!=Q&&(le=!1,Pe=Bt==16)}let We=!le&&Q==1?[]:null,mt=le?y:y+1,Ct=q;e:for(;;)if(fe&&Ct==T[fe-1].to){if(Pe)break e;let Bt=T[--fe];if(!le)for(let Ht=Bt.from,It=fe;;){if(Ht==h)break e;if(It&&T[It-1].to==Ht)Ht=T[--It].from;else{if(Sr[Ht-1]==Q)break e;break}}if(We)We.push(Bt);else{Bt.toSr.length;)Sr[Sr.length]=256;let y=[],S=h==Vr?0:1;return ke(v,S,S,m,0,v.length,y),y}function _(v){return[new Ii(0,v,0)]}let U="";function V(v,h,m,y,S){var T;let P=y.head-v.from,Q=Ii.find(h,P,(T=y.bidiLevel)!==null&&T!==void 0?T:-1,y.assoc),q=h[Q],fe=q.side(S,m);if(P==fe){let We=Q+=S?1:-1;if(We<0||We>=h.length)return null;q=h[Q=We],P=q.side(!S,m),fe=q.side(S,m)}let le=(0,ue.cp)(v.text,P,q.forward(S,m));(leq.to)&&(le=fe),U=v.text.slice(Math.min(P,le),Math.max(P,le));let Pe=Q==(S?h.length-1:0)?null:h[Q+(S?1:-1)];return Pe&&le==fe&&Pe.level+(S?0:1)v.some(h=>h)}),Fr=ue.r$.define({combine:v=>v.some(h=>h)}),Xr=ue.r$.define();class he{constructor(h,m="nearest",y="nearest",S=5,T=5,P=!1){this.range=h,this.y=m,this.x=y,this.yMargin=S,this.xMargin=T,this.isSnapshot=P}map(h){return h.empty?this:new he(this.range.map(h),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(h){return this.range.to<=h.doc.length?this:new he(ue.jT.cursor(h.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Y=ue.Py.define({map:(v,h)=>v.map(h)}),oe=ue.Py.define();function Te(v,h,m){let y=v.facet(pt);y.length?y[0](h):window.onerror?window.onerror(String(h),m,void 0,void 0,h):m?console.error(m+":",h):console.error(h)}const Ie=ue.r$.define({combine:v=>v.length?v[0]:!0});let Xe=0;const M=ue.r$.define();class D{constructor(h,m,y,S,T){this.id=h,this.create=m,this.domEventHandlers=y,this.domEventObservers=S,this.extension=T(this)}static define(h,m){const{eventHandlers:y,eventObservers:S,provide:T,decorations:P}=m||{};return new D(Xe++,h,y,S,Q=>{let q=[M.of(Q)];return P&&q.push(Re.of(fe=>{let le=fe.plugin(Q);return le?P(le):Tt.none})),T&&q.push(T(Q)),q})}static fromClass(h,m){return D.define(y=>new h(y),m)}}class F{constructor(h){this.spec=h,this.mustUpdate=null,this.value=null}update(h){if(this.value){if(this.mustUpdate){let m=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(m)}catch(y){if(Te(m.state,y,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(S){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(h)}catch(m){Te(h.state,m,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(h){var m;if(!((m=this.value)===null||m===void 0)&&m.destroy)try{this.value.destroy()}catch(y){Te(h.state,y,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const W=ue.r$.define(),ie=ue.r$.define(),Re=ue.r$.define(),Je=ue.r$.define(),ht=ue.r$.define(),wt=ue.r$.define();function en(v,h){let m=v.state.facet(wt);if(!m.length)return m;let y=m.map(T=>T instanceof Function?T(v):T),S=[];return ue.Xs.spans(y,h.from,h.to,{point(){},span(T,P,Q,q){let fe=T-h.from,le=P-h.from,Pe=S;for(let We=Q.length-1;We>=0;We--,q--){let mt=Q[We].spec.bidiIsolate,Ct;if(mt==null&&(mt=ne(h.text,fe,le)),q>0&&Pe.length&&(Ct=Pe[Pe.length-1]).to==fe&&Ct.direction==mt)Ct.to=le,Pe=Ct.inner;else{let Bt={from:fe,to:le,direction:mt,inner:[]};Pe.push(Bt),Pe=Bt.inner}}}}),S}const nn=ue.r$.define();function Cr(v){let h=0,m=0,y=0,S=0;for(let T of v.state.facet(nn)){let P=T(v);P&&(P.left!=null&&(h=Math.max(h,P.left)),P.right!=null&&(m=Math.max(m,P.right)),P.top!=null&&(y=Math.max(y,P.top)),P.bottom!=null&&(S=Math.max(S,P.bottom)))}return{left:h,right:m,top:y,bottom:S}}const dn=ue.r$.define();class cr{constructor(h,m,y,S){this.fromA=h,this.toA=m,this.fromB=y,this.toB=S}join(h){return new cr(Math.min(this.fromA,h.fromA),Math.max(this.toA,h.toA),Math.min(this.fromB,h.fromB),Math.max(this.toB,h.toB))}addToSet(h){let m=h.length,y=this;for(;m>0;m--){let S=h[m-1];if(!(S.fromA>y.toA)){if(S.toAle)break;T+=2}if(!q)return y;new cr(q.fromA,q.toA,q.fromB,q.toB).addToSet(y),P=q.toA,Q=q.toB}}}class $r{constructor(h,m,y){this.view=h,this.state=m,this.transactions=y,this.flags=0,this.startState=h.state,this.changes=ue.as.empty(this.startState.doc.length);for(let T of y)this.changes=this.changes.compose(T.changes);let S=[];this.changes.iterChangedRanges((T,P,Q,q)=>S.push(new cr(T,P,Q,q))),this.changedRanges=S}static create(h,m,y){return new $r(h,m,y)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(h=>h.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class _r extends ut{get length(){return this.view.state.doc.length}constructor(h){super(),this.view=h,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=Tt.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(h.contentDOM),this.children=[new er],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new cr(0,0,0,h.state.doc.length)],0,null)}update(h){var m;let y=h.changedRanges;this.minWidth>0&&y.length&&(y.every(({fromA:fe,toA:le})=>lethis.minWidthTo)?(this.minWidthFrom=h.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=h.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(h);let S=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((m=this.domChanged)===null||m===void 0)&&m.newSel?S=this.domChanged.newSel.head:!Ft(h.changes,this.hasComposition)&&!h.selectionSet&&(S=h.state.selection.main.head));let T=S>-1?me(this.view,h.changes,S):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:fe,to:le}=this.hasComposition;y=new cr(fe,le,h.changes.mapPos(fe,-1),h.changes.mapPos(le,1)).addToSet(y.slice())}this.hasComposition=T?{from:T.range.fromB,to:T.range.toB}:null,(Ce.ie||Ce.chrome)&&!T&&h&&h.state.doc.lines!=h.startState.doc.lines&&(this.forceSelection=!0);let P=this.decorations,Q=this.updateDeco(),q=nt(P,Q,h.changes);return y=cr.extendWithRanges(y,q),!(this.flags&7)&&y.length==0?!1:(this.updateInner(y,h.startState.doc.length,T),h.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(h,m,y){this.view.viewState.mustMeasureContent=!0,this.updateChildren(h,m,y);let{observer:S}=this.view;S.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let P=Ce.chrome||Ce.ios?{node:S.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,P),this.flags&=-8,P&&(P.written||S.selectionRange.focusNode!=P.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(P=>P.flags&=-9);let T=[];if(this.view.viewport.from||this.view.viewport.to=0?S[P]:null;if(!Q)break;let{fromA:q,toA:fe,fromB:le,toB:Pe}=Q,We,mt,Ct,Bt;if(y&&y.range.fromBle){let gr=Ar.build(this.view.state.doc,le,y.range.fromB,this.decorations,this.dynamicDecorationMap),Lr=Ar.build(this.view.state.doc,y.range.toB,Pe,this.decorations,this.dynamicDecorationMap);mt=gr.breakAtStart,Ct=gr.openStart,Bt=Lr.openEnd;let ri=this.compositionView(y);Lr.breakAtStart?ri.breakAfter=1:Lr.content.length&&ri.merge(ri.length,ri.length,Lr.content[0],!1,Lr.openStart,0)&&(ri.breakAfter=Lr.content[0].breakAfter,Lr.content.shift()),gr.content.length&&ri.merge(0,0,gr.content[gr.content.length-1],!0,0,gr.openEnd)&&gr.content.pop(),We=gr.content.concat(ri).concat(Lr.content)}else({content:We,breakAtStart:mt,openStart:Ct,openEnd:Bt}=Ar.build(this.view.state.doc,le,Pe,this.decorations,this.dynamicDecorationMap));let{i:Ht,off:It}=T.findPos(fe,1),{i:ar,off:Qr}=T.findPos(q,-1);an(this,ar,Qr,Ht,It,We,mt,Ct,Bt)}y&&this.fixCompositionDOM(y)}updateEditContextFormatting(h){this.editContextFormatting=this.editContextFormatting.map(h.changes);for(let m of h.transactions)for(let y of m.effects)y.is(oe)&&(this.editContextFormatting=y.value)}compositionView(h){let m=new Rt(h.text.nodeValue);m.flags|=8;for(let{deco:S}of h.marks)m=new Kt(S,[m],m.length);let y=new er;return y.append(m,0),y}fixCompositionDOM(h){let m=(T,P)=>{P.flags|=8|(P.children.some(q=>q.flags&7)?1:0),this.markedForComposition.add(P);let Q=ut.get(T);Q&&Q!=P&&(Q.dom=null),P.setDOM(T)},y=this.childPos(h.range.fromB,1),S=this.children[y.i];m(h.line,S);for(let T=h.marks.length-1;T>=-1;T--)y=S.childPos(y.off,1),S=S.children[y.i],m(T>=0?h.marks[T].node:h.text,S)}updateSelection(h=!1,m=!1){(h||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let y=this.view.root.activeElement,S=y==this.dom,T=!S&>(this.dom,this.view.observer.selectionRange)&&!(y&&this.dom.contains(y));if(!(S||m||T))return;let P=this.forceSelection;this.forceSelection=!1;let Q=this.view.state.selection.main,q=this.moveToLine(this.domAtPos(Q.anchor)),fe=Q.empty?q:this.moveToLine(this.domAtPos(Q.head));if(Ce.gecko&&Q.empty&&!this.hasComposition&&ce(q)){let Pe=document.createTextNode("");this.view.observer.ignore(()=>q.node.insertBefore(Pe,q.node.childNodes[q.offset]||null)),q=fe=new $e(Pe,0),P=!0}let le=this.view.observer.selectionRange;(P||!le.focusNode||(!st(q.node,q.offset,le.anchorNode,le.anchorOffset)||!st(fe.node,fe.offset,le.focusNode,le.focusOffset))&&!this.suppressWidgetCursorChange(le,Q))&&(this.view.observer.ignore(()=>{Ce.android&&Ce.chrome&&this.dom.contains(le.focusNode)&&ct(le.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let Pe=ft(this.view.root);if(Pe)if(Q.empty){if(Ce.gecko){let We=Le(q.node,q.offset);if(We&&We!=3){let mt=(We==1?ye:Ze)(q.node,q.offset);mt&&(q=new $e(mt.node,mt.offset))}}Pe.collapse(q.node,q.offset),Q.bidiLevel!=null&&Pe.caretBidiLevel!==void 0&&(Pe.caretBidiLevel=Q.bidiLevel)}else if(Pe.extend){Pe.collapse(q.node,q.offset);try{Pe.extend(fe.node,fe.offset)}catch(We){}}else{let We=document.createRange();Q.anchor>Q.head&&([q,fe]=[fe,q]),We.setEnd(fe.node,fe.offset),We.setStart(q.node,q.offset),Pe.removeAllRanges(),Pe.addRange(We)}T&&this.view.root.activeElement==this.dom&&(this.dom.blur(),y&&y.focus())}),this.view.observer.setSelectionRange(q,fe)),this.impreciseAnchor=q.precise?null:new $e(le.anchorNode,le.anchorOffset),this.impreciseHead=fe.precise?null:new $e(le.focusNode,le.focusOffset)}suppressWidgetCursorChange(h,m){return this.hasComposition&&m.empty&&st(h.focusNode,h.focusOffset,h.anchorNode,h.anchorOffset)&&this.posFromDOM(h.focusNode,h.focusOffset)==m.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:h}=this,m=h.state.selection.main,y=ft(h.root),{anchorNode:S,anchorOffset:T}=h.observer.selectionRange;if(!y||!m.empty||!m.assoc||!y.modify)return;let P=er.find(this,m.head);if(!P)return;let Q=P.posAtStart;if(m.head==Q||m.head==Q+P.length)return;let q=this.coordsAt(m.head,-1),fe=this.coordsAt(m.head,1);if(!q||!fe||q.bottom>fe.top)return;let le=this.domAtPos(m.head+m.assoc);y.collapse(le.node,le.offset),y.modify("move",m.assoc<0?"forward":"backward","lineboundary"),h.observer.readSelectionRange();let Pe=h.observer.selectionRange;h.docView.posFromDOM(Pe.anchorNode,Pe.anchorOffset)!=m.from&&y.collapse(S,T)}moveToLine(h){let m=this.dom,y;if(h.node!=m)return h;for(let S=h.offset;!y&&S=0;S--){let T=ut.get(m.childNodes[S]);T instanceof er&&(y=T.domAtPos(T.length))}return y?new $e(y.node,y.offset,!0):h}nearest(h){for(let m=h;m;){let y=ut.get(m);if(y&&y.rootView==this)return y;m=m.parentNode}return null}posFromDOM(h,m){let y=this.nearest(h);if(!y)throw new RangeError("Trying to find position for a DOM position outside of the document");return y.localPosFromDOM(h,m)+y.posAtStart}domAtPos(h){let{i:m,off:y}=this.childCursor().findPos(h,-1);for(;m=0;P--){let Q=this.children[P],q=T-Q.breakAfter,fe=q-Q.length;if(qh||Q.covers(1))&&(!y||Q instanceof er&&!(y instanceof er&&m>=0)))y=Q,S=fe;else if(y&&fe==h&&q==h&&Q instanceof Ye&&Math.abs(m)<2){if(Q.deco.startSide<0)break;P&&(y=null)}T=fe}return y?y.coordsAt(h-S,m):null}coordsForChar(h){let{i:m,off:y}=this.childPos(h,1),S=this.children[m];if(!(S instanceof er))return null;for(;S.children.length;){let{i:Q,off:q}=S.childPos(y,1);for(;;Q++){if(Q==S.children.length)return null;if((S=S.children[Q]).length)break}y=q}if(!(S instanceof Rt))return null;let T=(0,ue.cp)(S.text,y);if(T==y)return null;let P=Yt(S.dom,y,T).getClientRects();for(let Q=0;QMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,Q=-1,q=this.view.textDirection==ur.LTR;for(let fe=0,le=0;leS)break;if(fe>=y){let mt=Pe.dom.getBoundingClientRect();if(m.push(mt.height),P){let Ct=Pe.dom.lastChild,Bt=Ct?On(Ct):[];if(Bt.length){let Ht=Bt[Bt.length-1],It=q?Ht.right-mt.left:mt.right-Ht.left;It>Q&&(Q=It,this.minWidth=T,this.minWidthFrom=fe,this.minWidthTo=We)}}}fe=We+Pe.breakAfter}return m}textDirectionAt(h){let{i:m}=this.childPos(h,1);return getComputedStyle(this.children[m].dom).direction=="rtl"?ur.RTL:ur.LTR}measureTextSize(){for(let T of this.children)if(T instanceof er){let P=T.measureTextSize();if(P)return P}let h=document.createElement("div"),m,y,S;return h.className="cm-line",h.style.width="99999px",h.style.position="absolute",h.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(h);let T=On(h.firstChild)[0];m=h.getBoundingClientRect().height,y=T?T.width/27:7,S=T?T.height:m,h.remove()}),{lineHeight:m,charWidth:y,textHeight:S}}childCursor(h=this.length){let m=this.children.length;return m&&(h-=this.children[--m].length),new vn(this.children,h,m)}computeBlockGapDeco(){let h=[],m=this.view.viewState;for(let y=0,S=0;;S++){let T=S==m.viewports.length?null:m.viewports[S],P=T?T.from-1:this.length;if(P>y){let Q=(m.lineBlockAt(P).bottom-m.lineBlockAt(y).top)/this.view.scaleY;h.push(Tt.replace({widget:new B(Q),block:!0,inclusive:!0,isBlockGap:!0}).range(y,P))}if(!T)break;y=T.to+1}return Tt.set(h)}updateDeco(){let h=1,m=this.view.state.facet(Re).map(T=>(this.dynamicDecorationMap[h++]=typeof T=="function")?T(this.view):T),y=!1,S=this.view.state.facet(Je).map((T,P)=>{let Q=typeof T=="function";return Q&&(y=!0),Q?T(this.view):T});for(S.length&&(this.dynamicDecorationMap[h++]=y,m.push(ue.Xs.join(S))),this.decorations=[this.editContextFormatting,...m,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];hm.anchor?-1:1),S;if(!y)return;!m.empty&&(S=this.coordsAt(m.anchor,m.anchor>m.head?-1:1))&&(y={left:Math.min(y.left,S.left),top:Math.min(y.top,S.top),right:Math.max(y.right,S.right),bottom:Math.max(y.bottom,S.bottom)});let T=Cr(this.view),P={left:y.left-T.left,top:y.top-T.top,right:y.right+T.right,bottom:y.bottom+T.bottom},{offsetWidth:Q,offsetHeight:q}=this.view.scrollDOM;Tr(this.view.scrollDOM,P,m.head{yh.from&&(m=!0)}),m}function Tn(v,h,m=1){let y=v.charCategorizer(h),S=v.doc.lineAt(h),T=h-S.from;if(S.length==0)return ue.jT.cursor(h);T==0?m=1:T==S.length&&(m=-1);let P=T,Q=T;m<0?P=(0,ue.cp)(S.text,T,!1):Q=(0,ue.cp)(S.text,T);let q=y(S.text.slice(P,Q));for(;P>0;){let fe=(0,ue.cp)(S.text,P,!1);if(y(S.text.slice(fe,P))!=q)break;P=fe}for(;Qv?h.left-v:Math.max(0,v-h.right)}function hi(v,h){return h.top>v?h.top-v:Math.max(0,v-h.bottom)}function ms(v,h){return v.toph.top+1}function gs(v,h){return hv.bottom?{top:v.top,left:v.left,right:v.right,bottom:h}:v}function _a(v,h,m){let y,S,T,P,Q=!1,q,fe,le,Pe;for(let Ct=v.firstChild;Ct;Ct=Ct.nextSibling){let Bt=On(Ct);for(let Ht=0;HtQr||P==Qr&&T>ar){y=Ct,S=It,T=ar,P=Qr;let gr=Qr?m0?Ht0)}ar==0?m>It.bottom&&(!le||le.bottomIt.top)&&(fe=Ct,Pe=It):le&&ms(le,It)?le=Ss(le,It.bottom):Pe&&ms(Pe,It)&&(Pe=gs(Pe,It.top))}}if(le&&le.bottom>=m?(y=q,S=le):Pe&&Pe.top<=m&&(y=fe,S=Pe),!y)return{node:v,offset:0};let We=Math.max(S.left,Math.min(S.right,h));if(y.nodeType==3)return pd(y,We,m);if(Q&&y.contentEditable!="false")return _a(y,We,m);let mt=Array.prototype.indexOf.call(v.childNodes,y)+(h>=(S.left+S.right)/2?1:0);return{node:v,offset:mt}}function pd(v,h,m){let y=v.nodeValue.length,S=-1,T=1e9,P=0;for(let Q=0;Qm?le.top-m:m-le.bottom)-1;if(le.left-1<=h&&le.right+1>=h&&Pe=(le.left+le.right)/2,mt=We;if((Ce.chrome||Ce.gecko)&&Yt(v,Q).getBoundingClientRect().left==le.right&&(mt=!We),Pe<=0)return{node:v,offset:Q+(mt?1:0)};S=Q+(mt?1:0),T=Pe}}}return{node:v,offset:S>-1?S:P>0?v.nodeValue.length:0}}function Tl(v,h,m,y=-1){var S,T;let P=v.contentDOM.getBoundingClientRect(),Q=P.top+v.viewState.paddingTop,q,{docHeight:fe}=v.viewState,{x:le,y:Pe}=h,We=Pe-Q;if(We<0)return 0;if(We>fe)return v.state.doc.length;for(let gr=v.viewState.heightOracle.textHeight/2,Lr=!1;q=v.elementAtHeight(We),q.type!=Mt.Text;)for(;We=y>0?q.bottom+gr:q.top-gr,!(We>=0&&We<=fe);){if(Lr)return m?null:0;Lr=!0,y=-y}Pe=Q+We;let mt=q.from;if(mtv.viewport.to)return v.viewport.to==v.state.doc.length?v.state.doc.length:m?null:Cl(v,P,q,le,Pe);let Ct=v.dom.ownerDocument,Bt=v.root.elementFromPoint?v.root:Ct,Ht=Bt.elementFromPoint(le,Pe);Ht&&!v.contentDOM.contains(Ht)&&(Ht=null),Ht||(le=Math.max(P.left+1,Math.min(P.right-1,le)),Ht=Bt.elementFromPoint(le,Pe),Ht&&!v.contentDOM.contains(Ht)&&(Ht=null));let It,ar=-1;if(Ht&&((S=v.docView.nearest(Ht))===null||S===void 0?void 0:S.isEditable)!=!1){if(Ct.caretPositionFromPoint){let gr=Ct.caretPositionFromPoint(le,Pe);gr&&({offsetNode:It,offset:ar}=gr)}else if(Ct.caretRangeFromPoint){let gr=Ct.caretRangeFromPoint(le,Pe);gr&&({startContainer:It,startOffset:ar}=gr,(!v.contentDOM.contains(It)||Ce.safari&&K0(It,ar,le)||Ce.chrome&&zh(It,ar,le))&&(It=void 0))}}if(!It||!v.docView.dom.contains(It)){let gr=er.find(v.docView,mt);if(!gr)return We>q.top+q.height/2?q.to:q.from;({node:It,offset:ar}=_a(gr.dom,le,Pe))}let Qr=v.docView.nearest(It);if(!Qr)return null;if(Qr.isWidget&&((T=Qr.dom)===null||T===void 0?void 0:T.nodeType)==1){let gr=Qr.dom.getBoundingClientRect();return h.yv.defaultLineHeight*1.5){let Q=v.viewState.heightOracle.textHeight,q=Math.floor((S-m.top-(v.defaultLineHeight-Q)*.5)/Q);T+=q*v.viewState.heightOracle.lineLength}let P=v.state.sliceDoc(m.from,m.to);return m.from+(0,ue.Gz)(P,T,v.state.tabSize)}function K0(v,h,m){let y;if(v.nodeType!=3||h!=(y=v.nodeValue.length))return!1;for(let S=v.nextSibling;S;S=S.nextSibling)if(S.nodeType!=1||S.nodeName!="BR")return!1;return Yt(v,y-1,y).getBoundingClientRect().left>m}function zh(v,h,m){if(h!=0)return!1;for(let S=v;;){let T=S.parentNode;if(!T||T.nodeType!=1||T.firstChild!=S)return!1;if(T.classList.contains("cm-line"))break;S=T}let y=v.nodeType==1?v.getBoundingClientRect():Yt(v,0,Math.max(v.nodeValue.length,1)).getBoundingClientRect();return m-y.left>5}function Go(v,h){let m=v.lineBlockAt(h);if(Array.isArray(m.type)){for(let y of m.type)if(y.to>h||y.to==h&&(y.to==m.to||y.type==Mt.Text))return y}return m}function J0(v,h,m,y){let S=Go(v,h.head),T=!y||S.type!=Mt.Text||!(v.lineWrapping||S.widgetLineBreaks)?null:v.coordsAtPos(h.assoc<0&&h.head>S.from?h.head-1:h.head);if(T){let P=v.dom.getBoundingClientRect(),Q=v.textDirectionAt(S.from),q=v.posAtCoords({x:m==(Q==ur.LTR)?P.right-1:P.left+1,y:(T.top+T.bottom)/2});if(q!=null)return ue.jT.cursor(q,m?-1:1)}return ue.jT.cursor(m?S.to:S.from,m?-1:1)}function Di(v,h,m,y){let S=v.state.doc.lineAt(h.head),T=v.bidiSpans(S),P=v.textDirectionAt(S.from);for(let Q=h,q=null;;){let fe=V(S,T,P,Q,m),le=U;if(!fe){if(S.number==(m?v.state.doc.lines:1))return Q;le=` -`,S=v.state.doc.line(S.number+(m?1:-1)),T=v.bidiSpans(S),fe=v.visualLineSide(S,!m)}if(q){if(!q(le))return Q}else{if(!y)return fe;q=y(le)}Q=fe}}function Qh(v,h,m){let y=v.state.charCategorizer(h),S=y(m);return T=>{let P=y(T);return S==ue.D0.Space&&(S=P),S==P}}function Gf(v,h,m,y){let S=h.head,T=m?1:-1;if(S==(m?v.state.doc.length:0))return ue.jT.cursor(S,h.assoc);let P=h.goalColumn,Q,q=v.contentDOM.getBoundingClientRect(),fe=v.coordsAtPos(S,h.assoc||-1),le=v.documentTop;if(fe)P==null&&(P=fe.left-q.left),Q=T<0?fe.top:fe.bottom;else{let mt=v.viewState.lineBlockAt(S);P==null&&(P=Math.min(q.right-q.left,v.defaultCharacterWidth*(S-mt.from))),Q=(T<0?mt.top:mt.bottom)+le}let Pe=q.left+P,We=y!=null?y:v.viewState.heightOracle.textHeight>>1;for(let mt=0;;mt+=10){let Ct=Q+(We+mt)*T,Bt=Tl(v,{x:Pe,y:Ct},!1,T);if(Ctq.bottom||(T<0?BtS)){let Ht=v.docView.coordsForChar(Bt),It=!Ht||Ct{if(h>T&&hS(v)),m.from,h.head>m.from?-1:1);return y==m.from?m:ue.jT.cursor(y,ynull),Ce.gecko&&Jf(h.contentDOM.ownerDocument)}handleEvent(h){!Yo(this.view,h)||this.ignoreDuringComposition(h)||h.type=="keydown"&&this.keydown(h)||this.runHandlers(h.type,h)}runHandlers(h,m){let y=this.handlers[h];if(y){for(let S of y.observers)S(this.view,m);for(let S of y.handlers){if(m.defaultPrevented)break;if(S(this.view,m)){m.preventDefault();break}}}}ensureHandlers(h){let m=Va(h),y=this.handlers,S=this.view.contentDOM;for(let T in m)if(T!="scroll"){let P=!m[T].handlers.length,Q=y[T];Q&&P!=!Q.handlers.length&&(S.removeEventListener(T,this.handleEvent),Q=null),Q||S.addEventListener(T,this.handleEvent,{passive:P})}for(let T in y)T!="scroll"&&!m[T]&&S.removeEventListener(T,this.handleEvent);this.handlers=m}keydown(h){if(this.lastKeyCode=h.keyCode,this.lastKeyTime=Date.now(),h.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&h.keyCode!=27&&eb.indexOf(h.keyCode)<0&&(this.tabFocusMode=-1),Ce.android&&Ce.chrome&&!h.synthetic&&(h.keyCode==13||h.keyCode==8))return this.view.observer.delayAndroidKey(h.key,h.keyCode),!0;let m;return Ce.ios&&!h.synthetic&&!h.altKey&&!h.metaKey&&((m=Vh.find(y=>y.keyCode==h.keyCode))&&!h.ctrlKey||_l.indexOf(h.key)>-1&&h.ctrlKey&&!h.shiftKey)?(this.pendingIOSKey=m||h,setTimeout(()=>this.flushIOSKey(),250),!0):(h.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(h){let m=this.pendingIOSKey;return!m||m.key=="Enter"&&h&&h.from0?!0:Ce.safari&&!Ce.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(h){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=h}update(h){this.view.observer.update(h),this.mouseSelection&&this.mouseSelection.update(h),this.draggedContent&&h.docChanged&&(this.draggedContent=this.draggedContent.map(h.changes)),h.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function fd(v,h){return(m,y)=>{try{return h.call(v,y,m)}catch(S){Te(m.state,S)}}}function Va(v){let h=Object.create(null);function m(y){return h[y]||(h[y]={observers:[],handlers:[]})}for(let y of v){let S=y.spec;if(S&&S.domEventHandlers)for(let T in S.domEventHandlers){let P=S.domEventHandlers[T];P&&m(T).handlers.push(fd(y.value,P))}if(S&&S.domEventObservers)for(let T in S.domEventObservers){let P=S.domEventObservers[T];P&&m(T).observers.push(fd(y.value,P))}}for(let y in Qs)m(y).handlers.push(Qs[y]);for(let y in ya)m(y).observers.push(ya[y]);return h}const Vh=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],_l="dthko",eb=[16,17,18,20,91,92,224,225],md=6;function Oa(v){return Math.max(0,v)*.7+8}function tb(v,h){return Math.max(Math.abs(v.clientX-h.clientX),Math.abs(v.clientY-h.clientY))}class nb{constructor(h,m,y,S){this.view=h,this.startEvent=m,this.style=y,this.mustSelect=S,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=m,this.scrollParents=Br(h.contentDOM),this.atoms=h.state.facet(ht).map(P=>P(h));let T=h.contentDOM.ownerDocument;T.addEventListener("mousemove",this.move=this.move.bind(this)),T.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=m.shiftKey,this.multiple=h.state.facet(ue.yy.allowMultipleSelections)&&rb(h,m),this.dragging=oc(h,m)&&Yf(m)==1?null:!1}start(h){this.dragging===!1&&this.select(h)}move(h){if(h.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&tb(this.startEvent,h)<10)return;this.select(this.lastEvent=h);let m=0,y=0,S=0,T=0,P=this.view.win.innerWidth,Q=this.view.win.innerHeight;this.scrollParents.x&&({left:S,right:P}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:T,bottom:Q}=this.scrollParents.y.getBoundingClientRect());let q=Cr(this.view);h.clientX-q.left<=S+md?m=-Oa(S-h.clientX):h.clientX+q.right>=P-md&&(m=Oa(h.clientX-P)),h.clientY-q.top<=T+md?y=-Oa(T-h.clientY):h.clientY+q.bottom>=Q-md&&(y=Oa(h.clientY-Q)),this.setScrollSpeed(m,y)}up(h){this.dragging==null&&this.select(this.lastEvent),this.dragging||h.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let h=this.view.contentDOM.ownerDocument;h.removeEventListener("mousemove",this.move),h.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(h,m){this.scrollSpeed={x:h,y:m},h||m?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:h,y:m}=this.scrollSpeed;h&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=h,h=0),m&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=m,m=0),(h||m)&&this.view.win.scrollBy(h,m),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(h){let m=null;for(let y=0;ym.isUserEvent("input.type"))?this.destroy():this.style.update(h)&&setTimeout(()=>this.select(this.lastEvent),20)}}function rb(v,h){let m=v.state.facet(te);return m.length?m[0](h):Ce.mac?h.metaKey:h.ctrlKey}function Ci(v,h){let m=v.state.facet(_e);return m.length?m[0](h):Ce.mac?!h.altKey:!h.ctrlKey}function oc(v,h){let{main:m}=v.state.selection;if(m.empty)return!1;let y=ft(v.root);if(!y||y.rangeCount==0)return!0;let S=y.getRangeAt(0).getClientRects();for(let T=0;T=h.clientX&&P.top<=h.clientY&&P.bottom>=h.clientY)return!0}return!1}function Yo(v,h){if(!h.bubbles)return!0;if(h.defaultPrevented)return!1;for(let m=h.target,y;m!=v.contentDOM;m=m.parentNode)if(!m||m.nodeType==11||(y=ut.get(m))&&y.ignoreEvent(h))return!1;return!0}const Qs=Object.create(null),ya=Object.create(null),Ea=Ce.ie&&Ce.ie_version<15||Ce.ios&&Ce.webkit_version<604;function jh(v){let h=v.dom.parentNode;if(!h)return;let m=h.appendChild(document.createElement("textarea"));m.style.cssText="position: fixed; left: -10000px; top: 10px",m.focus(),setTimeout(()=>{v.focus(),m.remove(),ja(v,m.value)},50)}function ja(v,h){let{state:m}=v,y,S=1,T=m.toText(h),P=T.lines==m.selection.ranges.length;if(qo!=null&&m.selection.ranges.every(q=>q.empty)&&qo==T.toString()){let q=-1;y=m.changeByRange(fe=>{let le=m.doc.lineAt(fe.from);if(le.from==q)return{range:fe};q=le.from;let Pe=m.toText((P?T.line(S++).text:h)+m.lineBreak);return{changes:{from:le.from,insert:Pe},range:ue.jT.cursor(fe.from+Pe.length)}})}else P?y=m.changeByRange(q=>{let fe=T.line(S++);return{changes:{from:q.from,to:q.to,insert:fe.text},range:ue.jT.cursor(q.from+fe.length)}}):y=m.replaceSelection(T);v.dispatch(y,{userEvent:"input.paste",scrollIntoView:!0})}ya.scroll=v=>{v.inputState.lastScrollTop=v.scrollDOM.scrollTop,v.inputState.lastScrollLeft=v.scrollDOM.scrollLeft},Qs.keydown=(v,h)=>(v.inputState.setSelectionOrigin("select"),h.keyCode==27&&v.inputState.tabFocusMode!=0&&(v.inputState.tabFocusMode=Date.now()+2e3),!1),ya.touchstart=(v,h)=>{v.inputState.lastTouchTime=Date.now(),v.inputState.setSelectionOrigin("select.pointer")},ya.touchmove=v=>{v.inputState.setSelectionOrigin("select.pointer")},Qs.mousedown=(v,h)=>{if(v.observer.flush(),v.inputState.lastTouchTime>Date.now()-2e3)return!1;let m=null;for(let y of v.state.facet(ze))if(m=y(v,h),m)break;if(!m&&h.button==0&&(m=ia(v,h)),m){let y=!v.hasFocus;v.inputState.startMouseSelection(new nb(v,h,m,y)),y&&v.observer.ignore(()=>{Xt(v.contentDOM);let T=v.root.activeElement;T&&!T.contains(v.contentDOM)&&T.blur()});let S=v.inputState.mouseSelection;if(S)return S.start(h),S.dragging===!1}return!1};function yo(v,h,m,y){if(y==1)return ue.jT.cursor(h,m);if(y==2)return Tn(v.state,h,m);{let S=er.find(v.docView,h),T=v.state.doc.lineAt(S?S.posAtEnd:h),P=S?S.posAtStart:T.from,Q=S?S.posAtEnd:T.to;return Qh>=m.top&&h<=m.bottom&&v>=m.left&&v<=m.right;function Zh(v,h,m,y){let S=er.find(v.docView,h);if(!S)return 1;let T=h-S.posAtStart;if(T==0)return 1;if(T==S.length)return-1;let P=S.coordsAt(T,-1);if(P&&gd(m,y,P))return-1;let Q=S.coordsAt(T,1);return Q&&gd(m,y,Q)?1:P&&P.bottom>=y?-1:1}function vs(v,h){let m=v.posAtCoords({x:h.clientX,y:h.clientY},!1);return{pos:m,bias:Zh(v,m,h.clientX,h.clientY)}}const ao=Ce.ie&&Ce.ie_version<=11;let ra=null,lc=0,Vs=0;function Yf(v){if(!ao)return v.detail;let h=ra,m=Vs;return ra=v,Vs=Date.now(),lc=!h||m>Date.now()-400&&Math.abs(h.clientX-v.clientX)<2&&Math.abs(h.clientY-v.clientY)<2?(lc+1)%3:1}function ia(v,h){let m=vs(v,h),y=Yf(h),S=v.state.selection;return{update(T){T.docChanged&&(m.pos=T.changes.mapPos(m.pos),S=S.map(T.changes))},get(T,P,Q){let q=vs(v,T),fe,le=yo(v,q.pos,q.bias,y);if(m.pos!=q.pos&&!P){let Pe=yo(v,m.pos,m.bias,y),We=Math.min(Pe.from,le.from),mt=Math.max(Pe.to,le.to);le=We1&&(fe=Nl(S,q.pos))?fe:Q?S.addRange(le):ue.jT.create([le])}}}function Nl(v,h){for(let m=0;m=h)return ue.jT.create(v.ranges.slice(0,m).concat(v.ranges.slice(m+1)),v.mainIndex==m?0:v.mainIndex-(v.mainIndex>m?1:0))}return null}Qs.dragstart=(v,h)=>{let{selection:{main:m}}=v.state;if(h.target.draggable){let S=v.docView.nearest(h.target);if(S&&S.isWidget){let T=S.posAtStart,P=T+S.length;(T>=m.to||P<=m.from)&&(m=ue.jT.range(T,P))}}let{inputState:y}=v;return y.mouseSelection&&(y.mouseSelection.dragging=!0),y.draggedContent=m,h.dataTransfer&&(h.dataTransfer.setData("Text",v.state.sliceDoc(m.from,m.to)),h.dataTransfer.effectAllowed="copyMove"),!1},Qs.dragend=v=>(v.inputState.draggedContent=null,!1);function Sa(v,h,m,y){if(!m)return;let S=v.posAtCoords({x:h.clientX,y:h.clientY},!1),{draggedContent:T}=v.inputState,P=y&&T&&Ci(v,h)?{from:T.from,to:T.to}:null,Q={from:S,insert:m},q=v.state.changes(P?[P,Q]:Q);v.focus(),v.dispatch({changes:q,selection:{anchor:q.mapPos(S,-1),head:q.mapPos(S,1)},userEvent:P?"move.drop":"input.drop"}),v.inputState.draggedContent=null}Qs.drop=(v,h)=>{if(!h.dataTransfer)return!1;if(v.state.readOnly)return!0;let m=h.dataTransfer.files;if(m&&m.length){let y=Array(m.length),S=0,T=()=>{++S==m.length&&Sa(v,h,y.filter(P=>P!=null).join(v.state.lineBreak),!1)};for(let P=0;P{/[\x00-\x08\x0e-\x1f]{2}/.test(Q.result)||(y[P]=Q.result),T()},Q.readAsText(m[P])}return!0}else{let y=h.dataTransfer.getData("Text");if(y)return Sa(v,h,y,!0),!0}return!1},Qs.paste=(v,h)=>{if(v.state.readOnly)return!0;v.observer.flush();let m=Ea?null:h.clipboardData;return m?(ja(v,m.getData("text/plain")||m.getData("text/uri-list")),!0):(jh(v),!1)};function ib(v,h){let m=v.dom.parentNode;if(!m)return;let y=m.appendChild(document.createElement("textarea"));y.style.cssText="position: fixed; left: -10000px; top: 10px",y.value=h,y.focus(),y.selectionEnd=h.length,y.selectionStart=0,setTimeout(()=>{y.remove(),v.focus()},50)}function Za(v){let h=[],m=[],y=!1;for(let S of v.selection.ranges)S.empty||(h.push(v.sliceDoc(S.from,S.to)),m.push(S));if(!h.length){let S=-1;for(let{from:T}of v.selection.ranges){let P=v.doc.lineAt(T);P.number>S&&(h.push(P.text),m.push({from:P.from,to:Math.min(v.doc.length,P.to+1)})),S=P.number}y=!0}return{text:h.join(v.lineBreak),ranges:m,linewise:y}}let qo=null;Qs.copy=Qs.cut=(v,h)=>{let{text:m,ranges:y,linewise:S}=Za(v.state);if(!m&&!S)return!1;qo=S?m:null,h.type=="cut"&&!v.state.readOnly&&v.dispatch({changes:y,scrollIntoView:!0,userEvent:"delete.cut"});let T=Ea?null:h.clipboardData;return T?(T.clearData(),T.setData("text/plain",m),!0):(ib(v,m),!1)};const qf=ue.q6.define();function Xf(v,h){let m=[];for(let y of v.facet(Rn)){let S=y(v,h);S&&m.push(S)}return m?v.update({effects:m,annotations:qf.of(!0)}):null}function oo(v){setTimeout(()=>{let h=v.hasFocus;if(h!=v.inputState.notifiedFocused){let m=Xf(v.state,h);m?v.dispatch(m):v.update([])}},10)}ya.focus=v=>{v.inputState.lastFocusTime=Date.now(),!v.scrollDOM.scrollTop&&(v.inputState.lastScrollTop||v.inputState.lastScrollLeft)&&(v.scrollDOM.scrollTop=v.inputState.lastScrollTop,v.scrollDOM.scrollLeft=v.inputState.lastScrollLeft),oo(v)},ya.blur=v=>{v.observer.clearSelectionRange(),oo(v)},ya.compositionstart=ya.compositionupdate=v=>{v.observer.editContext||(v.inputState.compositionFirstChange==null&&(v.inputState.compositionFirstChange=!0),v.inputState.composing<0&&(v.inputState.composing=0))},ya.compositionend=v=>{v.observer.editContext||(v.inputState.composing=-1,v.inputState.compositionEndedAt=Date.now(),v.inputState.compositionPendingKey=!0,v.inputState.compositionPendingChange=v.observer.pendingRecords().length>0,v.inputState.compositionFirstChange=null,Ce.chrome&&Ce.android?v.observer.flushSoon():v.inputState.compositionPendingChange?Promise.resolve().then(()=>v.observer.flush()):setTimeout(()=>{v.inputState.composing<0&&v.docView.hasComposition&&v.update([])},50))},ya.contextmenu=v=>{v.inputState.lastContextMenu=Date.now()},Qs.beforeinput=(v,h)=>{var m;let y;if(Ce.chrome&&Ce.android&&(y=Vh.find(S=>S.inputType==h.inputType))&&(v.observer.delayAndroidKey(y.key,y.keyCode),y.key=="Backspace"||y.key=="Delete")){let S=((m=window.visualViewport)===null||m===void 0?void 0:m.height)||0;setTimeout(()=>{var T;(((T=window.visualViewport)===null||T===void 0?void 0:T.height)||0)>S+10&&v.hasFocus&&(v.contentDOM.blur(),v.focus())},100)}return Ce.ios&&h.inputType=="deleteContentForward"&&v.observer.flushSoon(),Ce.safari&&h.inputType=="insertText"&&v.inputState.composing>=0&&setTimeout(()=>ya.compositionend(v,h),20),!1};const Kf=new Set;function Jf(v){Kf.has(v)||(Kf.add(v),v.addEventListener("copy",()=>{}),v.addEventListener("cut",()=>{}))}const em=["pre-wrap","normal","pre-line","break-spaces"];class Eo{constructor(h){this.lineWrapping=h,this.doc=ue.xv.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(h,m){let y=this.doc.lineAt(m).number-this.doc.lineAt(h).number+1;return this.lineWrapping&&(y+=Math.max(0,Math.ceil((m-h-y*this.lineLength*.5)/this.lineLength))),this.lineHeight*y}heightForLine(h){return this.lineWrapping?(1+Math.max(0,Math.ceil((h-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(h){return this.doc=h,this}mustRefreshForWrapping(h){return em.indexOf(h)>-1!=this.lineWrapping}mustRefreshForHeights(h){let m=!1;for(let y=0;y-1,q=Math.round(m)!=Math.round(this.lineHeight)||this.lineWrapping!=Q;if(this.lineWrapping=Q,this.lineHeight=m,this.charWidth=y,this.textHeight=S,this.lineLength=T,q){this.heightSamples={};for(let fe=0;fe0}set outdated(h){this.flags=(h?2:0)|this.flags&-3}setHeight(h,m){this.height!=m&&(Math.abs(this.height-m)>So&&(h.heightChanged=!0),this.height=m)}replace(h,m,y){return Rs.of(y)}decomposeLeft(h,m){m.push(this)}decomposeRight(h,m){m.push(this)}applyChanges(h,m,y,S){let T=this,P=y.doc;for(let Q=S.length-1;Q>=0;Q--){let{fromA:q,toA:fe,fromB:le,toB:Pe}=S[Q],We=T.lineAt(q,wi.ByPosNoHeight,y.setDoc(m),0,0),mt=We.to>=fe?We:T.lineAt(fe,wi.ByPosNoHeight,y,0,0);for(Pe+=mt.to-fe,fe=mt.to;Q>0&&We.from<=S[Q-1].toA;)q=S[Q-1].fromA,le=S[Q-1].fromB,Q--,qT*2){let Q=h[m-1];Q.break?h.splice(--m,1,Q.left,null,Q.right):h.splice(--m,1,Q.left,Q.right),y+=1+Q.break,S-=Q.size}else if(T>S*2){let Q=h[y];Q.break?h.splice(y,1,Q.left,null,Q.right):h.splice(y,1,Q.left,Q.right),y+=2+Q.break,T-=Q.size}else break;else if(S=T&&P(this.blockAt(0,y,S,T))}updateHeight(h,m=0,y=!1,S){return S&&S.from<=m&&S.more&&this.setHeight(h,S.heights[S.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class ls extends tm{constructor(h,m){super(h,m,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(h,m,y,S){return new Na(S,this.length,y,this.height,this.breaks)}replace(h,m,y){let S=y[0];return y.length==1&&(S instanceof ls||S instanceof us&&S.flags&4)&&Math.abs(this.length-S.length)<10?(S instanceof us?S=new ls(S.length,this.height):S.height=this.height,this.outdated||(S.outdated=!1),S):Rs.of(y)}updateHeight(h,m=0,y=!1,S){return S&&S.from<=m&&S.more?this.setHeight(h,S.heights[S.index++]):(y||this.outdated)&&this.setHeight(h,Math.max(this.widgetHeight,h.heightForLine(this.length-this.collapsed))+this.breaks*h.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class us extends Rs{constructor(h){super(h,0)}heightMetrics(h,m){let y=h.doc.lineAt(m).number,S=h.doc.lineAt(m+this.length).number,T=S-y+1,P,Q=0;if(h.lineWrapping){let q=Math.min(this.height,h.lineHeight*T);P=q/T,this.length>T+1&&(Q=(this.height-q)/(this.length-T-1))}else P=this.height/T;return{firstLine:y,lastLine:S,perLine:P,perChar:Q}}blockAt(h,m,y,S){let{firstLine:T,lastLine:P,perLine:Q,perChar:q}=this.heightMetrics(m,S);if(m.lineWrapping){let fe=S+(h0){let T=y[y.length-1];T instanceof us?y[y.length-1]=new us(T.length+S):y.push(null,new us(S-1))}if(h>0){let T=y[0];T instanceof us?y[0]=new us(h+T.length):y.unshift(new us(h-1),null)}return Rs.of(y)}decomposeLeft(h,m){m.push(new us(h-1),null)}decomposeRight(h,m){m.push(null,new us(this.length-h-1))}updateHeight(h,m=0,y=!1,S){let T=m+this.length;if(S&&S.from<=m+this.length&&S.more){let P=[],Q=Math.max(m,S.from),q=-1;for(S.from>m&&P.push(new us(S.from-m-1).updateHeight(h,m));Q<=T&&S.more;){let le=h.doc.lineAt(Q).length;P.length&&P.push(null);let Pe=S.heights[S.index++];q==-1?q=Pe:Math.abs(Pe-q)>=So&&(q=-2);let We=new ls(le,Pe);We.outdated=!1,P.push(We),Q+=le+1}Q<=T&&P.push(null,new us(T-Q).updateHeight(h,Q));let fe=Rs.of(P);return(q<0||Math.abs(fe.height-this.height)>=So||Math.abs(q-this.heightMetrics(h,m).perLine)>=So)&&(h.heightChanged=!0),fe}else(y||this.outdated)&&(this.setHeight(h,h.heightForGap(m,m+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class bd extends Rs{constructor(h,m,y){super(h.length+m+y.length,h.height+y.height,m|(h.outdated||y.outdated?2:0)),this.left=h,this.right=y,this.size=h.size+y.size}get break(){return this.flags&1}blockAt(h,m,y,S){let T=y+this.left.height;return hQ))return fe;let le=m==wi.ByPosNoHeight?wi.ByPosNoHeight:wi.ByPos;return q?fe.join(this.right.lineAt(Q,le,y,P,Q)):this.left.lineAt(Q,le,y,S,T).join(fe)}forEachLine(h,m,y,S,T,P){let Q=S+this.left.height,q=T+this.left.length+this.break;if(this.break)h=q&&this.right.forEachLine(h,m,y,Q,q,P);else{let fe=this.lineAt(q,wi.ByPos,y,S,T);h=h&&fe.from<=m&&P(fe),m>fe.to&&this.right.forEachLine(fe.to+1,m,y,Q,q,P)}}replace(h,m,y){let S=this.left.length+this.break;if(mthis.left.length)return this.balanced(this.left,this.right.replace(h-S,m-S,y));let T=[];h>0&&this.decomposeLeft(h,T);let P=T.length;for(let Q of y)T.push(Q);if(h>0&&nm(T,P-1),m=y&&m.push(null)),h>y&&this.right.decomposeLeft(h-y,m)}decomposeRight(h,m){let y=this.left.length,S=y+this.break;if(h>=S)return this.right.decomposeRight(h-S,m);h2*m.size||m.size>2*h.size?Rs.of(this.break?[h,null,m]:[h,m]):(this.left=h,this.right=m,this.height=h.height+m.height,this.outdated=h.outdated||m.outdated,this.size=h.size+m.size,this.length=h.length+this.break+m.length,this)}updateHeight(h,m=0,y=!1,S){let{left:T,right:P}=this,Q=m+T.length+this.break,q=null;return S&&S.from<=m+T.length&&S.more?q=T=T.updateHeight(h,m,y,S):T.updateHeight(h,m,y),S&&S.from<=Q+P.length&&S.more?q=P=P.updateHeight(h,Q,y,S):P.updateHeight(h,Q,y),q?this.balanced(T,P):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function nm(v,h){let m,y;v[h]==null&&(m=v[h-1])instanceof us&&(y=v[h+1])instanceof us&&v.splice(h-1,3,new us(m.length+1+y.length))}const rm=5;class Rl{constructor(h,m){this.pos=h,this.oracle=m,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=h}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(h,m){if(this.lineStart>-1){let y=Math.min(m,this.lineEnd),S=this.nodes[this.nodes.length-1];S instanceof ls?S.length+=y-this.pos:(y>this.pos||!this.isCovered)&&this.nodes.push(new ls(y-this.pos,-1)),this.writtenTo=y,m>y&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=m}point(h,m,y){if(h=rm)&&this.addLineDeco(S,T,P)}else m>h&&this.span(h,m);this.lineEnd>-1&&this.lineEnd-1)return;let{from:h,to:m}=this.oracle.doc.lineAt(this.pos);this.lineStart=h,this.lineEnd=m,this.writtenToh&&this.nodes.push(new ls(this.pos-h,-1)),this.writtenTo=this.pos}blankContent(h,m){let y=new us(m-h);return this.oracle.doc.lineAt(h).to==m&&(y.flags|=4),y}ensureLine(){this.enterLine();let h=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(h instanceof ls)return h;let m=new ls(0,-1);return this.nodes.push(m),m}addBlock(h){this.enterLine();let m=h.deco;m&&m.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(h),this.writtenTo=this.pos=this.pos+h.length,m&&m.endSide>0&&(this.covering=h)}addLineDeco(h,m,y){let S=this.ensureLine();S.length+=y,S.collapsed+=y,S.widgetHeight=Math.max(S.widgetHeight,h),S.breaks+=m,this.writtenTo=this.pos=this.pos+y}finish(h){let m=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(m instanceof ls)&&!this.isCovered?this.nodes.push(new ls(0,-1)):(this.writtenTole.clientHeight||le.scrollWidth>le.clientWidth)&&Pe.overflow!="visible"){let We=le.getBoundingClientRect();T=Math.max(T,We.left),P=Math.min(P,We.right),Q=Math.max(Q,We.top),q=fe==v.parentNode?We.bottom:Math.min(q,We.bottom)}fe=Pe.position=="absolute"||Pe.position=="fixed"?le.offsetParent:le.parentNode}else if(fe.nodeType==11)fe=fe.host;else break;return{left:T-m.left,right:Math.max(T,P)-m.left,top:Q-(m.top+h),bottom:Math.max(Q,q)-(m.top+h)}}function ab(v,h){let m=v.getBoundingClientRect();return{left:0,right:m.right-m.left,top:h,bottom:m.bottom-(m.top+h)}}class vo{constructor(h,m,y){this.from=h,this.to=m,this.size=y}static same(h,m){if(h.length!=m.length)return!1;for(let y=0;ytypeof y!="function"&&y.class=="cm-lineWrapping");this.heightOracle=new Eo(m),this.stateDeco=h.facet(Re).filter(y=>typeof y!="function"),this.heightMap=Rs.empty().applyChanges(this.stateDeco,ue.xv.empty,this.heightOracle.setDoc(h.doc),[new cr(0,0,0,h.doc.length)]);for(let y=0;y<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());y++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Tt.set(this.lineGaps.map(y=>y.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let h=[this.viewport],{main:m}=this.state.selection;for(let y=0;y<=1;y++){let S=y?m.head:m.anchor;if(!h.some(({from:T,to:P})=>S>=T&&S<=P)){let{from:T,to:P}=this.lineBlockAt(S);h.push(new yd(T,P))}}return this.viewports=h.sort((y,S)=>y.from-S.from),this.updateScaler()}updateScaler(){let h=this.scaler;return this.scaler=this.heightMap.height<=7e6?Yh:new Ed(this.heightOracle,this.heightMap,this.viewports),h.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,h=>{this.viewportLines.push(js(h,this.scaler))})}update(h,m=null){this.state=h.state;let y=this.stateDeco;this.stateDeco=this.state.facet(Re).filter(le=>typeof le!="function");let S=h.changedRanges,T=cr.extendWithRanges(S,Od(y,this.stateDeco,h?h.changes:ue.as.empty(this.state.doc.length))),P=this.heightMap.height,Q=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,h.startState.doc,this.heightOracle.setDoc(this.state.doc),T),this.heightMap.height!=P&&(h.flags|=2),Q?(this.scrollAnchorPos=h.changes.mapPos(Q.from,-1),this.scrollAnchorHeight=Q.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let q=T.length?this.mapViewport(this.viewport,h.changes):this.viewport;(m&&(m.range.headq.to)||!this.viewportIsAppropriate(q))&&(q=this.getViewport(0,m));let fe=q.from!=this.viewport.from||q.to!=this.viewport.to;this.viewport=q,h.flags|=this.updateForViewport(),(fe||!h.changes.empty||h.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,h.changes))),h.flags|=this.computeVisibleRanges(),m&&(this.scrollTarget=m),!this.mustEnforceCursorAssoc&&h.selectionSet&&h.view.lineWrapping&&h.state.selection.main.empty&&h.state.selection.main.assoc&&!h.state.facet(Fr)&&(this.mustEnforceCursorAssoc=!0)}measure(h){let m=h.contentDOM,y=window.getComputedStyle(m),S=this.heightOracle,T=y.whiteSpace;this.defaultTextDirection=y.direction=="rtl"?ur.RTL:ur.LTR;let P=this.heightOracle.mustRefreshForWrapping(T),Q=m.getBoundingClientRect(),q=P||this.mustMeasureContent||this.contentDOMHeight!=Q.height;this.contentDOMHeight=Q.height,this.mustMeasureContent=!1;let fe=0,le=0;if(Q.width&&Q.height){let{scaleX:gr,scaleY:Lr}=Mn(m,Q);(gr>.005&&Math.abs(this.scaleX-gr)>.005||Lr>.005&&Math.abs(this.scaleY-Lr)>.005)&&(this.scaleX=gr,this.scaleY=Lr,fe|=8,P=q=!0)}let Pe=(parseInt(y.paddingTop)||0)*this.scaleY,We=(parseInt(y.paddingBottom)||0)*this.scaleY;(this.paddingTop!=Pe||this.paddingBottom!=We)&&(this.paddingTop=Pe,this.paddingBottom=We,fe|=10),this.editorWidth!=h.scrollDOM.clientWidth&&(S.lineWrapping&&(q=!0),this.editorWidth=h.scrollDOM.clientWidth,fe|=8);let mt=h.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=mt&&(this.scrollAnchorHeight=-1,this.scrollTop=mt),this.scrolledToBottom=Ne(h.scrollDOM);let Ct=(this.printing?ab:sS)(m,this.paddingTop),Bt=Ct.top-this.pixelViewport.top,Ht=Ct.bottom-this.pixelViewport.bottom;this.pixelViewport=Ct;let It=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(It!=this.inView&&(this.inView=It,It&&(q=!0)),!this.inView&&!this.scrollTarget)return 0;let ar=Q.width;if((this.contentDOMWidth!=ar||this.editorHeight!=h.scrollDOM.clientHeight)&&(this.contentDOMWidth=Q.width,this.editorHeight=h.scrollDOM.clientHeight,fe|=8),q){let gr=h.docView.measureVisibleLineHeights(this.viewport);if(S.mustRefreshForHeights(gr)&&(P=!0),P||S.lineWrapping&&Math.abs(ar-this.contentDOMWidth)>S.charWidth){let{lineHeight:Lr,charWidth:ri,textHeight:Yi}=h.docView.measureTextSize();P=Lr>0&&S.refresh(T,Lr,ri,Yi,ar/ri,gr),P&&(h.docView.minWidth=0,fe|=8)}Bt>0&&Ht>0?le=Math.max(Bt,Ht):Bt<0&&Ht<0&&(le=Math.min(Bt,Ht)),S.heightChanged=!1;for(let Lr of this.viewports){let ri=Lr.from==this.viewport.from?gr:h.docView.measureVisibleLineHeights(Lr);this.heightMap=(P?Rs.empty().applyChanges(this.stateDeco,ue.xv.empty,this.heightOracle,[new cr(0,0,0,h.state.doc.length)]):this.heightMap).updateHeight(S,0,P,new sb(Lr.from,ri))}S.heightChanged&&(fe|=2)}let Qr=!this.viewportIsAppropriate(this.viewport,le)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return Qr&&(fe&2&&(fe|=this.updateScaler()),this.viewport=this.getViewport(le,this.scrollTarget),fe|=this.updateForViewport()),(fe&2||Qr)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(P?[]:this.lineGaps,h)),fe|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,h.docView.enforceCursorAssoc()),fe}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(h,m){let y=.5-Math.max(-.5,Math.min(.5,h/1e3/2)),S=this.heightMap,T=this.heightOracle,{visibleTop:P,visibleBottom:Q}=this,q=new yd(S.lineAt(P-y*1e3,wi.ByHeight,T,0,0).from,S.lineAt(Q+(1-y)*1e3,wi.ByHeight,T,0,0).to);if(m){let{head:fe}=m.range;if(feq.to){let le=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),Pe=S.lineAt(fe,wi.ByPos,T,0,0),We;m.y=="center"?We=(Pe.top+Pe.bottom)/2-le/2:m.y=="start"||m.y=="nearest"&&fe=Q+Math.max(10,Math.min(y,250)))&&S>P-2*1e3&&T>1,P=S<<1;if(this.defaultTextDirection!=ur.LTR&&!y)return[];let Q=[],q=(le,Pe,We,mt)=>{if(Pe-lele&&ItIt.from>=We.from&&It.to<=We.to&&Math.abs(It.from-le)It.fromar));if(!Ht){if(PeIt.from<=Pe&&It.to>=Pe)){let It=m.moveToLineBoundary(ue.jT.cursor(Pe),!1,!0).head;It>le&&(Pe=It)}Ht=new vo(le,Pe,this.gapSize(We,le,Pe,mt))}Q.push(Ht)},fe=le=>{if(le.lengthle.from&&q(le.from,mt,le,Pe),Ctm.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let h=this.stateDeco;this.lineGaps.length&&(h=h.concat(this.lineGapDeco));let m=[];ue.Xs.spans(h,this.viewport.from,this.viewport.to,{span(S,T){m.push({from:S,to:T})},point(){}},20);let y=m.length!=this.visibleRanges.length||this.visibleRanges.some((S,T)=>S.from!=m[T].from||S.to!=m[T].to);return this.visibleRanges=m,y?4:0}lineBlockAt(h){return h>=this.viewport.from&&h<=this.viewport.to&&this.viewportLines.find(m=>m.from<=h&&m.to>=h)||js(this.heightMap.lineAt(h,wi.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(h){return h>=this.viewportLines[0].top&&h<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(m=>m.top<=h&&m.bottom>=h)||js(this.heightMap.lineAt(this.scaler.fromDOM(h),wi.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(h){let m=this.lineBlockAtHeight(h+8);return m.from>=this.viewport.from||this.viewportLines[0].top-h>200?m:this.viewportLines[0]}elementAtHeight(h){return js(this.heightMap.blockAt(this.scaler.fromDOM(h),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class yd{constructor(h,m){this.from=h,this.to=m}}function uc(v,h,m){let y=[],S=v,T=0;return ue.Xs.spans(m,v,h,{span(){},point(P,Q){P>S&&(y.push({from:S,to:P}),T+=P-S),S=Q}},20),S=1)return h[h.length-1].to;let y=Math.floor(v*m);for(let S=0;;S++){let{from:T,to:P}=h[S],Q=P-T;if(y<=Q)return T+y;y-=Q}}function Xo(v,h){let m=0;for(let{from:y,to:S}of v.ranges){if(h<=S){m+=h-y;break}m+=S-y}return m/v.total}function im(v,h){for(let m of v)if(h(m))return m}const Yh={toDOM(v){return v},fromDOM(v){return v},scale:1,eq(v){return v==this}};class Ed{constructor(h,m,y){let S=0,T=0,P=0;this.viewports=y.map(({from:Q,to:q})=>{let fe=m.lineAt(Q,wi.ByPos,h,0,0).top,le=m.lineAt(q,wi.ByPos,h,0,0).bottom;return S+=le-fe,{from:Q,to:q,top:fe,bottom:le,domTop:0,domBottom:0}}),this.scale=(7e6-S)/(m.height-S);for(let Q of this.viewports)Q.domTop=P+(Q.top-T)*this.scale,P=Q.domBottom=Q.domTop+(Q.bottom-Q.top),T=Q.bottom}toDOM(h){for(let m=0,y=0,S=0;;m++){let T=mm.from==h.viewports[y].from&&m.to==h.viewports[y].to):!1}}function js(v,h){if(h.scale==1)return v;let m=h.toDOM(v.top),y=h.toDOM(v.bottom);return new Na(v.from,v.length,m,y-m,Array.isArray(v._content)?v._content.map(S=>js(S,h)):v._content)}const Il=ue.r$.define({combine:v=>v.join(" ")}),Ra=ue.r$.define({combine:v=>v.indexOf(!0)>-1}),va=Me.V.newName(),Ll=Me.V.newName(),Sd=Me.V.newName(),qh={"&light":"."+Ll,"&dark":"."+Sd};function ko(v,h,m){return new Me.V(h,{finish(y){return/&/.test(y)?y.replace(/&\w*/,S=>{if(S=="&")return v;if(!m||!m[S])throw new RangeError(`Unsupported selector: ${S}`);return m[S]}):v+" "+y}})}const Ko=ko("."+va,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},qh),ks="\uFFFF";class Ml{constructor(h,m){this.points=h,this.text="",this.lineSeparator=m.facet(ue.yy.lineSeparator)}append(h){this.text+=h}lineBreak(){this.text+=ks}readRange(h,m){if(!h)return this;let y=h.parentNode;for(let S=h;;){this.findPointBefore(y,S);let T=this.text.length;this.readNode(S);let P=S.nextSibling;if(P==m)break;let Q=ut.get(S),q=ut.get(P);(Q&&q?Q.breakAfter:(Q?Q.breakAfter:Nt(S))||Nt(P)&&(S.nodeName!="BR"||S.cmIgnore)&&this.text.length>T)&&this.lineBreak(),S=P}return this.findPointBefore(y,m),this}readTextNode(h){let m=h.nodeValue;for(let y of this.points)y.node==h&&(y.pos=this.text.length+Math.min(y.offset,m.length));for(let y=0,S=this.lineSeparator?null:/\r\n?|\n/g;;){let T=-1,P=1,Q;if(this.lineSeparator?(T=m.indexOf(this.lineSeparator,y),P=this.lineSeparator.length):(Q=S.exec(m))&&(T=Q.index,P=Q[0].length),this.append(m.slice(y,T<0?m.length:T)),T<0)break;if(this.lineBreak(),P>1)for(let q of this.points)q.node==h&&q.pos>this.text.length&&(q.pos-=P-1);y=T+P}}readNode(h){if(h.cmIgnore)return;let m=ut.get(h),y=m&&m.overrideDOMText;if(y!=null){this.findPointInside(h,y.length);for(let S=y.iter();!S.next().done;)S.lineBreak?this.lineBreak():this.append(S.value)}else h.nodeType==3?this.readTextNode(h):h.nodeName=="BR"?h.nextSibling&&this.lineBreak():h.nodeType==1&&this.readRange(h.firstChild,null)}findPointBefore(h,m){for(let y of this.points)y.node==h&&h.childNodes[y.offset]==m&&(y.pos=this.text.length)}findPointInside(h,m){for(let y of this.points)(h.nodeType==3?y.node==h:h.contains(y.node))&&(y.pos=this.text.length+(cc(h,y.node,y.offset)?m:0))}}function cc(v,h,m){for(;;){if(!h||m-1;let{impreciseHead:T,impreciseAnchor:P}=h.docView;if(h.state.readOnly&&m>-1)this.newSel=null;else if(m>-1&&(this.bounds=h.docView.domBoundsAround(m,y,0))){let Q=T||P?[]:bu(h),q=new Ml(Q,h.state);q.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=q.text,this.newSel=Kh(Q,this.bounds.from)}else{let Q=h.observer.selectionRange,q=T&&T.node==Q.focusNode&&T.offset==Q.focusOffset||!Pt(h.contentDOM,Q.focusNode)?h.state.selection.main.head:h.docView.posFromDOM(Q.focusNode,Q.focusOffset),fe=P&&P.node==Q.anchorNode&&P.offset==Q.anchorOffset||!Pt(h.contentDOM,Q.anchorNode)?h.state.selection.main.anchor:h.docView.posFromDOM(Q.anchorNode,Q.anchorOffset),le=h.viewport;if((Ce.ios||Ce.chrome)&&h.state.selection.main.empty&&q!=fe&&(le.from>0||le.toDate.now()-100?v.inputState.lastKeyCode:-1;if(h.bounds){let{from:P,to:Q}=h.bounds,q=S.from,fe=null;(T===8||Ce.android&&h.text.length=S.from&&m.to<=S.to&&(m.from!=S.from||m.to!=S.to)&&S.to-S.from-(m.to-m.from)<=4?m={from:S.from,to:S.to,insert:v.state.doc.slice(S.from,m.from).append(m.insert).append(v.state.doc.slice(m.to,S.to))}:(Ce.mac||Ce.android)&&m&&m.from==m.to&&m.from==S.head-1&&/^\. ?$/.test(m.insert.toString())&&v.contentDOM.getAttribute("autocorrect")=="off"?(y&&m.insert.length==2&&(y=ue.jT.single(y.main.anchor-1,y.main.head-1)),m={from:S.from,to:S.to,insert:ue.xv.of([" "])}):Ce.chrome&&m&&m.from==m.to&&m.from==S.head&&m.insert.toString()==` - `&&v.lineWrapping&&(y&&(y=ue.jT.single(y.main.anchor-1,y.main.head-1)),m={from:S.from,to:S.to,insert:ue.xv.of([" "])}),m)return Wa(v,m,y,T);if(y&&!y.main.eq(S)){let P=!1,Q="select";return v.inputState.lastSelectionTime>Date.now()-50&&(v.inputState.lastSelectionOrigin=="select"&&(P=!0),Q=v.inputState.lastSelectionOrigin),v.dispatch({selection:y,scrollIntoView:P,userEvent:Q}),!0}else return!1}function Wa(v,h,m,y=-1){if(Ce.ios&&v.inputState.flushIOSKey(h))return!0;let S=v.state.selection.main;if(Ce.android&&(h.to==S.to&&(h.from==S.from||h.from==S.from-1&&v.state.sliceDoc(h.from,S.from)==" ")&&h.insert.length==1&&h.insert.lines==2&&Ut(v.contentDOM,"Enter",13)||(h.from==S.from-1&&h.to==S.to&&h.insert.length==0||y==8&&h.insert.lengthS.head)&&Ut(v.contentDOM,"Backspace",8)||h.from==S.from&&h.to==S.to+1&&h.insert.length==0&&Ut(v.contentDOM,"Delete",46)))return!0;let T=h.insert.toString();v.inputState.composing>=0&&v.inputState.composing++;let P,Q=()=>P||(P=Xh(v,h,m));return v.state.facet(Zt).some(q=>q(v,h.from,h.to,T,Q))||v.dispatch(Q()),!0}function Xh(v,h,m){let y,S=v.state,T=S.selection.main;if(h.from>=T.from&&h.to<=T.to&&h.to-h.from>=(T.to-T.from)/3&&(!m||m.main.empty&&m.main.from==h.from+h.insert.length)&&v.inputState.composing<0){let Q=T.fromh.to?S.sliceDoc(h.to,T.to):"";y=S.replaceSelection(v.state.toText(Q+h.insert.sliceString(0,void 0,v.state.lineBreak)+q))}else{let Q=S.changes(h),q=m&&m.main.to<=Q.newLength?m.main:void 0;if(S.selection.ranges.length>1&&v.inputState.composing>=0&&h.to<=T.to&&h.to>=T.to-10){let fe=v.state.sliceDoc(h.from,h.to),le,Pe=m&&J(v,m.main.head);if(Pe){let Ct=h.insert.length-(h.to-h.from);le={from:Pe.from,to:Pe.to-Ct}}else le=v.state.doc.lineAt(T.head);let We=T.to-h.to,mt=T.to-T.from;y=S.changeByRange(Ct=>{if(Ct.from==T.from&&Ct.to==T.to)return{changes:Q,range:q||Ct.map(Q)};let Bt=Ct.to-We,Ht=Bt-fe.length;if(Ct.to-Ct.from!=mt||v.state.sliceDoc(Ht,Bt)!=fe||Ct.to>=le.from&&Ct.from<=le.to)return{range:Ct};let It=S.changes({from:Ht,to:Bt,insert:h.insert}),ar=Ct.to-T.to;return{changes:It,range:q?ue.jT.range(Math.max(0,q.anchor+ar),Math.max(0,q.head+ar)):Ct.map(It)}})}else y={changes:Q,selection:q&&S.selection.replaceRange(q)}}let P="input.type";return(v.composing||v.inputState.compositionPendingChange&&v.inputState.compositionEndedAt>Date.now()-50)&&(v.inputState.compositionPendingChange=!1,P+=".compose",v.inputState.compositionFirstChange&&(P+=".start",v.inputState.compositionFirstChange=!1)),S.update(y,{userEvent:P,scrollIntoView:!0})}function el(v,h,m,y){let S=Math.min(v.length,h.length),T=0;for(;T0&&Q>0&&v.charCodeAt(P-1)==h.charCodeAt(Q-1);)P--,Q--;if(y=="end"){let q=Math.max(0,T-Math.min(P,Q));m-=P+q-T}if(P=P?T-m:0;T-=q,Q=T+(Q-P),P=T}else if(Q=Q?T-m:0;T-=q,P=T+(P-Q),Q=T}return{from:T,toA:P,toB:Q}}function bu(v){let h=[];if(v.root.activeElement!=v.contentDOM)return h;let{anchorNode:m,anchorOffset:y,focusNode:S,focusOffset:T}=v.observer.selectionRange;return m&&(h.push(new vd(m,y)),(S!=m||T!=y)&&h.push(new vd(S,T))),h}function Kh(v,h){if(v.length==0)return null;let m=v[0].pos,y=v.length==2?v[1].pos:m;return m>-1&&y>-1?ue.jT.single(m+h,y+h):null}const kd={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Jh=Ce.ie&&Ce.ie_version<=11;class wd{constructor(h){this.view=h,this.active=!1,this.editContext=null,this.selectionRange=new yr,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=h.contentDOM,this.observer=new MutationObserver(m=>{for(let y of m)this.queue.push(y);(Ce.ie&&Ce.ie_version<=11||Ce.ios&&h.composing)&&m.some(y=>y.type=="childList"&&y.removedNodes.length||y.type=="characterData"&&y.oldValue.length>y.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&h.constructor.EDIT_CONTEXT!==!1&&!(Ce.chrome&&Ce.chrome_version<126)&&(this.editContext=new aS(h),h.state.facet(Ie)&&(h.contentDOM.editContext=this.editContext.editContext)),Jh&&(this.onCharData=m=>{this.queue.push({target:m.target,type:"characterData",oldValue:m.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var m;((m=this.view.docView)===null||m===void 0?void 0:m.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),m.length>0&&m[m.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(m=>{m.length>0&&m[m.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(h){this.view.inputState.runHandlers("scroll",h),this.intersecting&&this.view.measure()}onScroll(h){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(h)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(h){h.type=="change"&&!h.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(h){if(this.gapIntersection&&(h.length!=this.gaps.length||this.gaps.some((m,y)=>m!=h[y]))){this.gapIntersection.disconnect();for(let m of h)this.gapIntersection.observe(m);this.gaps=h}}onSelectionChange(h){let m=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:y}=this,S=this.selectionRange;if(y.state.facet(Ie)?y.root.activeElement!=this.dom:!gt(y.dom,S))return;let T=S.anchorNode&&y.docView.nearest(S.anchorNode);if(T&&T.ignoreEvent(h)){m||(this.selectionChanged=!1);return}(Ce.ie&&Ce.ie_version<=11||Ce.android&&Ce.chrome)&&!y.state.selection.main.empty&&S.focusNode&&st(S.focusNode,S.focusOffset,S.anchorNode,S.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:h}=this,m=ft(h.root);if(!m)return!1;let y=Ce.safari&&h.root.nodeType==11&&Hn(this.dom.ownerDocument)==this.dom&&Zs(this.view,m)||m;if(!y||this.selectionRange.eq(y))return!1;let S=gt(this.dom,y);return S&&!this.selectionChanged&&h.inputState.lastFocusTime>Date.now()-200&&h.inputState.lastTouchTime{let T=this.delayedAndroidKey;T&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=T.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&T.force&&Ut(this.dom,T.key,T.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(S)}(!this.delayedAndroidKey||h=="Enter")&&(this.delayedAndroidKey={key:h,keyCode:m,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let h of this.observer.takeRecords())this.queue.push(h);return this.queue}processRecords(){let h=this.pendingRecords();h.length&&(this.queue=[]);let m=-1,y=-1,S=!1;for(let T of h){let P=this.readMutation(T);P&&(P.typeOver&&(S=!0),m==-1?{from:m,to:y}=P:(m=Math.min(P.from,m),y=Math.max(P.to,y)))}return{from:m,to:y,typeOver:S}}readChange(){let{from:h,to:m,typeOver:y}=this.processRecords(),S=this.selectionChanged&>(this.dom,this.selectionRange);if(h<0&&!S)return null;h>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let T=new sm(this.view,h,m,y);return this.view.docView.domChanged={newSel:T.newSel?T.newSel.main:null},T}flush(h=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;h&&this.readSelectionRange();let m=this.readChange();if(!m)return this.view.requestMeasure(),!1;let y=this.view.state,S=Jo(this.view,m);return this.view.state==y&&(m.domChanged||m.newSel&&!m.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),S}readMutation(h){let m=this.view.docView.nearest(h.target);if(!m||m.ignoreMutation(h))return null;if(m.markDirty(h.type=="attributes"),h.type=="attributes"&&(m.flags|=4),h.type=="childList"){let y=xd(m,h.previousSibling||h.target.previousSibling,-1),S=xd(m,h.nextSibling||h.target.nextSibling,1);return{from:y?m.posAfter(y):m.posAtStart,to:S?m.posBefore(S):m.posAtEnd,typeOver:!1}}else return h.type=="characterData"?{from:m.posAtStart,to:m.posAtEnd,typeOver:h.target.nodeValue==h.oldValue}:null}setWindow(h){h!=this.win&&(this.removeWindowListeners(this.win),this.win=h,this.addWindowListeners(this.win))}addWindowListeners(h){h.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):h.addEventListener("beforeprint",this.onPrint),h.addEventListener("scroll",this.onScroll),h.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(h){h.removeEventListener("scroll",this.onScroll),h.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):h.removeEventListener("beforeprint",this.onPrint),h.document.removeEventListener("selectionchange",this.onSelectionChange)}update(h){this.editContext&&(this.editContext.update(h),h.startState.facet(Ie)!=h.state.facet(Ie)&&(h.view.contentDOM.editContext=h.state.facet(Ie)?this.editContext.editContext:null))}destroy(){var h,m,y;this.stop(),(h=this.intersection)===null||h===void 0||h.disconnect(),(m=this.gapIntersection)===null||m===void 0||m.disconnect(),(y=this.resizeScroll)===null||y===void 0||y.disconnect();for(let S of this.scrollTargets)S.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function xd(v,h,m){for(;h;){let y=ut.get(h);if(y&&y.parent==v)return y;let S=h.parentNode;h=S!=v.dom?S:m>0?h.nextSibling:h.previousSibling}return null}function ep(v,h){let m=h.startContainer,y=h.startOffset,S=h.endContainer,T=h.endOffset,P=v.docView.domAtPos(v.state.selection.main.anchor);return st(P.node,P.offset,S,T)&&([m,y,S,T]=[S,T,m,y]),{anchorNode:m,anchorOffset:y,focusNode:S,focusOffset:T}}function Zs(v,h){if(h.getComposedRanges){let S=h.getComposedRanges(v.root)[0];if(S)return ep(v,S)}let m=null;function y(S){S.preventDefault(),S.stopImmediatePropagation(),m=S.getTargetRanges()[0]}return v.contentDOM.addEventListener("beforeinput",y,!0),v.dom.ownerDocument.execCommand("indent"),v.contentDOM.removeEventListener("beforeinput",y,!0),m?ep(v,m):null}class aS{constructor(h){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.resetRange(h.state);let m=this.editContext=new window.EditContext({text:h.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,h.state.selection.main.anchor))),selectionEnd:this.toContextPos(h.state.selection.main.head)});this.handlers.textupdate=y=>{let{anchor:S}=h.state.selection.main,T={from:this.toEditorPos(y.updateRangeStart),to:this.toEditorPos(y.updateRangeEnd),insert:ue.xv.of(y.text.split(` -`))};T.from==this.from&&Sthis.to&&(T.to=S),!(T.from==T.to&&!T.insert.length)&&(this.pendingContextChange=T,h.state.readOnly||Wa(h,T,ue.jT.single(this.toEditorPos(y.selectionStart),this.toEditorPos(y.selectionEnd))),this.pendingContextChange&&(this.revertPending(h.state),this.setSelection(h.state)))},this.handlers.characterboundsupdate=y=>{let S=[],T=null;for(let P=this.toEditorPos(y.rangeStart),Q=this.toEditorPos(y.rangeEnd);P{let S=[];for(let T of y.getTextFormats()){let P=T.underlineStyle,Q=T.underlineThickness;if(P!="None"&&Q!="None"){let q=`text-decoration: underline ${P=="Dashed"?"dashed ":P=="Squiggle"?"wavy ":""}${Q=="Thin"?1:2}px`;S.push(Tt.mark({attributes:{style:q}}).range(this.toEditorPos(T.rangeStart),this.toEditorPos(T.rangeEnd)))}}h.dispatch({effects:oe.of(Tt.set(S))})},this.handlers.compositionstart=()=>{h.inputState.composing<0&&(h.inputState.composing=0,h.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{h.inputState.composing=-1,h.inputState.compositionFirstChange=null};for(let y in this.handlers)m.addEventListener(y,this.handlers[y]);this.measureReq={read:y=>{this.editContext.updateControlBounds(y.contentDOM.getBoundingClientRect());let S=ft(y.root);S&&S.rangeCount&&this.editContext.updateSelectionBounds(S.getRangeAt(0).getBoundingClientRect())}}}applyEdits(h){let m=0,y=!1,S=this.pendingContextChange;return h.changes.iterChanges((T,P,Q,q,fe)=>{if(y)return;let le=fe.length-(P-T);if(S&&P>=S.to)if(S.from==T&&S.to==P&&S.insert.eq(fe)){S=this.pendingContextChange=null,m+=le,this.to+=le;return}else S=null,this.revertPending(h.state);if(T+=m,P+=m,P<=this.from)this.from+=le,this.to+=le;else if(Tthis.to||this.to-this.from+fe.length>3e4){y=!0;return}this.editContext.updateText(this.toContextPos(T),this.toContextPos(P),fe.toString()),this.to+=le}m+=le}),S&&!y&&this.revertPending(h.state),!y}update(h){let m=this.pendingContextChange;!this.applyEdits(h)||!this.rangeIsValid(h.state)?(this.pendingContextChange=null,this.resetRange(h.state),this.editContext.updateText(0,this.editContext.text.length,h.state.doc.sliceString(this.from,this.to)),this.setSelection(h.state)):(h.docChanged||h.selectionSet||m)&&this.setSelection(h.state),(h.geometryChanged||h.docChanged||h.selectionSet)&&h.view.requestMeasure(this.measureReq)}resetRange(h){let{head:m}=h.selection.main;this.from=Math.max(0,m-1e4),this.to=Math.min(h.doc.length,m+1e4)}revertPending(h){let m=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(m.from),this.toContextPos(m.from+m.insert.length),h.doc.sliceString(m.from,m.to))}setSelection(h){let{main:m}=h.selection,y=this.toContextPos(Math.max(this.from,Math.min(this.to,m.anchor))),S=this.toContextPos(m.head);(this.editContext.selectionStart!=y||this.editContext.selectionEnd!=S)&&this.editContext.updateSelection(y,S)}rangeIsValid(h){let{head:m}=h.selection.main;return!(this.from>0&&m-this.from<500||this.to1e4*3)}toEditorPos(h){return h+this.from}toContextPos(h){return h-this.from}destroy(){for(let h in this.handlers)this.editContext.removeEventListener(h,this.handlers[h])}}class bi{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(h={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),h.parent&&h.parent.appendChild(this.dom);let{dispatch:m}=h;this.dispatchTransactions=h.dispatchTransactions||m&&(y=>y.forEach(S=>m(S,this)))||(y=>this.update(y)),this.dispatch=this.dispatch.bind(this),this._root=h.root||Qt(h.parent)||document,this.viewState=new Gh(h.state||ue.yy.create(h)),h.scrollTo&&h.scrollTo.is(Y)&&(this.viewState.scrollTarget=h.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(M).map(y=>new F(y));for(let y of this.plugins)y.update(this);this.observer=new wd(this),this.inputState=new Al(this),this.inputState.ensureHandlers(this.plugins),this.docView=new _r(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...h){let m=h.length==1&&h[0]instanceof ue.YW?h:h.length==1&&Array.isArray(h[0])?h[0]:[this.state.update(...h)];this.dispatchTransactions(m,this)}update(h){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let m=!1,y=!1,S,T=this.state;for(let We of h){if(We.startState!=T)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");T=We.state}if(this.destroyed){this.viewState.state=T;return}let P=this.hasFocus,Q=0,q=null;h.some(We=>We.annotation(qf))?(this.inputState.notifiedFocused=P,Q=1):P!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=P,q=Xf(T,P),q||(Q=1));let fe=this.observer.delayedAndroidKey,le=null;if(fe?(this.observer.clearDelayedAndroidKey(),le=this.observer.readChange(),(le&&!this.state.doc.eq(T.doc)||!this.state.selection.eq(T.selection))&&(le=null)):this.observer.clear(),T.facet(ue.yy.phrases)!=this.state.facet(ue.yy.phrases))return this.setState(T);S=$r.create(this,T,h),S.flags|=Q;let Pe=this.viewState.scrollTarget;try{this.updateState=2;for(let We of h){if(Pe&&(Pe=Pe.map(We.changes)),We.scrollIntoView){let{main:mt}=We.state.selection;Pe=new he(mt.empty?mt:ue.jT.cursor(mt.head,mt.head>mt.anchor?-1:1))}for(let mt of We.effects)mt.is(Y)&&(Pe=mt.value.clip(this.state))}this.viewState.update(S,Pe),this.bidiCache=hc.update(this.bidiCache,S.changes),S.empty||(this.updatePlugins(S),this.inputState.update(S)),m=this.docView.update(S),this.state.facet(dn)!=this.styleModules&&this.mountStyles(),y=this.updateAttrs(),this.showAnnouncements(h),this.docView.updateSelection(m,h.some(We=>We.isUserEvent("select.pointer")))}finally{this.updateState=0}if(S.startState.facet(Il)!=S.state.facet(Il)&&(this.viewState.mustMeasureContent=!0),(m||y||Pe||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),m&&this.docViewUpdate(),!S.empty)for(let We of this.state.facet(Dt))try{We(S)}catch(mt){Te(this.state,mt,"update listener")}(q||le)&&Promise.resolve().then(()=>{q&&this.state==q.startState&&this.dispatch(q),le&&!Jo(this,le)&&fe.force&&Ut(this.contentDOM,fe.key,fe.keyCode)})}setState(h){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=h;return}this.updateState=2;let m=this.hasFocus;try{for(let y of this.plugins)y.destroy(this);this.viewState=new Gh(h),this.plugins=h.facet(M).map(y=>new F(y)),this.pluginMap.clear();for(let y of this.plugins)y.update(this);this.docView.destroy(),this.docView=new _r(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}m&&this.focus(),this.requestMeasure()}updatePlugins(h){let m=h.startState.facet(M),y=h.state.facet(M);if(m!=y){let S=[];for(let T of y){let P=m.indexOf(T);if(P<0)S.push(new F(T));else{let Q=this.plugins[P];Q.mustUpdate=h,S.push(Q)}}for(let T of this.plugins)T.mustUpdate!=h&&T.destroy(this);this.plugins=S,this.pluginMap.clear()}else for(let S of this.plugins)S.mustUpdate=h;for(let S=0;S-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,h&&this.observer.forceFlush();let m=null,y=this.scrollDOM,S=y.scrollTop*this.scaleY,{scrollAnchorPos:T,scrollAnchorHeight:P}=this.viewState;Math.abs(S-this.viewState.scrollTop)>1&&(P=-1),this.viewState.scrollAnchorHeight=-1;try{for(let Q=0;;Q++){if(P<0)if(Ne(y))T=-1,P=this.viewState.heightMap.height;else{let mt=this.viewState.scrollAnchorAt(S);T=mt.from,P=mt.top}this.updateState=1;let q=this.viewState.measure(this);if(!q&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(Q>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let fe=[];q&4||([this.measureRequests,fe]=[fe,this.measureRequests]);let le=fe.map(mt=>{try{return mt.read(this)}catch(Ct){return Te(this.state,Ct),dc}}),Pe=$r.create(this,this.state,[]),We=!1;Pe.flags|=q,m?m.flags|=q:m=Pe,this.updateState=2,Pe.empty||(this.updatePlugins(Pe),this.inputState.update(Pe),this.updateAttrs(),We=this.docView.update(Pe),We&&this.docViewUpdate());for(let mt=0;mt1||Ct<-1){S=S+Ct,y.scrollTop=S/this.scaleY,P=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(m&&!m.empty)for(let Q of this.state.facet(Dt))Q(m)}get themeClasses(){return va+" "+(this.state.facet(Ra)?Sd:Ll)+" "+this.state.facet(Il)}updateAttrs(){let h=Ga(this,W,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),m={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Ie)?"true":"false",class:"cm-content",style:`${Ce.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(m["aria-readonly"]="true"),Ga(this,ie,m);let y=this.observer.ignore(()=>{let S=Yr(this.contentDOM,this.contentAttrs,m),T=Yr(this.dom,this.editorAttrs,h);return S||T});return this.editorAttrs=h,this.contentAttrs=m,y}showAnnouncements(h){let m=!0;for(let y of h)for(let S of y.effects)if(S.is(bi.announce)){m&&(this.announceDOM.textContent=""),m=!1;let T=this.announceDOM.appendChild(document.createElement("div"));T.textContent=S.value}}mountStyles(){this.styleModules=this.state.facet(dn);let h=this.state.facet(bi.cspNonce);Me.V.mount(this.root,this.styleModules.concat(Ko).reverse(),h?{nonce:h}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(h){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),h){if(this.measureRequests.indexOf(h)>-1)return;if(h.key!=null){for(let m=0;my.spec==h)||null),m&&m.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(h){return this.readMeasured(),this.viewState.elementAtHeight(h)}lineBlockAtHeight(h){return this.readMeasured(),this.viewState.lineBlockAtHeight(h)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(h){return this.viewState.lineBlockAt(h)}get contentHeight(){return this.viewState.contentHeight}moveByChar(h,m,y){return as(this,h,Di(this,h,m,y))}moveByGroup(h,m){return as(this,h,Di(this,h,m,y=>Qh(this,h.head,y)))}visualLineSide(h,m){let y=this.bidiSpans(h),S=this.textDirectionAt(h.from),T=y[m?y.length-1:0];return ue.jT.cursor(T.side(m,S)+h.from,T.forward(!m,S)?1:-1)}moveToLineBoundary(h,m,y=!0){return J0(this,h,m,y)}moveVertically(h,m,y){return as(this,h,Gf(this,h,m,y))}domAtPos(h){return this.docView.domAtPos(h)}posAtDOM(h,m=0){return this.docView.posFromDOM(h,m)}posAtCoords(h,m=!0){return this.readMeasured(),Tl(this,h,m)}coordsAtPos(h,m=1){this.readMeasured();let y=this.docView.coordsAt(h,m);if(!y||y.left==y.right)return y;let S=this.state.doc.lineAt(h),T=this.bidiSpans(S),P=T[Ii.find(T,h-S.from,-1,m)];return yn(y,P.dir==ur.LTR==m>0)}coordsForChar(h){return this.readMeasured(),this.docView.coordsForChar(h)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(h){return!this.state.facet(cn)||hthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(h))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(h){if(h.length>tp)return _(h.length);let m=this.textDirectionAt(h.from),y;for(let T of this.bidiCache)if(T.from==h.from&&T.dir==m&&(T.fresh||Si(T.isolates,y=en(this,h))))return T.order;y||(y=en(this,h));let S=A(h.text,m,y);return this.bidiCache.push(new hc(h.from,h.to,m,y,!0,S)),S}get hasFocus(){var h;return(this.dom.ownerDocument.hasFocus()||Ce.safari&&((h=this.inputState)===null||h===void 0?void 0:h.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Xt(this.contentDOM),this.docView.updateSelection()})}setRoot(h){this._root!=h&&(this._root=h,this.observer.setWindow((h.nodeType==9?h:h.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let h of this.plugins)h.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(h,m={}){return Y.of(new he(typeof h=="number"?ue.jT.cursor(h):h,m.y,m.x,m.yMargin,m.xMargin))}scrollSnapshot(){let{scrollTop:h,scrollLeft:m}=this.scrollDOM,y=this.viewState.scrollAnchorAt(h);return Y.of(new he(ue.jT.cursor(y.from),"start","start",y.top-h,m,!0))}setTabFocusMode(h){h==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof h=="boolean"?this.inputState.tabFocusMode=h?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+h)}static domEventHandlers(h){return D.define(()=>({}),{eventHandlers:h})}static domEventObservers(h){return D.define(()=>({}),{eventObservers:h})}static theme(h,m){let y=Me.V.newName(),S=[Il.of(y),dn.of(ko(`.${y}`,h))];return m&&m.dark&&S.push(Ra.of(!0)),S}static baseTheme(h){return ue.Wl.lowest(dn.of(ko("."+va,h,qh)))}static findFromDOM(h){var m;let y=h.querySelector(".cm-content"),S=y&&ut.get(y)||ut.get(h);return((m=S==null?void 0:S.rootView)===null||m===void 0?void 0:m.view)||null}}bi.styleModule=dn,bi.inputHandler=Zt,bi.scrollHandler=Xr,bi.focusChangeEffect=Rn,bi.perLineTextDirection=cn,bi.exceptionSink=pt,bi.updateListener=Dt,bi.editable=Ie,bi.mouseSelectionStyle=ze,bi.dragMovesSelection=_e,bi.clickAddsSelectionRange=te,bi.decorations=Re,bi.outerDecorations=Je,bi.atomicRanges=ht,bi.bidiIsolatedRanges=wt,bi.scrollMargins=nn,bi.darkTheme=Ra,bi.cspNonce=ue.r$.define({combine:v=>v.length?v[0]:""}),bi.contentAttributes=ie,bi.editorAttributes=W,bi.lineWrapping=bi.contentAttributes.of({class:"cm-lineWrapping"}),bi.announce=ue.Py.define();const tp=4096,dc={};class hc{constructor(h,m,y,S,T,P){this.from=h,this.to=m,this.dir=y,this.isolates=S,this.fresh=T,this.order=P}static update(h,m){if(m.empty&&!h.some(T=>T.fresh))return h;let y=[],S=h.length?h[h.length-1].dir:ur.LTR;for(let T=Math.max(0,h.length-10);T=0;S--){let T=y[S],P=typeof T=="function"?T(v):T;P&&Wn(P,m)}return m}const am=Ce.mac?"mac":Ce.windows?"win":Ce.linux?"linux":"key";function ob(v,h){const m=v.split(/-(?!$)/);let y=m[m.length-1];y=="Space"&&(y=" ");let S,T,P,Q;for(let q=0;qy.concat(S),[]))),m}function rp(v,h,m){return Bl(om(v.state),h,v,m)}let Ya=null;const lm=4e3;function ip(v,h=am){let m=Object.create(null),y=Object.create(null),S=(P,Q)=>{let q=y[P];if(q==null)y[P]=Q;else if(q!=Q)throw new Error("Key binding "+P+" is used both as a regular binding and as a multi-stroke prefix")},T=(P,Q,q,fe,le)=>{var Pe,We;let mt=m[P]||(m[P]=Object.create(null)),Ct=Q.split(/ (?!$)/).map(It=>ob(It,h));for(let It=1;It{let gr=Ya={view:Qr,prefix:ar,scope:P};return setTimeout(()=>{Ya==gr&&(Ya=null)},lm),!0}]})}let Bt=Ct.join(" ");S(Bt,!1);let Ht=mt[Bt]||(mt[Bt]={preventDefault:!1,stopPropagation:!1,run:((We=(Pe=mt._any)===null||Pe===void 0?void 0:Pe.run)===null||We===void 0?void 0:We.slice())||[]});q&&Ht.run.push(q),fe&&(Ht.preventDefault=!0),le&&(Ht.stopPropagation=!0)};for(let P of v){let Q=P.scope?P.scope.split(" "):["editor"];if(P.any)for(let fe of Q){let le=m[fe]||(m[fe]=Object.create(null));le._any||(le._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:Pe}=P;for(let We in le)le[We].run.push(mt=>Pe(mt,Fl))}let q=P[h]||P.key;if(q)for(let fe of Q)T(fe,q,P.run,P.preventDefault,P.stopPropagation),P.shift&&T(fe,"Shift-"+q,P.shift,P.preventDefault,P.stopPropagation)}return m}let Fl=null;function Bl(v,h,m,y){Fl=h;let S=In(h),T=(0,ue.gm)(S,0),P=(0,ue.nZ)(T)==S.length&&S!=" ",Q="",q=!1,fe=!1,le=!1;Ya&&Ya.view==m&&Ya.scope==y&&(Q=Ya.prefix+" ",eb.indexOf(h.keyCode)<0&&(fe=!0,Ya=null));let Pe=new Set,We=Ht=>{if(Ht){for(let It of Ht.run)if(!Pe.has(It)&&(Pe.add(It),It(m)))return Ht.stopPropagation&&(le=!0),!0;Ht.preventDefault&&(Ht.stopPropagation&&(le=!0),fe=!0)}return!1},mt=v[y],Ct,Bt;return mt&&(We(mt[Q+Ou(S,h,!P)])?q=!0:P&&(h.altKey||h.metaKey||h.ctrlKey)&&!(Ce.windows&&h.ctrlKey&&h.altKey)&&(Ct=Ue[h.keyCode])&&Ct!=S?(We(mt[Q+Ou(Ct,h,!0)])||h.shiftKey&&(Bt=lt[h.keyCode])!=S&&Bt!=Ct&&We(mt[Q+Ou(Bt,h,!1)]))&&(q=!0):P&&h.shiftKey&&We(mt[Q+Ou(S,h,!0)])&&(q=!0),!q&&We(mt._any)&&(q=!0)),fe&&(q=!0),q&&le&&h.stopPropagation(),Fl=null,q}class sa{constructor(h,m,y,S,T){this.className=h,this.left=m,this.top=y,this.width=S,this.height=T}draw(){let h=document.createElement("div");return h.className=this.className,this.adjust(h),h}update(h,m){return m.className!=this.className?!1:(this.adjust(h),!0)}adjust(h){h.style.left=this.left+"px",h.style.top=this.top+"px",this.width!=null&&(h.style.width=this.width+"px"),h.style.height=this.height+"px"}eq(h){return this.left==h.left&&this.top==h.top&&this.width==h.width&&this.height==h.height&&this.className==h.className}static forRange(h,m,y){if(y.empty){let S=h.coordsAtPos(y.head,y.assoc||1);if(!S)return[];let T=sp(h);return[new sa(m,S.left-T.left,S.top-T.top,null,S.bottom-S.top)]}else return pc(h,m,y)}}function sp(v){let h=v.scrollDOM.getBoundingClientRect();return{left:(v.textDirection==ur.LTR?h.left:h.right-v.scrollDOM.clientWidth*v.scaleX)-v.scrollDOM.scrollLeft*v.scaleX,top:h.top-v.scrollDOM.scrollTop*v.scaleY}}function yu(v,h,m,y){let S=v.coordsAtPos(h,m*2);if(!S)return y;let T=v.dom.getBoundingClientRect(),P=(S.top+S.bottom)/2,Q=v.posAtCoords({x:T.left+1,y:P}),q=v.posAtCoords({x:T.right-1,y:P});return Q==null||q==null?y:{from:Math.max(y.from,Math.min(Q,q)),to:Math.min(y.to,Math.max(Q,q))}}function pc(v,h,m){if(m.to<=v.viewport.from||m.from>=v.viewport.to)return[];let y=Math.max(m.from,v.viewport.from),S=Math.min(m.to,v.viewport.to),T=v.textDirection==ur.LTR,P=v.contentDOM,Q=P.getBoundingClientRect(),q=sp(v),fe=P.querySelector(".cm-line"),le=fe&&window.getComputedStyle(fe),Pe=Q.left+(le?parseInt(le.paddingLeft)+Math.min(0,parseInt(le.textIndent)):0),We=Q.right-(le?parseInt(le.paddingRight):0),mt=Go(v,y),Ct=Go(v,S),Bt=mt.type==Mt.Text?mt:null,Ht=Ct.type==Mt.Text?Ct:null;if(Bt&&(v.lineWrapping||mt.widgetLineBreaks)&&(Bt=yu(v,y,1,Bt)),Ht&&(v.lineWrapping||Ct.widgetLineBreaks)&&(Ht=yu(v,S,-1,Ht)),Bt&&Ht&&Bt.from==Ht.from&&Bt.to==Ht.to)return ar(Qr(m.from,m.to,Bt));{let Lr=Bt?Qr(m.from,null,Bt):gr(mt,!1),ri=Ht?Qr(null,m.to,Ht):gr(Ct,!0),Yi=[];return(Bt||mt).to<(Ht||Ct).from-(Bt&&Ht?1:0)||mt.widgetLineBreaks>1&&Lr.bottom+v.defaultLineHeight/2pe&&Wl.from=Gl)break;Do>ol&&Nc(Math.max(Ro,ol),Lr==null&&Ro<=pe,Math.min(Do,Gl),ri==null&&Do>=Bd,ql.dir)}if(ol=Yl.to+1,ol>=Gl)break}return No.length==0&&Nc(pe,Lr==null,Bd,ri==null,v.textDirection),{top:ws,bottom:_o,horizontal:No}}function gr(Lr,ri){let Yi=Q.top+(ri?Lr.top:Lr.bottom);return{top:Yi,bottom:Yi,horizontal:[]}}}function Eu(v,h){return v.constructor==h.constructor&&v.eq(h)}class ub{constructor(h,m){this.view=h,this.layer=m,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=h.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),m.above&&this.dom.classList.add("cm-layer-above"),m.class&&this.dom.classList.add(m.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(h.state),h.requestMeasure(this.measureReq),m.mount&&m.mount(this.dom,h)}update(h){h.startState.facet(Td)!=h.state.facet(Td)&&this.setOrder(h.state),(this.layer.update(h,this.dom)||h.geometryChanged)&&(this.scale(),h.view.requestMeasure(this.measureReq))}docViewUpdate(h){this.layer.updateOnDocViewUpdate!==!1&&h.requestMeasure(this.measureReq)}setOrder(h){let m=0,y=h.facet(Td);for(;m!Eu(m,this.drawn[y]))){let m=this.dom.firstChild,y=0;for(let S of h)S.update&&m&&S.constructor&&this.drawn[y].constructor&&S.update(m,this.drawn[y])?(m=m.nextSibling,y++):this.dom.insertBefore(S.draw(),m);for(;m;){let S=m.nextSibling;m.remove(),m=S}this.drawn=h}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Td=ue.r$.define();function ap(v){return[D.define(h=>new ub(h,v)),Td.of(v)]}const op=!Ce.ios,tl=ue.r$.define({combine(v){return(0,ue.BO)(v,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(h,m)=>Math.min(h,m),drawRangeCursor:(h,m)=>h||m})}});function Cd(v={}){return[tl.of(v),fc,oS,lS,Fr.of(!0)]}function cb(v){return v.facet(tl)}function Ad(v){return v.startState.facet(tl)!=v.state.facet(tl)}const fc=ap({above:!0,markers(v){let{state:h}=v,m=h.facet(tl),y=[];for(let S of h.selection.ranges){let T=S==h.selection.main;if(S.empty?!T||op:m.drawRangeCursor){let P=T?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",Q=S.empty?S:ue.jT.cursor(S.head,S.head>S.anchor?-1:1);for(let q of sa.forRange(v,P,Q))y.push(q)}}return y},update(v,h){v.transactions.some(y=>y.selection)&&(h.style.animationName=h.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let m=Ad(v);return m&&um(v.state,h),v.docChanged||v.selectionSet||m},mount(v,h){um(h.state,v)},class:"cm-cursorLayer"});function um(v,h){h.style.animationDuration=v.facet(tl).cursorBlinkRate+"ms"}const oS=ap({above:!1,markers(v){return v.state.selection.ranges.map(h=>h.empty?[]:sa.forRange(v,"cm-selectionBackground",h)).reduce((h,m)=>h.concat(m))},update(v,h){return v.docChanged||v.selectionSet||v.viewportChanged||Ad(v)},class:"cm-selectionLayer"}),_d={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};op&&(_d[".cm-line"].caretColor=_d[".cm-content"].caretColor="transparent !important");const lS=ue.Wl.highest(bi.theme(_d)),zn=ue.Py.define({map(v,h){return v==null?null:h.mapPos(v)}}),$l=ue.QQ.define({create(){return null},update(v,h){return v!=null&&(v=h.changes.mapPos(v)),h.effects.reduce((m,y)=>y.is(zn)?y.value:m,v)}}),lp=D.fromClass(class{constructor(v){this.view=v,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(v){var h;let m=v.state.field($l);m==null?this.cursor!=null&&((h=this.cursor)===null||h===void 0||h.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(v.startState.field($l)!=m||v.docChanged||v.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:v}=this,h=v.state.field($l),m=h!=null&&v.coordsAtPos(h);if(!m)return null;let y=v.scrollDOM.getBoundingClientRect();return{left:m.left-y.left+v.scrollDOM.scrollLeft*v.scaleX,top:m.top-y.top+v.scrollDOM.scrollTop*v.scaleY,height:m.bottom-m.top}}drawCursor(v){if(this.cursor){let{scaleX:h,scaleY:m}=this.view;v?(this.cursor.style.left=v.left/h+"px",this.cursor.style.top=v.top/m+"px",this.cursor.style.height=v.height/m+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(v){this.view.state.field($l)!=v&&this.view.dispatch({effects:zn.of(v)})}},{eventObservers:{dragover(v){this.setDropPos(this.view.posAtCoords({x:v.clientX,y:v.clientY}))},dragleave(v){(v.target==this.view.contentDOM||!this.view.contentDOM.contains(v.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function cm(){return[$l,lp]}function Nd(v,h,m,y,S){h.lastIndex=0;for(let T=v.iterRange(m,y),P=m,Q;!T.next().done;P+=T.value.length)if(!T.lineBreak)for(;Q=h.exec(T.value);)S(P+Q.index,Q)}function Su(v,h){let m=v.visibleRanges;if(m.length==1&&m[0].from==v.viewport.from&&m[0].to==v.viewport.to)return m;let y=[];for(let{from:S,to:T}of m)S=Math.max(v.state.doc.lineAt(S).from,S-h),T=Math.min(v.state.doc.lineAt(T).to,T+h),y.length&&y[y.length-1].to>=S?y[y.length-1].to=T:y.push({from:S,to:T});return y}class Ul{constructor(h){const{regexp:m,decoration:y,decorate:S,boundary:T,maxLength:P=1e3}=h;if(!m.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=m,S)this.addMatch=(Q,q,fe,le)=>S(le,fe,fe+Q[0].length,Q,q);else if(typeof y=="function")this.addMatch=(Q,q,fe,le)=>{let Pe=y(Q,q,fe);Pe&&le(fe,fe+Q[0].length,Pe)};else if(y)this.addMatch=(Q,q,fe,le)=>le(fe,fe+Q[0].length,y);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=T,this.maxLength=P}createDeco(h){let m=new ue.f_,y=m.add.bind(m);for(let{from:S,to:T}of Su(h,this.maxLength))Nd(h.state.doc,this.regexp,S,T,(P,Q)=>this.addMatch(Q,h,P,y));return m.finish()}updateDeco(h,m){let y=1e9,S=-1;return h.docChanged&&h.changes.iterChanges((T,P,Q,q)=>{q>h.view.viewport.from&&Q1e3?this.createDeco(h.view):S>-1?this.updateRange(h.view,m.map(h.changes),y,S):m}updateRange(h,m,y,S){for(let T of h.visibleRanges){let P=Math.max(T.from,y),Q=Math.min(T.to,S);if(Q>P){let q=h.state.doc.lineAt(P),fe=q.toq.from;P--)if(this.boundary.test(q.text[P-1-q.from])){le=P;break}for(;QWe.push(It.range(Bt,Ht));if(q==fe)for(this.regexp.lastIndex=le-q.from;(mt=this.regexp.exec(q.text))&&mt.indexthis.addMatch(Ht,h,Bt,Ct));m=m.update({filterFrom:le,filterTo:Pe,filter:(Bt,Ht)=>BtPe,add:We})}}return m}}const vu=/x/.unicode!=null?"gu":"g",up=new RegExp(`[\0-\b --\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,vu),Rd={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let mc=null;function cp(){var v;if(mc==null&&typeof document!="undefined"&&document.body){let h=document.body.style;mc=((v=h.tabSize)!==null&&v!==void 0?v:h.MozTabSize)!=null}return mc||!1}const ku=ue.r$.define({combine(v){let h=(0,ue.BO)(v,{render:null,specialChars:up,addSpecialChars:null});return(h.replaceTabs=!cp())&&(h.specialChars=new RegExp(" |"+h.specialChars.source,vu)),h.addSpecialChars&&(h.specialChars=new RegExp(h.specialChars.source+"|"+h.addSpecialChars.source,vu)),h}});function dp(v={}){return[ku.of(v),Ws()]}let gc=null;function Ws(){return gc||(gc=D.fromClass(class{constructor(v){this.view=v,this.decorations=Tt.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(v.state.facet(ku)),this.decorations=this.decorator.createDeco(v)}makeDecorator(v){return new Ul({regexp:v.specialChars,decoration:(h,m,y)=>{let{doc:S}=m.state,T=(0,ue.gm)(h[0],0);if(T==9){let P=S.lineAt(y),Q=m.state.tabSize,q=(0,ue.IS)(P.text,Q,y-P.from);return Tt.replace({widget:new hb((Q-q%Q)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[T]||(this.decorationCache[T]=Tt.replace({widget:new db(v,T)}))},boundary:v.replaceTabs?void 0:/[^]/})}update(v){let h=v.state.facet(ku);v.startState.facet(ku)!=h?(this.decorator=this.makeDecorator(h),this.decorations=this.decorator.createDeco(v.view)):this.decorations=this.decorator.updateDeco(v,this.decorations)}},{decorations:v=>v.decorations}))}const Is="\u2022";function uS(v){return v>=32?Is:v==10?"\u2424":String.fromCharCode(9216+v)}class db extends bt{constructor(h,m){super(),this.options=h,this.code=m}eq(h){return h.code==this.code}toDOM(h){let m=uS(this.code),y=h.state.phrase("Control character")+" "+(Rd[this.code]||"0x"+this.code.toString(16)),S=this.options.render&&this.options.render(this.code,y,m);if(S)return S;let T=document.createElement("span");return T.textContent=m,T.title=y,T.setAttribute("aria-label",y),T.className="cm-specialChar",T}ignoreEvent(){return!1}}class hb extends bt{constructor(h){super(),this.width=h}eq(h){return h.width==this.width}toDOM(){let h=document.createElement("span");return h.textContent=" ",h.className="cm-tab",h.style.width=this.width+"px",h}ignoreEvent(){return!1}}const wo=null;function cS(){return[wo,ie.of(v=>{var h;return((h=v.plugin(wo))===null||h===void 0?void 0:h.attrs)||null})]}function hp(){return dm}const pp=Tt.line({class:"cm-activeLine"}),dm=D.fromClass(class{constructor(v){this.decorations=this.getDeco(v)}update(v){(v.docChanged||v.selectionSet)&&(this.decorations=this.getDeco(v.view))}getDeco(v){let h=-1,m=[];for(let y of v.state.selection.ranges){let S=v.lineBlockAt(y.head);S.from>h&&(m.push(pp.range(S.from)),h=S.from)}return Tt.set(m)}},{decorations:v=>v.decorations});class pb extends bt{constructor(h){super(),this.content=h}toDOM(){let h=document.createElement("span");return h.className="cm-placeholder",h.style.pointerEvents="none",h.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?h.setAttribute("aria-label","placeholder "+this.content):h.setAttribute("aria-hidden","true"),h}coordsAt(h){let m=h.firstChild?On(h.firstChild):[];if(!m.length)return null;let y=window.getComputedStyle(h.parentNode),S=yn(m[0],y.direction!="rtl"),T=parseInt(y.lineHeight);return S.bottom-S.top>T*1.5?{left:S.left,right:S.right,top:S.top,bottom:S.top+T}:S}ignoreEvent(){return!1}}function Dd(v){return D.fromClass(class{constructor(h){this.view=h,this.placeholder=v?Tt.set([Tt.widget({widget:new pb(v),side:1}).range(0)]):Tt.none}get decorations(){return this.view.state.doc.length?Tt.none:this.placeholder}},{decorations:h=>h.decorations})}const mr=2e3;function fp(v,h,m){let y=Math.min(h.line,m.line),S=Math.max(h.line,m.line),T=[];if(h.off>mr||m.off>mr||h.col<0||m.col<0){let P=Math.min(h.off,m.off),Q=Math.max(h.off,m.off);for(let q=y;q<=S;q++){let fe=v.doc.line(q);fe.length<=Q&&T.push(ue.jT.range(fe.from+P,fe.to+Q))}}else{let P=Math.min(h.col,m.col),Q=Math.max(h.col,m.col);for(let q=y;q<=S;q++){let fe=v.doc.line(q),le=(0,ue.Gz)(fe.text,P,v.tabSize,!0);if(le<0)T.push(ue.jT.cursor(fe.to));else{let Pe=(0,ue.Gz)(fe.text,Q,v.tabSize);T.push(ue.jT.range(fe.from+le,fe.from+Pe))}}}return T}function Hl(v,h){let m=v.coordsAtPos(v.viewport.from);return m?Math.round(Math.abs((m.left-h)/v.defaultCharacterWidth)):-1}function hm(v,h){let m=v.posAtCoords({x:h.clientX,y:h.clientY},!1),y=v.state.doc.lineAt(m),S=m-y.from,T=S>mr?-1:S==y.length?Hl(v,h.clientX):(0,ue.IS)(y.text,v.state.tabSize,m-y.from);return{line:y.number,col:T,off:S}}function xo(v,h){let m=hm(v,h),y=v.state.selection;return m?{update(S){if(S.docChanged){let T=S.changes.mapPos(S.startState.doc.line(m.line).from),P=S.state.doc.lineAt(T);m={line:P.number,col:m.col,off:Math.min(m.off,P.length)},y=y.map(S.changes)}},get(S,T,P){let Q=hm(v,S);if(!Q)return y;let q=fp(v.state,m,Q);return q.length?P?ue.jT.create(q.concat(y.ranges)):ue.jT.create(q):y}}:null}function fb(v){let h=(v==null?void 0:v.eventFilter)||(m=>m.altKey&&m.button==0);return bi.mouseSelectionStyle.of((m,y)=>h(y)?xo(m,y):null)}const mp={Alt:[18,v=>!!v.altKey],Control:[17,v=>!!v.ctrlKey],Shift:[16,v=>!!v.shiftKey],Meta:[91,v=>!!v.metaKey]},mb={style:"cursor: crosshair"};function gb(v={}){let[h,m]=mp[v.key||"Alt"],y=D.fromClass(class{constructor(S){this.view=S,this.isDown=!1}set(S){this.isDown!=S&&(this.isDown=S,this.view.update([]))}},{eventObservers:{keydown(S){this.set(S.keyCode==h||m(S))},keyup(S){(S.keyCode==h||!m(S))&&this.set(!1)},mousemove(S){this.set(m(S))}}});return[y,bi.contentAttributes.of(S=>{var T;return!((T=S.plugin(y))===null||T===void 0)&&T.isDown?mb:null})]}const zl="-10000px";class wu{constructor(h,m,y,S){this.facet=m,this.createTooltipView=y,this.removeTooltipView=S,this.input=h.state.facet(m),this.tooltips=this.input.filter(P=>P);let T=null;this.tooltipViews=this.tooltips.map(P=>T=y(P,T))}update(h,m){var y;let S=h.state.facet(this.facet),T=S.filter(q=>q);if(S===this.input){for(let q of this.tooltipViews)q.update&&q.update(h);return!1}let P=[],Q=m?[]:null;for(let q=0;qm[fe]=q),m.length=Q.length),this.input=S,this.tooltips=T,this.tooltipViews=P,!0}}function dS(v={}){return bp.of(v)}function gp(v){let{win:h}=v;return{top:0,left:0,bottom:h.innerHeight,right:h.innerWidth}}const bp=ue.r$.define({combine:v=>{var h,m,y;return{position:Ce.ios?"absolute":((h=v.find(S=>S.position))===null||h===void 0?void 0:h.position)||"fixed",parent:((m=v.find(S=>S.parent))===null||m===void 0?void 0:m.parent)||null,tooltipSpace:((y=v.find(S=>S.tooltipSpace))===null||y===void 0?void 0:y.tooltipSpace)||gp}}}),Id=new WeakMap,bc=D.fromClass(class{constructor(v){this.view=v,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let h=v.state.facet(bp);this.position=h.position,this.parent=h.parent,this.classes=v.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new wu(v,Ql,(m,y)=>this.createTooltip(m,y),m=>{this.resizeObserver&&this.resizeObserver.unobserve(m.dom),m.dom.remove()}),this.above=this.manager.tooltips.map(m=>!!m.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(m=>{Date.now()>this.lastTransaction-50&&m.length>0&&m[m.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),v.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let v of this.manager.tooltipViews)this.intersectionObserver.observe(v.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(v){v.transactions.length&&(this.lastTransaction=Date.now());let h=this.manager.update(v,this.above);h&&this.observeIntersection();let m=h||v.geometryChanged,y=v.state.facet(bp);if(y.position!=this.position&&!this.madeAbsolute){this.position=y.position;for(let S of this.manager.tooltipViews)S.dom.style.position=this.position;m=!0}if(y.parent!=this.parent){this.parent&&this.container.remove(),this.parent=y.parent,this.createContainer();for(let S of this.manager.tooltipViews)this.container.appendChild(S.dom);m=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);m&&this.maybeMeasure()}createTooltip(v,h){let m=v.create(this.view),y=h?h.dom:null;if(m.dom.classList.add("cm-tooltip"),v.arrow&&!m.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let S=document.createElement("div");S.className="cm-tooltip-arrow",m.dom.appendChild(S)}return m.dom.style.position=this.position,m.dom.style.top=zl,m.dom.style.left="0px",this.container.insertBefore(m.dom,y),m.mount&&m.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(m.dom),m}destroy(){var v,h,m;this.view.win.removeEventListener("resize",this.measureSoon);for(let y of this.manager.tooltipViews)y.dom.remove(),(v=y.destroy)===null||v===void 0||v.call(y);this.parent&&this.container.remove(),(h=this.resizeObserver)===null||h===void 0||h.disconnect(),(m=this.intersectionObserver)===null||m===void 0||m.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let v=this.view.dom.getBoundingClientRect(),h=1,m=1,y=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:S}=this.manager.tooltipViews[0];if(Ce.gecko)y=S.offsetParent!=this.container.ownerDocument.body;else if(S.style.top==zl&&S.style.left=="0px"){let T=S.getBoundingClientRect();y=Math.abs(T.top+1e4)>1||Math.abs(T.left)>1}}if(y||this.position=="absolute")if(this.parent){let S=this.parent.getBoundingClientRect();S.width&&S.height&&(h=S.width/this.parent.offsetWidth,m=S.height/this.parent.offsetHeight)}else({scaleX:h,scaleY:m}=this.view.viewState);return{editor:v,parent:this.parent?this.container.getBoundingClientRect():v,pos:this.manager.tooltips.map((S,T)=>{let P=this.manager.tooltipViews[T];return P.getCoords?P.getCoords(S.pos):this.view.coordsAtPos(S.pos)}),size:this.manager.tooltipViews.map(({dom:S})=>S.getBoundingClientRect()),space:this.view.state.facet(bp).tooltipSpace(this.view),scaleX:h,scaleY:m,makeAbsolute:y}}writeMeasure(v){var h;if(v.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let Q of this.manager.tooltipViews)Q.dom.style.position="absolute"}let{editor:m,space:y,scaleX:S,scaleY:T}=v,P=[];for(let Q=0;Q=Math.min(m.bottom,y.bottom)||Pe.rightMath.min(m.right,y.right)+.1){le.style.top=zl;continue}let mt=q.arrow?fe.dom.querySelector(".cm-tooltip-arrow"):null,Ct=mt?7:0,Bt=We.right-We.left,Ht=(h=Id.get(fe))!==null&&h!==void 0?h:We.bottom-We.top,It=fe.offset||Oc,ar=this.view.textDirection==ur.LTR,Qr=We.width>y.right-y.left?ar?y.left:y.right-We.width:ar?Math.max(y.left,Math.min(Pe.left-(mt?14:0)+It.x,y.right-Bt)):Math.min(Math.max(y.left,Pe.left-Bt+(mt?14:0)-It.x),y.right-Bt),gr=this.above[Q];!q.strictSide&&(gr?Pe.top-(We.bottom-We.top)-It.yy.bottom)&&gr==y.bottom-Pe.bottom>Pe.top-y.top&&(gr=this.above[Q]=!gr);let Lr=(gr?Pe.top-y.top:y.bottom-Pe.bottom)-Ct;if(LrQr&&ws.topri&&(ri=gr?ws.top-Ht-2-Ct:ws.bottom+Ct+2);if(this.position=="absolute"?(le.style.top=(ri-v.parent.top)/T+"px",le.style.left=(Qr-v.parent.left)/S+"px"):(le.style.top=ri/T+"px",le.style.left=Qr/S+"px"),mt){let ws=Pe.left+(ar?It.x:-It.x)-(Qr+14-7);mt.style.left=ws/S+"px"}fe.overlap!==!0&&P.push({left:Qr,top:ri,right:Yi,bottom:ri+Ht}),le.classList.toggle("cm-tooltip-above",gr),le.classList.toggle("cm-tooltip-below",!gr),fe.positioned&&fe.positioned(v.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let v of this.manager.tooltipViews)v.dom.style.top=zl}},{eventObservers:{scroll(){this.maybeMeasure()}}}),Ld=bi.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Oc={x:0,y:0},Ql=ue.r$.define({enables:[bc,Ld]}),yc=ue.r$.define({combine:v=>v.reduce((h,m)=>h.concat(m),[])});class Ki{static create(h){return new Ki(h)}constructor(h){this.view=h,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new wu(h,yc,(m,y)=>this.createHostedView(m,y),m=>m.dom.remove())}createHostedView(h,m){let y=h.create(this.view);return y.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(y.dom,m?m.dom.nextSibling:this.dom.firstChild),this.mounted&&y.mount&&y.mount(this.view),y}mount(h){for(let m of this.manager.tooltipViews)m.mount&&m.mount(h);this.mounted=!0}positioned(h){for(let m of this.manager.tooltipViews)m.positioned&&m.positioned(h)}update(h){this.manager.update(h)}destroy(){var h;for(let m of this.manager.tooltipViews)(h=m.destroy)===null||h===void 0||h.call(m)}passProp(h){let m;for(let y of this.manager.tooltipViews){let S=y[h];if(S!==void 0){if(m===void 0)m=S;else if(m!==S)return}}return m}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const xu=Ql.compute([yc],v=>{let h=v.facet(yc);return h.length===0?null:{pos:Math.min(...h.map(m=>m.pos)),end:Math.max(...h.map(m=>{var y;return(y=m.end)!==null&&y!==void 0?y:m.pos})),create:Ki.create,above:h[0].above,arrow:h.some(m=>m.arrow)}});class bb{constructor(h,m,y,S,T){this.view=h,this.source=m,this.field=y,this.setHover=S,this.hoverTime=T,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:h.dom,time:0},this.checkHover=this.checkHover.bind(this),h.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),h.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let h=Date.now()-this.lastMove.time;hQ.bottom||m.xQ.right+h.defaultCharacterWidth)return;let q=h.bidiSpans(h.state.doc.lineAt(S)).find(le=>le.from<=S&&le.to>=S),fe=q&&q.dir==ur.RTL?-1:1;T=m.x{this.pending==Q&&(this.pending=null,q&&!(Array.isArray(q)&&!q.length)&&h.dispatch({effects:this.setHover.of(Array.isArray(q)?q:[q])}))},q=>Te(h.state,q,"hover tooltip"))}else P&&!(Array.isArray(P)&&!P.length)&&h.dispatch({effects:this.setHover.of(Array.isArray(P)?P:[P])})}get tooltip(){let h=this.view.plugin(bc),m=h?h.manager.tooltips.findIndex(y=>y.create==Ki.create):-1;return m>-1?h.manager.tooltipViews[m]:null}mousemove(h){var m,y;this.lastMove={x:h.clientX,y:h.clientY,target:h.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:S,tooltip:T}=this;if(S.length&&T&&!pm(T.dom,h)||this.pending){let{pos:P}=S[0]||this.pending,Q=(y=(m=S[0])===null||m===void 0?void 0:m.end)!==null&&y!==void 0?y:P;(P==Q?this.view.posAtCoords(this.lastMove)!=P:!Md(this.view,P,Q,h.clientX,h.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(h){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:m}=this;if(m.length){let{tooltip:y}=this;y&&y.dom.contains(h.relatedTarget)?this.watchTooltipLeave(y.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(h){let m=y=>{h.removeEventListener("mouseleave",m),this.active.length&&!this.view.dom.contains(y.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};h.addEventListener("mouseleave",m)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const To=4;function pm(v,h){let m=v.getBoundingClientRect();return h.clientX>=m.left-To&&h.clientX<=m.right+To&&h.clientY>=m.top-To&&h.clientY<=m.bottom+To}function Md(v,h,m,y,S,T){let P=v.scrollDOM.getBoundingClientRect(),Q=v.documentTop+v.documentPadding.top+v.contentHeight;if(P.left>y||P.rightS||Math.min(P.bottom,Q)=h&&q<=m}function fm(v,h={}){let m=ue.Py.define(),y=ue.QQ.define({create(){return[]},update(S,T){if(S.length&&(h.hideOnChange&&(T.docChanged||T.selection)?S=[]:h.hideOn&&(S=S.filter(P=>!h.hideOn(T,P))),T.docChanged)){let P=[];for(let Q of S){let q=T.changes.mapPos(Q.pos,-1,ue.gc.TrackDel);if(q!=null){let fe=Object.assign(Object.create(null),Q);fe.pos=q,fe.end!=null&&(fe.end=T.changes.mapPos(fe.end)),P.push(fe)}}S=P}for(let P of T.effects)P.is(m)&&(S=P.value),P.is(qa)&&(S=[]);return S},provide:S=>yc.from(S)});return[y,D.define(S=>new bb(S,v,y,m,h.hoverTime||300)),xu]}function Ec(v,h){let m=v.plugin(bc);if(!m)return null;let y=m.manager.tooltips.indexOf(h);return y<0?null:m.manager.tooltipViews[y]}function Op(v){return v.facet(yc).some(h=>h)}const qa=ue.Py.define(),mm=null;function cs(v){let h=v.plugin(bc);h&&h.maybeMeasure()}const nl=ue.r$.define({combine(v){let h,m;for(let y of v)h=h||y.topContainer,m=m||y.bottomContainer;return{topContainer:h,bottomContainer:m}}});function Tu(v){return v?[nl.of(v)]:[]}function Ai(v,h){let m=v.plugin(Ls),y=m?m.specs.indexOf(h):-1;return y>-1?m.panels[y]:null}const Ls=D.fromClass(class{constructor(v){this.input=v.state.facet(lo),this.specs=this.input.filter(m=>m),this.panels=this.specs.map(m=>m(v));let h=v.state.facet(nl);this.top=new Kr(v,!0,h.topContainer),this.bottom=new Kr(v,!1,h.bottomContainer),this.top.sync(this.panels.filter(m=>m.top)),this.bottom.sync(this.panels.filter(m=>!m.top));for(let m of this.panels)m.dom.classList.add("cm-panel"),m.mount&&m.mount()}update(v){let h=v.state.facet(nl);this.top.container!=h.topContainer&&(this.top.sync([]),this.top=new Kr(v.view,!0,h.topContainer)),this.bottom.container!=h.bottomContainer&&(this.bottom.sync([]),this.bottom=new Kr(v.view,!1,h.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let m=v.state.facet(lo);if(m!=this.input){let y=m.filter(q=>q),S=[],T=[],P=[],Q=[];for(let q of y){let fe=this.specs.indexOf(q),le;fe<0?(le=q(v.view),Q.push(le)):(le=this.panels[fe],le.update&&le.update(v)),S.push(le),(le.top?T:P).push(le)}this.specs=y,this.panels=S,this.top.sync(T),this.bottom.sync(P);for(let q of Q)q.dom.classList.add("cm-panel"),q.mount&&q.mount()}else for(let y of this.panels)y.update&&y.update(v)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:v=>bi.scrollMargins.of(h=>{let m=h.plugin(v);return m&&{top:m.top.scrollMargin(),bottom:m.bottom.scrollMargin()}})});class Kr{constructor(h,m,y){this.view=h,this.top=m,this.container=y,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(h){for(let m of this.panels)m.destroy&&h.indexOf(m)<0&&m.destroy();this.panels=h,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let m=this.container||this.view.dom;m.insertBefore(this.dom,this.top?m.firstChild:null)}let h=this.dom.firstChild;for(let m of this.panels)if(m.dom.parentNode==this.dom){for(;h!=m.dom;)h=Da(h);h=h.nextSibling}else this.dom.insertBefore(m.dom,h);for(;h;)h=Da(h)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let h of this.classes.split(" "))h&&this.container.classList.remove(h);for(let h of(this.classes=this.view.themeClasses).split(" "))h&&this.container.classList.add(h)}}}function Da(v){let h=v.nextSibling;return v.remove(),h}const lo=ue.r$.define({enables:Ls});class Ia extends ue.uU{compare(h){return this==h||this.constructor==h.constructor&&this.eq(h)}eq(h){return!1}destroy(h){}}Ia.prototype.elementClass="",Ia.prototype.toDOM=void 0,Ia.prototype.mapMode=ue.gc.TrackBefore,Ia.prototype.startSide=Ia.prototype.endSide=-1,Ia.prototype.point=!0;const Co=ue.r$.define(),rl={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>ue.Xs.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},zi=ue.r$.define();function ua(v){return[Cu(),zi.of(Object.assign(Object.assign({},rl),v))]}const il=ue.r$.define({combine:v=>v.some(h=>h)});function Cu(v){let h=[Au];return v&&v.fixed===!1&&h.push(il.of(!0)),h}const Au=D.fromClass(class{constructor(v){this.view=v,this.prevViewport=v.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=v.state.facet(zi).map(h=>new Vl(v,h));for(let h of this.gutters)this.dom.appendChild(h.dom);this.fixed=!v.state.facet(il),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),v.scrollDOM.insertBefore(this.dom,v.contentDOM)}update(v){if(this.updateGutters(v)){let h=this.prevViewport,m=v.view.viewport,y=Math.min(h.to,m.to)-Math.max(h.from,m.from);this.syncGutters(y<(m.to-m.from)*.8)}v.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(il)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=v.view.viewport}syncGutters(v){let h=this.dom.nextSibling;v&&this.dom.remove();let m=ue.Xs.iter(this.view.state.facet(Co),this.view.viewport.from),y=[],S=this.gutters.map(T=>new Ms(T,this.view.viewport,-this.view.documentPadding.top));for(let T of this.view.viewportLineBlocks)if(y.length&&(y=[]),Array.isArray(T.type)){let P=!0;for(let Q of T.type)if(Q.type==Mt.Text&&P){_u(m,y,Q.from);for(let q of S)q.line(this.view,Q,y);P=!1}else if(Q.widget)for(let q of S)q.widget(this.view,Q)}else if(T.type==Mt.Text){_u(m,y,T.from);for(let P of S)P.line(this.view,T,y)}else if(T.widget)for(let P of S)P.widget(this.view,T);for(let T of S)T.finish();v&&this.view.scrollDOM.insertBefore(this.dom,h)}updateGutters(v){let h=v.startState.facet(zi),m=v.state.facet(zi),y=v.docChanged||v.heightChanged||v.viewportChanged||!ue.Xs.eq(v.startState.facet(Co),v.state.facet(Co),v.view.viewport.from,v.view.viewport.to);if(h==m)for(let S of this.gutters)S.update(v)&&(y=!0);else{y=!0;let S=[];for(let T of m){let P=h.indexOf(T);P<0?S.push(new Vl(this.view,T)):(this.gutters[P].update(v),S.push(this.gutters[P]))}for(let T of this.gutters)T.dom.remove(),S.indexOf(T)<0&&T.destroy();for(let T of S)this.dom.appendChild(T.dom);this.gutters=S}return y}destroy(){for(let v of this.gutters)v.destroy();this.dom.remove()}},{provide:v=>bi.scrollMargins.of(h=>{let m=h.plugin(v);return!m||m.gutters.length==0||!m.fixed?null:h.textDirection==ur.LTR?{left:m.dom.offsetWidth*h.scaleX}:{right:m.dom.offsetWidth*h.scaleX}})});function sl(v){return Array.isArray(v)?v:[v]}function _u(v,h,m){for(;v.value&&v.from<=m;)v.from==m&&h.push(v.value),v.next()}class Ms{constructor(h,m,y){this.gutter=h,this.height=y,this.i=0,this.cursor=ue.Xs.iter(h.markers,m.from)}addElement(h,m,y){let{gutter:S}=this,T=(m.top-this.height)/h.scaleY,P=m.height/h.scaleY;if(this.i==S.elements.length){let Q=new Nu(h,P,T,y);S.elements.push(Q),S.dom.appendChild(Q.dom)}else S.elements[this.i].update(h,P,T,y);this.height=m.bottom,this.i++}line(h,m,y){let S=[];_u(this.cursor,S,m.from),y.length&&(S=S.concat(y));let T=this.gutter.config.lineMarker(h,m,S);T&&S.unshift(T);let P=this.gutter;S.length==0&&!P.config.renderEmptyElements||this.addElement(h,m,S)}widget(h,m){let y=this.gutter.config.widgetMarker(h,m.widget,m);y&&this.addElement(h,m,[y])}finish(){let h=this.gutter;for(;h.elements.length>this.i;){let m=h.elements.pop();h.dom.removeChild(m.dom),m.destroy()}}}class Vl{constructor(h,m){this.view=h,this.config=m,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let y in m.domEventHandlers)this.dom.addEventListener(y,S=>{let T=S.target,P;if(T!=this.dom&&this.dom.contains(T)){for(;T.parentNode!=this.dom;)T=T.parentNode;let q=T.getBoundingClientRect();P=(q.top+q.bottom)/2}else P=S.clientY;let Q=h.lineBlockAtHeight(P-h.documentTop);m.domEventHandlers[y](h,Q,S)&&S.preventDefault()});this.markers=sl(m.markers(h)),m.initialSpacer&&(this.spacer=new Nu(h,0,0,[m.initialSpacer(h)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(h){let m=this.markers;if(this.markers=sl(this.config.markers(h.view)),this.spacer&&this.config.updateSpacer){let S=this.config.updateSpacer(this.spacer.markers[0],h);S!=this.spacer.markers[0]&&this.spacer.update(h.view,0,0,[S])}let y=h.view.viewport;return!ue.Xs.eq(this.markers,m,y.from,y.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(h):!1)}destroy(){for(let h of this.elements)h.destroy()}}class Nu{constructor(h,m,y,S){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(h,m,y,S)}update(h,m,y,S){this.height!=m&&(this.height=m,this.dom.style.height=m+"px"),this.above!=y&&(this.dom.style.marginTop=(this.above=y)?y+"px":""),Sc(this.markers,S)||this.setMarkers(h,S)}setMarkers(h,m){let y="cm-gutterElement",S=this.dom.firstChild;for(let T=0,P=0;;){let Q=P,q=TT(Q,q,fe)||P(Q,q,fe):P}return y}})}});class jl extends Ia{constructor(h){super(),this.number=h}eq(h){return this.number==h.number}toDOM(){return document.createTextNode(this.number)}}function Ru(v,h){return v.state.facet(Ao).formatNumber(h,v.state)}const Pd=zi.compute([Ao],v=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(h){return h.state.facet(vc)},lineMarker(h,m,y){return y.some(S=>S.toDOM)?null:new jl(Ru(h,h.state.doc.lineAt(m.from).number))},widgetMarker:()=>null,lineMarkerChange:h=>h.startState.facet(Ao)!=h.state.facet(Ao),initialSpacer(h){return new jl(Ru(h,bs(h.state.doc.lines)))},updateSpacer(h,m){let y=Ru(m.view,bs(m.view.state.doc.lines));return y==h.number?h:new jl(y)},domEventHandlers:v.facet(Ao).domEventHandlers}));function Fd(v={}){return[Ao.of(v),Cu(),Pd]}function bs(v){let h=9;for(;h{let h=[],m=-1;for(let y of v.selection.ranges){let S=v.doc.lineAt(y.head).from;S>m&&(m=S,h.push(Zl.range(S)))}return ue.Xs.of(h)});function Du(){return kc}const al=new Map;function wc(v){let h=al.get(v);return h||al.set(v,h=Tt.mark({attributes:v===" "?{class:"cm-highlightTab"}:{class:"cm-highlightSpace","data-display":v.replace(/ /g,"\xB7")}})),h}function xc(v){return D.define(h=>({decorations:v.createDeco(h),update(m){this.decorations=v.updateDeco(m,this.decorations)}}),{decorations:h=>h.decorations})}const Tc=xc(new Ul({regexp:/\t| +/g,decoration:v=>wc(v[0]),boundary:/\S/}));function Iu(){return Tc}const Cc=xc(new Ul({regexp:/\s+$/g,decoration:Tt.mark({class:"cm-trailingSpace"}),boundary:/\S/}));function Ac(){return Cc}const _c={HeightMap:Rs,HeightOracle:Eo,MeasuredHeights:sb,QueryType:wi,ChangedRange:cr,computeOrder:A,moveVisually:V}},41113:function(ti,Gn,z){"use strict";z.d(Gn,{FE:function(){return Ze},Jq:function(){return Ee},L3:function(){return ue},Lj:function(){return xt},_b:function(){return Ne},hr:function(){return X},i9:function(){return be},md:function(){return lt},mp:function(){return Hn},vj:function(){return Pt}});const ue=1024;let Me=0;class Ue{constructor(Z,re){this.from=Z,this.to=re}}class lt{constructor(Z={}){this.id=Me++,this.perNode=!!Z.perNode,this.deserialize=Z.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(Z){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof Z!="function"&&(Z=Ee.match(Z)),re=>{let we=Z(re);return we===void 0?null:[this,we]}}}lt.closedBy=new lt({deserialize:et=>et.split(" ")}),lt.openedBy=new lt({deserialize:et=>et.split(" ")}),lt.group=new lt({deserialize:et=>et.split(" ")}),lt.isolate=new lt({deserialize:et=>{if(et&&et!="rtl"&&et!="ltr"&&et!="auto")throw new RangeError("Invalid value for isolate: "+et);return et||"auto"}}),lt.contextHash=new lt({perNode:!0}),lt.lookAhead=new lt({perNode:!0}),lt.mounted=new lt({perNode:!0});class En{constructor(Z,re,we){this.tree=Z,this.overlay=re,this.parser=we}static get(Z){return Z&&Z.props&&Z.props[lt.mounted.id]}}const De=Object.create(null);class Ee{constructor(Z,re,we,ve=0){this.name=Z,this.props=re,this.id=we,this.flags=ve}static define(Z){let re=Z.props&&Z.props.length?Object.create(null):De,we=(Z.top?1:0)|(Z.skipped?2:0)|(Z.error?4:0)|(Z.name==null?8:0),ve=new Ee(Z.name||"",re,Z.id,we);if(Z.props){for(let Ce of Z.props)if(Array.isArray(Ce)||(Ce=Ce(ve)),Ce){if(Ce[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");re[Ce[0].id]=Ce[1]}}return ve}prop(Z){return this.props[Z.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(Z){if(typeof Z=="string"){if(this.name==Z)return!0;let re=this.prop(lt.group);return re?re.indexOf(Z)>-1:!1}return this.id==Z}static match(Z){let re=Object.create(null);for(let we in Z)for(let ve of we.split(" "))re[ve]=Z[we];return we=>{for(let ve=we.prop(lt.group),Ce=-1;Ce<(ve?ve.length:0);Ce++){let tt=re[Ce<0?we.name:ve[Ce]];if(tt)return tt}}}}Ee.none=new Ee("",Object.create(null),0,8);class xt{constructor(Z){this.types=Z;for(let re=0;re0;for(let Kt=this.cursor(tt|Pt.IncludeAnonymous);;){let Cn=!1;if(Kt.from<=Ce&&Kt.to>=ve&&(!Rt&&Kt.type.isAnonymous||re(Kt)!==!1)){if(Kt.firstChild())continue;Cn=!0}for(;Cn&&we&&(Rt||!Kt.type.isAnonymous)&&we(Kt),!Kt.nextSibling();){if(!Kt.parent())return;Cn=!0}}}prop(Z){return Z.perNode?this.props?this.props[Z.id]:void 0:this.type.prop(Z)}get propValues(){let Z=[];if(this.props)for(let re in this.props)Z.push([+re,this.props[re]]);return Z}balance(Z={}){return this.children.length<=8?this:Qt(Ee.none,this.children,this.positions,0,this.children.length,0,this.length,(re,we,ve)=>new Hn(this.type,re,we,ve,this.propValues),Z.makeTree||((re,we,ve)=>new Hn(Ee.none,re,we,ve)))}static build(Z){return sn(Z)}}Hn.empty=new Hn(Ee.none,[],[],0);class gt{constructor(Z,re){this.buffer=Z,this.index=re}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new gt(this.buffer,this.index)}}class On{constructor(Z,re,we){this.buffer=Z,this.length=re,this.set=we}get type(){return Ee.none}toString(){let Z=[];for(let re=0;re0));Kt=tt[Kt+3]);return Rt}slice(Z,re,we){let ve=this.buffer,Ce=new Uint16Array(re-Z),tt=0;for(let Rt=Z,Kt=0;Rt=Z&&reZ;case 1:return re<=Z&&we>Z;case 2:return we>Z;case 4:return!0}}function Pn(et,Z,re,we){for(var ve;et.from==et.to||(re<1?et.from>=Z:et.from>Z)||(re>-1?et.to<=Z:et.to0?Rt.length:-1;Z!=Cn;Z+=re){let bn=Rt[Z],Dn=Kt[Z]+tt.from;if(st(ve,we,Dn,Dn+bn.length)){if(bn instanceof On){if(Ce&Pt.ExcludeBuffers)continue;let Yn=bn.findChild(0,bn.buffer.length,re,we-Dn,ve);if(Yn>-1)return new Mn(new Zn(tt,bn,Z,Dn),null,Yn)}else if(Ce&Pt.IncludeAnonymous||!bn.type.isAnonymous||Xt(bn)){let Yn;if(!(Ce&Pt.IgnoreMounts)&&(Yn=En.get(bn))&&!Yn.overlay)return new Kn(Yn.tree,Dn,Z,tt);let $n=new Kn(bn,Dn,Z,tt);return Ce&Pt.IncludeAnonymous||!$n.type.isAnonymous?$n:$n.nextChild(re<0?bn.children.length-1:0,re,we,ve)}}}if(Ce&Pt.IncludeAnonymous||!tt.type.isAnonymous||(tt.index>=0?Z=tt.index+re:Z=re<0?-1:tt._parent._tree.children.length,tt=tt._parent,!tt))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(Z){return this.nextChild(0,1,Z,2)}childBefore(Z){return this.nextChild(this._tree.children.length-1,-1,Z,-2)}enter(Z,re,we=0){let ve;if(!(we&Pt.IgnoreOverlays)&&(ve=En.get(this._tree))&&ve.overlay){let Ce=Z-this.from;for(let{from:tt,to:Rt}of ve.overlay)if((re>0?tt<=Ce:tt=Ce:Rt>Ce))return new Kn(ve.tree,ve.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,Z,re,we)}nextSignificantParent(){let Z=this;for(;Z.type.isAnonymous&&Z._parent;)Z=Z._parent;return Z}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Nn(et,Z,re,we){let ve=et.cursor(),Ce=[];if(!ve.firstChild())return Ce;if(re!=null){for(let tt=!1;!tt;)if(tt=ve.type.is(re),!ve.nextSibling())return Ce}for(;;){if(we!=null&&ve.type.is(we))return Ce;if(ve.type.is(Z)&&Ce.push(ve.node),!ve.nextSibling())return we==null?Ce:[]}}function yn(et,Z,re=Z.length-1){for(let we=et.parent;re>=0;we=we.parent){if(!we)return!1;if(!we.type.isAnonymous){if(Z[re]&&Z[re]!=we.name)return!1;re--}}return!0}class Zn{constructor(Z,re,we,ve){this.parent=Z,this.buffer=re,this.index=we,this.start=ve}}class Mn extends Nt{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(Z,re,we){super(),this.context=Z,this._parent=re,this.index=we,this.type=Z.buffer.set.types[Z.buffer.buffer[we]]}child(Z,re,we){let{buffer:ve}=this.context,Ce=ve.findChild(this.index+4,ve.buffer[this.index+3],Z,re-this.context.start,we);return Ce<0?null:new Mn(this.context,this,Ce)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(Z){return this.child(1,Z,2)}childBefore(Z){return this.child(-1,Z,-2)}enter(Z,re,we=0){if(we&Pt.ExcludeBuffers)return null;let{buffer:ve}=this.context,Ce=ve.findChild(this.index+4,ve.buffer[this.index+3],re>0?1:-1,Z-this.context.start,re);return Ce<0?null:new Mn(this.context,this,Ce)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(Z){return this._parent?null:this.context.parent.nextChild(this.context.index+Z,Z,0,4)}get nextSibling(){let{buffer:Z}=this.context,re=Z.buffer[this.index+3];return re<(this._parent?Z.buffer[this._parent.index+3]:Z.buffer.length)?new Mn(this.context,this._parent,re):this.externalSibling(1)}get prevSibling(){let{buffer:Z}=this.context,re=this._parent?this._parent.index+4:0;return this.index==re?this.externalSibling(-1):new Mn(this.context,this._parent,Z.findChild(re,this.index,-1,0,4))}get tree(){return null}toTree(){let Z=[],re=[],{buffer:we}=this.context,ve=this.index+4,Ce=we.buffer[this.index+3];if(Ce>ve){let tt=we.buffer[this.index+1];Z.push(we.slice(ve,Ce,tt)),re.push(0)}return new Hn(this.type,Z,re,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Tr(et){if(!et.length)return null;let Z=0,re=et[0];for(let Ce=1;Cere.from||tt.to=Z){let Rt=new Kn(tt.tree,tt.overlay[0].from+Ce.from,-1,Ce);(ve||(ve=[we])).push(Pn(Rt,Z,re,!1))}}return ve?Tr(ve):we}class Un{get name(){return this.type.name}constructor(Z,re=0){if(this.mode=re,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,Z instanceof Kn)this.yieldNode(Z);else{this._tree=Z.context.parent,this.buffer=Z.context;for(let we=Z._parent;we;we=we._parent)this.stack.unshift(we.index);this.bufferNode=Z,this.yieldBuf(Z.index)}}yieldNode(Z){return Z?(this._tree=Z,this.type=Z.type,this.from=Z.from,this.to=Z.to,!0):!1}yieldBuf(Z,re){this.index=Z;let{start:we,buffer:ve}=this.buffer;return this.type=re||ve.set.types[ve.buffer[Z]],this.from=we+ve.buffer[Z+1],this.to=we+ve.buffer[Z+2],!0}yield(Z){return Z?Z instanceof Kn?(this.buffer=null,this.yieldNode(Z)):(this.buffer=Z.context,this.yieldBuf(Z.index,Z.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(Z,re,we){if(!this.buffer)return this.yield(this._tree.nextChild(Z<0?this._tree._tree.children.length-1:0,Z,re,we,this.mode));let{buffer:ve}=this.buffer,Ce=ve.findChild(this.index+4,ve.buffer[this.index+3],Z,re-this.buffer.start,we);return Ce<0?!1:(this.stack.push(this.index),this.yieldBuf(Ce))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(Z){return this.enterChild(1,Z,2)}childBefore(Z){return this.enterChild(-1,Z,-2)}enter(Z,re,we=this.mode){return this.buffer?we&Pt.ExcludeBuffers?!1:this.enterChild(1,Z,re):this.yield(this._tree.enter(Z,re,we))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Pt.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let Z=this.mode&Pt.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(Z)}sibling(Z){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+Z,Z,0,4,this.mode)):!1;let{buffer:re}=this.buffer,we=this.stack.length-1;if(Z<0){let ve=we<0?0:this.stack[we]+4;if(this.index!=ve)return this.yieldBuf(re.findChild(ve,this.index,-1,0,4))}else{let ve=re.buffer[this.index+3];if(ve<(we<0?re.buffer.length:re.buffer[this.stack[we]+3]))return this.yieldBuf(ve)}return we<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+Z,Z,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(Z){let re,we,{buffer:ve}=this;if(ve){if(Z>0){if(this.index-1)for(let Ce=re+Z,tt=Z<0?-1:we._tree.children.length;Ce!=tt;Ce+=Z){let Rt=we._tree.children[Ce];if(this.mode&Pt.IncludeAnonymous||Rt instanceof On||!Rt.type.isAnonymous||Xt(Rt))return!1}return!0}move(Z,re){if(re&&this.enterChild(Z,0,4))return!0;for(;;){if(this.sibling(Z))return!0;if(this.atLastNode(Z)||!this.parent())return!1}}next(Z=!0){return this.move(1,Z)}prev(Z=!0){return this.move(-1,Z)}moveTo(Z,re=0){for(;(this.from==this.to||(re<1?this.from>=Z:this.from>Z)||(re>-1?this.to<=Z:this.to=0;){for(let tt=Z;tt;tt=tt._parent)if(tt.index==ve){if(ve==this.index)return tt;re=tt,we=Ce+1;break e}ve=this.stack[--Ce]}for(let ve=we;ve=0;Ce--){if(Ce<0)return yn(this.node,Z,ve);let tt=we[re.buffer[this.stack[Ce]]];if(!tt.isAnonymous){if(Z[ve]&&Z[ve]!=tt.name)return!1;ve--}}return!0}}function Xt(et){return et.children.some(Z=>Z instanceof On||!Z.type.isAnonymous||Xt(Z))}function sn(et){var Z;let{buffer:re,nodeSet:we,maxBufferLength:ve=ue,reused:Ce=[],minRepeatType:tt=we.types.length}=et,Rt=Array.isArray(re)?new gt(re,re.length):re,Kt=we.types,Cn=0,bn=0;function Dn(er,Ye,bt,Mt,Tt,hn){let{id:on,start:At,end:qn,size:Ir}=Rt,rr=bn;for(;Ir<0;)if(Rt.next(),Ir==-1){let Vr=Ce[on];bt.push(Vr),Mt.push(At-er);return}else if(Ir==-3){Cn=on;return}else if(Ir==-4){bn=on;return}else throw new RangeError(`Unrecognized record size: ${Ir}`);let Ar=Kt[on],ei,qr,ur=At-er;if(qn-At<=ve&&(qr=Wn(Rt.pos-Ye,Tt))){let Vr=new Uint16Array(qr.size-qr.skip),Er=Rt.pos-qr.size,ki=Vr.length;for(;Rt.pos>Er;)ki=zr(qr.start,Vr,ki);ei=new On(Vr,qn-qr.start,we),ur=qr.start-er}else{let Vr=Rt.pos-Ir;Rt.next();let Er=[],ki=[],oi=on>=tt?on:-1,li=0,Gi=qn;for(;Rt.pos>Vr;)oi>=0&&Rt.id==oi&&Rt.size>=0?(Rt.end<=Gi-ve&&(Pr(Er,ki,At,li,Rt.end,Gi,oi,rr),li=Er.length,Gi=Rt.end),Rt.next()):hn>2500?Yn(At,Vr,Er,ki):Dn(At,Vr,Er,ki,oi,hn+1);if(oi>=0&&li>0&&li-1&&li>0){let ii=$n(Ar);ei=Qt(Ar,Er,ki,0,Er.length,0,qn-At,ii,ii)}else ei=Wr(Ar,Er,ki,qn-At,rr-qn)}bt.push(ei),Mt.push(ur)}function Yn(er,Ye,bt,Mt){let Tt=[],hn=0,on=-1;for(;Rt.pos>Ye;){let{id:At,start:qn,end:Ir,size:rr}=Rt;if(rr>4)Rt.next();else{if(on>-1&&qn=0;Ir-=3)At[rr++]=Tt[Ir],At[rr++]=Tt[Ir+1]-qn,At[rr++]=Tt[Ir+2]-qn,At[rr++]=rr;bt.push(new On(At,Tt[2]-qn,we)),Mt.push(qn-er)}}function $n(er){return(Ye,bt,Mt)=>{let Tt=0,hn=Ye.length-1,on,At;if(hn>=0&&(on=Ye[hn])instanceof Hn){if(!hn&&on.type==er&&on.length==Mt)return on;(At=on.prop(lt.lookAhead))&&(Tt=bt[hn]+on.length+At)}return Wr(er,Ye,bt,Mt,Tt)}}function Pr(er,Ye,bt,Mt,Tt,hn,on,At){let qn=[],Ir=[];for(;er.length>Mt;)qn.push(er.pop()),Ir.push(Ye.pop()+bt-Tt);er.push(Wr(we.types[on],qn,Ir,hn-Tt,At-hn)),Ye.push(Tt-bt)}function Wr(er,Ye,bt,Mt,Tt=0,hn){if(Cn){let on=[lt.contextHash,Cn];hn=hn?[on].concat(hn):[on]}if(Tt>25){let on=[lt.lookAhead,Tt];hn=hn?[on].concat(hn):[on]}return new Hn(er,Ye,bt,Mt,hn)}function Wn(er,Ye){let bt=Rt.fork(),Mt=0,Tt=0,hn=0,on=bt.end-ve,At={size:0,start:0,skip:0};e:for(let qn=bt.pos-er;bt.pos>qn;){let Ir=bt.size;if(bt.id==Ye&&Ir>=0){At.size=Mt,At.start=Tt,At.skip=hn,hn+=4,Mt+=4,bt.next();continue}let rr=bt.pos-Ir;if(Ir<0||rr=tt?4:0,ei=bt.start;for(bt.next();bt.pos>rr;){if(bt.size<0)if(bt.size==-3)Ar+=4;else break e;else bt.id>=tt&&(Ar+=4);bt.next()}Tt=ei,Mt+=Ir,hn+=Ar}return(Ye<0||Mt==er)&&(At.size=Mt,At.start=Tt,At.skip=hn),At.size>4?At:void 0}function zr(er,Ye,bt){let{id:Mt,start:Tt,end:hn,size:on}=Rt;if(Rt.next(),on>=0&&Mt4){let qn=Rt.pos-(on-4);for(;Rt.pos>qn;)bt=zr(er,Ye,bt)}Ye[--bt]=At,Ye[--bt]=hn-er,Ye[--bt]=Tt-er,Ye[--bt]=Mt}else on==-3?Cn=Mt:on==-4&&(bn=Mt);return bt}let Gr=[],Yr=[];for(;Rt.pos>0;)Dn(et.start||0,et.bufferStart||0,Gr,Yr,-1,0);let Ti=(Z=et.length)!==null&&Z!==void 0?Z:Gr.length?Yr[0]+Gr[0].length:0;return new Hn(Kt[et.topID],Gr.reverse(),Yr.reverse(),Ti)}const Yt=new WeakMap;function Ut(et,Z){if(!et.isAnonymous||Z instanceof On||Z.type!=et)return 1;let re=Yt.get(Z);if(re==null){re=1;for(let we of Z.children){if(we.type!=et||!(we instanceof Hn)){re=1;break}re+=Ut(et,we)}Yt.set(Z,re)}return re}function Qt(et,Z,re,we,ve,Ce,tt,Rt,Kt){let Cn=0;for(let Pr=we;Pr=bn)break;Ye+=bt}if(Yr==Ti+1){if(Ye>bn){let bt=Pr[Ti];$n(bt.children,bt.positions,0,bt.children.length,Wr[Ti]+Gr);continue}Dn.push(Pr[Ti])}else{let bt=Wr[Yr-1]+Pr[Yr-1].length-er;Dn.push(Qt(et,Pr,Wr,Ti,Yr,er,bt,null,Kt))}Yn.push(er+Gr-Ce)}}return $n(Z,re,we,ve,0),(Rt||Kt)(Dn,Yn,tt)}class X{constructor(){this.map=new WeakMap}setBuffer(Z,re,we){let ve=this.map.get(Z);ve||this.map.set(Z,ve=new Map),ve.set(re,we)}getBuffer(Z,re){let we=this.map.get(Z);return we&&we.get(re)}set(Z,re){Z instanceof Mn?this.setBuffer(Z.context.buffer,Z.index,re):Z instanceof Kn&&this.map.set(Z.tree,re)}get(Z){return Z instanceof Mn?this.getBuffer(Z.context.buffer,Z.index):Z instanceof Kn?this.map.get(Z.tree):void 0}cursorSet(Z,re){Z.buffer?this.setBuffer(Z.buffer.buffer,Z.index,re):this.map.set(Z.tree,re)}cursorGet(Z){return Z.buffer?this.getBuffer(Z.buffer.buffer,Z.index):this.map.get(Z.tree)}}class be{constructor(Z,re,we,ve,Ce=!1,tt=!1){this.from=Z,this.to=re,this.tree=we,this.offset=ve,this.open=(Ce?1:0)|(tt?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(Z,re=[],we=!1){let ve=[new be(0,Z.length,Z,0,!1,we)];for(let Ce of re)Ce.to>Z.length&&ve.push(Ce);return ve}static applyChanges(Z,re,we=128){if(!re.length)return Z;let ve=[],Ce=1,tt=Z.length?Z[0]:null;for(let Rt=0,Kt=0,Cn=0;;Rt++){let bn=Rt=we)for(;tt&&tt.from=Yn.from||Dn<=Yn.to||Cn){let $n=Math.max(Yn.from,Kt)-Cn,Pr=Math.min(Yn.to,Dn)-Cn;Yn=$n>=Pr?null:new be($n,Pr,Yn.tree,Yn.offset+Cn,Rt>0,!!bn)}if(Yn&&ve.push(Yn),tt.to>Dn)break;tt=Cenew Ue(ve.from,ve.to)):[new Ue(0,0)]:[new Ue(0,Z.length)],this.createParse(Z,re||[],we)}parse(Z,re,we){let ve=this.startParse(Z,re,we);for(;;){let Ce=ve.advance();if(Ce)return Ce}}}class ye{constructor(Z){this.string=Z}get length(){return this.string.length}chunk(Z){return this.string.slice(Z)}get lineChunks(){return!1}read(Z,re){return this.string.slice(Z,re)}}function Ze(et){return(Z,re,we,ve)=>new vn(Z,et,re,we,ve)}class $e{constructor(Z,re,we,ve,Ce){this.parser=Z,this.parse=re,this.overlay=we,this.target=ve,this.from=Ce}}function qe(et){if(!et.length||et.some(Z=>Z.from>=Z.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(et))}class ut{constructor(Z,re,we,ve,Ce,tt,Rt){this.parser=Z,this.predicate=re,this.mounts=we,this.index=ve,this.start=Ce,this.target=tt,this.prev=Rt,this.depth=0,this.ranges=[]}}const Vt=new lt({perNode:!0});class vn{constructor(Z,re,we,ve,Ce){this.nest=re,this.input=we,this.fragments=ve,this.ranges=Ce,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=Z}advance(){if(this.baseParse){let we=this.baseParse.advance();if(!we)return null;if(this.baseParse=null,this.baseTree=we,this.startInner(),this.stoppedAt!=null)for(let ve of this.inner)ve.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let we=this.baseTree;return this.stoppedAt!=null&&(we=new Hn(we.type,we.children,we.positions,we.length,we.propValues.concat([[Vt,this.stoppedAt]]))),we}let Z=this.inner[this.innerDone],re=Z.parse.advance();if(re){this.innerDone++;let we=Object.assign(Object.create(null),Z.target.props);we[lt.mounted.id]=new En(re,Z.overlay,Z.parser),Z.target.props=we}return null}get parsedPos(){if(this.baseParse)return 0;let Z=this.input.length;for(let re=this.innerDone;re=this.stoppedAt)Rt=!1;else if(Z.hasNode(ve)){if(re){let Cn=re.mounts.find(bn=>bn.frag.from<=ve.from&&bn.frag.to>=ve.to&&bn.mount.overlay);if(Cn)for(let bn of Cn.mount.overlay){let Dn=bn.from+Cn.pos,Yn=bn.to+Cn.pos;Dn>=ve.from&&Yn<=ve.to&&!re.ranges.some($n=>$n.fromDn)&&re.ranges.push({from:Dn,to:Yn})}}Rt=!1}else if(we&&(tt=an(we.ranges,ve.from,ve.to)))Rt=tt!=2;else if(!ve.type.isAnonymous&&(Ce=this.nest(ve,this.input))&&(ve.fromnew Ue(Dn.from-ve.from,Dn.to-ve.from)):null,ve.tree,bn.length?bn[0].from:ve.from)),Ce.overlay?bn.length&&(we={ranges:bn,depth:0,prev:we}):Rt=!1}}else re&&(Kt=re.predicate(ve))&&(Kt===!0&&(Kt=new Ue(ve.from,ve.to)),Kt.fromnew Ue(bn.from-re.start,bn.to-re.start)),re.target,Cn[0].from))),re=re.prev}we&&!--we.depth&&(we=we.prev)}}}}function an(et,Z,re){for(let we of et){if(we.from>=re)break;if(we.to>Z)return we.from<=Z&&we.to>=re?2:1}return 0}function Fn(et,Z,re,we,ve,Ce){if(Z=Z&&re.enter(we,1,Pt.IgnoreOverlays|Pt.ExcludeBuffers)||re.next(!1)||(this.done=!0)}hasNode(Z){if(this.moveTo(Z.from),!this.done&&this.cursor.from+this.offset==Z.from&&this.cursor.tree)for(let re=this.cursor.tree;;){if(re==Z.tree)return!0;if(re.children.length&&re.positions[0]==0&&re.children[0]instanceof Hn)re=re.children[0];else break}return!1}}class fr{constructor(Z){var re;if(this.fragments=Z,this.curTo=0,this.fragI=0,Z.length){let we=this.curFrag=Z[0];this.curTo=(re=we.tree.prop(Vt))!==null&&re!==void 0?re:we.to,this.inner=new Bn(we.tree,-we.offset)}else this.curFrag=this.inner=null}hasNode(Z){for(;this.curFrag&&Z.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=Z.from&&this.curTo>=Z.to&&this.inner.hasNode(Z)}nextFrag(){var Z;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let re=this.curFrag=this.fragments[this.fragI];this.curTo=(Z=re.tree.prop(Vt))!==null&&Z!==void 0?Z:re.to,this.inner=new Bn(re.tree,-re.offset)}}findMounts(Z,re){var we;let ve=[];if(this.inner){this.inner.cursor.moveTo(Z,1);for(let Ce=this.inner.cursor.node;Ce;Ce=Ce.parent){let tt=(we=Ce.tree)===null||we===void 0?void 0:we.prop(lt.mounted);if(tt&&tt.parser==re)for(let Rt=this.fragI;Rt=Ce.to)break;Kt.tree==this.curFrag.tree&&ve.push({frag:Kt,pos:Ce.from-Kt.offset,mount:tt})}}}return ve}}function ir(et,Z){let re=null,we=Z;for(let ve=1,Ce=0;ve=Rt)break;Kt.to<=tt||(re||(we=re=Z.slice()),Kt.fromRt&&re.splice(Ce+1,0,new Ue(Rt,Kt.to))):Kt.to>Rt?re[Ce--]=new Ue(Rt,Kt.to):re.splice(Ce--,1))}}return we}function un(et,Z,re,we){let ve=0,Ce=0,tt=!1,Rt=!1,Kt=-1e9,Cn=[];for(;;){let bn=ve==et.length?1e9:tt?et[ve].to:et[ve].from,Dn=Ce==Z.length?1e9:Rt?Z[Ce].to:Z[Ce].from;if(tt!=Rt){let Yn=Math.max(Kt,re),$n=Math.min(bn,Dn,we);Yn<$n&&Cn.push(new Ue(Yn,$n))}if(Kt=Math.min(bn,Dn),Kt==1e9)break;bn==Kt&&(tt?(tt=!1,ve++):tt=!0),Dn==Kt&&(Rt?(Rt=!1,Ce++):Rt=!0)}return Cn}function zt(et,Z){let re=[];for(let{pos:we,mount:ve,frag:Ce}of et){let tt=we+(ve.overlay?ve.overlay[0].from:0),Rt=tt+ve.tree.length,Kt=Math.max(Ce.from,tt),Cn=Math.min(Ce.to,Rt);if(ve.overlay){let bn=ve.overlay.map(Yn=>new Ue(Yn.from+we,Yn.to+we)),Dn=un(Z,bn,Kt,Cn);for(let Yn=0,$n=Kt;;Yn++){let Pr=Yn==Dn.length,Wr=Pr?Cn:Dn[Yn].from;if(Wr>$n&&re.push(new be($n,Wr,ve.tree,-tt,Ce.from>=$n||Ce.openStart,Ce.to<=Wr||Ce.openEnd)),Pr)break;$n=Dn[Yn].to}}else re.push(new be(Kt,Cn,ve.tree,-tt,Ce.from>=tt||Ce.openStart,Ce.to<=Rt||Ce.openEnd))}return re}},35524:function(ti,Gn,z){"use strict";z.d(Gn,{Gv:function(){return xt},QR:function(){return Pt},Vp:function(){return Ue},bW:function(){return gt},pJ:function(){return X}});var ue=z(41113);let Me=0;class Ue{constructor(ye,Ze,$e){this.set=ye,this.base=Ze,this.modified=$e,this.id=Me++}static define(ye){if(ye!=null&&ye.base)throw new Error("Can not derive from a modified tag");let Ze=new Ue([],null,[]);if(Ze.set.push(Ze),ye)for(let $e of ye.set)Ze.set.push($e);return Ze}static defineModifier(){let ye=new En;return Ze=>Ze.modified.indexOf(ye)>-1?Ze:En.get(Ze.base||Ze,Ze.modified.concat(ye).sort(($e,qe)=>$e.id-qe.id))}}let lt=0;class En{constructor(){this.instances=[],this.id=lt++}static get(ye,Ze){if(!Ze.length)return ye;let $e=Ze[0].instances.find(vn=>vn.base==ye&&De(Ze,vn.modified));if($e)return $e;let qe=[],ut=new Ue(qe,ye,Ze);for(let vn of Ze)vn.instances.push(ut);let Vt=Ee(Ze);for(let vn of ye.set)if(!vn.modified.length)for(let an of Vt)qe.push(En.get(vn,an));return ut}}function De(Ne,ye){return Ne.length==ye.length&&Ne.every((Ze,$e)=>Ze==ye[$e])}function Ee(Ne){let ye=[[]];for(let Ze=0;Ze$e.length-Ze.length)}function xt(Ne){let ye=Object.create(null);for(let Ze in Ne){let $e=Ne[Ze];Array.isArray($e)||($e=[$e]);for(let qe of Ze.split(" "))if(qe){let ut=[],Vt=2,vn=qe;for(let Bn=0;;){if(vn=="..."&&Bn>0&&Bn+3==qe.length){Vt=1;break}let fr=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(vn);if(!fr)throw new RangeError("Invalid path: "+qe);if(ut.push(fr[0]=="*"?"":fr[0][0]=='"'?JSON.parse(fr[0]):fr[0]),Bn+=fr[0].length,Bn==qe.length)break;let ir=qe[Bn++];if(Bn==qe.length&&ir=="!"){Vt=0;break}if(ir!="/")throw new RangeError("Invalid path: "+qe);vn=qe.slice(Bn)}let an=ut.length-1,Fn=ut[an];if(!Fn)throw new RangeError("Invalid path: "+qe);let Sn=new ft($e,Vt,an>0?ut.slice(0,an):null);ye[Fn]=Sn.sort(ye[Fn])}}return In.add(ye)}const In=new ue.md;class ft{constructor(ye,Ze,$e,qe){this.tags=ye,this.mode=Ze,this.context=$e,this.next=qe}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(ye){return!ye||ye.depth{let Vt=qe;for(let vn of ut)for(let an of vn.set){let Fn=Ze[an.id];if(Fn){Vt=Vt?Vt+" "+Fn:Fn;break}}return Vt},scope:$e}}function Hn(Ne,ye){let Ze=null;for(let $e of Ne){let qe=$e.style(ye);qe&&(Ze=Ze?Ze+" "+qe:qe)}return Ze}function gt(Ne,ye,Ze,$e=0,qe=Ne.length){let ut=new st($e,Array.isArray(ye)?ye:[ye],Ze);ut.highlightRange(Ne.cursor(),$e,qe,"",ut.highlighters),ut.flush(qe)}function On(Ne,ye,Ze,$e,qe,ut=0,Vt=Ne.length){let vn=ut;function an(Fn,Sn){if(!(Fn<=vn)){for(let Bn=Ne.slice(vn,Fn),fr=0;;){let ir=Bn.indexOf(` -`,fr),un=ir<0?Bn.length:ir;if(un>fr&&$e(Bn.slice(fr,un),Sn),ir<0)break;qe(),fr=ir+1}vn=Fn}}gt(ye,Ze,(Fn,Sn,Bn)=>{an(Fn,""),an(Sn,Bn)},ut,Vt),an(Vt,"")}class st{constructor(ye,Ze,$e){this.at=ye,this.highlighters=Ze,this.span=$e,this.class=""}startSpan(ye,Ze){Ze!=this.class&&(this.flush(ye),ye>this.at&&(this.at=ye),this.class=Ze)}flush(ye){ye>this.at&&this.class&&this.span(this.at,ye,this.class)}highlightRange(ye,Ze,$e,qe,ut){let{type:Vt,from:vn,to:an}=ye;if(vn>=$e||an<=Ze)return;Vt.isTop&&(ut=this.highlighters.filter(ir=>!ir.scope||ir.scope(Vt)));let Fn=qe,Sn=Pn(ye)||ft.empty,Bn=Hn(ut,Sn.tags);if(Bn&&(Fn&&(Fn+=" "),Fn+=Bn,Sn.mode==1&&(qe+=(qe?" ":"")+Bn)),this.startSpan(Math.max(Ze,vn),Fn),Sn.opaque)return;let fr=ye.tree&&ye.tree.prop(ue.md.mounted);if(fr&&fr.overlay){let ir=ye.node.enter(fr.overlay[0].from+vn,1),un=this.highlighters.filter(et=>!et.scope||et.scope(fr.tree.type)),zt=ye.firstChild();for(let et=0,Z=vn;;et++){let re=et=we||!ye.nextSibling())););if(!re||we>$e)break;Z=re.to+vn,Z>Ze&&(this.highlightRange(ir.cursor(),Math.max(Ze,re.from+vn),Math.min($e,Z),"",un),this.startSpan(Math.min($e,Z),Fn))}zt&&ye.parent()}else if(ye.firstChild()){fr&&(qe="");do if(!(ye.to<=Ze)){if(ye.from>=$e)break;this.highlightRange(ye,Ze,$e,qe,ut),this.startSpan(Math.min($e,ye.to),Fn)}while(ye.nextSibling());ye.parent()}}}function Pn(Ne){let ye=Ne.type.prop(In);for(;ye&&ye.context&&!Ne.matchContext(ye.context);)ye=ye.next;return ye||null}const Nt=Ue.define,Kn=Nt(),Nn=Nt(),yn=Nt(Nn),Zn=Nt(Nn),Mn=Nt(),Tr=Nt(Mn),Br=Nt(Mn),yr=Nt(),Un=Nt(yr),Xt=Nt(),sn=Nt(),Yt=Nt(),Ut=Nt(Yt),Qt=Nt(),X={comment:Kn,lineComment:Nt(Kn),blockComment:Nt(Kn),docComment:Nt(Kn),name:Nn,variableName:Nt(Nn),typeName:yn,tagName:Nt(yn),propertyName:Zn,attributeName:Nt(Zn),className:Nt(Nn),labelName:Nt(Nn),namespace:Nt(Nn),macroName:Nt(Nn),literal:Mn,string:Tr,docString:Nt(Tr),character:Nt(Tr),attributeValue:Nt(Tr),number:Br,integer:Nt(Br),float:Nt(Br),bool:Nt(Mn),regexp:Nt(Mn),escape:Nt(Mn),color:Nt(Mn),url:Nt(Mn),keyword:Xt,self:Nt(Xt),null:Nt(Xt),atom:Nt(Xt),unit:Nt(Xt),modifier:Nt(Xt),operatorKeyword:Nt(Xt),controlKeyword:Nt(Xt),definitionKeyword:Nt(Xt),moduleKeyword:Nt(Xt),operator:sn,derefOperator:Nt(sn),arithmeticOperator:Nt(sn),logicOperator:Nt(sn),bitwiseOperator:Nt(sn),compareOperator:Nt(sn),updateOperator:Nt(sn),definitionOperator:Nt(sn),typeOperator:Nt(sn),controlOperator:Nt(sn),punctuation:Yt,separator:Nt(Yt),bracket:Ut,angleBracket:Nt(Ut),squareBracket:Nt(Ut),paren:Nt(Ut),brace:Nt(Ut),content:yr,heading:Un,heading1:Nt(Un),heading2:Nt(Un),heading3:Nt(Un),heading4:Nt(Un),heading5:Nt(Un),heading6:Nt(Un),contentSeparator:Nt(yr),list:Nt(yr),quote:Nt(yr),emphasis:Nt(yr),strong:Nt(yr),link:Nt(yr),monospace:Nt(yr),strikethrough:Nt(yr),inserted:Nt(),deleted:Nt(),changed:Nt(),invalid:Nt(),meta:Qt,documentMeta:Nt(Qt),annotation:Nt(Qt),processingInstruction:Nt(Qt),definition:Ue.defineModifier(),constant:Ue.defineModifier(),function:Ue.defineModifier(),standard:Ue.defineModifier(),local:Ue.defineModifier(),special:Ue.defineModifier()},be=Pt([{tag:X.link,class:"tok-link"},{tag:X.heading,class:"tok-heading"},{tag:X.emphasis,class:"tok-emphasis"},{tag:X.strong,class:"tok-strong"},{tag:X.keyword,class:"tok-keyword"},{tag:X.atom,class:"tok-atom"},{tag:X.bool,class:"tok-bool"},{tag:X.url,class:"tok-url"},{tag:X.labelName,class:"tok-labelName"},{tag:X.inserted,class:"tok-inserted"},{tag:X.deleted,class:"tok-deleted"},{tag:X.literal,class:"tok-literal"},{tag:X.string,class:"tok-string"},{tag:X.number,class:"tok-number"},{tag:[X.regexp,X.escape,X.special(X.string)],class:"tok-string2"},{tag:X.variableName,class:"tok-variableName"},{tag:X.local(X.variableName),class:"tok-variableName tok-local"},{tag:X.definition(X.variableName),class:"tok-variableName tok-definition"},{tag:X.special(X.variableName),class:"tok-variableName2"},{tag:X.definition(X.propertyName),class:"tok-propertyName tok-definition"},{tag:X.typeName,class:"tok-typeName"},{tag:X.namespace,class:"tok-namespace"},{tag:X.className,class:"tok-className"},{tag:X.macroName,class:"tok-macroName"},{tag:X.propertyName,class:"tok-propertyName"},{tag:X.operator,class:"tok-operator"},{tag:X.comment,class:"tok-comment"},{tag:X.meta,class:"tok-meta"},{tag:X.invalid,class:"tok-invalid"},{tag:X.punctuation,class:"tok-punctuation"}])},53105:function(ti,Gn,z){"use strict";z.d(Gn,{IK:function(){return Un},Jq:function(){return gt},RA:function(){return Hn},WQ:function(){return Xt}});var ue=z(41113),Me=z(34155);class Ue{constructor(X,be,Ne,ye,Ze,$e,qe,ut,Vt,vn=0,an){this.p=X,this.stack=be,this.state=Ne,this.reducePos=ye,this.pos=Ze,this.score=$e,this.buffer=qe,this.bufferBase=ut,this.curContext=Vt,this.lookAhead=vn,this.parent=an}toString(){return`[${this.stack.filter((X,be)=>be%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(X,be,Ne=0){let ye=X.parser.context;return new Ue(X,[],be,Ne,Ne,0,[],0,ye?new lt(ye,ye.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(X,be){this.stack.push(this.state,be,this.bufferBase+this.buffer.length),this.state=X}reduce(X){var be;let Ne=X>>19,ye=X&65535,{parser:Ze}=this.p;this.reducePos=2e3&&!(!((be=this.p.parser.nodeSet.types[ye])===null||be===void 0)&&be.isAnonymous)&&(ut==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=Vt):this.p.lastBigReductionSizeqe;)this.stack.pop();this.reduceContext(ye,ut)}storeNode(X,be,Ne,ye=4,Ze=!1){if(X==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&$e.buffer[qe-4]==0&&$e.buffer[qe-1]>-1){if(be==Ne)return;if($e.buffer[qe-2]>=be){$e.buffer[qe-2]=Ne;return}}}if(!Ze||this.pos==Ne)this.buffer.push(X,be,Ne,ye);else{let $e=this.buffer.length;if($e>0&&this.buffer[$e-4]!=0)for(;$e>0&&this.buffer[$e-2]>Ne;)this.buffer[$e]=this.buffer[$e-4],this.buffer[$e+1]=this.buffer[$e-3],this.buffer[$e+2]=this.buffer[$e-2],this.buffer[$e+3]=this.buffer[$e-1],$e-=4,ye>4&&(ye-=4);this.buffer[$e]=X,this.buffer[$e+1]=be,this.buffer[$e+2]=Ne,this.buffer[$e+3]=ye}}shift(X,be,Ne,ye){if(X&131072)this.pushState(X&65535,this.pos);else if(X&262144)this.pos=ye,this.shiftContext(be,Ne),be<=this.p.parser.maxNode&&this.buffer.push(be,Ne,ye,4);else{let Ze=X,{parser:$e}=this.p;(ye>this.pos||be<=$e.maxNode)&&(this.pos=ye,$e.stateFlag(Ze,1)||(this.reducePos=ye)),this.pushState(Ze,Ne),this.shiftContext(be,Ne),be<=$e.maxNode&&this.buffer.push(be,Ne,ye,4)}}apply(X,be,Ne,ye){X&65536?this.reduce(X):this.shift(X,be,Ne,ye)}useNode(X,be){let Ne=this.p.reused.length-1;(Ne<0||this.p.reused[Ne]!=X)&&(this.p.reused.push(X),Ne++);let ye=this.pos;this.reducePos=this.pos=ye+X.length,this.pushState(be,ye),this.buffer.push(Ne,ye,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,X,this,this.p.stream.reset(this.pos-X.length)))}split(){let X=this,be=X.buffer.length;for(;be>0&&X.buffer[be-2]>X.reducePos;)be-=4;let Ne=X.buffer.slice(be),ye=X.bufferBase+be;for(;X&&ye==X.bufferBase;)X=X.parent;return new Ue(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,Ne,ye,this.curContext,this.lookAhead,X)}recoverByDelete(X,be){let Ne=X<=this.p.parser.maxNode;Ne&&this.storeNode(X,this.pos,be,4),this.storeNode(0,this.pos,be,Ne?8:4),this.pos=this.reducePos=be,this.score-=190}canShift(X){for(let be=new En(this);;){let Ne=this.p.parser.stateSlot(be.state,4)||this.p.parser.hasAction(be.state,X);if(Ne==0)return!1;if(!(Ne&65536))return!0;be.reduce(Ne)}}recoverByInsert(X){if(this.stack.length>=300)return[];let be=this.p.parser.nextStates(this.state);if(be.length>8||this.stack.length>=120){let ye=[];for(let Ze=0,$e;Zeut&1&&qe==$e)||ye.push(be[Ze],$e)}be=ye}let Ne=[];for(let ye=0;ye>19,ye=be&65535,Ze=this.stack.length-Ne*3;if(Ze<0||X.getGoto(this.stack[Ze],ye,!1)<0){let $e=this.findForcedReduction();if($e==null)return!1;be=$e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(be),!0}findForcedReduction(){let{parser:X}=this.p,be=[],Ne=(ye,Ze)=>{if(!be.includes(ye))return be.push(ye),X.allActions(ye,$e=>{if(!($e&393216))if($e&65536){let qe=($e>>19)-Ze;if(qe>1){let ut=$e&65535,Vt=this.stack.length-qe*3;if(Vt>=0&&X.getGoto(this.stack[Vt],ut,!1)>=0)return qe<<19|65536|ut}}else{let qe=Ne($e,Ze+1);if(qe!=null)return qe}})};return Ne(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:X}=this.p;return X.data[X.stateSlot(this.state,1)]==65535&&!X.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(X){if(this.state!=X.state||this.stack.length!=X.stack.length)return!1;for(let be=0;bethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=X)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class lt{constructor(X,be){this.tracker=X,this.context=be,this.hash=X.strict?X.hash(be):0}}class En{constructor(X){this.start=X,this.state=X.state,this.stack=X.stack,this.base=this.stack.length}reduce(X){let be=X&65535,Ne=X>>19;Ne==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(Ne-1)*3;let ye=this.start.p.parser.getGoto(this.stack[this.base-3],be,!0);this.state=ye}}class De{constructor(X,be,Ne){this.stack=X,this.pos=be,this.index=Ne,this.buffer=X.buffer,this.index==0&&this.maybeNext()}static create(X,be=X.bufferBase+X.buffer.length){return new De(X,be,be-X.bufferBase)}maybeNext(){let X=this.stack.parent;X!=null&&(this.index=this.stack.bufferBase-X.bufferBase,this.stack=X,this.buffer=X.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new De(this.stack,this.pos,this.index)}}function Ee(Qt,X=Uint16Array){if(typeof Qt!="string")return Qt;let be=null;for(let Ne=0,ye=0;Ne=92&&$e--,$e>=34&&$e--;let ut=$e-32;if(ut>=46&&(ut-=46,qe=!0),Ze+=ut,qe)break;Ze*=46}be?be[ye++]=Ze:be=new X(Ze)}return be}class xt{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const In=new xt;class ft{constructor(X,be){this.input=X,this.ranges=be,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=In,this.rangeIndex=0,this.pos=this.chunkPos=be[0].from,this.range=be[0],this.end=be[be.length-1].to,this.readNext()}resolveOffset(X,be){let Ne=this.range,ye=this.rangeIndex,Ze=this.pos+X;for(;ZeNe.to:Ze>=Ne.to;){if(ye==this.ranges.length-1)return null;let $e=this.ranges[++ye];Ze+=$e.from-Ne.to,Ne=$e}return Ze}clipPos(X){if(X>=this.range.from&&XX)return Math.max(X,be.from);return this.end}peek(X){let be=this.chunkOff+X,Ne,ye;if(be>=0&&be=this.chunk2Pos&&Neqe.to&&(this.chunk2=this.chunk2.slice(0,qe.to-Ne)),ye=this.chunk2.charCodeAt(0)}}return Ne>=this.token.lookAhead&&(this.token.lookAhead=Ne+1),ye}acceptToken(X,be=0){let Ne=be?this.resolveOffset(be,-1):this.pos;if(Ne==null||Ne=this.chunk2Pos&&this.posthis.range.to?X.slice(0,this.range.to-this.pos):X,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(X=1){for(this.chunkOff+=X;this.pos+X>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();X-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=X,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(X,be){if(be?(this.token=be,be.start=X,be.lookAhead=X+1,be.value=be.extended=-1):this.token=In,this.pos!=X){if(this.pos=X,X==this.end)return this.setDone(),this;for(;X=this.range.to;)this.range=this.ranges[++this.rangeIndex];X>=this.chunkPos&&X=this.chunkPos&&be<=this.chunkPos+this.chunk.length)return this.chunk.slice(X-this.chunkPos,be-this.chunkPos);if(X>=this.chunk2Pos&&be<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(X-this.chunk2Pos,be-this.chunk2Pos);if(X>=this.range.from&&be<=this.range.to)return this.input.read(X,be);let Ne="";for(let ye of this.ranges){if(ye.from>=be)break;ye.to>X&&(Ne+=this.input.read(Math.max(ye.from,X),Math.min(ye.to,be)))}return Ne}}class Pt{constructor(X,be){this.data=X,this.id=be}token(X,be){let{parser:Ne}=be.p;On(this.data,X,be,this.id,Ne.data,Ne.tokenPrecTable)}}Pt.prototype.contextual=Pt.prototype.fallback=Pt.prototype.extend=!1;class Hn{constructor(X,be,Ne){this.precTable=be,this.elseToken=Ne,this.data=typeof X=="string"?Ee(X):X}token(X,be){let Ne=X.pos,ye=0;for(;;){let Ze=X.next<0,$e=X.resolveOffset(1,1);if(On(this.data,X,be,0,this.data,this.precTable),X.token.value>-1)break;if(this.elseToken==null)return;if(Ze||ye++,$e==null)break;X.reset($e,X.token)}ye&&(X.reset(Ne,X.token),X.acceptToken(this.elseToken,ye))}}Hn.prototype.contextual=Pt.prototype.fallback=Pt.prototype.extend=!1;class gt{constructor(X,be={}){this.token=X,this.contextual=!!be.contextual,this.fallback=!!be.fallback,this.extend=!!be.extend}}function On(Qt,X,be,Ne,ye,Ze){let $e=0,qe=1<0){let Bn=Qt[Sn];if(ut.allows(Bn)&&(X.token.value==-1||X.token.value==Bn||Pn(Bn,X.token.value,ye,Ze))){X.acceptToken(Bn);break}}let vn=X.next,an=0,Fn=Qt[$e+2];if(X.next<0&&Fn>an&&Qt[Vt+Fn*3-3]==65535){$e=Qt[Vt+Fn*3-1];continue e}for(;an>1,Bn=Vt+Sn+(Sn<<1),fr=Qt[Bn],ir=Qt[Bn+1]||65536;if(vn=ir)an=Sn+1;else{$e=Qt[Bn+2],X.advance();continue e}}break}}function st(Qt,X,be){for(let Ne=X,ye;(ye=Qt[Ne])!=65535;Ne++)if(ye==be)return Ne-X;return-1}function Pn(Qt,X,be,Ne){let ye=st(be,Ne,X);return ye<0||st(be,Ne,Qt)X)&&!Ne.type.isError)return be<0?Math.max(0,Math.min(Ne.to-1,X-25)):Math.min(Qt.length,Math.max(Ne.from+1,X+25));if(be<0?Ne.prevSibling():Ne.nextSibling())break;if(!Ne.parent())return be<0?0:Qt.length}}class yn{constructor(X,be){this.fragments=X,this.nodeSet=be,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let X=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(X){for(this.safeFrom=X.openStart?Nn(X.tree,X.from+X.offset,1)-X.offset:X.from,this.safeTo=X.openEnd?Nn(X.tree,X.to+X.offset,-1)-X.offset:X.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(X.tree),this.start.push(-X.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(X){if(XX)return this.nextStart=$e,null;if(Ze instanceof ue.mp){if($e==X){if($e=Math.max(this.safeFrom,X)&&(this.trees.push(Ze),this.start.push($e),this.index.push(0))}else this.index[be]++,this.nextStart=$e+Ze.length}}}class Zn{constructor(X,be){this.stream=be,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=X.tokenizers.map(Ne=>new xt)}getActions(X){let be=0,Ne=null,{parser:ye}=X.p,{tokenizers:Ze}=ye,$e=ye.stateSlot(X.state,3),qe=X.curContext?X.curContext.hash:0,ut=0;for(let Vt=0;Vtan.end+25&&(ut=Math.max(an.lookAhead,ut)),an.value!=0)){let Fn=be;if(an.extended>-1&&(be=this.addActions(X,an.extended,an.end,be)),be=this.addActions(X,an.value,an.end,be),!vn.extend&&(Ne=an,be>Fn))break}}for(;this.actions.length>be;)this.actions.pop();return ut&&X.setLookAhead(ut),!Ne&&X.pos==this.stream.end&&(Ne=new xt,Ne.value=X.p.parser.eofTerm,Ne.start=Ne.end=X.pos,be=this.addActions(X,Ne.value,Ne.end,be)),this.mainToken=Ne,this.actions}getMainToken(X){if(this.mainToken)return this.mainToken;let be=new xt,{pos:Ne,p:ye}=X;return be.start=Ne,be.end=Math.min(Ne+1,ye.stream.end),be.value=Ne==ye.stream.end?ye.parser.eofTerm:0,be}updateCachedToken(X,be,Ne){let ye=this.stream.clipPos(Ne.pos);if(be.token(this.stream.reset(ye,X),Ne),X.value>-1){let{parser:Ze}=Ne.p;for(let $e=0;$e=0&&Ne.p.parser.dialect.allows(qe>>1)){qe&1?X.extended=qe>>1:X.value=qe>>1;break}}}else X.value=0,X.end=this.stream.clipPos(ye+1)}putAction(X,be,Ne,ye){for(let Ze=0;ZeX.bufferLength*4?new yn(Ne,X.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let X=this.stacks,be=this.minStackPos,Ne=this.stacks=[],ye,Ze;if(this.bigReductionCount>300&&X.length==1){let[$e]=X;for(;$e.forceReduce()&&$e.stack.length&&$e.stack[$e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let $e=0;$ebe)Ne.push(qe);else{if(this.advanceStack(qe,Ne,X))continue;{ye||(ye=[],Ze=[]),ye.push(qe);let ut=this.tokens.getMainToken(qe);Ze.push(ut.value,ut.end)}}break}}if(!Ne.length){let $e=ye&&Yt(ye);if($e)return Nt&&console.log("Finish with "+this.stackID($e)),this.stackToTree($e);if(this.parser.strict)throw Nt&&ye&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+be);this.recovering||(this.recovering=5)}if(this.recovering&&ye){let $e=this.stoppedAt!=null&&ye[0].pos>this.stoppedAt?ye[0]:this.runRecovery(ye,Ze,Ne);if($e)return Nt&&console.log("Force-finish "+this.stackID($e)),this.stackToTree($e.forceAll())}if(this.recovering){let $e=this.recovering==1?1:this.recovering*3;if(Ne.length>$e)for(Ne.sort((qe,ut)=>ut.score-qe.score);Ne.length>$e;)Ne.pop();Ne.some(qe=>qe.reducePos>be)&&this.recovering--}else if(Ne.length>1){e:for(let $e=0;$e500&&Vt.buffer.length>500)if((qe.score-Vt.score||qe.buffer.length-Vt.buffer.length)>0)Ne.splice(ut--,1);else{Ne.splice($e--,1);continue e}}}Ne.length>12&&Ne.splice(12,Ne.length-12)}this.minStackPos=Ne[0].pos;for(let $e=1;$e ":"";if(this.stoppedAt!=null&&ye>this.stoppedAt)return X.forceReduce()?X:null;if(this.fragments){let Vt=X.curContext&&X.curContext.tracker.strict,vn=Vt?X.curContext.hash:0;for(let an=this.fragments.nodeAt(ye);an;){let Fn=this.parser.nodeSet.types[an.type.id]==an.type?Ze.getGoto(X.state,an.type.id):-1;if(Fn>-1&&an.length&&(!Vt||(an.prop(ue.md.contextHash)||0)==vn))return X.useNode(an,Fn),Nt&&console.log($e+this.stackID(X)+` (via reuse of ${Ze.getName(an.type.id)})`),!0;if(!(an instanceof ue.mp)||an.children.length==0||an.positions[0]>0)break;let Sn=an.children[0];if(Sn instanceof ue.mp&&an.positions[0]==0)an=Sn;else break}}let qe=Ze.stateSlot(X.state,4);if(qe>0)return X.reduce(qe),Nt&&console.log($e+this.stackID(X)+` (via always-reduce ${Ze.getName(qe&65535)})`),!0;if(X.stack.length>=8400)for(;X.stack.length>6e3&&X.forceReduce(););let ut=this.tokens.getActions(X);for(let Vt=0;Vtye?be.push(Bn):Ne.push(Bn)}return!1}advanceFully(X,be){let Ne=X.pos;for(;;){if(!this.advanceStack(X,null,null))return!1;if(X.pos>Ne)return Tr(X,be),!0}}runRecovery(X,be,Ne){let ye=null,Ze=!1;for(let $e=0;$e ":"";if(qe.deadEnd&&(Ze||(Ze=!0,qe.restart(),Nt&&console.log(vn+this.stackID(qe)+" (restarted)"),this.advanceFully(qe,Ne))))continue;let an=qe.split(),Fn=vn;for(let Sn=0;an.forceReduce()&&Sn<10&&(Nt&&console.log(Fn+this.stackID(an)+" (via force-reduce)"),!this.advanceFully(an,Ne));Sn++)Nt&&(Fn=this.stackID(an)+" -> ");for(let Sn of qe.recoverByInsert(ut))Nt&&console.log(vn+this.stackID(Sn)+" (via recover-insert)"),this.advanceFully(Sn,Ne);this.stream.end>qe.pos?(Vt==qe.pos&&(Vt++,ut=0),qe.recoverByDelete(ut,Vt),Nt&&console.log(vn+this.stackID(qe)+` (via recover-delete ${this.parser.getName(ut)})`),Tr(qe,Ne)):(!ye||ye.scoreQt;class Un{constructor(X){this.start=X.start,this.shift=X.shift||yr,this.reduce=X.reduce||yr,this.reuse=X.reuse||yr,this.hash=X.hash||(()=>0),this.strict=X.strict!==!1}}class Xt extends ue._b{constructor(X){if(super(),this.wrappers=[],X.version!=14)throw new RangeError(`Parser version (${X.version}) doesn't match runtime version (14)`);let be=X.nodeNames.split(" ");this.minRepeatTerm=be.length;for(let qe=0;qeX.topRules[qe][1]),ye=[];for(let qe=0;qe=0)Ze(vn,ut,qe[Vt++]);else{let an=qe[Vt+-vn];for(let Fn=-vn;Fn>0;Fn--)Ze(qe[Vt++],ut,an);Vt++}}}this.nodeSet=new ue.Lj(be.map((qe,ut)=>ue.Jq.define({name:ut>=this.minRepeatTerm?void 0:qe,id:ut,props:ye[ut],top:Ne.indexOf(ut)>-1,error:ut==0,skipped:X.skippedNodes&&X.skippedNodes.indexOf(ut)>-1}))),X.propSources&&(this.nodeSet=this.nodeSet.extend(...X.propSources)),this.strict=!1,this.bufferLength=ue.L3;let $e=Ee(X.tokenData);this.context=X.context,this.specializerSpecs=X.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let qe=0;qetypeof qe=="number"?new Pt($e,qe):qe),this.topRules=X.topRules,this.dialects=X.dialects||{},this.dynamicPrecedences=X.dynamicPrecedences||null,this.tokenPrecTable=X.tokenPrec,this.termNames=X.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(X,be,Ne){let ye=new Mn(this,X,be,Ne);for(let Ze of this.wrappers)ye=Ze(ye,X,be,Ne);return ye}getGoto(X,be,Ne=!1){let ye=this.goto;if(be>=ye[0])return-1;for(let Ze=ye[be+1];;){let $e=ye[Ze++],qe=$e&1,ut=ye[Ze++];if(qe&&Ne)return ut;for(let Vt=Ze+($e>>1);Ze0}validAction(X,be){return!!this.allActions(X,Ne=>Ne==be?!0:null)}allActions(X,be){let Ne=this.stateSlot(X,4),ye=Ne?be(Ne):void 0;for(let Ze=this.stateSlot(X,1);ye==null;Ze+=3){if(this.data[Ze]==65535)if(this.data[Ze+1]==1)Ze=sn(this.data,Ze+2);else break;ye=be(sn(this.data,Ze+1))}return ye}nextStates(X){let be=[];for(let Ne=this.stateSlot(X,1);;Ne+=3){if(this.data[Ne]==65535)if(this.data[Ne+1]==1)Ne=sn(this.data,Ne+2);else break;if(!(this.data[Ne+2]&1)){let ye=this.data[Ne+1];be.some((Ze,$e)=>$e&1&&Ze==ye)||be.push(this.data[Ne],ye)}}return be}configure(X){let be=Object.assign(Object.create(Xt.prototype),this);if(X.props&&(be.nodeSet=this.nodeSet.extend(...X.props)),X.top){let Ne=this.topRules[X.top];if(!Ne)throw new RangeError(`Invalid top rule name ${X.top}`);be.top=Ne}return X.tokenizers&&(be.tokenizers=this.tokenizers.map(Ne=>{let ye=X.tokenizers.find(Ze=>Ze.from==Ne);return ye?ye.to:Ne})),X.specializers&&(be.specializers=this.specializers.slice(),be.specializerSpecs=this.specializerSpecs.map((Ne,ye)=>{let Ze=X.specializers.find(qe=>qe.from==Ne.external);if(!Ze)return Ne;let $e=Object.assign(Object.assign({},Ne),{external:Ze.to});return be.specializers[ye]=Ut($e),$e})),X.contextTracker&&(be.context=X.contextTracker),X.dialect&&(be.dialect=this.parseDialect(X.dialect)),X.strict!=null&&(be.strict=X.strict),X.wrap&&(be.wrappers=be.wrappers.concat(X.wrap)),X.bufferLength!=null&&(be.bufferLength=X.bufferLength),be}hasWrappers(){return this.wrappers.length>0}getName(X){return this.termNames?this.termNames[X]:String(X<=this.maxNode&&this.nodeSet.types[X].name||X)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(X){let be=this.dynamicPrecedences;return be==null?0:be[X]||0}parseDialect(X){let be=Object.keys(this.dialects),Ne=be.map(()=>!1);if(X)for(let Ze of X.split(" ")){let $e=be.indexOf(Ze);$e>=0&&(Ne[$e]=!0)}let ye=null;for(let Ze=0;ZeNe)&&be.p.parser.stateFlag(be.state,2)&&(!X||X.scoreQt.external(be,Ne)<<1|X}return Qt.get}},60520:function(ti,Gn,z){"use strict";z.d(Gn,{cW:function(){return F4}});var ue=Object.defineProperty,Me=(e,t,r)=>t in e?ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ue=(e,t,r)=>(Me(e,typeof t!="symbol"?t+"":t,r),r);function lt(e){this.content=e}lt.prototype={constructor:lt,find:function(e){for(var t=0;t>1}},lt.from=function(e){if(e instanceof lt)return e;var t=[];if(e)for(var r in e)t.push(r,e[r]);return new lt(t)};function En(e,t,r){for(let i=0;;i++){if(i==e.childCount||i==t.childCount)return e.childCount==t.childCount?null:r;let a=e.child(i),o=t.child(i);if(a==o){r+=a.nodeSize;continue}if(!a.sameMarkup(o))return r;if(a.isText&&a.text!=o.text){for(let u=0;a.text[u]==o.text[u];u++)r++;return r}if(a.content.size||o.content.size){let u=En(a.content,o.content,r+1);if(u!=null)return u}r+=a.nodeSize}}function De(e,t,r,i){for(let a=e.childCount,o=t.childCount;;){if(a==0||o==0)return a==o?null:{a:r,b:i};let u=e.child(--a),d=t.child(--o),f=u.nodeSize;if(u==d){r-=f,i-=f;continue}if(!u.sameMarkup(d))return{a:r,b:i};if(u.isText&&u.text!=d.text){let b=0,E=Math.min(u.text.length,d.text.length);for(;bt&&i(f,a+d,o||null,u)!==!1&&f.content.size){let E=d+1;f.nodesBetween(Math.max(0,t-E),Math.min(f.content.size,r-E),i,a+E)}d=b}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,r,i,a){let o="",u=!0;return this.nodesBetween(t,r,(d,f)=>{let b=d.isText?d.text.slice(Math.max(t,f)-f,r-f):d.isLeaf?a?typeof a=="function"?a(d):a:d.type.spec.leafText?d.type.spec.leafText(d):"":"";d.isBlock&&(d.isLeaf&&b||d.isTextblock)&&i&&(u?u=!1:o+=i),o+=b},0),o}append(t){if(!t.size)return this;if(!this.size)return t;let r=this.lastChild,i=t.firstChild,a=this.content.slice(),o=0;for(r.isText&&r.sameMarkup(i)&&(a[a.length-1]=r.withText(r.text+i.text),o=1);ot)for(let o=0,u=0;ut&&((ur)&&(d.isText?d=d.cut(Math.max(0,t-u),Math.min(d.text.length,r-u)):d=d.cut(Math.max(0,t-u-1),Math.min(d.content.size,r-u-1))),i.push(d),a+=d.nodeSize),u=f}return new Ee(i,a)}cutByIndex(t,r){return t==r?Ee.empty:t==0&&r==this.content.length?this:new Ee(this.content.slice(t,r))}replaceChild(t,r){let i=this.content[t];if(i==r)return this;let a=this.content.slice(),o=this.size+r.nodeSize-i.nodeSize;return a[t]=r,new Ee(a,o)}addToStart(t){return new Ee([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new Ee(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let r=0;rthis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let i=0,a=0;;i++){let o=this.child(i),u=a+o.nodeSize;if(u>=t)return u==t||r>0?In(i+1,u):In(i,a);a=u}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,r){if(!r)return Ee.empty;if(!Array.isArray(r))throw new RangeError("Invalid input for Fragment.fromJSON");return new Ee(r.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return Ee.empty;let r,i=0;for(let a=0;athis.type.rank&&(r||(r=t.slice(0,a)),r.push(this),i=!0),r&&r.push(o)}}return r||(r=t.slice()),i||r.push(this),r}removeFromSet(t){for(let r=0;ri.type.rank-a.type.rank),r}};Pt.none=[];class Hn extends Error{}class gt{constructor(t,r,i){this.content=t,this.openStart=r,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,r){let i=st(this.content,t+this.openStart,r);return i&&new gt(i,this.openStart,this.openEnd)}removeBetween(t,r){return new gt(On(this.content,t+this.openStart,r+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,r){if(!r)return gt.empty;let i=r.openStart||0,a=r.openEnd||0;if(typeof i!="number"||typeof a!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new gt(Ee.fromJSON(t,r.content),i,a)}static maxOpen(t,r=!0){let i=0,a=0;for(let o=t.firstChild;o&&!o.isLeaf&&(r||!o.type.spec.isolating);o=o.firstChild)i++;for(let o=t.lastChild;o&&!o.isLeaf&&(r||!o.type.spec.isolating);o=o.lastChild)a++;return new gt(t,i,a)}}gt.empty=new gt(Ee.empty,0,0);function On(e,t,r){let{index:i,offset:a}=e.findIndex(t),o=e.maybeChild(i),{index:u,offset:d}=e.findIndex(r);if(a==t||o.isText){if(d!=r&&!e.child(u).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(r))}if(i!=u)throw new RangeError("Removing non-flat range");return e.replaceChild(i,o.copy(On(o.content,t-a-1,r-a-1)))}function st(e,t,r,i){let{index:a,offset:o}=e.findIndex(t),u=e.maybeChild(a);if(o==t||u.isText)return i&&!i.canReplace(a,a,r)?null:e.cut(0,t).append(r).append(e.cut(t));let d=st(u.content,t-o-1,r);return d&&e.replaceChild(a,u.copy(d))}function Pn(e,t,r){if(r.openStart>e.depth)throw new Hn("Inserted content deeper than insertion position");if(e.depth-r.openStart!=t.depth-r.openEnd)throw new Hn("Inconsistent open depths");return Nt(e,t,r,0)}function Nt(e,t,r,i){let a=e.index(i),o=e.node(i);if(a==t.index(i)&&i=0&&e.isText&&e.sameMarkup(t[r])?t[r]=e.withText(t[r].text+e.text):t.push(e)}function Zn(e,t,r,i){let a=(t||e).node(r),o=0,u=t?t.index(r):a.childCount;e&&(o=e.index(r),e.depth>r?o++:e.textOffset&&(yn(e.nodeAfter,i),o++));for(let d=o;da&&Nn(e,t,a+1),u=i.depth>a&&Nn(r,i,a+1),d=[];return Zn(null,e,a,d),o&&u&&t.index(a)==r.index(a)?(Kn(o,u),yn(Mn(o,Tr(e,t,r,i,a+1)),d)):(o&&yn(Mn(o,Br(e,t,a+1)),d),Zn(t,r,a,d),u&&yn(Mn(u,Br(r,i,a+1)),d)),Zn(i,null,a,d),new Ee(d)}function Br(e,t,r){let i=[];if(Zn(null,e,r,i),e.depth>r){let a=Nn(e,t,r+1);yn(Mn(a,Br(e,t,r+1)),i)}return Zn(t,null,r,i),new Ee(i)}function yr(e,t){let r=t.depth-e.openStart,i=t.node(r).copy(e.content);for(let a=r-1;a>=0;a--)i=t.node(a).copy(Ee.from(i));return{start:i.resolveNoCache(e.openStart+r),end:i.resolveNoCache(i.content.size-e.openEnd-r)}}class Un{constructor(t,r,i){this.pos=t,this.path=r,this.parentOffset=i,this.depth=r.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,r=this.index(this.depth);if(r==t.childCount)return null;let i=this.pos-this.path[this.path.length-1],a=t.child(r);return i?t.child(r).cut(i):a}get nodeBefore(){let t=this.index(this.depth),r=this.pos-this.path[this.path.length-1];return r?this.parent.child(t).cut(0,r):t==0?null:this.parent.child(t-1)}posAtIndex(t,r){r=this.resolveDepth(r);let i=this.path[r*3],a=r==0?0:this.path[r*3-1]+1;for(let o=0;o0;r--)if(this.start(r)<=t&&this.end(r)>=t)return r;return 0}blockRange(t=this,r){if(t.pos=0;i--)if(t.pos<=this.end(i)&&(!r||r(this.node(i))))return new Ut(this,t,i);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&r<=t.content.size))throw new RangeError("Position "+r+" out of range");let i=[],a=0,o=r;for(let u=t;;){let{index:d,offset:f}=u.content.findIndex(o),b=o-f;if(i.push(u,d,a+f),!b||(u=u.child(d),u.isText))break;o=b-1,a+=f+1}return new Un(r,i,o)}static resolveCached(t,r){for(let a=0;at&&this.nodesBetween(t,r,o=>(i.isInSet(o.marks)&&(a=!0),!a)),a}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),Ne(this.marks,t)}contentMatchAt(t){let r=this.type.contentMatch.matchFragment(this.content,0,t);if(!r)throw new Error("Called contentMatchAt on a node with invalid content");return r}canReplace(t,r,i=Ee.empty,a=0,o=i.childCount){let u=this.contentMatchAt(t).matchFragment(i,a,o),d=u&&u.matchFragment(this.content,r);if(!d||!d.validEnd)return!1;for(let f=a;fr.type.name)}`);this.content.forEach(r=>r.check())}toJSON(){let t={type:this.type.name};for(let r in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(r=>r.toJSON())),t}static fromJSON(t,r){if(!r)throw new RangeError("Invalid input for Node.fromJSON");let i=null;if(r.marks){if(!Array.isArray(r.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=r.marks.map(t.markFromJSON)}if(r.type=="text"){if(typeof r.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(r.text,i)}let a=Ee.fromJSON(t,r.content);return t.nodeType(r.type).create(r.attrs,a,i)}};X.prototype.text=void 0;class be extends X{constructor(t,r,i,a){if(super(t,r,null,a),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ne(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,r){return this.text.slice(t,r)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new be(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new be(this.type,this.attrs,t,this.marks)}cut(t=0,r=this.text.length){return t==0&&r==this.text.length?this:this.withText(this.text.slice(t,r))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function Ne(e,t){for(let r=e.length-1;r>=0;r--)t=e[r].type.name+"("+t+")";return t}class ye{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,r){let i=new Ze(t,r);if(i.next==null)return ye.empty;let a=$e(i);i.next&&i.err("Unexpected trailing text");let o=ir(Sn(a));return un(o,i),o}matchType(t){for(let r=0;rb.createAndFill()));for(let b=0;b=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function r(i){t.push(i);for(let a=0;a{let o=a+(i.validEnd?"*":" ")+" ";for(let u=0;u"+t.indexOf(i.next[u].next);return o}).join(` -`)}}ye.empty=new ye(!0);class Ze{constructor(t,r){this.string=t,this.nodeTypes=r,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function $e(e){let t=[];do t.push(qe(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function qe(e){let t=[];do t.push(ut(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function ut(e){let t=Fn(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=vn(e,t);else break;return t}function Vt(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function vn(e,t){let r=Vt(e),i=r;return e.eat(",")&&(e.next!="}"?i=Vt(e):i=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:r,max:i,expr:t}}function an(e,t){let r=e.nodeTypes,i=r[t];if(i)return[i];let a=[];for(let o in r){let u=r[o];u.groups.indexOf(t)>-1&&a.push(u)}return a.length==0&&e.err("No node type or group '"+t+"' found"),a}function Fn(e){if(e.eat("(")){let t=$e(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=an(e,e.next).map(r=>(e.inline==null?e.inline=r.isInline:e.inline!=r.isInline&&e.err("Mixing inline and block content"),{type:"name",value:r}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function Sn(e){let t=[[]];return a(o(e,0),r()),t;function r(){return t.push([])-1}function i(u,d,f){let b={term:f,to:d};return t[u].push(b),b}function a(u,d){u.forEach(f=>f.to=d)}function o(u,d){if(u.type=="choice")return u.exprs.reduce((f,b)=>f.concat(o(b,d)),[]);if(u.type=="seq")for(let f=0;;f++){let b=o(u.exprs[f],d);if(f==u.exprs.length-1)return b;a(b,d=r())}else if(u.type=="star"){let f=r();return i(d,f),a(o(u.expr,f),f),[i(f)]}else if(u.type=="plus"){let f=r();return a(o(u.expr,d),f),a(o(u.expr,f),f),[i(f)]}else{if(u.type=="opt")return[i(d)].concat(o(u.expr,d));if(u.type=="range"){let f=d;for(let b=0;b{e[u].forEach(({term:d,to:f})=>{if(!d)return;let b;for(let E=0;E{b||a.push([d,b=[]]),b.indexOf(E)==-1&&b.push(E)})})});let o=t[i.join(",")]=new ye(i.indexOf(e.length-1)>-1);for(let u=0;u-1}allowsMarks(t){if(this.markSet==null)return!0;for(let r=0;ri[o]=new s3(o,r,u));let a=r.spec.topNode||"doc";if(!i[a])throw new RangeError("Schema is missing its top node type ('"+a+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let o in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}};class we{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}}class ve{constructor(t,r,i,a){this.name=t,this.rank=r,this.schema=i,this.spec=a,this.attrs=Z(a.attrs),this.excluded=null;let o=zt(this.attrs);this.instance=o?new Pt(this,o):null}create(t=null){return!t&&this.instance?this.instance:new Pt(this,et(this.attrs,t))}static compile(t,r){let i=Object.create(null),a=0;return t.forEach((o,u)=>i[o]=new ve(o,a++,r,u)),i}removeFromSet(t){for(var r=0;r-1}}class Ce{constructor(t){this.cached=Object.create(null);let r=this.spec={};for(let a in t)r[a]=t[a];r.nodes=lt.from(t.nodes),r.marks=lt.from(t.marks||{}),this.nodes=re.compile(this.spec.nodes,this),this.marks=ve.compile(this.spec.marks,this);let i=Object.create(null);for(let a in this.nodes){if(a in this.marks)throw new RangeError(a+" can not be both a node and a mark");let o=this.nodes[a],u=o.spec.content||"",d=o.spec.marks;o.contentMatch=i[u]||(i[u]=ye.parse(u,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet=d=="_"?null:d?tt(this,d.split(" ")):d==""||!o.inlineContent?[]:null}for(let a in this.marks){let o=this.marks[a],u=o.spec.excludes;o.excluded=u==null?[o]:u==""?[]:tt(this,u.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,r=null,i,a){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof re){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(r,i,a)}text(t,r){let i=this.nodes.text;return new be(i,i.defaultAttrs,t,Pt.setFrom(r))}mark(t,r){return typeof t=="string"&&(t=this.marks[t]),t.create(r)}nodeFromJSON(t){return X.fromJSON(this,t)}markFromJSON(t){return Pt.fromJSON(this,t)}nodeType(t){let r=this.nodes[t];if(!r)throw new RangeError("Unknown node type: "+t);return r}}function tt(e,t){let r=[];for(let i=0;i-1)&&r.push(u=f)}if(!u)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return r}let Rt=class WD{constructor(t,r){this.schema=t,this.rules=r,this.tags=[],this.styles=[],r.forEach(i=>{i.tag?this.tags.push(i):i.style&&this.styles.push(i)}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let a=t.nodes[i.node];return a.contentMatch.matchType(a)})}parse(t,r={}){let i=new Wn(this,r,!1);return i.addAll(t,r.from,r.to),i.finish()}parseSlice(t,r={}){let i=new Wn(this,r,!0);return i.addAll(t,r.from,r.to),gt.maxOpen(i.finish())}matchTag(t,r,i){for(let a=i?this.tags.indexOf(i)+1:0;at.length&&(d.charCodeAt(t.length)!=61||d.slice(t.length+1)!=r))){if(u.getAttrs){let f=u.getAttrs(r);if(f===!1)continue;u.attrs=f||void 0}return u}}}static schemaRules(t){let r=[];function i(a){let o=a.priority==null?50:a.priority,u=0;for(;u{i(u=Ti(u)),u.mark||u.ignore||u.clearMark||(u.mark=a)})}for(let a in t.nodes){let o=t.nodes[a].spec.parseDOM;o&&o.forEach(u=>{i(u=Ti(u)),u.node||u.ignore||u.mark||(u.node=a)})}return r}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new WD(t,WD.schemaRules(t)))}};const Kt={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Cn={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},bn={ol:!0,ul:!0},Dn=1,Yn=2,$n=4;function Pr(e,t,r){return t!=null?(t?Dn:0)|(t==="full"?Yn:0):e&&e.whitespace=="pre"?Dn|Yn:r&~$n}class Wr{constructor(t,r,i,a,o,u,d){this.type=t,this.attrs=r,this.marks=i,this.pendingMarks=a,this.solid=o,this.options=d,this.content=[],this.activeMarks=Pt.none,this.stashMarks=[],this.match=u||(d&$n?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let r=this.type.contentMatch.fillBefore(Ee.from(t));if(r)this.match=this.type.contentMatch.matchFragment(r);else{let i=this.type.contentMatch,a;return(a=i.findWrapping(t.type))?(this.match=i,a):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&Dn)){let i=this.content[this.content.length-1],a;if(i&&i.isText&&(a=/[ \t\r\n\u000c]+$/.exec(i.text))){let o=i;i.text.length==a[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-a[0].length))}}let r=Ee.from(this.content);return!t&&this.match&&(r=r.append(this.match.fillBefore(Ee.empty,!0))),this.type?this.type.create(this.attrs,r,this.marks):r}popFromStashMark(t){for(let r=this.stashMarks.length-1;r>=0;r--)if(t.eq(this.stashMarks[r]))return this.stashMarks.splice(r,1)[0]}applyPending(t){for(let r=0,i=this.pendingMarks;rthis.addAll(t)),u&&this.sync(d),this.needsBlock=f}else this.withStyleRules(t,()=>{this.addElementByRule(t,o,o.consuming===!1?a:void 0)})}leafFallback(t){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(` -`))}ignoreFallback(t){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(t){let r=Pt.none,i=Pt.none;for(let a=0;a{u.clearMark(d)&&(i=d.addToSet(i))}):r=this.parser.schema.marks[u.mark].create(u.attrs).addToSet(r),u.consuming===!1)o=u;else break}return[r,i]}addElementByRule(t,r,i){let a,o,u;r.node?(o=this.parser.schema.nodes[r.node],o.isLeaf?this.insertNode(o.create(r.attrs))||this.leafFallback(t):a=this.enter(o,r.attrs||null,r.preserveWhitespace)):(u=this.parser.schema.marks[r.mark].create(r.attrs),this.addPendingMark(u));let d=this.top;if(o&&o.isLeaf)this.findInside(t);else if(i)this.addElement(t,i);else if(r.getContent)this.findInside(t),r.getContent(t,this.parser.schema).forEach(f=>this.insertNode(f));else{let f=t;typeof r.contentElement=="string"?f=t.querySelector(r.contentElement):typeof r.contentElement=="function"?f=r.contentElement(t):r.contentElement&&(f=r.contentElement),this.findAround(t,f,!0),this.addAll(f)}a&&this.sync(d)&&this.open--,u&&this.removePendingMark(u,d)}addAll(t,r,i){let a=r||0;for(let o=r?t.childNodes[r]:t.firstChild,u=i==null?null:t.childNodes[i];o!=u;o=o.nextSibling,++a)this.findAtPoint(t,a),this.addDOM(o);this.findAtPoint(t,a)}findPlace(t){let r,i;for(let a=this.open;a>=0;a--){let o=this.nodes[a],u=o.findWrapping(t);if(u&&(!r||r.length>u.length)&&(r=u,i=o,!u.length)||o.solid)break}if(!r)return!1;this.sync(i);for(let a=0;athis.open){for(;r>this.open;r--)this.nodes[r-1].content.push(this.nodes[r].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let r=this.open;r>=0;r--)if(this.nodes[r]==t)return this.open=r,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let r=this.open;r>=0;r--){let i=this.nodes[r].content;for(let a=i.length-1;a>=0;a--)t+=i[a].nodeSize;r&&t++}return t}findAtPoint(t,r){if(this.find)for(let i=0;i-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let r=t.split("/"),i=this.options.context,a=!this.isOpen&&(!i||i.parent.type==this.nodes[0].type),o=-(i?i.depth+1:0)+(a?0:1),u=(d,f)=>{for(;d>=0;d--){let b=r[d];if(b==""){if(d==r.length-1||d==0)continue;for(;f>=o;f--)if(u(d-1,f))return!0;return!1}else{let E=f>0||f==0&&a?this.nodes[f].type:i&&f>=o?i.node(f-o).type:null;if(!E||E.name!=b&&E.groups.indexOf(b)==-1)return!1;f--}}return!0};return u(r.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let r=t.depth;r>=0;r--){let i=t.node(r).contentMatchAt(t.indexAfter(r)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let r in this.parser.schema.nodes){let i=this.parser.schema.nodes[r];if(i.isTextblock&&i.defaultAttrs)return i}}addPendingMark(t){let r=Ye(t,this.top.pendingMarks);r&&this.top.stashMarks.push(r),this.top.pendingMarks=t.addToSet(this.top.pendingMarks)}removePendingMark(t,r){for(let i=this.open;i>=0;i--){let a=this.nodes[i];if(a.pendingMarks.lastIndexOf(t)>-1)a.pendingMarks=t.removeFromSet(a.pendingMarks);else{a.activeMarks=t.removeFromSet(a.activeMarks);let o=a.popFromStashMark(t);o&&a.type&&a.type.allowsMarkType(o.type)&&(a.activeMarks=o.addToSet(a.activeMarks))}if(a==r)break}}}function zr(e){for(let t=e.firstChild,r=null;t;t=t.nextSibling){let i=t.nodeType==1?t.nodeName.toLowerCase():null;i&&bn.hasOwnProperty(i)&&r?(r.appendChild(t),t=r):i=="li"?r=t:i&&(r=null)}}function Gr(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Yr(e){let t=/\s*([\w-]+)\s*:\s*([^;]+)/g,r,i=[];for(;r=t.exec(e);)i.push(r[1],r[2].trim());return i}function Ti(e){let t={};for(let r in e)t[r]=e[r];return t}function er(e,t){let r=t.schema.nodes;for(let i in r){let a=r[i];if(!a.allowsMarkType(e))continue;let o=[],u=d=>{o.push(d);for(let f=0;f{if(o.length||u.marks.length){let d=0,f=0;for(;d=0;a--){let o=this.serializeMark(t.marks[a],t.isInline,r);o&&((o.contentDOM||o.dom).appendChild(i),i=o.dom)}return i}serializeMark(t,r,i={}){let a=this.marks[t.type.name];return a&&bt.renderSpec(Tt(i),a(t,r))}static renderSpec(t,r,i=null){if(typeof r=="string")return{dom:t.createTextNode(r)};if(r.nodeType!=null)return{dom:r};if(r.dom&&r.dom.nodeType!=null)return r;let a=r[0],o=a.indexOf(" ");o>0&&(i=a.slice(0,o),a=a.slice(o+1));let u,d=i?t.createElementNS(i,a):t.createElement(a),f=r[1],b=1;if(f&&typeof f=="object"&&f.nodeType==null&&!Array.isArray(f)){b=2;for(let E in f)if(f[E]!=null){let k=E.indexOf(" ");k>0?d.setAttributeNS(E.slice(0,k),E.slice(k+1),f[E]):d.setAttribute(E,f[E])}}for(let E=b;Eb)throw new RangeError("Content hole must be the only child of its parent node");return{dom:d,contentDOM:d}}else{let{dom:x,contentDOM:R}=bt.renderSpec(t,k,i);if(d.appendChild(x),R){if(u)throw new RangeError("Multiple content holes");u=R}}}return{dom:d,contentDOM:u}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new bt(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let r=Mt(t.nodes);return r.text||(r.text=i=>i.text),r}static marksFromSchema(t){return Mt(t.marks)}}function Mt(e){let t={};for(let r in e){let i=e[r].spec.toDOM;i&&(t[r]=i)}return t}function Tt(e){return e.document||window.document}const hn=65535,on=Math.pow(2,16);function At(e,t){return e+t*on}function qn(e){return e&hn}function Ir(e){return(e-(e&hn))/on}const rr=1,Ar=2,ei=4,qr=8;class ur{constructor(t,r,i){this.pos=t,this.delInfo=r,this.recover=i}get deleted(){return(this.delInfo&qr)>0}get deletedBefore(){return(this.delInfo&(rr|ei))>0}get deletedAfter(){return(this.delInfo&(Ar|ei))>0}get deletedAcross(){return(this.delInfo&ei)>0}}class Vr{constructor(t,r=!1){if(this.ranges=t,this.inverted=r,!t.length&&Vr.empty)return Vr.empty}recover(t){let r=0,i=qn(t);if(!this.inverted)for(let a=0;at)break;let b=this.ranges[d+o],E=this.ranges[d+u],k=f+b;if(t<=k){let x=b?t==f?-1:t==k?1:r:r,R=f+a+(x<0?0:E);if(i)return R;let N=t==(r<0?f:k)?null:At(d/3,t-f),G=t==f?Ar:t==k?rr:ei;return(r<0?t!=f:t!=k)&&(G|=qr),new ur(R,G,N)}a+=E-b}return i?t+a:new ur(t+a,0,null)}touches(t,r){let i=0,a=qn(r),o=this.inverted?2:1,u=this.inverted?1:2;for(let d=0;dt)break;let b=this.ranges[d+o],E=f+b;if(t<=E&&d==a*3)return!0;i+=this.ranges[d+u]-b}return!1}forEach(t){let r=this.inverted?2:1,i=this.inverted?1:2;for(let a=0,o=0;a=0;r--){let a=t.getMirror(r);this.appendMap(t.maps[r].invert(),a!=null&&a>r?i-a-1:void 0)}}invert(){let t=new Er;return t.appendMappingInverted(this),t}map(t,r=1){if(this.mirror)return this._map(t,r,!0);for(let i=this.from;io&&f!u.isAtom||!d.type.allowsMarkType(this.mark.type)?u:u.mark(this.mark.addToSet(u.marks)),a),r.openStart,r.openEnd);return li.fromReplace(t,this.from,this.to,o)}invert(){return new Ui(this.from,this.to,this.mark)}map(t){let r=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return r.deleted&&i.deleted||r.pos>=i.pos?null:new ii(r.pos,i.pos,this.mark)}merge(t){return t instanceof ii&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new ii(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,r){if(typeof r.from!="number"||typeof r.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new ii(r.from,r.to,t.markFromJSON(r.mark))}}oi.jsonID("addMark",ii);class Ui extends oi{constructor(t,r,i){super(),this.from=t,this.to=r,this.mark=i}apply(t){let r=t.slice(this.from,this.to),i=new gt(Gi(r.content,a=>a.mark(this.mark.removeFromSet(a.marks)),t),r.openStart,r.openEnd);return li.fromReplace(t,this.from,this.to,i)}invert(){return new ii(this.from,this.to,this.mark)}map(t){let r=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return r.deleted&&i.deleted||r.pos>=i.pos?null:new Ui(r.pos,i.pos,this.mark)}merge(t){return t instanceof Ui&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Ui(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,r){if(typeof r.from!="number"||typeof r.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Ui(r.from,r.to,t.markFromJSON(r.mark))}}oi.jsonID("removeMark",Ui);class Hi extends oi{constructor(t,r){super(),this.pos=t,this.mark=r}apply(t){let r=t.nodeAt(this.pos);if(!r)return li.fail("No node at mark step's position");let i=r.type.create(r.attrs,null,this.mark.addToSet(r.marks));return li.fromReplace(t,this.pos,this.pos+1,new gt(Ee.from(i),0,r.isLeaf?0:1))}invert(t){let r=t.nodeAt(this.pos);if(r){let i=this.mark.addToSet(r.marks);if(i.length==r.marks.length){for(let a=0;ai.pos?null:new Sr(r.pos,i.pos,a,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,r){if(typeof r.from!="number"||typeof r.to!="number"||typeof r.gapFrom!="number"||typeof r.gapTo!="number"||typeof r.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Sr(r.from,r.to,r.gapFrom,r.gapTo,gt.fromJSON(t,r.slice),r.insert,!!r.structure)}}oi.jsonID("replaceAround",Sr);function fs(e,t,r){let i=e.resolve(t),a=r-t,o=i.depth;for(;a>0&&o>0&&i.indexAfter(o)==i.node(o).childCount;)o--,a--;if(a>0){let u=i.node(o).maybeChild(i.indexAfter(o));for(;a>0;){if(!u||u.isLeaf)return!0;u=u.firstChild,a--}}return!1}function ea(e,t,r,i){let a=[],o=[],u,d;e.doc.nodesBetween(t,r,(f,b,E)=>{if(!f.isInline)return;let k=f.marks;if(!i.isInSet(k)&&E.type.allowsMarkType(i.type)){let x=Math.max(b,t),R=Math.min(b+f.nodeSize,r),N=i.addToSet(k);for(let G=0;Ge.step(f)),o.forEach(f=>e.step(f))}function ta(e,t,r,i){let a=[],o=0;e.doc.nodesBetween(t,r,(u,d)=>{if(!u.isInline)return;o++;let f=null;if(i instanceof ve){let b=u.marks,E;for(;E=i.isInSet(b);)(f||(f=[])).push(E),b=E.removeFromSet(b)}else i?i.isInSet(u.marks)&&(f=[i]):f=u.marks;if(f&&f.length){let b=Math.min(d+u.nodeSize,r);for(let E=0;Ee.step(new Ui(u.from,u.to,u.style)))}function na(e,t,r,i=r.contentMatch){let a=e.doc.nodeAt(t),o=[],u=t+1;for(let d=0;d=0;d--)e.step(o[d])}function ke(e,t,r){return(t==0||e.canReplace(t,e.childCount))&&(r==e.childCount||e.canReplace(0,r))}function A(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let i=e.$from.node(r),a=e.$from.index(r),o=e.$to.indexAfter(r);if(rr;N--)G||i.index(N)>0?(G=!0,E=Ee.from(i.node(N).copy(E)),k++):f--;let x=Ee.empty,R=0;for(let N=o,G=!1;N>r;N--)G||a.after(N+1)=0;u--){if(i.size){let d=r[u].type.contentMatch.matchFragment(i);if(!d||!d.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=Ee.from(r[u].type.create(r[u].attrs,i))}let a=t.start,o=t.end;e.step(new Sr(a,o,a,o,new gt(i,0,0),r.length,!0))}function ze(e,t,r,i,a){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=e.steps.length;e.doc.nodesBetween(t,r,(u,d)=>{if(u.isTextblock&&!u.hasMarkup(i,a)&&pt(e.doc,e.mapping.slice(o).map(d),i)){e.clearIncompatible(e.mapping.slice(o).map(d,1),i);let f=e.mapping.slice(o),b=f.map(d,1),E=f.map(d+u.nodeSize,1);return e.step(new Sr(b,E,b+1,E-1,new gt(Ee.from(i.create(a,null,u.marks)),0,0),1,!0)),!1}})}function pt(e,t,r){let i=e.resolve(t),a=i.index();return i.parent.canReplaceWith(a,a+1,r)}function Dt(e,t,r,i,a){let o=e.doc.nodeAt(t);if(!o)throw new RangeError("No node at given position");r||(r=o.type);let u=r.create(i,null,a||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,u);if(!r.validContent(o.content))throw new RangeError("Invalid content for node type "+r.name);e.step(new Sr(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new gt(Ee.from(u),0,0),1,!0))}function Zt(e,t,r=1,i){let a=e.resolve(t),o=a.depth-r,u=i&&i[i.length-1]||a.parent;if(o<0||a.parent.type.spec.isolating||!a.parent.canReplace(a.index(),a.parent.childCount)||!u.type.validContent(a.parent.content.cutByIndex(a.index(),a.parent.childCount)))return!1;for(let b=a.depth-1,E=r-2;b>o;b--,E--){let k=a.node(b),x=a.index(b);if(k.type.spec.isolating)return!1;let R=k.content.cutByIndex(x,k.childCount),N=i&&i[E+1];N&&(R=R.replaceChild(0,N.type.create(N.attrs)));let G=i&&i[E]||k;if(!k.canReplace(x+1,k.childCount)||!G.type.validContent(R))return!1}let d=a.indexAfter(o),f=i&&i[0];return a.node(o).canReplaceWith(d,d,f?f.type:a.node(o+1).type)}function Rn(e,t,r=1,i){let a=e.doc.resolve(t),o=Ee.empty,u=Ee.empty;for(let d=a.depth,f=a.depth-r,b=r-1;d>f;d--,b--){o=Ee.from(a.node(d).copy(o));let E=i&&i[b];u=Ee.from(E?E.type.create(E.attrs,u):a.node(d).copy(u))}e.step(new Si(t,t,new gt(o.append(u),r,r),!0))}function cn(e,t){let r=e.resolve(t),i=r.index();return Fr(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(i,i+1)}function Fr(e,t){return!!(e&&t&&!e.isLeaf&&e.canAppend(t))}function Xr(e,t,r=-1){let i=e.resolve(t);for(let a=i.depth;;a--){let o,u,d=i.index(a);if(a==i.depth?(o=i.nodeBefore,u=i.nodeAfter):r>0?(o=i.node(a+1),d++,u=i.node(a).maybeChild(d)):(o=i.node(a).maybeChild(d-1),u=i.node(a+1)),o&&!o.isTextblock&&Fr(o,u)&&i.node(a).canReplace(d,d+1))return t;if(a==0)break;t=r<0?i.before(a):i.after(a)}}function he(e,t,r){let i=new Si(t-r,t+r,gt.empty,!0);e.step(i)}function Y(e,t,r){let i=e.resolve(t);if(i.parent.canReplaceWith(i.index(),i.index(),r))return t;if(i.parentOffset==0)for(let a=i.depth-1;a>=0;a--){let o=i.index(a);if(i.node(a).canReplaceWith(o,o,r))return i.before(a+1);if(o>0)return null}if(i.parentOffset==i.parent.content.size)for(let a=i.depth-1;a>=0;a--){let o=i.indexAfter(a);if(i.node(a).canReplaceWith(o,o,r))return i.after(a+1);if(o=0;u--){let d=u==i.depth?0:i.pos<=(i.start(u+1)+i.end(u+1))/2?-1:1,f=i.index(u)+(d>0?1:0),b=i.node(u),E=!1;if(o==1)E=b.canReplace(f,f,a);else{let k=b.contentMatchAt(f).findWrapping(a.firstChild.type);E=k&&b.canReplaceWith(f,f,k[0])}if(E)return d==0?i.pos:d<0?i.before(u+1):i.after(u+1)}return null}function Te(e,t,r=t,i=gt.empty){if(t==r&&!i.size)return null;let a=e.resolve(t),o=e.resolve(r);return Ie(a,o,i)?new Si(t,r,i):new Xe(a,o,i).fit()}function Ie(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}class Xe{constructor(t,r,i){this.$from=t,this.$to=r,this.unplaced=i,this.frontier=[],this.placed=Ee.empty;for(let a=0;a<=t.depth;a++){let o=t.node(a);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(a))})}for(let a=t.depth;a>0;a--)this.placed=Ee.from(t.node(a).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let b=this.findFittable();b?this.placeNodes(b):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),r=this.placed.size-this.depth-this.$from.depth,i=this.$from,a=this.close(t<0?this.$to:i.doc.resolve(t));if(!a)return null;let o=this.placed,u=i.depth,d=a.depth;for(;u&&d&&o.childCount==1;)o=o.firstChild.content,u--,d--;let f=new gt(o,u,d);return t>-1?new Sr(i.pos,t,this.$to.pos,this.$to.end(),f,r):f.size||i.pos!=this.$to.pos?new Si(i.pos,a.pos,f):null}findFittable(){let t=this.unplaced.openStart;for(let r=this.unplaced.content,i=0,a=this.unplaced.openEnd;i1&&(a=0),o.type.spec.isolating&&a<=i){t=i;break}r=o.content}for(let r=1;r<=2;r++)for(let i=r==1?t:this.unplaced.openStart;i>=0;i--){let a,o=null;i?(o=F(this.unplaced.content,i-1).firstChild,a=o.content):a=this.unplaced.content;let u=a.firstChild;for(let d=this.depth;d>=0;d--){let{type:f,match:b}=this.frontier[d],E,k=null;if(r==1&&(u?b.matchType(u.type)||(k=b.fillBefore(Ee.from(u),!1)):o&&f.compatibleContent(o.type)))return{sliceDepth:i,frontierDepth:d,parent:o,inject:k};if(r==2&&u&&(E=b.findWrapping(u.type)))return{sliceDepth:i,frontierDepth:d,parent:o,wrap:E};if(o&&b.matchType(o.type))break}}}openMore(){let{content:t,openStart:r,openEnd:i}=this.unplaced,a=F(t,r);return!a.childCount||a.firstChild.isLeaf?!1:(this.unplaced=new gt(t,r+1,Math.max(i,a.size+r>=t.size-i?r+1:0)),!0)}dropNode(){let{content:t,openStart:r,openEnd:i}=this.unplaced,a=F(t,r);if(a.childCount<=1&&r>0){let o=t.size-r<=r+a.size;this.unplaced=new gt(M(t,r-1,1),r-1,o?r-1:i)}else this.unplaced=new gt(M(t,r,1),r,i)}placeNodes({sliceDepth:t,frontierDepth:r,parent:i,inject:a,wrap:o}){for(;this.depth>r;)this.closeFrontierNode();if(o)for(let G=0;G1||f==0||G.content.size)&&(k=K,E.push(W(G.mark(x.allowedMarks(G.marks)),b==1?f:0,b==d.childCount?R:-1)))}let N=b==d.childCount;N||(R=-1),this.placed=D(this.placed,r,Ee.from(E)),this.frontier[r].match=k,N&&R<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let G=0,K=d;G1&&a==this.$to.end(--i);)++a;return a}findCloseLevel(t){e:for(let r=Math.min(this.depth,t.depth);r>=0;r--){let{match:i,type:a}=this.frontier[r],o=r=0;d--){let{match:f,type:b}=this.frontier[d],E=ie(t,d,b,f,!0);if(!E||E.childCount)continue e}return{depth:r,fit:u,move:o?t.doc.resolve(t.after(r+1)):t}}}}close(t){let r=this.findCloseLevel(t);if(!r)return null;for(;this.depth>r.depth;)this.closeFrontierNode();r.fit.childCount&&(this.placed=D(this.placed,r.depth,r.fit)),t=r.move;for(let i=r.depth+1;i<=t.depth;i++){let a=t.node(i),o=a.type.contentMatch.fillBefore(a.content,!0,t.index(i));this.openFrontierNode(a.type,a.attrs,o)}return t}openFrontierNode(t,r=null,i){let a=this.frontier[this.depth];a.match=a.match.matchType(t),this.placed=D(this.placed,this.depth,Ee.from(t.create(r,i))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(Ee.empty,!0);t.childCount&&(this.placed=D(this.placed,this.frontier.length,t))}}function M(e,t,r){return t==0?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(M(e.firstChild.content,t-1,r)))}function D(e,t,r){return t==0?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(D(e.lastChild.content,t-1,r)))}function F(e,t){for(let r=0;r1&&(i=i.replaceChild(0,W(i.firstChild,t-1,i.childCount==1?r-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),r<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(Ee.empty,!0)))),e.copy(i)}function ie(e,t,r,i,a){let o=e.node(t),u=a?e.indexAfter(t):e.index(t);if(u==o.childCount&&!r.compatibleContent(o.type))return null;let d=i.fillBefore(o.content,!0,u);return d&&!Re(r,o.content,u)?d:null}function Re(e,t,r){for(let i=r;i0;x--,R--){let N=a.node(x).type.spec;if(N.defining||N.definingAsContext||N.isolating)break;u.indexOf(x)>-1?d=x:a.before(x)==R&&u.splice(1,0,-x)}let f=u.indexOf(d),b=[],E=i.openStart;for(let x=i.content,R=0;;R++){let N=x.firstChild;if(b.push(N),R==i.openStart)break;x=N.content}for(let x=E-1;x>=0;x--){let R=b[x],N=Je(R.type);if(N&&!R.sameMarkup(a.node(Math.abs(d)-1)))E=x;else if(N||!R.type.isTextblock)break}for(let x=i.openStart;x>=0;x--){let R=(x+E+1)%(i.openStart+1),N=b[R];if(N)for(let G=0;G=0&&(e.replace(t,r,i),!(e.steps.length>k));x--){let R=u[x];R<0||(t=a.before(R),r=o.after(R))}}function wt(e,t,r,i,a){if(ti){let o=a.contentMatchAt(0),u=o.fillBefore(e).append(e);e=u.append(o.matchFragment(u).fillBefore(Ee.empty,!0))}return e}function en(e,t,r,i){if(!i.isInline&&t==r&&e.doc.resolve(t).parent.content.size){let a=Y(e.doc,t,i.type);a!=null&&(t=r=a)}e.replaceRange(t,r,new gt(Ee.from(i),0,0))}function nn(e,t,r){let i=e.doc.resolve(t),a=e.doc.resolve(r),o=Cr(i,a);for(let u=0;u0&&(f||i.node(d-1).canReplace(i.index(d-1),a.indexAfter(d-1))))return e.delete(i.before(d),a.after(d))}for(let u=1;u<=i.depth&&u<=a.depth;u++)if(t-i.start(u)==i.depth-u&&r>i.end(u)&&a.end(u)-r!=a.depth-u)return e.delete(i.before(u),r);e.delete(t,r)}function Cr(e,t){let r=[],i=Math.min(e.depth,t.depth);for(let a=i;a>=0;a--){let o=e.start(a);if(ot.pos+(t.depth-a)||e.node(a).type.spec.isolating||t.node(a).type.spec.isolating)break;(o==t.start(a)||a==e.depth&&a==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&a&&t.start(a-1)==o-1)&&r.push(a)}return r}class dn extends oi{constructor(t,r,i){super(),this.pos=t,this.attr=r,this.value=i}apply(t){let r=t.nodeAt(this.pos);if(!r)return li.fail("No node at attribute step's position");let i=Object.create(null);for(let o in r.attrs)i[o]=r.attrs[o];i[this.attr]=this.value;let a=r.type.create(i,null,r.marks);return li.fromReplace(t,this.pos,this.pos+1,new gt(Ee.from(a),0,r.isLeaf?0:1))}getMap(){return Vr.empty}invert(t){return new dn(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let r=t.mapResult(this.pos,1);return r.deletedAfter?null:new dn(r.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,r){if(typeof r.pos!="number"||typeof r.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new dn(r.pos,r.attr,r.value)}}oi.jsonID("attr",dn);class cr extends oi{constructor(t,r){super(),this.attr=t,this.value=r}apply(t){let r=Object.create(null);for(let a in t.attrs)r[a]=t.attrs[a];r[this.attr]=this.value;let i=t.type.create(r,t.content,t.marks);return li.ok(i)}getMap(){return Vr.empty}invert(t){return new cr(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,r){if(typeof r.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new cr(r.attr,r.value)}}oi.jsonID("docAttr",cr);let $r=class extends Error{};$r=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r},$r.prototype=Object.create(Error.prototype),$r.prototype.constructor=$r,$r.prototype.name="TransformError";class _r{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Er}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let r=this.maybeStep(t);if(r.failed)throw new $r(r.failed);return this}maybeStep(t){let r=t.apply(this.doc);return r.failed||this.addStep(t,r.doc),r}get docChanged(){return this.steps.length>0}addStep(t,r){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=r}replace(t,r=t,i=gt.empty){let a=Te(this.doc,t,r,i);return a&&this.step(a),this}replaceWith(t,r,i){return this.replace(t,r,new gt(Ee.from(i),0,0))}delete(t,r){return this.replace(t,r,gt.empty)}insert(t,r){return this.replaceWith(t,t,r)}replaceRange(t,r,i){return ht(this,t,r,i),this}replaceRangeWith(t,r,i){return en(this,t,r,i),this}deleteRange(t,r){return nn(this,t,r),this}lift(t,r){return _(this,t,r),this}join(t,r=1){return he(this,t,r),this}wrap(t,r){return _e(this,t,r),this}setBlockType(t,r=t,i,a=null){return ze(this,t,r,i,a),this}setNodeMarkup(t,r,i=null,a){return Dt(this,t,r,i,a),this}setNodeAttribute(t,r,i){return this.step(new dn(t,r,i)),this}setDocAttribute(t,r){return this.step(new cr(t,r)),this}addNodeMark(t,r){return this.step(new Hi(t,r)),this}removeNodeMark(t,r){if(!(r instanceof Pt)){let i=this.doc.nodeAt(t);if(!i)throw new RangeError("No node at position "+t);if(r=r.isInSet(i.marks),!r)return this}return this.step(new Ii(t,r)),this}split(t,r=1,i){return Rn(this,t,r,i),this}addMark(t,r,i){return ea(this,t,r,i),this}removeMark(t,r,i){return ta(this,t,r,i),this}clearIncompatible(t,r,i){return na(this,t,r,i),this}}const ce=Object.create(null);class B{constructor(t,r,i){this.$anchor=t,this.$head=r,this.ranges=i||[new J(t.min(r),t.max(r))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let r=0;r=0;o--){let u=r<0?hi(t.node(0),t.node(o),t.before(o+1),t.index(o),r,i):hi(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,r,i);if(u)return u}return null}static near(t,r=1){return this.findFrom(t,r)||this.findFrom(t,-r)||new Tn(t.node(0))}static atStart(t){return hi(t,t,0,0,1)||new Tn(t)}static atEnd(t){return hi(t,t,t.content.size,t.childCount,-1)||new Tn(t)}static fromJSON(t,r){if(!r||!r.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=ce[r.type];if(!i)throw new RangeError(`No selection type ${r.type} defined`);return i.fromJSON(t,r)}static jsonID(t,r){if(t in ce)throw new RangeError("Duplicate use of selection JSON ID "+t);return ce[t]=r,r.prototype.jsonID=t,r}getBookmark(){return Be.between(this.$anchor,this.$head).getBookmark()}}B.prototype.visible=!0;class J{constructor(t,r){this.$from=t,this.$to=r}}let me=!1;function Le(e){!me&&!e.parent.inlineContent&&(me=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Be extends B{constructor(t,r=t){Le(t),Le(r),super(t,r)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,r){let i=t.resolve(r.map(this.head));if(!i.parent.inlineContent)return B.near(i);let a=t.resolve(r.map(this.anchor));return new Be(a.parent.inlineContent?a:i,i)}replace(t,r=gt.empty){if(super.replace(t,r),r==gt.empty){let i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}}eq(t){return t instanceof Be&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new nt(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,r){if(typeof r.anchor!="number"||typeof r.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Be(t.resolve(r.anchor),t.resolve(r.head))}static create(t,r,i=r){let a=t.resolve(r);return new this(a,i==r?a:t.resolve(i))}static between(t,r,i){let a=t.pos-r.pos;if((!i||a)&&(i=a>=0?1:-1),!r.parent.inlineContent){let o=B.findFrom(r,i,!0)||B.findFrom(r,-i,!0);if(o)r=o.$head;else return B.near(r,i)}return t.parent.inlineContent||(a==0?t=r:(t=(B.findFrom(t,-i,!0)||B.findFrom(t,i,!0)).$anchor,t.pos0?0:1);a>0?u=0;u+=a){let d=t.child(u);if(d.isAtom){if(!o&&ct.isSelectable(d))return ct.create(e,r-(a<0?d.nodeSize:0))}else{let f=hi(e,d,r+a,a<0?d.childCount:0,a,o);if(f)return f}r+=d.nodeSize*a}return null}function ms(e,t,r){let i=e.steps.length-1;if(i{u==null&&(u=E)}),e.setSelection(B.near(e.doc.resolve(u),r))}const gs=1,Ss=2,_a=4;class pd extends _r{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=Ss,this}ensureMarks(t){return Pt.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Ss)>0}addStep(t,r){super.addStep(t,r),this.updated=this.updated&~Ss,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,r=!0){let i=this.selection;return r&&(t=t.mark(this.storedMarks||(i.empty?i.$from.marks():i.$from.marksAcross(i.$to)||Pt.none))),i.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,r,i){let a=this.doc.type.schema;if(r==null)return t?this.replaceSelectionWith(a.text(t),!0):this.deleteSelection();{if(i==null&&(i=r),i=i!=null?i:r,!t)return this.deleteRange(r,i);let o=this.storedMarks;if(!o){let u=this.doc.resolve(r);o=i==r?u.marks():u.marksAcross(this.doc.resolve(i))}return this.replaceRangeWith(r,i,a.text(t,o)),this.selection.empty||this.setSelection(B.near(this.selection.$to)),this}}setMeta(t,r){return this.meta[typeof t=="string"?t:t.key]=r,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=_a,this}get scrolledIntoView(){return(this.updated&_a)>0}}function Tl(e,t){return!t||!e?e:e.bind(t)}class Cl{constructor(t,r,i){this.name=t,this.init=Tl(r.init,i),this.apply=Tl(r.apply,i)}}const K0=[new Cl("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new Cl("selection",{init(e,t){return e.selection||B.atStart(t.doc)},apply(e){return e.selection}}),new Cl("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,r,i){return i.selection.$cursor?e.storedMarks:null}}),new Cl("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class zh{constructor(t,r){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=K0.slice(),r&&r.forEach(i=>{if(this.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");this.plugins.push(i),this.pluginsByKey[i.key]=i,i.spec.state&&this.fields.push(new Cl(i.key,i.spec.state,i))})}}class Go{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,r=-1){for(let i=0;ii.toJSON())),t&&typeof t=="object")for(let i in t){if(i=="doc"||i=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let a=t[i],o=a.spec.state;o&&o.toJSON&&(r[i]=o.toJSON.call(a,this[a.key]))}return r}static fromJSON(t,r,i){if(!r)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let a=new zh(t.schema,t.plugins),o=new Go(a);return a.fields.forEach(u=>{if(u.name=="doc")o.doc=X.fromJSON(t.schema,r.doc);else if(u.name=="selection")o.selection=B.fromJSON(o.doc,r.selection);else if(u.name=="storedMarks")r.storedMarks&&(o.storedMarks=r.storedMarks.map(t.schema.markFromJSON));else{if(i)for(let d in i){let f=i[d],b=f.spec.state;if(f.key==u.name&&b&&b.fromJSON&&Object.prototype.hasOwnProperty.call(r,d)){o[u.name]=b.fromJSON.call(f,t,r[d],o);return}}o[u.name]=u.init(t,o)}}),o}}function J0(e,t,r){for(let i in e){let a=e[i];a instanceof Function?a=a.bind(t):i=="handleDOMEvents"&&(a=J0(a,t,{})),r[i]=a}return r}class Di{constructor(t){this.spec=t,this.props={},t.props&&J0(t.props,this,this.props),this.key=t.key?t.key.key:Gf("plugin")}getState(t){return t[this.key]}}const Qh=Object.create(null);function Gf(e){return e in Qh?e+"$"+ ++Qh[e]:(Qh[e]=0,e+"$")}class _i{constructor(t="key"){this.key=Gf(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const as=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},Al=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let fd=null;const Va=function(e,t,r){let i=fd||(fd=document.createRange());return i.setEnd(e,r!=null?r:e.nodeValue.length),i.setStart(e,t||0),i},Vh=function(){fd=null},_l=function(e,t,r,i){return r&&(md(e,t,r,i,-1)||md(e,t,r,i,1))},eb=/^(img|br|input|textarea|hr)$/i;function md(e,t,r,i,a){for(;;){if(e==r&&t==i)return!0;if(t==(a<0?0:Oa(e))){let o=e.parentNode;if(!o||o.nodeType!=1||Ci(e)||eb.test(e.nodeName)||e.contentEditable=="false")return!1;t=as(e)+(a<0?0:1),e=o}else if(e.nodeType==1){if(e=e.childNodes[t+(a<0?-1:0)],e.contentEditable=="false")return!1;t=a<0?Oa(e):0}else return!1}}function Oa(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function tb(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=Oa(e)}else if(e.parentNode&&!Ci(e))t=as(e),e=e.parentNode;else return null}}function nb(e,t){for(;;){if(e.nodeType==3&&t2),Sa=Nl||(Ea?/Mac/.test(Ea.platform):!1),ib=Ea?/Win/.test(Ea.platform):!1,Za=/Android \d/.test(ja),qo=!!jh&&"webkitFontSmoothing"in jh.documentElement.style,qf=qo?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Xf(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function oo(e,t){return typeof e=="number"?e:e[t]}function Kf(e){let t=e.getBoundingClientRect(),r=t.width/e.offsetWidth||1,i=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*r,top:t.top,bottom:t.top+e.clientHeight*i}}function Jf(e,t,r){let i=e.someProp("scrollThreshold")||0,a=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let u=r||e.dom;u;u=Al(u)){if(u.nodeType!=1)continue;let d=u,f=d==o.body,b=f?Xf(o):Kf(d),E=0,k=0;if(t.topb.bottom-oo(i,"bottom")&&(k=t.bottom-t.top>b.bottom-b.top?t.top+oo(a,"top")-b.top:t.bottom-b.bottom+oo(a,"bottom")),t.leftb.right-oo(i,"right")&&(E=t.right-b.right+oo(a,"right")),E||k)if(f)o.defaultView.scrollBy(E,k);else{let x=d.scrollLeft,R=d.scrollTop;k&&(d.scrollTop+=k),E&&(d.scrollLeft+=E);let N=d.scrollLeft-x,G=d.scrollTop-R;t={left:t.left-N,top:t.top-G,right:t.right-N,bottom:t.bottom-G}}if(f||/^(fixed|sticky)$/.test(getComputedStyle(u).position))break}}function em(e){let t=e.dom.getBoundingClientRect(),r=Math.max(0,t.top),i,a;for(let o=(t.left+t.right)/2,u=r+1;u=r-20){i=d,a=f.top;break}}return{refDOM:i,refTop:a,stack:Eo(e.dom)}}function Eo(e){let t=[],r=e.ownerDocument;for(let i=e;i&&(t.push({dom:i,top:i.scrollTop,left:i.scrollLeft}),e!=r);i=Al(i));return t}function sb({refDOM:e,refTop:t,stack:r}){let i=e?e.getBoundingClientRect().top:0;Na(r,i==0?0:i-t)}function Na(e,t){for(let r=0;r=d){u=Math.max(N.bottom,u),d=Math.min(N.top,d);let G=N.left>t.left?N.left-t.left:N.right=(N.left+N.right)/2?1:0));continue}}else N.top>t.top&&!f&&N.left<=t.left&&N.right>=t.left&&(f=E,b={left:Math.max(N.left,Math.min(N.right,t.left)),top:N.top});!r&&(t.left>=N.right&&t.top>=N.top||t.left>=N.left&&t.top>=N.bottom)&&(o=k+1)}}return!r&&f&&(r=f,a=b,i=0),r&&r.nodeType==3?tm(r,a):!r||i&&r.nodeType==1?{node:e,offset:o}:Rs(r,a)}function tm(e,t){let r=e.nodeValue.length,i=document.createRange();for(let a=0;a=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}function ls(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function us(e,t){let r=e.parentNode;return r&&/^li$/i.test(r.nodeName)&&t.left(u.left+u.right)/2?1:-1}return e.docView.posFromDOM(i,a,o)}function nm(e,t,r,i){let a=-1;for(let o=t,u=!1;o!=e.dom;){let d=e.docView.nearestDesc(o,!0);if(!d)return null;if(d.dom.nodeType==1&&(d.node.isBlock&&d.parent&&!u||!d.contentDOM)){let f=d.dom.getBoundingClientRect();if(d.node.isBlock&&d.parent&&!u&&(u=!0,f.left>i.left||f.top>i.top?a=d.posBefore:(f.right-1?a:e.docView.posFromDOM(t,r,-1)}function rm(e,t,r){let i=e.childNodes.length;if(i&&r.topt.top&&a++}let b;qo&&a&&i.nodeType==1&&(b=i.childNodes[a-1]).nodeType==1&&b.contentEditable=="false"&&b.getBoundingClientRect().top>=t.top&&a--,i==e.dom&&a==i.childNodes.length-1&&i.lastChild.nodeType==1&&t.top>i.lastChild.getBoundingClientRect().bottom?d=e.state.doc.content.size:(a==0||i.nodeType!=1||i.childNodes[a-1].nodeName!="BR")&&(d=nm(e,i,a,t))}d==null&&(d=bd(e,u,t));let f=e.docView.nearestDesc(u,!0);return{pos:d,inside:f?f.posAtStart-f.border:-1}}function Od(e){return e.top=0&&a==i.nodeValue.length?(d--,b=1):r<0?d--:f++,vo(Ds(Va(i,d,f),b),b<0)}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(o==null&&a&&(r<0||a==Oa(i))){let d=i.childNodes[a-1];if(d.nodeType==1)return Wh(d.getBoundingClientRect(),!1)}if(o==null&&a=0)}if(o==null&&a&&(r<0||a==Oa(i))){let d=i.childNodes[a-1],f=d.nodeType==3?Va(d,Oa(d)-(u?0:1)):d.nodeType==1&&(d.nodeName!="BR"||!d.nextSibling)?d:null;if(f)return vo(Ds(f,1),!1)}if(o==null&&a=0)}function vo(e,t){if(e.width==0)return e;let r=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:r,right:r}}function Wh(e,t){if(e.height==0)return e;let r=t?e.top:e.bottom;return{top:r,bottom:r,left:e.left,right:e.right}}function Gh(e,t,r){let i=e.state,a=e.root.activeElement;i!=t&&e.updateState(t),a!=e.dom&&e.focus();try{return r()}finally{i!=t&&e.updateState(i),a!=e.dom&&a&&a.focus()}}function yd(e,t,r){let i=t.selection,a=r=="up"?i.$from:i.$to;return Gh(e,t,()=>{let{node:o}=e.docView.domFromPos(a.pos,r=="up"?-1:1);for(;;){let d=e.docView.nearestDesc(o,!0);if(!d)break;if(d.node.isBlock){o=d.contentDOM||d.dom;break}o=d.dom.parentNode}let u=ab(e,a.pos,1);for(let d=o.firstChild;d;d=d.nextSibling){let f;if(d.nodeType==1)f=d.getClientRects();else if(d.nodeType==3)f=Va(d,0,d.nodeValue.length).getClientRects();else continue;for(let b=0;bE.top+1&&(r=="up"?u.top-E.top>(E.bottom-u.top)*2:E.bottom-u.bottom>(u.bottom-E.top)*2))return!1}}return!0})}const uc=/[\u0590-\u08ac]/;function Dl(e,t,r){let{$head:i}=t.selection;if(!i.parent.isTextblock)return!1;let a=i.parentOffset,o=!a,u=a==i.parent.content.size,d=e.domSelection();return!uc.test(i.parent.textContent)||!d.modify?r=="left"||r=="backward"?o:u:Gh(e,t,()=>{let{focusNode:f,focusOffset:b,anchorNode:E,anchorOffset:k}=e.domSelectionRange(),x=d.caretBidiLevel;d.modify("move",r,"character");let R=i.depth?e.docView.domAfterPos(i.before()):e.dom,{focusNode:N,focusOffset:G}=e.domSelectionRange(),K=N&&!R.contains(N.nodeType==1?N:N.parentNode)||f==N&&b==G;try{d.collapse(E,k),f&&(f!=E||b!=k)&&d.extend&&d.extend(f,b)}catch(ge){}return x!=null&&(d.caretBidiLevel=x),K})}let Xo=null,im=null,Yh=!1;function Ed(e,t,r){return Xo==t&&im==r?Yh:(Xo=t,im=r,Yh=r=="up"||r=="down"?yd(e,t,r):Dl(e,t,r))}const js=0,Il=1,Ra=2,va=3;class Ll{constructor(t,r,i,a){this.parent=t,this.children=r,this.dom=i,this.contentDOM=a,this.dirty=js,i.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,r,i){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let r=0;ras(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))a=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(r==0)for(let o=t;;o=o.parentNode){if(o==this.dom){a=!1;break}if(o.previousSibling)break}if(a==null&&r==t.childNodes.length)for(let o=t;;o=o.parentNode){if(o==this.dom){a=!0;break}if(o.nextSibling)break}}return(a!=null?a:i>0)?this.posAtEnd:this.posAtStart}nearestDesc(t,r=!1){for(let i=!0,a=t;a;a=a.parentNode){let o=this.getDesc(a),u;if(o&&(!r||o.node))if(i&&(u=o.nodeDOM)&&!(u.nodeType==1?u.contains(t.nodeType==1?t:t.parentNode):u==t))i=!1;else return o}}getDesc(t){let r=t.pmViewDesc;for(let i=r;i;i=i.parent)if(i==this)return r}posFromDOM(t,r,i){for(let a=t;a;a=a.parentNode){let o=this.getDesc(a);if(o)return o.localPosFromDOM(t,r,i)}return-1}descAt(t){for(let r=0,i=0;rt||u instanceof cc){a=t-o;break}o=d}if(a)return this.children[i].domFromPos(a-this.children[i].border,r);for(let o;i&&!(o=this.children[i-1]).size&&o instanceof Sd&&o.side>=0;i--);if(r<=0){let o,u=!0;for(;o=i?this.children[i-1]:null,!(!o||o.dom.parentNode==this.contentDOM);i--,u=!1);return o&&r&&u&&!o.border&&!o.domAtom?o.domFromPos(o.size,r):{node:this.contentDOM,offset:o?as(o.dom)+1:0}}else{let o,u=!0;for(;o=i=E&&r<=b-f.border&&f.node&&f.contentDOM&&this.contentDOM.contains(f.contentDOM))return f.parseRange(t,r,E);t=u;for(let k=d;k>0;k--){let x=this.children[k-1];if(x.size&&x.dom.parentNode==this.contentDOM&&!x.emptyChildAt(1)){a=as(x.dom)+1;break}t-=x.size}a==-1&&(a=0)}if(a>-1&&(b>r||d==this.children.length-1)){r=b;for(let E=d+1;ER&&ur){let R=d;d=f,f=R}let x=document.createRange();x.setEnd(f.node,f.offset),x.setStart(d.node,d.offset),b.removeAllRanges(),b.addRange(x)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,r){for(let i=0,a=0;a=i:ti){let d=i+o.border,f=u-o.border;if(t>=d&&r<=f){this.dirty=t==i||r==u?Ra:Il,t==d&&r==f&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=va:o.markDirty(t-d,r-d);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?Ra:va}i=u}this.dirty=Ra}markParentsDirty(){let t=1;for(let r=this.parent;r;r=r.parent,t++){let i=t==1?Ra:Il;r.dirty{if(!o)return a;if(o.parent)return o.parent.posBeforeChild(o)})),!r.type.spec.raw){if(u.nodeType!=1){let d=document.createElement("span");d.appendChild(u),u=d}u.contentEditable="false",u.classList.add("ProseMirror-widget")}super(t,[],u,null),this.widget=r,this.widget=r,o=this}matchesWidget(t){return this.dirty==js&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let r=this.widget.spec.stopEvent;return r?r(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class qh extends Ll{constructor(t,r,i,a){super(t,[],r,null),this.textDOM=i,this.text=a}get size(){return this.text.length}localPosFromDOM(t,r){return t!=this.textDOM?this.posAtStart+(r?this.size:0):this.posAtStart+r}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class ko extends Ll{constructor(t,r,i,a){super(t,[],i,a),this.mark=r}static create(t,r,i,a){let o=a.nodeViews[r.type.name],u=o&&o(r,a,i);return(!u||!u.dom)&&(u=bt.renderSpec(document,r.type.spec.toDOM(r,i))),new ko(t,r,u.dom,u.contentDOM||u.dom)}parseRule(){return this.dirty&va||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=va&&this.mark.eq(t)}markDirty(t,r){if(super.markDirty(t,r),this.dirty!=js){let i=this.parent;for(;!i.node;)i=i.parent;i.dirty0&&(o=tp(o,0,t,i));for(let d=0;d{if(!f)return u;if(f.parent)return f.parent.posBeforeChild(f)},i,a),E=b&&b.dom,k=b&&b.contentDOM;if(r.isText){if(!E)E=document.createTextNode(r.text);else if(E.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else E||({dom:E,contentDOM:k}=bt.renderSpec(document,r.type.spec.toDOM(r)));!k&&!r.isText&&E.nodeName!="BR"&&(E.hasAttribute("contenteditable")||(E.contentEditable="false"),r.type.spec.draggable&&(E.draggable=!0));let x=E;return E=Kh(E,i,r),b?f=new vd(t,r,i,a,E,k||null,x,b,o,u+1):r.isText?new Ml(t,r,i,a,E,x,o):new Ko(t,r,i,a,E,k||null,x,o,u+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let r=this.children.length-1;r>=0;r--){let i=this.children[r];if(this.dom.contains(i.dom.parentNode)){t.contentElement=i.dom.parentNode;break}}t.contentElement||(t.getContent=()=>Ee.empty)}return t}matchesNode(t,r,i){return this.dirty==js&&t.eq(this.node)&&kd(r,this.outerDeco)&&i.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,r){let i=this.node.inlineContent,a=r,o=t.composing?this.localCompositionInfo(t,r):null,u=o&&o.pos>-1?o:null,d=o&&o.pos<0,f=new wd(this,u&&u.node,t);Zs(this.node,this.innerDeco,(b,E,k)=>{b.spec.marks?f.syncToMarks(b.spec.marks,i,t):b.type.side>=0&&!k&&f.syncToMarks(E==this.node.childCount?Pt.none:this.node.child(E).marks,i,t),f.placeWidget(b,t,a)},(b,E,k,x)=>{f.syncToMarks(b.marks,i,t);let R;f.findNodeMatch(b,E,k,x)||d&&t.state.selection.from>a&&t.state.selection.to-1&&f.updateNodeAt(b,E,k,R,t)||f.updateNextNode(b,E,k,t,x,a)||f.addNode(b,E,k,t,a),a+=b.nodeSize}),f.syncToMarks([],i,t),this.node.isTextblock&&f.addTextblockHacks(),f.destroyRest(),(f.changed||this.dirty==Ra)&&(u&&this.protectLocalComposition(t,u),sm(this.contentDOM,this.children,t),Nl&&aS(this.dom))}localCompositionInfo(t,r){let{from:i,to:a}=t.state.selection;if(!(t.state.selection instanceof Be)||ir+this.node.content.size)return null;let o=t.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let u=o.nodeValue,d=bi(this.node.content,u,i-r,a-r);return d<0?null:{node:o,pos:d,text:u}}else return{node:o,pos:-1,text:""}}protectLocalComposition(t,{node:r,pos:i,text:a}){if(this.getDesc(r))return;let o=r;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let u=new qh(this,o,r,a);t.input.compositionNodes.push(u),this.children=tp(this.children,i,i+a.length,t,u)}update(t,r,i,a){return this.dirty==va||!t.sameMarkup(this.node)?!1:(this.updateInner(t,r,i,a),!0)}updateInner(t,r,i,a){this.updateOuterDeco(r),this.node=t,this.innerDeco=i,this.contentDOM&&this.updateChildren(a,this.posAtStart),this.dirty=js}updateOuterDeco(t){if(kd(t,this.outerDeco))return;let r=this.nodeDOM.nodeType!=1,i=this.dom;this.dom=el(this.dom,this.nodeDOM,Xh(this.outerDeco,this.node,r),Xh(t,this.node,r)),this.dom!=i&&(i.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function ks(e,t,r,i,a){Kh(i,t,e);let o=new Ko(void 0,e,t,r,i,i,i,a,0);return o.contentDOM&&o.updateChildren(a,0),o}class Ml extends Ko{constructor(t,r,i,a,o,u,d){super(t,r,i,a,o,null,u,d,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,r,i,a){return this.dirty==va||this.dirty!=js&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(r),(this.dirty!=js||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,a.trackWrites==this.nodeDOM&&(a.trackWrites=null)),this.node=t,this.dirty=js,!0)}inParent(){let t=this.parent.contentDOM;for(let r=this.nodeDOM;r;r=r.parentNode)if(r==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,r,i){return t==this.nodeDOM?this.posAtStart+Math.min(r,this.node.text.length):super.localPosFromDOM(t,r,i)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,r,i){let a=this.node.cut(t,r),o=document.createTextNode(a.text);return new Ml(this.parent,a,this.outerDeco,this.innerDeco,o,o,i)}markDirty(t,r){super.markDirty(t,r),this.dom!=this.nodeDOM&&(t==0||r==this.nodeDOM.nodeValue.length)&&(this.dirty=va)}get domAtom(){return!1}isText(t){return this.node.text==t}}class cc extends Ll{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==js&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class vd extends Ko{constructor(t,r,i,a,o,u,d,f,b,E){super(t,r,i,a,o,u,d,b,E),this.spec=f}update(t,r,i,a){if(this.dirty==va)return!1;if(this.spec.update){let o=this.spec.update(t,r,i);return o&&this.updateInner(t,r,i,a),o}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,r,i,a)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,r,i,a){this.spec.setSelection?this.spec.setSelection(t,r,i):super.setSelection(t,r,i,a)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function sm(e,t,r){let i=e.firstChild,a=!1;for(let o=0;o>1,u=Math.min(o,t.length);for(;a-1)d>this.index&&(this.changed=!0,this.destroyBetween(this.index,d)),this.top=this.top.children[this.index];else{let f=ko.create(this.top,t[o],r,i);this.top.children.splice(this.index,0,f),this.top=f,this.changed=!0}this.index=0,o++}}findNodeMatch(t,r,i,a){let o=-1,u;if(a>=this.preMatch.index&&(u=this.preMatch.matches[a-this.preMatch.index]).parent==this.top&&u.matchesNode(t,r,i))o=this.top.children.indexOf(u,this.index);else for(let d=this.index,f=Math.min(this.top.children.length,d+5);d0;){let d;for(;;)if(i){let b=r.children[i-1];if(b instanceof ko)r=b,i=b.children.length;else{d=b,i--;break}}else{if(r==t)break e;i=r.parent.children.indexOf(r),r=r.parent}let f=d.node;if(f){if(f!=e.child(a-1))break;--a,o.set(d,a),u.push(d)}}return{index:a,matched:o,matches:u.reverse()}}function ep(e,t){return e.type.side-t.type.side}function Zs(e,t,r,i){let a=t.locals(e),o=0;if(a.length==0){for(let b=0;bo;)d.push(a[u++]);let N=o+x.nodeSize;if(x.isText){let K=N;u!K.inline):d.slice();i(x,G,t.forChild(o,x),R),o=N}}function aS(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function bi(e,t,r,i){for(let a=0,o=0;a=r){if(o>=i&&f.slice(i-t.length-d,i-d)==t)return i-t.length;let b=d=0&&b+t.length+d>=r)return d+b;if(r==i&&f.length>=i+t.length-d&&f.slice(i-d,i-d+t.length)==t)return i}}return-1}function tp(e,t,r,i,a){let o=[];for(let u=0,d=0;u=r||E<=t?o.push(f):(br&&o.push(f.slice(r-b,f.size,i)))}return o}function dc(e,t=null){let r=e.domSelectionRange(),i=e.state.doc;if(!r.focusNode)return null;let a=e.docView.nearestDesc(r.focusNode),o=a&&a.size==0,u=e.docView.posFromDOM(r.focusNode,r.focusOffset,1);if(u<0)return null;let d=i.resolve(u),f,b;if(oc(r)){for(f=d;a&&!a.node;)a=a.parent;let E=a.node;if(a&&E.isAtom&&ct.isSelectable(E)&&a.parent&&!(E.isInline&&rb(r.focusNode,r.focusOffset,a.dom))){let k=a.posBefore;b=new ct(u==k?d:i.resolve(k))}}else{let E=e.docView.posFromDOM(r.anchorNode,r.anchorOffset,1);if(E<0)return null;f=i.resolve(E)}if(!b){let E=t=="pointer"||e.state.selection.head{(r.anchorNode!=i||r.anchorOffset!=a)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!hc(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function lb(e){let t=e.domSelection(),r=document.createRange(),i=e.cursorWrapper.dom,a=i.nodeName=="IMG";a?r.setEnd(i.parentNode,as(i)+1):r.setEnd(i,0),r.collapse(!1),t.removeAllRanges(),t.addRange(r),!a&&!e.state.selection.visible&&vs&&ao<=11&&(i.disabled=!0,i.disabled=!1)}function om(e,t){if(t instanceof ct){let r=e.docView.descAt(t.from);r!=e.lastSelectedViewDesc&&(rp(e),r&&r.selectNode(),e.lastSelectedViewDesc=r)}else rp(e)}function rp(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Ya(e,t,r,i){return e.someProp("createSelectionBetween",a=>a(e,t,r))||Be.between(t,r,i)}function lm(e){return e.editable&&!e.hasFocus()?!1:ip(e)}function ip(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch(r){return!1}}function Fl(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),r=e.domSelectionRange();return _l(t.node,t.offset,r.anchorNode,r.anchorOffset)}function Bl(e,t){let{$anchor:r,$head:i}=e.selection,a=t>0?r.max(i):r.min(i),o=a.parent.inlineContent?a.depth?e.doc.resolve(t>0?a.after():a.before()):null:a;return o&&B.findFrom(o,t)}function sa(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function sp(e,t,r){let i=e.state.selection;if(i instanceof Be)if(r.indexOf("s")>-1){let{$head:a}=i,o=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let u=e.state.doc.resolve(a.pos+o.nodeSize*(t<0?-1:1));return sa(e,new Be(i.$anchor,u))}else if(i.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let a=Bl(e.state,t);return a&&a instanceof ct?sa(e,a):!1}else if(!(Sa&&r.indexOf("m")>-1)){let a=i.$head,o=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter,u;if(!o||o.isText)return!1;let d=t<0?a.pos-o.nodeSize:a.pos;return o.isAtom||(u=e.docView.descAt(d))&&!u.contentDOM?ct.isSelectable(o)?sa(e,new ct(t<0?e.state.doc.resolve(a.pos-o.nodeSize):a)):qo?sa(e,new Be(e.state.doc.resolve(t<0?d:d+o.nodeSize))):!1:!1}}else return!1;else{if(i instanceof ct&&i.node.isInline)return sa(e,new Be(t>0?i.$to:i.$from));{let a=Bl(e.state,t);return a?sa(e,a):!1}}}function yu(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function pc(e,t){let r=e.pmViewDesc;return r&&r.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function Eu(e,t){return t<0?ub(e):Td(e)}function ub(e){let t=e.domSelectionRange(),r=t.focusNode,i=t.focusOffset;if(!r)return;let a,o,u=!1;for(ra&&r.nodeType==1&&i0){if(r.nodeType!=1)break;{let d=r.childNodes[i-1];if(pc(d,-1))a=r,o=--i;else if(d.nodeType==3)r=d,i=r.nodeValue.length;else break}}else{if(ap(r))break;{let d=r.previousSibling;for(;d&&pc(d,-1);)a=r.parentNode,o=as(d),d=d.previousSibling;if(d)r=d,i=yu(r);else{if(r=r.parentNode,r==e.dom)break;i=0}}}u?Cd(e,r,i):a&&Cd(e,a,o)}function Td(e){let t=e.domSelectionRange(),r=t.focusNode,i=t.focusOffset;if(!r)return;let a=yu(r),o,u;for(;;)if(i{e.state==a&&Ga(e)},50)}function cb(e,t){let r=e.state.doc.resolve(t);if(!(Vs||ib)&&r.parent.inlineContent){let i=e.coordsAtPos(t);if(t>r.start()){let a=e.coordsAtPos(t-1),o=(a.top+a.bottom)/2;if(o>i.top&&o1)return a.lefti.top&&o1)return a.left>i.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function Ad(e,t,r){let i=e.state.selection;if(i instanceof Be&&!i.empty||r.indexOf("s")>-1||Sa&&r.indexOf("m")>-1)return!1;let{$from:a,$to:o}=i;if(!a.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let u=Bl(e.state,t);if(u&&u instanceof ct)return sa(e,u)}if(!a.parent.inlineContent){let u=t<0?a:o,d=i instanceof Tn?B.near(u,t):B.findFrom(u,t);return d?sa(e,d):!1}return!1}function fc(e,t){if(!(e.state.selection instanceof Be))return!0;let{$head:r,$anchor:i,empty:a}=e.state.selection;if(!r.sameParent(i))return!0;if(!a)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!r.textOffset&&(t<0?r.nodeBefore:r.nodeAfter);if(o&&!o.isText){let u=e.state.tr;return t<0?u.delete(r.pos-o.nodeSize,r.pos):u.delete(r.pos,r.pos+o.nodeSize),e.dispatch(u),!0}return!1}function um(e,t,r){e.domObserver.stop(),t.contentEditable=r,e.domObserver.start()}function oS(e){if(!ia||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:r}=e.domSelectionRange();if(t&&t.nodeType==1&&r==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let i=t.firstChild;um(e,i,"true"),setTimeout(()=>um(e,i,"false"),20)}return!1}function _d(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function lS(e,t){let r=t.keyCode,i=_d(t);if(r==8||Sa&&r==72&&i=="c")return fc(e,-1)||Eu(e,-1);if(r==46&&!t.shiftKey||Sa&&r==68&&i=="c")return fc(e,1)||Eu(e,1);if(r==13||r==27)return!0;if(r==37||Sa&&r==66&&i=="c"){let a=r==37?cb(e,e.state.selection.from)=="ltr"?-1:1:-1;return sp(e,a,i)||Eu(e,a)}else if(r==39||Sa&&r==70&&i=="c"){let a=r==39?cb(e,e.state.selection.from)=="ltr"?1:-1:1;return sp(e,a,i)||Eu(e,a)}else{if(r==38||Sa&&r==80&&i=="c")return Ad(e,-1,i)||Eu(e,-1);if(r==40||Sa&&r==78&&i=="c")return oS(e)||Ad(e,1,i)||Eu(e,1);if(i==(Sa?"m":"c")&&(r==66||r==73||r==89||r==90))return!0}return!1}function zn(e,t){e.someProp("transformCopied",R=>{t=R(t,e)});let r=[],{content:i,openStart:a,openEnd:o}=t;for(;a>1&&o>1&&i.childCount==1&&i.firstChild.childCount==1;){a--,o--;let R=i.firstChild;r.push(R.type.name,R.attrs!=R.type.defaultAttrs?R.attrs:null),i=R.content}let u=e.someProp("clipboardSerializer")||bt.fromSchema(e.state.schema),d=cp(),f=d.createElement("div");f.appendChild(u.serializeFragment(i,{document:d}));let b=f.firstChild,E,k=0;for(;b&&b.nodeType==1&&(E=Rd[b.nodeName.toLowerCase()]);){for(let R=E.length-1;R>=0;R--){let N=d.createElement(E[R]);for(;f.firstChild;)N.appendChild(f.firstChild);f.appendChild(N),k++}b=f.firstChild}b&&b.nodeType==1&&b.setAttribute("data-pm-slice",`${a} ${o}${k?` -${k}`:""} ${JSON.stringify(r)}`);let x=e.someProp("clipboardTextSerializer",R=>R(t,e))||t.content.textBetween(0,t.content.size,` - -`);return{dom:f,text:x}}function $l(e,t,r,i,a){let o=a.parent.type.spec.code,u,d;if(!r&&!t)return null;let f=t&&(i||o||!r);if(f){if(e.someProp("transformPastedText",x=>{t=x(t,o||i,e)}),o)return t?new gt(Ee.from(e.state.schema.text(t.replace(/\r\n?/g,` -`))),0,0):gt.empty;let k=e.someProp("clipboardTextParser",x=>x(t,a,i,e));if(k)d=k;else{let x=a.marks(),{schema:R}=e.state,N=bt.fromSchema(R);u=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(G=>{let K=u.appendChild(document.createElement("p"));G&&K.appendChild(N.serializeNode(R.text(G,x)))})}}else e.someProp("transformPastedHTML",k=>{r=k(r,e)}),u=ku(r),qo&&dp(u);let b=u&&u.querySelector("[data-pm-slice]"),E=b&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(b.getAttribute("data-pm-slice")||"");if(E&&E[3])for(let k=+E[3];k>0;k--){let x=u.firstChild;for(;x&&x.nodeType!=1;)x=x.nextSibling;if(!x)break;u=x}if(d||(d=(e.someProp("clipboardParser")||e.someProp("domParser")||Rt.fromSchema(e.state.schema)).parseSlice(u,{preserveWhitespace:!!(f||E),context:a,ruleFromNode(k){return k.nodeName=="BR"&&!k.nextSibling&&k.parentNode&&!lp.test(k.parentNode.nodeName)?{ignore:!0}:null}})),E)d=gc(up(d,+E[1],+E[2]),E[4]);else if(d=gt.maxOpen(cm(d.content,a),!0),d.openStart||d.openEnd){let k=0,x=0;for(let R=d.content.firstChild;k{d=k(d,e)}),d}const lp=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function cm(e,t){if(e.childCount<2)return e;for(let r=t.depth;r>=0;r--){let i=t.node(r).contentMatchAt(t.index(r)),a,o=[];if(e.forEach(u=>{if(!o)return;let d=i.findWrapping(u.type),f;if(!d)return o=null;if(f=o.length&&a.length&&Su(d,a,u,o[o.length-1],0))o[o.length-1]=f;else{o.length&&(o[o.length-1]=Ul(o[o.length-1],a.length));let b=Nd(u,d);o.push(b),i=i.matchType(b.type),a=d}}),o)return Ee.from(o)}return e}function Nd(e,t,r=0){for(let i=t.length-1;i>=r;i--)e=t[i].create(null,Ee.from(e));return e}function Su(e,t,r,i,a){if(a1&&(o=0),a=r&&(d=t<0?u.contentMatchAt(0).fillBefore(d,o<=a).append(d):d.append(u.contentMatchAt(u.childCount).fillBefore(Ee.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,u.copy(d))}function up(e,t,r){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let r=cp().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(e),a;if((a=i&&Rd[i[1].toLowerCase()])&&(e=a.map(o=>"<"+o+">").join("")+e+a.map(o=>"").reverse().join("")),r.innerHTML=e,a)for(let o=0;o=0;d-=2){let f=r.nodes[i[d]];if(!f||f.hasRequiredAttrs())break;a=Ee.from(f.create(i[d+1],a)),o++,u++}return new gt(a,o,u)}const Ws={},Is={},uS={touchstart:!0,touchmove:!0};class db{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function hb(e){for(let t in Ws){let r=Ws[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=i=>{dm(e,i)&&!pp(e,i)&&(e.editable||!(i.type in Is))&&r(e,i)},uS[t]?{passive:!0}:void 0)}ia&&e.dom.addEventListener("input",()=>null),hp(e)}function wo(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function cS(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function hp(e){e.someProp("handleDOMEvents",t=>{for(let r in t)e.input.eventHandlers[r]||e.dom.addEventListener(r,e.input.eventHandlers[r]=i=>pp(e,i))})}function pp(e,t){return e.someProp("handleDOMEvents",r=>{let i=r[t.type];return i?i(e,t)||t.defaultPrevented:!1})}function dm(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let r=t.target;r!=e.dom;r=r.parentNode)if(!r||r.nodeType==11||r.pmViewDesc&&r.pmViewDesc.stopEvent(t))return!1;return!0}function pb(e,t){!pp(e,t)&&Ws[t.type]&&(e.editable||!(t.type in Is))&&Ws[t.type](e,t)}Is.keydown=(e,t)=>{let r=t;if(e.input.shiftKey=r.keyCode==16||r.shiftKey,!gp(e,r)&&(e.input.lastKeyCode=r.keyCode,e.input.lastKeyCodeTime=Date.now(),!(Za&&Vs&&r.keyCode==13)))if(r.keyCode!=229&&e.domObserver.forceFlush(),Nl&&r.keyCode==13&&!r.ctrlKey&&!r.altKey&&!r.metaKey){let i=Date.now();e.input.lastIOSEnter=i,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==i&&(e.someProp("handleKeyDown",a=>a(e,Yo(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",i=>i(e,r))||lS(e,r)?r.preventDefault():wo(e,"key")},Is.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},Is.keypress=(e,t)=>{let r=t;if(gp(e,r)||!r.charCode||r.ctrlKey&&!r.altKey||Sa&&r.metaKey)return;if(e.someProp("handleKeyPress",a=>a(e,r))){r.preventDefault();return}let i=e.state.selection;if(!(i instanceof Be)||!i.$from.sameParent(i.$to)){let a=String.fromCharCode(r.charCode);!/[\r\n]/.test(a)&&!e.someProp("handleTextInput",o=>o(e,i.$from.pos,i.$to.pos,a))&&e.dispatch(e.state.tr.insertText(a).scrollIntoView()),r.preventDefault()}};function Dd(e){return{left:e.clientX,top:e.clientY}}function mr(e,t){let r=t.x-e.clientX,i=t.y-e.clientY;return r*r+i*i<100}function fp(e,t,r,i,a){if(i==-1)return!1;let o=e.state.doc.resolve(i);for(let u=o.depth+1;u>0;u--)if(e.someProp(t,d=>u>o.depth?d(e,r,o.nodeAfter,o.before(u),a,!0):d(e,r,o.node(u),o.before(u),a,!1)))return!0;return!1}function Hl(e,t,r){e.focused||e.focus();let i=e.state.tr.setSelection(t);r=="pointer"&&i.setMeta("pointer",!0),e.dispatch(i)}function hm(e,t){if(t==-1)return!1;let r=e.state.doc.resolve(t),i=r.nodeAfter;return i&&i.isAtom&&ct.isSelectable(i)?(Hl(e,new ct(r),"pointer"),!0):!1}function xo(e,t){if(t==-1)return!1;let r=e.state.selection,i,a;r instanceof ct&&(i=r.node);let o=e.state.doc.resolve(t);for(let u=o.depth+1;u>0;u--){let d=u>o.depth?o.nodeAfter:o.node(u);if(ct.isSelectable(d)){i&&r.$from.depth>0&&u>=r.$from.depth&&o.before(r.$from.depth+1)==r.$from.pos?a=o.before(r.$from.depth):a=o.before(u);break}}return a!=null?(Hl(e,ct.create(e.state.doc,a),"pointer"),!0):!1}function fb(e,t,r,i,a){return fp(e,"handleClickOn",t,r,i)||e.someProp("handleClick",o=>o(e,t,i))||(a?xo(e,r):hm(e,r))}function mp(e,t,r,i){return fp(e,"handleDoubleClickOn",t,r,i)||e.someProp("handleDoubleClick",a=>a(e,t,i))}function mb(e,t,r,i){return fp(e,"handleTripleClickOn",t,r,i)||e.someProp("handleTripleClick",a=>a(e,t,i))||gb(e,r,i)}function gb(e,t,r){if(r.button!=0)return!1;let i=e.state.doc;if(t==-1)return i.inlineContent?(Hl(e,Be.create(i,0,i.content.size),"pointer"),!0):!1;let a=i.resolve(t);for(let o=a.depth+1;o>0;o--){let u=o>a.depth?a.nodeAfter:a.node(o),d=a.before(o);if(u.inlineContent)Hl(e,Be.create(i,d+1,d+1+u.content.size),"pointer");else if(ct.isSelectable(u))Hl(e,ct.create(i,d),"pointer");else continue;return!0}}function zl(e){return Ql(e)}const wu=Sa?"metaKey":"ctrlKey";Ws.mousedown=(e,t)=>{let r=t;e.input.shiftKey=r.shiftKey;let i=zl(e),a=Date.now(),o="singleClick";a-e.input.lastClick.time<500&&mr(r,e.input.lastClick)&&!r[wu]&&(e.input.lastClick.type=="singleClick"?o="doubleClick":e.input.lastClick.type=="doubleClick"&&(o="tripleClick")),e.input.lastClick={time:a,x:r.clientX,y:r.clientY,type:o};let u=e.posAtCoords(Dd(r));u&&(o=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new dS(e,u,r,!!i)):(o=="doubleClick"?mp:mb)(e,u.pos,u.inside,r)?r.preventDefault():wo(e,"pointer"))};class dS{constructor(t,r,i,a){this.view=t,this.pos=r,this.event=i,this.flushed=a,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!i[wu],this.allowDefault=i.shiftKey;let o,u;if(r.inside>-1)o=t.state.doc.nodeAt(r.inside),u=r.inside;else{let E=t.state.doc.resolve(r.pos);o=E.parent,u=E.depth?E.before():0}const d=a?null:i.target,f=d?t.docView.nearestDesc(d,!0):null;this.target=f?f.dom:null;let{selection:b}=t.state;(i.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||b instanceof ct&&b.from<=u&&b.to>u)&&(this.mightDrag={node:o,pos:u,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&ra&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),wo(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Ga(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let r=this.pos;this.view.state.doc!=this.startDoc&&(r=this.view.posAtCoords(Dd(t))),this.updateAllowDefault(t),this.allowDefault||!r?wo(this.view,"pointer"):fb(this.view,r.pos,r.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||ia&&this.mightDrag&&!this.mightDrag.node.isAtom||Vs&&!this.view.state.selection.visible&&Math.min(Math.abs(r.pos-this.view.state.selection.from),Math.abs(r.pos-this.view.state.selection.to))<=2)?(Hl(this.view,B.near(this.view.state.doc.resolve(r.pos)),"pointer"),t.preventDefault()):wo(this.view,"pointer")}move(t){this.updateAllowDefault(t),wo(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}Ws.touchstart=e=>{e.input.lastTouch=Date.now(),zl(e),wo(e,"pointer")},Ws.touchmove=e=>{e.input.lastTouch=Date.now(),wo(e,"pointer")},Ws.contextmenu=e=>zl(e);function gp(e,t){return e.composing?!0:ia&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const bp=Za?5e3:-1;Is.compositionstart=Is.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,r=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!r.textOffset&&r.parentOffset&&r.nodeBefore.marks.some(i=>i.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||r.marks(),Ql(e,!0),e.markCursor=null;else if(Ql(e),ra&&t.selection.empty&&r.parentOffset&&!r.textOffset&&r.nodeBefore.marks.length){let i=e.domSelectionRange();for(let a=i.focusNode,o=i.focusOffset;a&&a.nodeType==1&&o!=0;){let u=o<0?a.lastChild:a.childNodes[o-1];if(!u)break;if(u.nodeType==3){e.domSelection().collapse(u,u.nodeValue.length);break}else a=u,o=-1}}e.input.composing=!0}Id(e,bp)},Is.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,Id(e,20))};function Id(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Ql(e),t))}function bc(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Oc());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Ld(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let r=tb(t.focusNode,t.focusOffset),i=nb(t.focusNode,t.focusOffset);if(r&&i&&r!=i){let a=i.pmViewDesc;if(!a||!a.isText(i.nodeValue))return i;if(e.input.compositionNode==i){let o=r.pmViewDesc;if(!(!o||!o.isText(r.nodeValue)))return i}}return r}function Oc(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function Ql(e,t=!1){if(!(Za&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),bc(e),t||e.docView&&e.docView.dirty){let r=dc(e);return r&&!r.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(r)):e.updateState(e.state),!0}return!1}}function yc(e,t){if(!e.dom.parentNode)return;let r=e.dom.parentNode.appendChild(document.createElement("div"));r.appendChild(t),r.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),a=document.createRange();a.selectNodeContents(t),e.dom.blur(),i.removeAllRanges(),i.addRange(a),setTimeout(()=>{r.parentNode&&r.parentNode.removeChild(r),e.focus()},50)}const Ki=vs&&ao<15||Nl&&qf<604;Ws.copy=Is.cut=(e,t)=>{let r=t,i=e.state.selection,a=r.type=="cut";if(i.empty)return;let o=Ki?null:r.clipboardData,u=i.content(),{dom:d,text:f}=zn(e,u);o?(r.preventDefault(),o.clearData(),o.setData("text/html",d.innerHTML),o.setData("text/plain",f)):yc(e,d),a&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function xu(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function bb(e,t){if(!e.dom.parentNode)return;let r=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,i=e.dom.parentNode.appendChild(document.createElement(r?"textarea":"div"));r||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus();let a=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),i.parentNode&&i.parentNode.removeChild(i),r?To(e,i.value,null,a,t):To(e,i.textContent,i.innerHTML,a,t)},50)}function To(e,t,r,i,a){let o=$l(e,t,r,i,e.state.selection.$from);if(e.someProp("handlePaste",f=>f(e,a,o||gt.empty)))return!0;if(!o)return!1;let u=xu(o),d=u?e.state.tr.replaceSelectionWith(u,i):e.state.tr.replaceSelection(o);return e.dispatch(d.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function pm(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let r=e.getData("text/uri-list");return r?r.replace(/\r?\n/g," "):""}Is.paste=(e,t)=>{let r=t;if(e.composing&&!Za)return;let i=Ki?null:r.clipboardData,a=e.input.shiftKey&&e.input.lastKeyCode!=45;i&&To(e,pm(i),i.getData("text/html"),a,r)?r.preventDefault():bb(e,r)};class Md{constructor(t,r,i){this.slice=t,this.move=r,this.node=i}}const fm=Sa?"altKey":"ctrlKey";Ws.dragstart=(e,t)=>{let r=t,i=e.input.mouseDown;if(i&&i.done(),!r.dataTransfer)return;let a=e.state.selection,o=a.empty?null:e.posAtCoords(Dd(r)),u;if(!(o&&o.pos>=a.from&&o.pos<=(a instanceof ct?a.to-1:a.to))){if(i&&i.mightDrag)u=ct.create(e.state.doc,i.mightDrag.pos);else if(r.target&&r.target.nodeType==1){let E=e.docView.nearestDesc(r.target,!0);E&&E.node.type.spec.draggable&&E!=e.docView&&(u=ct.create(e.state.doc,E.posBefore))}}let d=(u||e.state.selection).content(),{dom:f,text:b}=zn(e,d);r.dataTransfer.clearData(),r.dataTransfer.setData(Ki?"Text":"text/html",f.innerHTML),r.dataTransfer.effectAllowed="copyMove",Ki||r.dataTransfer.setData("text/plain",b),e.dragging=new Md(d,!r[fm],u)},Ws.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},Is.dragover=Is.dragenter=(e,t)=>t.preventDefault(),Is.drop=(e,t)=>{let r=t,i=e.dragging;if(e.dragging=null,!r.dataTransfer)return;let a=e.posAtCoords(Dd(r));if(!a)return;let o=e.state.doc.resolve(a.pos),u=i&&i.slice;u?e.someProp("transformPasted",N=>{u=N(u,e)}):u=$l(e,pm(r.dataTransfer),Ki?null:r.dataTransfer.getData("text/html"),!1,o);let d=!!(i&&!r[fm]);if(e.someProp("handleDrop",N=>N(e,r,u||gt.empty,d))){r.preventDefault();return}if(!u)return;r.preventDefault();let f=u?oe(e.state.doc,o.pos,u):o.pos;f==null&&(f=o.pos);let b=e.state.tr;if(d){let{node:N}=i;N?N.replace(b):b.deleteSelection()}let E=b.mapping.map(f),k=u.openStart==0&&u.openEnd==0&&u.content.childCount==1,x=b.doc;if(k?b.replaceRangeWith(E,E,u.content.firstChild):b.replaceRange(E,E,u),b.doc.eq(x))return;let R=b.doc.resolve(E);if(k&&ct.isSelectable(u.content.firstChild)&&R.nodeAfter&&R.nodeAfter.sameMarkup(u.content.firstChild))b.setSelection(new ct(R));else{let N=b.mapping.map(f);b.mapping.maps[b.mapping.maps.length-1].forEach((G,K,ge,de)=>N=de),b.setSelection(Ya(e,R,b.doc.resolve(N)))}e.focus(),e.dispatch(b.setMeta("uiEvent","drop"))},Ws.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Ga(e)},20))},Ws.blur=(e,t)=>{let r=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),r.relatedTarget&&e.dom.contains(r.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},Ws.beforeinput=(e,t)=>{if(Vs&&Za&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",a=>a(e,Yo(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in Is)Ws[e]=Is[e];function Ec(e,t){if(e==t)return!0;for(let r in e)if(e[r]!==t[r])return!1;for(let r in t)if(!(r in e))return!1;return!0}class Op{constructor(t,r){this.toDOM=t,this.spec=r||Tu,this.side=this.spec.side||0}map(t,r,i,a){let{pos:o,deleted:u}=t.mapResult(r.from+a,this.side<0?-1:1);return u?null:new cs(o-i,o-i,this)}valid(){return!0}eq(t){return this==t||t instanceof Op&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Ec(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class qa{constructor(t,r){this.attrs=t,this.spec=r||Tu}map(t,r,i,a){let o=t.map(r.from+a,this.spec.inclusiveStart?-1:1)-i,u=t.map(r.to+a,this.spec.inclusiveEnd?1:-1)-i;return o>=u?null:new cs(o,u,this)}valid(t,r){return r.from=t&&(!o||o(d.spec))&&i.push(d.copy(d.from+a,d.to+a))}for(let u=0;ut){let d=this.children[u]+1;this.children[u+2].findInner(t-d,r-d,i,a+d,o)}}map(t,r,i){return this==Ls||t.maps.length==0?this:this.mapInner(t,r,0,0,i||Tu)}mapInner(t,r,i,a,o){let u;for(let d=0;d{let b=f+i,E;if(E=Co(r,d,b)){for(a||(a=this.children.slice());od&&k.to=t){this.children[d]==t&&(i=this.children[d+2]);break}let o=t+1,u=o+r.content.size;for(let d=0;do&&f.type instanceof qa){let b=Math.max(o,f.from)-o,E=Math.min(u,f.to)-o;ba.map(t,r,Tu));return Kr.from(i)}forChild(t,r){if(r.isLeaf)return Ai.empty;let i=[];for(let a=0;ar instanceof Ai)?t:t.reduce((r,i)=>r.concat(i instanceof Ai?i:i.members),[]))}}}function Da(e,t,r,i,a,o,u){let d=e.slice();for(let b=0,E=o;b{let K=G-N-(R-x);for(let ge=0;gede+E-k)continue;let xe=d[ge]+E-k;R>=xe?d[ge+1]=x<=xe?-2:-1:x>=E&&K&&(d[ge]+=K,d[ge+1]+=K)}k+=K}),E=r.maps[b].map(E,-1)}let f=!1;for(let b=0;b=i.content.size){f=!0;continue}let x=r.map(e[b+1]+o,-1),R=x-a,{index:N,offset:G}=i.content.findIndex(k),K=i.maybeChild(N);if(K&&G==k&&G+K.nodeSize==R){let ge=d[b+2].mapInner(r,K,E+1,e[b]+o+1,u);ge!=Ls?(d[b]=k,d[b+1]=R,d[b+2]=ge):(d[b+1]=-2,f=!0)}else f=!0}if(f){let b=Ia(d,e,t,r,a,o,u),E=zi(b,i,0,u);t=E.local;for(let k=0;kr&&u.to{let b=Co(e,d,f+r);if(b){o=!0;let E=zi(b,d,r+f+1,i);E!=Ls&&a.push(f,f+d.nodeSize,E)}});let u=lo(o?rl(e):e,-r).sort(ua);for(let d=0;d0;)t++;e.splice(t,0,r)}function Au(e){let t=[];return e.someProp("decorations",r=>{let i=r(e.state);i&&i!=Ls&&t.push(i)}),e.cursorWrapper&&t.push(Ai.create(e.state.doc,[e.cursorWrapper.deco])),Kr.from(t)}const sl={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},_u=vs&&ao<=11;class Ms{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class Vl{constructor(t,r){this.view=t,this.handleDOMChange=r,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Ms,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(i=>{for(let a=0;aa.type=="childList"&&a.removedNodes.length||a.type=="characterData"&&a.oldValue.length>a.target.nodeValue.length)?this.flushSoon():this.flush()}),_u&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,sl)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let r=0;rthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(lm(this.view)){if(this.suppressingSelectionUpdates)return Ga(this.view);if(vs&&ao<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&_l(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let r=new Set,i;for(let o=t.focusNode;o;o=Al(o))r.add(o);for(let o=t.anchorNode;o;o=Al(o))if(r.has(o)){i=o;break}let a=i&&this.view.docView.nearestDesc(i);if(a&&a.ignoreMutation({type:"selection",target:i.nodeType==3?i.parentNode:i}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let r=this.pendingRecords();r.length&&(this.queue=[]);let i=t.domSelectionRange(),a=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&lm(t)&&!this.ignoreSelectionChange(i),o=-1,u=-1,d=!1,f=[];if(t.editable)for(let E=0;E1){let E=f.filter(k=>k.nodeName=="BR");if(E.length==2){let k=E[0],x=E[1];k.parentNode&&k.parentNode.parentNode==x.parentNode?x.remove():k.remove()}}let b=null;o<0&&a&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||a)&&(o>-1&&(t.docView.markDirty(o,u),vc(t)),this.handleDOMChange(o,u,d,f),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(i)||Ga(t),this.currentSelection.set(i))}registerMutation(t,r){if(r.indexOf(t.target)>-1)return null;let i=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(i==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!i||i.ignoreMutation(t))return null;if(t.type=="childList"){for(let E=0;Ea;K--){let ge=i.childNodes[K-1],de=ge.pmViewDesc;if(ge.nodeName=="BR"&&!de){o=K;break}if(!de||de.size)break}let k=e.state.doc,x=e.someProp("domParser")||Rt.fromSchema(e.state.schema),R=k.resolve(u),N=null,G=x.parse(i,{topNode:R.parent,topMatch:R.parent.contentMatchAt(R.index()),topOpen:!0,from:a,to:o,preserveWhitespace:R.parent.type.whitespace=="pre"?"full":!0,findPositions:b,ruleFromNode:Ru,context:R});if(b&&b[0].pos!=null){let K=b[0].pos,ge=b[1]&&b[1].pos;ge==null&&(ge=K),N={anchor:K+u,head:ge+u}}return{doc:G,sel:N,from:u,to:d}}function Ru(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(ia&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let r=document.createElement("div");return r.appendChild(document.createElement("li")),{skip:r}}else if(e.parentNode.lastChild==e||ia&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Pd=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Fd(e,t,r,i,a){let o=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let St=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,xn=dc(e,St);if(xn&&!e.state.selection.eq(xn)){if(Vs&&Za&&e.input.lastKeyCode===13&&Date.now()-100Xn(e,Yo(13,"Enter"))))return;let tr=e.state.tr.setSelection(xn);St=="pointer"?tr.setMeta("pointer",!0):St=="key"&&tr.scrollIntoView(),o&&tr.setMeta("composition",o),e.dispatch(tr)}return}let u=e.state.doc.resolve(t),d=u.sharedDepth(r);t=u.before(d+1),r=e.state.doc.resolve(r).after(d+1);let f=e.state.selection,b=jl(e,t,r),E=e.state.doc,k=E.slice(b.from,b.to),x,R;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||Za)&&a.some(St=>St.nodeType==1&&!Pd.test(St.nodeName))&&(!N||N.endA>=N.endB)&&e.someProp("handleKeyDown",St=>St(e,Yo(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!N)if(i&&f instanceof Be&&!f.empty&&f.$head.sameParent(f.$anchor)&&!e.composing&&!(b.sel&&b.sel.anchor!=b.sel.head))N={start:f.from,endA:f.to,endB:f.to};else{if(b.sel){let St=bs(e,e.state.doc,b.sel);if(St&&!St.eq(e.state.selection)){let xn=e.state.tr.setSelection(St);o&&xn.setMeta("composition",o),e.dispatch(xn)}}return}e.input.domChangeCount++,e.state.selection.frome.state.selection.from&&N.start<=e.state.selection.from+2&&e.state.selection.from>=b.from?N.start=e.state.selection.from:N.endA=e.state.selection.to-2&&e.state.selection.to<=b.to&&(N.endB+=e.state.selection.to-N.endA,N.endA=e.state.selection.to)),vs&&ao<=11&&N.endB==N.start+1&&N.endA==N.start&&N.start>b.from&&b.doc.textBetween(N.start-b.from-1,N.start-b.from+1)==" \xA0"&&(N.start--,N.endA--,N.endB--);let G=b.doc.resolveNoCache(N.start-b.from),K=b.doc.resolveNoCache(N.endB-b.from),ge=E.resolve(N.start),de=G.sameParent(K)&&G.parent.inlineContent&&ge.end()>=N.endA,xe;if((Nl&&e.input.lastIOSEnter>Date.now()-225&&(!de||a.some(St=>St.nodeName=="DIV"||St.nodeName=="P"))||!de&&G.posSt(e,Yo(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>N.start&&kc(E,N.start,N.endA,G,K)&&e.someProp("handleKeyDown",St=>St(e,Yo(8,"Backspace")))){Za&&Vs&&e.domObserver.suppressSelectionUpdates();return}Vs&&Za&&N.endB==N.start&&(e.input.lastAndroidDelete=Date.now()),Za&&!de&&G.start()!=K.start()&&K.parentOffset==0&&G.depth==K.depth&&b.sel&&b.sel.anchor==b.sel.head&&b.sel.head==N.endA&&(N.endB-=2,K=b.doc.resolveNoCache(N.endB-b.from),setTimeout(()=>{e.someProp("handleKeyDown",function(St){return St(e,Yo(13,"Enter"))})},20));let ae=N.start,Ve=N.endA,He,_t,rn;if(de){if(G.pos==K.pos)vs&&ao<=11&&G.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Ga(e),20)),He=e.state.tr.delete(ae,Ve),_t=E.resolve(N.start).marksAcross(E.resolve(N.endA));else if(N.endA==N.endB&&(rn=Zl(G.parent.content.cut(G.parentOffset,K.parentOffset),ge.parent.content.cut(ge.parentOffset,N.endA-ge.start()))))He=e.state.tr,rn.type=="add"?He.addMark(ae,Ve,rn.mark):He.removeMark(ae,Ve,rn.mark);else if(G.parent.child(G.index()).isText&&G.index()==K.index()-(K.textOffset?0:1)){let St=G.parent.textBetween(G.parentOffset,K.parentOffset);if(e.someProp("handleTextInput",xn=>xn(e,ae,Ve,St)))return;He=e.state.tr.insertText(St,ae,Ve)}}if(He||(He=e.state.tr.replace(ae,Ve,b.doc.slice(N.start-b.from,N.endB-b.from))),b.sel){let St=bs(e,He.doc,b.sel);St&&!(Vs&&Za&&e.composing&&St.empty&&(N.start!=N.endB||e.input.lastAndroidDeletet.content.size?null:Ya(e,t.resolve(r.anchor),t.resolve(r.head))}function Zl(e,t){let r=e.firstChild.marks,i=t.firstChild.marks,a=r,o=i,u,d,f;for(let E=0;EE.mark(d.addToSet(E.marks));else if(a.length==0&&o.length==1)d=o[0],u="remove",f=E=>E.mark(d.removeFromSet(E.marks));else return null;let b=[];for(let E=0;Er||Du(u,!0,!1)0&&(t||e.indexAfter(i)==e.node(i).childCount);)i--,a++,t=!1;if(r){let o=e.node(i).maybeChild(e.indexAfter(i));for(;o&&!o.isLeaf;)o=o.firstChild,a++}return a}function al(e,t,r,i,a){let o=e.findDiffStart(t,r);if(o==null)return null;let{a:u,b:d}=e.findDiffEnd(t,r+e.size,r+t.size);if(a=="end"){let f=Math.max(0,o-Math.min(u,d));i-=u+f-o}if(u=u?o-i:0;o-=f,o&&o=d?o-i:0;o-=f,o&&o=56320&&t<=57343&&r>=55296&&r<=56319}class xc{constructor(t,r){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new db,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=r,this.state=r.state,this.directPlugins=r.plugins||[],this.directPlugins.forEach(h),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=Cc(this),Iu(this),this.nodeViews=_c(this),this.docView=ks(this.state.doc,Tc(this),Au(this),this.dom,this),this.domObserver=new Vl(this,(i,a,o,u)=>Fd(this,i,a,o,u)),this.domObserver.start(),hb(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let r in t)this._props[r]=t[r];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&hp(this);let r=this._props;this._props=t,t.plugins&&(t.plugins.forEach(h),this.directPlugins=t.plugins),this.updateStateInner(t.state,r)}setProps(t){let r={};for(let i in this._props)r[i]=this._props[i];r.state=this.state;for(let i in t)r[i]=t[i];this.update(r)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,r){var i;let a=this.state,o=!1,u=!1;t.storedMarks&&this.composing&&(bc(this),u=!0),this.state=t;let d=a.plugins!=t.plugins||this._props.plugins!=r.plugins;if(d||this._props.plugins!=r.plugins||this._props.nodeViews!=r.nodeViews){let R=_c(this);v(R,this.nodeViews)&&(this.nodeViews=R,o=!0)}(d||r.handleDOMEvents!=this._props.handleDOMEvents)&&hp(this),this.editable=Cc(this),Iu(this);let f=Au(this),b=Tc(this),E=a.plugins!=t.plugins&&!a.doc.eq(t.doc)?"reset":t.scrollToSelection>a.scrollToSelection?"to selection":"preserve",k=o||!this.docView.matchesNode(t.doc,b,f);(k||!t.selection.eq(a.selection))&&(u=!0);let x=E=="preserve"&&u&&this.dom.style.overflowAnchor==null&&em(this);if(u){this.domObserver.stop();let R=k&&(vs||Vs)&&!this.composing&&!a.selection.empty&&!t.selection.empty&&Ac(a.selection,t.selection);if(k){let N=Vs?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Ld(this)),(o||!this.docView.update(t.doc,b,f,this))&&(this.docView.updateOuterDeco(b),this.docView.destroy(),this.docView=ks(t.doc,b,f,this.dom,this)),N&&!this.trackWrites&&(R=!0)}R||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Fl(this))?Ga(this,R):(om(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(a),!((i=this.dragging)===null||i===void 0)&&i.node&&!a.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,a),E=="reset"?this.dom.scrollTop=0:E=="to selection"?this.scrollToSelection():x&&sb(x)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",r=>r(this)))if(this.state.selection instanceof ct){let r=this.docView.domAfterPos(this.state.selection.from);r.nodeType==1&&Jf(this,r.getBoundingClientRect(),t)}else Jf(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let r=0;r0&&this.state.doc.nodeAt(o))==i.node&&(a=o)}this.dragging=new Md(t.slice,t.move,a<0?void 0:ct.create(this.state.doc,a))}someProp(t,r){let i=this._props&&this._props[t],a;if(i!=null&&(a=r?r(i):i))return a;for(let u=0;ur.ownerDocument.getSelection()),this._root=r}return t||document}updateRoot(){this._root=null}posAtCoords(t){return Rl(this,t)}coordsAtPos(t,r=1){return ab(this,t,r)}domAtPos(t,r=0){return this.docView.domFromPos(t,r)}nodeDOM(t){let r=this.docView.descAt(t);return r?r.nodeDOM:null}posAtDOM(t,r,i=-1){let a=this.docView.posFromDOM(t,r,i);if(a==null)throw new RangeError("DOM position not inside the editor");return a}endOfTextblock(t,r){return Ed(this,r||this.state,t)}pasteHTML(t,r){return To(this,"",t,!1,r||new ClipboardEvent("paste"))}pasteText(t,r){return To(this,t,null,!0,r||new ClipboardEvent("paste"))}destroy(){this.docView&&(cS(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Au(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,Vh())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return pb(this,t)}dispatch(t){let r=this._props.dispatchTransaction;r?r.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return ia&&this.root.nodeType===11&&Qs(this.dom.ownerDocument)==this.dom?Ao(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function Tc(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",r=>{if(typeof r=="function"&&(r=r(e.state)),r)for(let i in r)i=="class"?t.class+=" "+r[i]:i=="style"?t.style=(t.style?t.style+";":"")+r[i]:!t[i]&&i!="contenteditable"&&i!="nodeName"&&(t[i]=String(r[i]))}),t.translate||(t.translate="no"),[cs.node(0,e.state.doc.content.size,t)]}function Iu(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:cs.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Cc(e){return!e.someProp("editable",t=>t(e.state)===!1)}function Ac(e,t){let r=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(r)!=t.$anchor.start(r)}function _c(e){let t=Object.create(null);function r(i){for(let a in i)Object.prototype.hasOwnProperty.call(t,a)||(t[a]=i[a])}return e.someProp("nodeViews",r),e.someProp("markViews",r),t}function v(e,t){let r=0,i=0;for(let a in e){if(e[a]!=t[a])return!0;r++}for(let a in t)i++;return r!=i}function h(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var m={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},y={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},S=typeof navigator<"u"&&/Mac/.test(navigator.platform),T=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),P=0;P<10;P++)m[48+P]=m[96+P]=String(P);for(var P=1;P<=24;P++)m[P+111]="F"+P;for(var P=65;P<=90;P++)m[P]=String.fromCharCode(P+32),y[P]=String.fromCharCode(P);for(var Q in m)y.hasOwnProperty(Q)||(y[Q]=m[Q]);function q(e){var t=S&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||T&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",r=!t&&e.key||(e.shiftKey?y:m)[e.keyCode]||e.key||"Unidentified";return r=="Esc"&&(r="Escape"),r=="Del"&&(r="Delete"),r=="Left"&&(r="ArrowLeft"),r=="Up"&&(r="ArrowUp"),r=="Right"&&(r="ArrowRight"),r=="Down"&&(r="ArrowDown"),r}const fe=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function le(e){let t=e.split(/-(?!$)/),r=t[t.length-1];r=="Space"&&(r=" ");let i,a,o,u;for(let d=0;d127)&&(o=m[i.keyCode])&&o!=a){let d=t[We(o,i)];if(d&&d(r.state,r.dispatch,r))return!0}}return!1}}const Bt=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function Ht(e,t){let{$cursor:r}=e.selection;return!r||(t?!t.endOfTextblock("backward",e):r.parentOffset>0)?null:r}const It=(e,t,r)=>{let i=Ht(e,r);if(!i)return!1;let a=Yi(i);if(!a){let u=i.blockRange(),d=u&&A(u);return d==null?!1:(t&&t(e.tr.lift(u,d).scrollIntoView()),!0)}let o=a.nodeBefore;if(!o.type.spec.isolating&&gm(e,a,t))return!0;if(i.parent.content.size==0&&(Lr(o,"end")||ct.isSelectable(o))){let u=Te(e.doc,i.before(),i.after(),gt.empty);if(u&&u.slice.size{let i=Ht(e,r);if(!i)return!1;let a=Yi(i);return a?gr(e,a,t):!1},Qr=(e,t,r)=>{let i=ws(e,r);if(!i)return!1;let a=Nc(i);return a?gr(e,a,t):!1};function gr(e,t,r){let i=t.nodeBefore,a=i,o=t.pos-1;for(;!a.isTextblock;o--){if(a.type.spec.isolating)return!1;let E=a.lastChild;if(!E)return!1;a=E}let u=t.nodeAfter,d=u,f=t.pos+1;for(;!d.isTextblock;f++){if(d.type.spec.isolating)return!1;let E=d.firstChild;if(!E)return!1;d=E}let b=Te(e.doc,o,f,gt.empty);if(!b||b.from!=o||b instanceof Si&&b.slice.size>=f-o)return!1;if(r){let E=e.tr.step(b);E.setSelection(Be.create(E.doc,o)),r(E.scrollIntoView())}return!0}function Lr(e,t,r=!1){for(let i=e;i;i=t=="start"?i.firstChild:i.lastChild){if(i.isTextblock)return!0;if(r&&i.childCount!=1)return!1}return!1}const ri=(e,t,r)=>{let{$head:i,empty:a}=e.selection,o=i;if(!a)return!1;if(i.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):i.parentOffset>0)return!1;o=Yi(i)}let u=o&&o.nodeBefore;return!u||!ct.isSelectable(u)?!1:(t&&t(e.tr.setSelection(ct.create(e.doc,o.pos-u.nodeSize)).scrollIntoView()),!0)};function Yi(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function ws(e,t){let{$cursor:r}=e.selection;return!r||(t?!t.endOfTextblock("forward",e):r.parentOffset{let i=ws(e,r);if(!i)return!1;let a=Nc(i);if(!a)return!1;let o=a.nodeAfter;if(gm(e,a,t))return!0;if(i.parent.content.size==0&&(Lr(o,"start")||ct.isSelectable(o))){let u=Te(e.doc,i.before(),i.after(),gt.empty);if(u&&u.slice.size{let{$head:i,empty:a}=e.selection,o=i;if(!a)return!1;if(i.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):i.parentOffset=0;t--){let r=e.node(t);if(e.index(t)+1{let r=e.selection,i=r instanceof ct,a;if(i){if(r.node.isTextblock||!cn(e.doc,r.from))return!1;a=r.from}else if(a=Xr(e.doc,r.from,-1),a==null)return!1;if(t){let o=e.tr.join(a);i&&o.setSelection(ct.create(o.doc,a-e.doc.resolve(a).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0},Bd=(e,t)=>{let r=e.selection,i;if(r instanceof ct){if(r.node.isTextblock||!cn(e.doc,r.to))return!1;i=r.to}else if(i=Xr(e.doc,r.to,1),i==null)return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},Wl=(e,t)=>{let{$from:r,$to:i}=e.selection,a=r.blockRange(i),o=a&&A(a);return o==null?!1:(t&&t(e.tr.lift(a,o).scrollIntoView()),!0)},ol=(e,t)=>{let{$head:r,$anchor:i}=e.selection;return!r.parent.type.spec.code||!r.sameParent(i)?!1:(t&&t(e.tr.insertText(` -`).scrollIntoView()),!0)};function Gl(e){for(let t=0;t{let{$head:r,$anchor:i}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(i))return!1;let a=r.node(-1),o=r.indexAfter(-1),u=Gl(a.contentMatchAt(o));if(!u||!a.canReplaceWith(o,o,u))return!1;if(t){let d=r.after(),f=e.tr.replaceWith(d,d,u.createAndFill());f.setSelection(B.near(f.doc.resolve(d),1)),t(f.scrollIntoView())}return!0},ql=(e,t)=>{let r=e.selection,{$from:i,$to:a}=r;if(r instanceof Tn||i.parent.inlineContent||a.parent.inlineContent)return!1;let o=Gl(a.parent.contentMatchAt(a.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let u=(!i.parentOffset&&a.index(){let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let o=r.before();if(Zt(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}let i=r.blockRange(),a=i&&A(i);return a==null?!1:(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},Do=(e,t)=>{let{$from:r,to:i}=e.selection,a,o=r.sharedDepth(i);return o==0?!1:(a=r.before(o),t&&t(e.tr.setSelection(ct.create(e.doc,a))),!0)};function Ob(e,t,r){let i=t.nodeBefore,a=t.nodeAfter,o=t.index();return!i||!a||!i.type.compatibleContent(a.type)?!1:!i.content.size&&t.parent.canReplace(o-1,o)?(r&&r(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(o,o+1)||!(a.isTextblock||cn(e.doc,t.pos))?!1:(r&&r(e.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),!0)}function gm(e,t,r){let i=t.nodeBefore,a=t.nodeAfter,o,u;if(i.type.spec.isolating||a.type.spec.isolating)return!1;if(Ob(e,t,r))return!0;let d=t.parent.canReplace(t.index(),t.index()+1);if(d&&(o=(u=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&u.matchType(o[0]||a.type).validEnd){if(r){let k=t.pos+a.nodeSize,x=Ee.empty;for(let G=o.length-1;G>=0;G--)x=Ee.from(o[G].create(null,x));x=Ee.from(i.copy(x));let R=e.tr.step(new Sr(t.pos-1,k,t.pos,k,new gt(x,1,0),o.length,!0)),N=k+2*o.length;cn(R.doc,N)&&R.join(N),r(R.scrollIntoView())}return!0}let f=B.findFrom(t,1),b=f&&f.$from.blockRange(f.$to),E=b&&A(b);if(E!=null&&E>=t.depth)return r&&r(e.tr.lift(b,E).scrollIntoView()),!0;if(d&&Lr(a,"start",!0)&&Lr(i,"end")){let k=i,x=[];for(;x.push(k),!k.isTextblock;)k=k.lastChild;let R=a,N=1;for(;!R.isTextblock;R=R.firstChild)N++;if(k.canReplace(k.childCount,k.childCount,R.content)){if(r){let G=Ee.empty;for(let ge=x.length-1;ge>=0;ge--)G=Ee.from(x[ge].copy(G));let K=e.tr.step(new Sr(t.pos-x.length,t.pos+a.nodeSize,t.pos+N,t.pos+a.nodeSize-N,new gt(G,x.length,0),0,!0));r(K.scrollIntoView())}return!0}}return!1}function bm(e){return function(t,r){let i=t.selection,a=e<0?i.$from:i.$to,o=a.depth;for(;a.node(o).isInline;){if(!o)return!1;o--}return a.node(o).isTextblock?(r&&r(t.tr.setSelection(Be.create(t.doc,e<0?a.start(o):a.end(o)))),!0):!1}}const yb=bm(-1),Eb=bm(1);function Sb(e,t=null){return function(r,i){let{$from:a,$to:o}=r.selection,u=a.blockRange(o),d=u&&U(u,e,t);return d?(i&&i(r.tr.wrap(u,d).scrollIntoView()),!0):!1}}function Om(e,t=null){return function(r,i){let a=!1;for(let o=0;o{if(a)return!1;if(!(!f.isTextblock||f.hasMarkup(e,t)))if(f.type==e)a=!0;else{let E=r.doc.resolve(b),k=E.index();a=E.parent.canReplaceWith(k,k+1,e)}})}if(!a)return!1;if(i){let o=r.tr;for(let u=0;u=2&&a.node(u.depth-1).type.compatibleContent(e)&&u.startIndex==0){if(a.index(u.depth-1)==0)return!1;let E=r.doc.resolve(u.start-2);f=new Ut(E,E,u.depth),u.endIndex=0;E--)o=Ee.from(r[E].type.create(r[E].attrs,o));e.step(new Sr(t.start-(i?2:0),t.end,t.start,t.end,new gt(o,0,0),r.length,!0));let u=0;for(let E=0;Eu.childCount>0&&u.firstChild.type==e);return o?r?i.node(o.depth-1).type==e?xb(t,r,e,o):Tb(t,r,o):!0:!1}}function xb(e,t,r,i){let a=e.tr,o=i.end,u=i.$to.end(i.depth);oG;N--)R-=a.child(N).nodeSize,i.delete(R-1,R+1);let o=i.doc.resolve(r.start),u=o.nodeAfter;if(i.mapping.map(r.end)!=r.start+o.nodeAfter.nodeSize)return!1;let d=r.startIndex==0,f=r.endIndex==a.childCount,b=o.node(-1),E=o.index(-1);if(!b.canReplace(E+(d?0:1),E+1,u.content.append(f?Ee.empty:Ee.from(a))))return!1;let k=o.pos,x=k+u.nodeSize;return i.step(new Sr(k-(d?1:0),x+(f?1:0),k+1,x-1,new gt((d?Ee.empty:Ee.from(a.copy(Ee.empty))).append(f?Ee.empty:Ee.from(a.copy(Ee.empty))),d?0:1,f?0:1),d?0:1)),t(i.scrollIntoView()),!0}function Cb(e){return function(t,r){let{$from:i,$to:a}=t.selection,o=i.blockRange(a,b=>b.childCount>0&&b.firstChild.type==e);if(!o)return!1;let u=o.startIndex;if(u==0)return!1;let d=o.parent,f=d.child(u-1);if(f.type!=e)return!1;if(r){let b=f.lastChild&&f.lastChild.type==d.type,E=Ee.from(b?e.create():null),k=new gt(Ee.from(e.create(null,Ee.from(d.type.create(null,E)))),b?3:1,0),x=o.start,R=o.end;r(t.tr.step(new Sr(x-(b?3:1),R,x,R,k,1,!0)).scrollIntoView())}return!0}}function $d(e){const{state:t,transaction:r}=e;let{selection:i}=r,{doc:a}=r,{storedMarks:o}=r;return _n(je({},t),{apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return i},get doc(){return a},get tr(){return i=r.selection,a=r.doc,o=r.storedMarks,r}})}class Ud{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:r,state:i}=this,{view:a}=r,{tr:o}=i,u=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,(...b)=>{const E=f(...b)(u);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(o),E}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,r=!0){const{rawCommands:i,editor:a,state:o}=this,{view:u}=a,d=[],f=!!t,b=t||o.tr,E=()=>(!f&&r&&!b.getMeta("preventDispatch")&&!this.hasCustomState&&u.dispatch(b),d.every(x=>x===!0)),k=_n(je({},Object.fromEntries(Object.entries(i).map(([x,R])=>[x,(...N)=>{const G=this.buildProps(b,r),K=R(...N)(G);return d.push(K),k}]))),{run:E});return k}createCan(t){const{rawCommands:r,state:i}=this,a=!1,o=t||i.tr,u=this.buildProps(o,a);return _n(je({},Object.fromEntries(Object.entries(r).map(([d,f])=>[d,(...b)=>f(...b)(_n(je({},u),{dispatch:void 0}))]))),{chain:()=>this.createChain(o,a)})}buildProps(t,r=!0){const{rawCommands:i,editor:a,state:o}=this,{view:u}=a,d={tr:t,editor:a,view:u,state:$d({state:o,transaction:t}),dispatch:r?()=>{}:void 0,chain:()=>this.createChain(t,r),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(i).map(([f,b])=>[f,(...E)=>b(...E)(d)]))}};return d}}let Ab=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const r=this.callbacks[e];return r&&r.forEach(i=>i.apply(this,t)),this}off(e,t){const r=this.callbacks[e];return r&&(t?this.callbacks[e]=r.filter(i=>i!==t):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}};function or(e,t,r){return e.config[t]===void 0&&e.parent?or(e.parent,t,r):typeof e.config[t]=="function"?e.config[t].bind(_n(je({},r),{parent:e.parent?or(e.parent,t,r):null})):e.config[t]}function Hd(e){const t=e.filter(a=>a.type==="extension"),r=e.filter(a=>a.type==="node"),i=e.filter(a=>a.type==="mark");return{baseExtensions:t,nodeExtensions:r,markExtensions:i}}function ym(e){const t=[],{nodeExtensions:r,markExtensions:i}=Hd(e),a=[...r,...i],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(u=>{const d={name:u.name,options:u.options,storage:u.storage},f=or(u,"addGlobalAttributes",d);f&&f().forEach(b=>{b.types.forEach(E=>{Object.entries(b.attributes).forEach(([k,x])=>{t.push({type:E,name:k,attribute:je(je({},o),x)})})})})}),a.forEach(u=>{const d={name:u.name,options:u.options,storage:u.storage},f=or(u,"addAttributes",d);if(!f)return;const b=f();Object.entries(b).forEach(([E,k])=>{const x=je(je({},o),k);typeof(x==null?void 0:x.default)=="function"&&(x.default=x.default()),x!=null&&x.isRequired&&(x==null?void 0:x.default)===void 0&&delete x.default,t.push({type:u.name,name:E,attribute:x})})}),t}function xs(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function ui(...e){return e.filter(t=>!!t).reduce((t,r)=>{const i=je({},t);return Object.entries(r).forEach(([a,o])=>{if(!i[a]){i[a]=o;return}if(a==="class"){const u=o?o.split(" "):[],d=i[a]?i[a].split(" "):[],f=u.filter(b=>!d.includes(b));i[a]=[...d,...f].join(" ")}else a==="style"?i[a]=[i[a],o].join("; "):i[a]=o}),i},{})}function yp(e,t){return t.filter(r=>r.attribute.rendered).map(r=>r.attribute.renderHTML?r.attribute.renderHTML(e.attrs)||{}:{[r.name]:e.attrs[r.name]}).reduce((r,i)=>ui(r,i),{})}function Em(e){return typeof e=="function"}function ai(e,t=void 0,...r){return Em(e)?t?e.bind(t)(...r):e(...r):e}function _b(e={}){return Object.keys(e).length===0&&e.constructor===Object}function Nb(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function Sm(e,t){return e.style?e:_n(je({},e),{getAttrs:r=>{const i=e.getAttrs?e.getAttrs(r):e.attrs;if(i===!1)return!1;const a=t.reduce((o,u)=>{const d=u.attribute.parseHTML?u.attribute.parseHTML(r):Nb(r.getAttribute(u.name));return d==null?o:_n(je({},o),{[u.name]:d})},{});return je(je({},i),a)}})}function vm(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>t==="attrs"&&_b(r)?!1:r!=null))}function Rb(e,t){var r;const i=ym(e),{nodeExtensions:a,markExtensions:o}=Hd(e),u=(r=a.find(b=>or(b,"topNode")))===null||r===void 0?void 0:r.name,d=Object.fromEntries(a.map(b=>{const E=i.filter(ge=>ge.type===b.name),k={name:b.name,options:b.options,storage:b.storage,editor:t},x=e.reduce((ge,de)=>{const xe=or(de,"extendNodeSchema",k);return je(je({},ge),xe?xe(b):{})},{}),R=vm(_n(je({},x),{content:ai(or(b,"content",k)),marks:ai(or(b,"marks",k)),group:ai(or(b,"group",k)),inline:ai(or(b,"inline",k)),atom:ai(or(b,"atom",k)),selectable:ai(or(b,"selectable",k)),draggable:ai(or(b,"draggable",k)),code:ai(or(b,"code",k)),defining:ai(or(b,"defining",k)),isolating:ai(or(b,"isolating",k)),attrs:Object.fromEntries(E.map(ge=>{var de;return[ge.name,{default:(de=ge==null?void 0:ge.attribute)===null||de===void 0?void 0:de.default}]}))})),N=ai(or(b,"parseHTML",k));N&&(R.parseDOM=N.map(ge=>Sm(ge,E)));const G=or(b,"renderHTML",k);G&&(R.toDOM=ge=>G({node:ge,HTMLAttributes:yp(ge,E)}));const K=or(b,"renderText",k);return K&&(R.toText=K),[b.name,R]})),f=Object.fromEntries(o.map(b=>{const E=i.filter(K=>K.type===b.name),k={name:b.name,options:b.options,storage:b.storage,editor:t},x=e.reduce((K,ge)=>{const de=or(ge,"extendMarkSchema",k);return je(je({},K),de?de(b):{})},{}),R=vm(_n(je({},x),{inclusive:ai(or(b,"inclusive",k)),excludes:ai(or(b,"excludes",k)),group:ai(or(b,"group",k)),spanning:ai(or(b,"spanning",k)),code:ai(or(b,"code",k)),attrs:Object.fromEntries(E.map(K=>{var ge;return[K.name,{default:(ge=K==null?void 0:K.attribute)===null||ge===void 0?void 0:ge.default}]}))})),N=ai(or(b,"parseHTML",k));N&&(R.parseDOM=N.map(K=>Sm(K,E)));const G=or(b,"renderHTML",k);return G&&(R.toDOM=K=>G({mark:K,HTMLAttributes:yp(K,E)})),[b.name,R]}));return new Ce({topNode:u,nodes:d,marks:f})}function Ep(e,t){return t.nodes[e]||t.marks[e]||null}function km(e,t){return Array.isArray(t)?t.some(r=>(typeof r=="string"?r:r.name)===e.name):t}const Db=(e,t=500)=>{let r="";const i=e.parentOffset;return e.parent.nodesBetween(Math.max(0,i-t),i,(a,o,u,d)=>{var f,b;const E=((b=(f=a.type.spec).toText)===null||b===void 0?void 0:b.call(f,{node:a,pos:o,parent:u,index:d}))||a.textContent||"%leaf%";r+=E.slice(0,Math.max(0,i-o))}),r};function Sp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}class Rc{constructor(t){this.find=t.find,this.handler=t.handler}}const Ib=(e,t)=>{if(Sp(t))return t.exec(e);const r=t(e);if(!r)return null;const i=[r.text];return i.index=r.index,i.input=e,i.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),i.push(r.replaceWith)),i};function zd(e){var t;const{editor:r,from:i,to:a,text:o,rules:u,plugin:d}=e,{view:f}=r;if(f.composing)return!1;const b=f.state.doc.resolve(i);if(b.parent.type.spec.code||!((t=b.nodeBefore||b.nodeAfter)===null||t===void 0)&&t.marks.find(x=>x.type.spec.code))return!1;let E=!1;const k=Db(b)+o;return u.forEach(x=>{if(E)return;const R=Ib(k,x.find);if(!R)return;const N=f.state.tr,G=$d({state:f.state,transaction:N}),K={from:i-(R[0].length-o.length),to:a},{commands:ge,chain:de,can:xe}=new Ud({editor:r,state:G});x.handler({state:G,range:K,match:R,commands:ge,chain:de,can:xe})===null||!N.steps.length||(N.setMeta(d,{transform:N,from:i,to:a,text:o}),f.dispatch(N),E=!0)}),E}function Lb(e){const{editor:t,rules:r}=e,i=new Di({state:{init(){return null},apply(a,o){const u=a.getMeta(i);if(u)return u;const d=a.getMeta("applyInputRules");return d&&setTimeout(()=>{const{from:f,text:b}=d,E=f+b.length;zd({editor:t,from:f,to:E,text:b,rules:r,plugin:i})}),a.selectionSet||a.docChanged?null:o}},props:{handleTextInput(a,o,u,d){return zd({editor:t,from:o,to:u,text:d,rules:r,plugin:i})},handleDOMEvents:{compositionend:a=>(setTimeout(()=>{const{$cursor:o}=a.state.selection;o&&zd({editor:t,from:o.pos,to:o.pos,text:"",rules:r,plugin:i})}),!1)},handleKeyDown(a,o){if(o.key!=="Enter")return!1;const{$cursor:u}=a.state.selection;return u?zd({editor:t,from:u.pos,to:u.pos,text:` -`,rules:r,plugin:i}):!1}},isInputRules:!0});return i}function Mb(e){return typeof e=="number"}class Pb{constructor(t){this.find=t.find,this.handler=t.handler}}const Fb=(e,t,r)=>{if(Sp(t))return[...e.matchAll(t)];const i=t(e,r);return i?i.map(a=>{const o=[a.text];return o.index=a.index,o.input=e,o.data=a.data,a.replaceWith&&(a.text.includes(a.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(a.replaceWith)),o}):[]};function Bb(e){const{editor:t,state:r,from:i,to:a,rule:o,pasteEvent:u,dropEvent:d}=e,{commands:f,chain:b,can:E}=new Ud({editor:t,state:r}),k=[];return r.doc.nodesBetween(i,a,(x,R)=>{if(!x.isTextblock||x.type.spec.code)return;const N=Math.max(i,R),G=Math.min(a,R+x.content.size),K=x.textBetween(N-R,G-R,void 0,"\uFFFC");Fb(K,o.find,u).forEach(ge=>{if(ge.index===void 0)return;const de=N+ge.index+1,xe=de+ge[0].length,ae={from:r.tr.mapping.map(de),to:r.tr.mapping.map(xe)},Ve=o.handler({state:r,range:ae,match:ge,commands:f,chain:b,can:E,pasteEvent:u,dropEvent:d});k.push(Ve)})}),k.every(x=>x!==null)}const $b=e=>{var t;const r=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(t=r.clipboardData)===null||t===void 0||t.setData("text/html",e),r};function Ub(e){const{editor:t,rules:r}=e;let i=null,a=!1,o=!1,u=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,d=typeof DragEvent<"u"?new DragEvent("drop"):null;const f=({state:b,from:E,to:k,rule:x,pasteEvt:R})=>{const N=b.tr,G=$d({state:b,transaction:N});if(!(!Bb({editor:t,state:G,from:Math.max(E-1,0),to:k.b-1,rule:x,pasteEvent:R,dropEvent:d})||!N.steps.length))return d=typeof DragEvent<"u"?new DragEvent("drop"):null,u=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,N};return r.map(b=>new Di({view(E){const k=x=>{var R;i=!((R=E.dom.parentElement)===null||R===void 0)&&R.contains(x.target)?E.dom.parentElement:null};return window.addEventListener("dragstart",k),{destroy(){window.removeEventListener("dragstart",k)}}},props:{handleDOMEvents:{drop:(E,k)=>(o=i===E.dom.parentElement,d=k,!1),paste:(E,k)=>{var x;const R=(x=k.clipboardData)===null||x===void 0?void 0:x.getData("text/html");return u=k,a=!!(R!=null&&R.includes("data-pm-slice")),!1}}},appendTransaction:(E,k,x)=>{const R=E[0],N=R.getMeta("uiEvent")==="paste"&&!a,G=R.getMeta("uiEvent")==="drop"&&!o,K=R.getMeta("applyPasteRules"),ge=!!K;if(!N&&!G&&!ge)return;if(ge){const{from:ae,text:Ve}=K,He=ae+Ve.length,_t=$b(Ve);return f({rule:b,state:x,from:ae,to:{b:He},pasteEvt:_t})}const de=k.doc.content.findDiffStart(x.doc.content),xe=k.doc.content.findDiffEnd(x.doc.content);if(!(!Mb(de)||!xe||de===xe.b))return f({rule:b,state:x,from:de,to:xe,pasteEvt:u})}}))}function Hb(e){const t=e.filter((r,i)=>e.indexOf(r)!==i);return[...new Set(t)]}class Lu{constructor(t,r){this.splittableMarks=[],this.editor=r,this.extensions=Lu.resolve(t),this.schema=Rb(this.extensions,r),this.setupExtensions()}static resolve(t){const r=Lu.sort(Lu.flatten(t)),i=Hb(r.map(a=>a.name));return i.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${i.map(a=>`'${a}'`).join(", ")}]. This can lead to issues.`),r}static flatten(t){return t.map(r=>{const i={name:r.name,options:r.options,storage:r.storage},a=or(r,"addExtensions",i);return a?[r,...this.flatten(a())]:r}).flat(10)}static sort(t){return t.sort((r,i)=>{const a=or(r,"priority")||100,o=or(i,"priority")||100;return a>o?-1:a{const i={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:Ep(r.name,this.schema)},a=or(r,"addCommands",i);return a?je(je({},t),a()):t},{})}get plugins(){const{editor:t}=this,r=Lu.sort([...this.extensions].reverse()),i=[],a=[],o=r.map(u=>{const d={name:u.name,options:u.options,storage:u.storage,editor:t,type:Ep(u.name,this.schema)},f=[],b=or(u,"addKeyboardShortcuts",d);let E={};if(u.type==="mark"&&u.config.exitable&&(E.ArrowRight=()=>Ji.handleExit({editor:t,mark:u})),b){const G=Object.fromEntries(Object.entries(b()).map(([K,ge])=>[K,()=>ge({editor:t})]));E=je(je({},E),G)}const k=mt(E);f.push(k);const x=or(u,"addInputRules",d);km(u,t.options.enableInputRules)&&x&&i.push(...x());const R=or(u,"addPasteRules",d);km(u,t.options.enablePasteRules)&&R&&a.push(...R());const N=or(u,"addProseMirrorPlugins",d);if(N){const G=N();f.push(...G)}return f}).flat();return[Lb({editor:t,rules:i}),...Ub({editor:t,rules:a}),...o]}get attributes(){return ym(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:r}=Hd(this.extensions);return Object.fromEntries(r.filter(i=>!!or(i,"addNodeView")).map(i=>{const a=this.attributes.filter(f=>f.type===i.name),o={name:i.name,options:i.options,storage:i.storage,editor:t,type:xs(i.name,this.schema)},u=or(i,"addNodeView",o);if(!u)return[];const d=(f,b,E,k)=>{const x=yp(f,a);return u()({editor:t,node:f,getPos:E,decorations:k,HTMLAttributes:x,extension:i})};return[i.name,d]}))}setupExtensions(){this.extensions.forEach(t=>{var r;this.editor.extensionStorage[t.name]=t.storage;const i={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:Ep(t.name,this.schema)};t.type==="mark"&&(!((r=ai(or(t,"keepOnSplit",i)))!==null&&r!==void 0)||r)&&this.splittableMarks.push(t.name);const a=or(t,"onBeforeCreate",i),o=or(t,"onCreate",i),u=or(t,"onUpdate",i),d=or(t,"onSelectionUpdate",i),f=or(t,"onTransaction",i),b=or(t,"onFocus",i),E=or(t,"onBlur",i),k=or(t,"onDestroy",i);a&&this.editor.on("beforeCreate",a),o&&this.editor.on("create",o),u&&this.editor.on("update",u),d&&this.editor.on("selectionUpdate",d),f&&this.editor.on("transaction",f),b&&this.editor.on("focus",b),E&&this.editor.on("blur",E),k&&this.editor.on("destroy",k)})}}function zb(e){return Object.prototype.toString.call(e).slice(8,-1)}function vp(e){return zb(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function Qd(e,t){const r=je({},e);return vp(e)&&vp(t)&&Object.keys(t).forEach(i=>{vp(t[i])?i in e?r[i]=Qd(e[i],t[i]):Object.assign(r,{[i]:t[i]}):Object.assign(r,{[i]:t[i]})}),r}class xi{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config=je(je({},this.config),t),this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ai(or(this,"addOptions",{name:this.name}))),this.storage=ai(or(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new xi(t)}configure(t={}){const r=this.extend();return r.parent=this.parent,r.options=Qd(this.options,t),r.storage=ai(or(r,"addStorage",{name:r.name,options:r.options})),r}extend(t={}){const r=new xi(je(je({},this.config),t));return r.parent=this,this.child=r,r.name=t.name?t.name:r.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${r.name}".`),r.options=ai(or(r,"addOptions",{name:r.name})),r.storage=ai(or(r,"addStorage",{name:r.name,options:r.options})),r}}function Vd(e,t,r){const{from:i,to:a}=t,{blockSeparator:o=` - -`,textSerializers:u={}}=r||{};let d="";return e.nodesBetween(i,a,(f,b,E,k)=>{var x;f.isBlock&&b>i&&(d+=o);const R=u==null?void 0:u[f.type.name];if(R)return E&&(d+=R({node:f,pos:b,parent:E,index:k,range:t})),!1;f.isText&&(d+=(x=f==null?void 0:f.text)===null||x===void 0?void 0:x.slice(Math.max(i,b)-b,a-b))}),d}function wm(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,r])=>[t,r.spec.toText]))}const xm=xi.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Di({key:new _i("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:r}=e,{doc:i,selection:a}=t,{ranges:o}=a,u=Math.min(...o.map(b=>b.$from.pos)),d=Math.max(...o.map(b=>b.$to.pos)),f=wm(r);return Vd(i,{from:u,to:d},_n(je({},this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{}),{textSerializers:f}))}}})]}}),Qb=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var r;e.isDestroyed||(t.dom.blur(),(r=window==null?void 0:window.getSelection())===null||r===void 0||r.removeAllRanges())}),!0),Vb=(e=!1)=>({commands:t})=>t.setContent("",e),jb=()=>({state:e,tr:t,dispatch:r})=>{const{selection:i}=t,{ranges:a}=i;return r&&a.forEach(({$from:o,$to:u})=>{e.doc.nodesBetween(o.pos,u.pos,(d,f)=>{if(d.type.isText)return;const{doc:b,mapping:E}=t,k=b.resolve(E.map(f)),x=b.resolve(E.map(f+d.nodeSize)),R=k.blockRange(x);if(!R)return;const N=A(R);if(d.type.isTextblock){const{defaultType:G}=k.parent.contentMatchAt(k.index());t.setNodeMarkup(R.start,G)}(N||N===0)&&t.lift(R,N)})}),!0},Zb=e=>t=>e(t),Wb=()=>({state:e,dispatch:t})=>ql(e,t),Gb=(e,t)=>({editor:r,tr:i})=>{const{state:a}=r,o=a.doc.slice(e.from,e.to);i.deleteRange(e.from,e.to);const u=i.mapping.map(t);return i.insert(u,o.content),i.setSelection(new Be(i.doc.resolve(u-1))),!0},Yb=()=>({tr:e,dispatch:t})=>{const{selection:r}=e,i=r.$anchor.node();if(i.content.size>0)return!1;const a=e.selection.$anchor;for(let o=a.depth;o>0;o-=1)if(a.node(o).type===i.type){if(t){const u=a.before(o),d=a.after(o);e.delete(u,d).scrollIntoView()}return!0}return!1},qb=e=>({tr:t,state:r,dispatch:i})=>{const a=xs(e,r.schema),o=t.selection.$anchor;for(let u=o.depth;u>0;u-=1)if(o.node(u).type===a){if(i){const d=o.before(u),f=o.after(u);t.delete(d,f).scrollIntoView()}return!0}return!1},Xb=e=>({tr:t,dispatch:r})=>{const{from:i,to:a}=e;return r&&t.delete(i,a),!0},Kb=()=>({state:e,dispatch:t})=>Bt(e,t),Jb=()=>({commands:e})=>e.keyboardShortcut("Enter"),e1=()=>({state:e,dispatch:t})=>Yl(e,t);function Mu(e,t,r={strict:!0}){const i=Object.keys(t);return i.length?i.every(a=>r.strict?t[a]===e[a]:Sp(t[a])?t[a].test(e[a]):t[a]===e[a]):!0}function kp(e,t,r={}){return e.find(i=>i.type===t&&Mu(i.attrs,r))}function t1(e,t,r={}){return!!kp(e,t,r)}function wp(e,t,r={}){if(!e||!t)return;let i=e.parent.childAfter(e.parentOffset);if(e.parentOffset===i.offset&&i.offset!==0&&(i=e.parent.childBefore(e.parentOffset)),!i.node)return;const a=kp([...i.node.marks],t,r);if(!a)return;let o=i.index,u=e.start()+i.offset,d=o+1,f=u+i.node.nodeSize;for(kp([...i.node.marks],t,r);o>0&&a.isInSet(e.parent.child(o-1).marks);)o-=1,u-=e.parent.child(o).nodeSize;for(;d({tr:r,state:i,dispatch:a})=>{const o=Io(e,i.schema),{doc:u,selection:d}=r,{$from:f,from:b,to:E}=d;if(a){const k=wp(f,o,t);if(k&&k.from<=b&&k.to>=E){const x=Be.create(u,k.from,k.to);r.setSelection(x)}}return!0},r1=e=>t=>{const r=typeof e=="function"?e(t):e;for(let i=0;i({editor:r,view:i,tr:a,dispatch:o})=>{t=je({scrollIntoView:!0},t);const u=()=>{Tp()&&i.dom.focus(),requestAnimationFrame(()=>{r.isDestroyed||(i.focus(),t!=null&&t.scrollIntoView&&r.commands.scrollIntoView())})};if(i.hasFocus()&&e===null||e===!1)return!0;if(o&&e===null&&!xp(r.state.selection))return u(),!0;const d=Tm(a.doc,e)||r.state.selection,f=r.state.selection.eq(d);return o&&(f||a.setSelection(d),f&&a.storedMarks&&a.setStoredMarks(a.storedMarks),u()),!0},s1=(e,t)=>r=>e.every((i,a)=>t(i,_n(je({},r),{index:a}))),a1=(e,t)=>({tr:r,commands:i})=>i.insertContentAt({from:r.selection.from,to:r.selection.to},e,t),Cm=e=>{const t=e.childNodes;for(let r=t.length-1;r>=0;r-=1){const i=t[r];i.nodeType===3&&i.nodeValue&&/^(\n\s\s|\n)$/.test(i.nodeValue)?e.removeChild(i):i.nodeType===1&&Cm(i)}return e};function Am(e){const t=`${e}`,r=new window.DOMParser().parseFromString(t,"text/html").body;return Cm(r)}function jd(e,t,r){r=je({slice:!0,parseOptions:{}},r);const i=typeof e=="object"&&e!==null,a=typeof e=="string";if(i)try{return Array.isArray(e)&&e.length>0?Ee.fromArray(e.map(o=>t.nodeFromJSON(o))):t.nodeFromJSON(e)}catch(o){return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",o),jd("",t,r)}if(a){const o=Rt.fromSchema(t);return r.slice?o.parseSlice(Am(e),r.parseOptions).content:o.parse(Am(e),r.parseOptions)}return jd("",t,r)}function o1(e,t,r){const i=e.steps.length-1;if(i{u===0&&(u=E)}),e.setSelection(B.near(e.doc.resolve(u),r))}const l1=e=>e.toString().startsWith("<"),u1=(e,t,r)=>({tr:i,dispatch:a,editor:o})=>{if(a){r=je({parseOptions:{},updateSelection:!0,applyInputRules:!1,applyPasteRules:!1},r);const u=jd(t,o.schema,{parseOptions:je({preserveWhitespace:"full"},r.parseOptions)});if(u.toString()==="<>")return!0;let{from:d,to:f}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},b=!0,E=!0;if((l1(u)?u:[u]).forEach(x=>{x.check(),b=b?x.isText&&x.marks.length===0:!1,E=E?x.isBlock:!1}),d===f&&E){const{parent:x}=i.doc.resolve(d);x.isTextblock&&!x.type.spec.code&&!x.childCount&&(d-=1,f+=1)}let k;b?(Array.isArray(t)?k=t.map(x=>x.text||"").join(""):typeof t=="object"&&t&&t.text?k=t.text:k=t,i.insertText(k,d,f)):(k=u,i.replaceWith(d,f,k)),r.updateSelection&&o1(i,i.steps.length-1,-1),r.applyInputRules&&i.setMeta("applyInputRules",{from:d,text:k}),r.applyPasteRules&&i.setMeta("applyPasteRules",{from:d,text:k})}return!0},c1=()=>({state:e,dispatch:t})=>pe(e,t),d1=()=>({state:e,dispatch:t})=>Bd(e,t),h1=()=>({state:e,dispatch:t})=>It(e,t),p1=()=>({state:e,dispatch:t})=>_o(e,t),f1=()=>({tr:e,state:t,dispatch:r})=>{try{const i=Xr(t.doc,t.selection.$from.pos,-1);return i==null?!1:(e.join(i,2),r&&r(e),!0)}catch(i){return!1}},m1=()=>({state:e,dispatch:t,tr:r})=>{try{const i=Xr(e.doc,e.selection.$from.pos,1);return i==null?!1:(r.join(i,2),t&&t(r),!0)}catch(i){return!1}},g1=()=>({state:e,dispatch:t})=>ar(e,t),b1=()=>({state:e,dispatch:t})=>Qr(e,t);function _m(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function O1(e){const t=e.split(/-(?!$)/);let r=t[t.length-1];r==="Space"&&(r=" ");let i,a,o,u;for(let d=0;d({editor:t,view:r,tr:i,dispatch:a})=>{const o=O1(e).split(/-(?!$)/),u=o.find(b=>!["Alt","Ctrl","Meta","Shift"].includes(b)),d=new KeyboardEvent("keydown",{key:u==="Space"?" ":u,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0}),f=t.captureTransaction(()=>{r.someProp("handleKeyDown",b=>b(r,d))});return f==null||f.steps.forEach(b=>{const E=b.map(i.mapping);E&&a&&i.maybeStep(E)}),!0};function Xl(e,t,r={}){const{from:i,to:a,empty:o}=e.selection,u=t?xs(t,e.schema):null,d=[];e.doc.nodesBetween(i,a,(E,k)=>{if(E.isText)return;const x=Math.max(i,k),R=Math.min(a,k+E.nodeSize);d.push({node:E,from:x,to:R})});const f=a-i,b=d.filter(E=>u?u.name===E.node.type.name:!0).filter(E=>Mu(E.node.attrs,r,{strict:!1}));return o?!!b.length:b.reduce((E,k)=>E+k.to-k.from,0)>=f}const E1=(e,t={})=>({state:r,dispatch:i})=>{const a=xs(e,r.schema);return Xl(r,a,t)?Wl(r,i):!1},S1=()=>({state:e,dispatch:t})=>Ro(e,t),Cp=e=>({state:t,dispatch:r})=>{const i=xs(e,t.schema);return wb(i)(t,r)},v1=()=>({state:e,dispatch:t})=>ol(e,t);function Zd(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function Nm(e,t){const r=typeof t=="string"?[t]:t;return Object.keys(e).reduce((i,a)=>(r.includes(a)||(i[a]=e[a]),i),{})}const k1=(e,t)=>({tr:r,state:i,dispatch:a})=>{let o=null,u=null;const d=Zd(typeof e=="string"?e:e.name,i.schema);return d?(d==="node"&&(o=xs(e,i.schema)),d==="mark"&&(u=Io(e,i.schema)),a&&r.selection.ranges.forEach(f=>{i.doc.nodesBetween(f.$from.pos,f.$to.pos,(b,E)=>{o&&o===b.type&&r.setNodeMarkup(E,void 0,Nm(b.attrs,t)),u&&b.marks.length&&b.marks.forEach(k=>{u===k.type&&r.addMark(E,E+b.nodeSize,u.create(Nm(k.attrs,t)))})})}),!0):!1},w1=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),x1=()=>({tr:e,commands:t})=>t.setTextSelection({from:0,to:e.doc.content.size}),T1=()=>({state:e,dispatch:t})=>ri(e,t),C1=()=>({state:e,dispatch:t})=>No(e,t),A1=()=>({state:e,dispatch:t})=>Do(e,t),_1=()=>({state:e,dispatch:t})=>Eb(e,t),N1=()=>({state:e,dispatch:t})=>yb(e,t);function Rm(e,t,r={}){return jd(e,t,{slice:!1,parseOptions:r})}const R1=(e,t=!1,r={})=>({tr:i,editor:a,dispatch:o})=>{const{doc:u}=i,d=Rm(e,a.schema,r);return o&&i.replaceWith(0,u.content.size,d).setMeta("preventUpdate",!t),!0};function Dc(e,t){const r=Io(t,e.schema),{from:i,to:a,empty:o}=e.selection,u=[];o?(e.storedMarks&&u.push(...e.storedMarks),u.push(...e.selection.$head.marks())):e.doc.nodesBetween(i,a,f=>{u.push(...f.marks)});const d=u.find(f=>f.type.name===r.name);return d?je({},d.attrs):{}}function D1(e,t){const r=new _r(e);return t.forEach(i=>{i.steps.forEach(a=>{r.step(a)})}),r}function I1(e){for(let t=0;t{t(i)&&r.push({node:i,pos:a})}),r}function L1(e,t,r){const i=[];return e.nodesBetween(t.from,t.to,(a,o)=>{r(a)&&i.push({node:a,pos:o})}),i}function Dm(e,t){for(let r=e.depth;r>0;r-=1){const i=e.node(r);if(t(i))return{pos:r>0?e.before(r):0,start:e.start(r),depth:r,node:i}}}function Wd(e){return t=>Dm(t.$from,e)}function Ap(e,t){const r=bt.fromSchema(t).serializeFragment(e),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(r),i.innerHTML}function M1(e,t){const r={from:0,to:e.content.size};return Vd(e,r,t)}function P1(e,t){const r=xs(t,e.schema),{from:i,to:a}=e.selection,o=[];e.doc.nodesBetween(i,a,d=>{o.push(d)});const u=o.reverse().find(d=>d.type.name===r.name);return u?je({},u.attrs):{}}function Im(e,t){const r=Zd(typeof t=="string"?t:t.name,e.schema);return r==="node"?P1(e,t):r==="mark"?Dc(e,t):{}}function F1(e,t=JSON.stringify){const r={};return e.filter(i=>{const a=t(i);return Object.prototype.hasOwnProperty.call(r,a)?!1:r[a]=!0})}function B1(e){const t=F1(e);return t.length===1?t:t.filter((r,i)=>!t.filter((a,o)=>o!==i).some(a=>r.oldRange.from>=a.oldRange.from&&r.oldRange.to<=a.oldRange.to&&r.newRange.from>=a.newRange.from&&r.newRange.to<=a.newRange.to))}function $1(e){const{mapping:t,steps:r}=e,i=[];return t.maps.forEach((a,o)=>{const u=[];if(a.ranges.length)a.forEach((d,f)=>{u.push({from:d,to:f})});else{const{from:d,to:f}=r[o];if(d===void 0||f===void 0)return;u.push({from:d,to:f})}u.forEach(({from:d,to:f})=>{const b=t.slice(o).map(d,-1),E=t.slice(o).map(f),k=t.invert().map(b,-1),x=t.invert().map(E);i.push({oldRange:{from:k,to:x},newRange:{from:b,to:E}})})}),B1(i)}function _p(e,t,r){const i=[];return e===t?r.resolve(e).marks().forEach(a=>{const o=r.resolve(e-1),u=wp(o,a.type);u&&i.push(je({mark:a},u))}):r.nodesBetween(e,t,(a,o)=>{!a||(a==null?void 0:a.nodeSize)===void 0||i.push(...a.marks.map(u=>({from:o,to:o+a.nodeSize,mark:u})))}),i}function Gd(e,t,r){return Object.fromEntries(Object.entries(r).filter(([i])=>{const a=e.find(o=>o.type===t&&o.name===i);return a?a.attribute.keepOnSplit:!1}))}function Np(e,t,r={}){const{empty:i,ranges:a}=e.selection,o=t?Io(t,e.schema):null;if(i)return!!(e.storedMarks||e.selection.$from.marks()).filter(E=>o?o.name===E.type.name:!0).find(E=>Mu(E.attrs,r,{strict:!1}));let u=0;const d=[];if(a.forEach(({$from:E,$to:k})=>{const x=E.pos,R=k.pos;e.doc.nodesBetween(x,R,(N,G)=>{if(!N.isText&&!N.marks.length)return;const K=Math.max(x,G),ge=Math.min(R,G+N.nodeSize),de=ge-K;u+=de,d.push(...N.marks.map(xe=>({mark:xe,from:K,to:ge})))})}),u===0)return!1;const f=d.filter(E=>o?o.name===E.mark.type.name:!0).filter(E=>Mu(E.mark.attrs,r,{strict:!1})).reduce((E,k)=>E+k.to-k.from,0),b=d.filter(E=>o?E.mark.type!==o&&E.mark.type.excludes(o):!0).reduce((E,k)=>E+k.to-k.from,0);return(f>0?f+b:f)>=u}function U1(e,t,r={}){if(!t)return Xl(e,null,r)||Np(e,null,r);const i=Zd(t,e.schema);return i==="node"?Xl(e,t,r):i==="mark"?Np(e,t,r):!1}function Lm(e,t){const{nodeExtensions:r}=Hd(t),i=r.find(u=>u.name===e);if(!i)return!1;const a={name:i.name,options:i.options,storage:i.storage},o=ai(or(i,"group",a));return typeof o!="string"?!1:o.split(" ").includes("list")}function H1(e){var t;const r=(t=e.type.createAndFill())===null||t===void 0?void 0:t.toJSON(),i=e.toJSON();return JSON.stringify(r)===JSON.stringify(i)}function Mm(e){return e instanceof ct}function Ic(e,t,r){const i=e.state.doc.content.size,a=Lo(t,0,i),o=Lo(r,0,i),u=e.coordsAtPos(a),d=e.coordsAtPos(o,-1),f=Math.min(u.top,d.top),b=Math.max(u.bottom,d.bottom),E=Math.min(u.left,d.left),k=Math.max(u.right,d.right),x=k-E,R=b-f,N={top:f,bottom:b,left:E,right:k,width:x,height:R,x:E,y:f};return _n(je({},N),{toJSON:()=>N})}function z1(e,t,r){var i;const{selection:a}=t;let o=null;if(xp(a)&&(o=a.$cursor),o){const d=(i=e.storedMarks)!==null&&i!==void 0?i:o.marks();return!!r.isInSet(d)||!d.some(f=>f.type.excludes(r))}const{ranges:u}=a;return u.some(({$from:d,$to:f})=>{let b=d.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(r):!1;return e.doc.nodesBetween(d.pos,f.pos,(E,k,x)=>{if(b)return!1;if(E.isInline){const R=!x||x.type.allowsMarkType(r),N=!!r.isInSet(E.marks)||!E.marks.some(G=>G.type.excludes(r));b=R&&N}return!b}),b})}const Q1=(e,t={})=>({tr:r,state:i,dispatch:a})=>{const{selection:o}=r,{empty:u,ranges:d}=o,f=Io(e,i.schema);if(a)if(u){const b=Dc(i,f);r.addStoredMark(f.create(je(je({},b),t)))}else d.forEach(b=>{const E=b.$from.pos,k=b.$to.pos;i.doc.nodesBetween(E,k,(x,R)=>{const N=Math.max(R,E),G=Math.min(R+x.nodeSize,k);x.marks.find(K=>K.type===f)?x.marks.forEach(K=>{f===K.type&&r.addMark(N,G,f.create(je(je({},K.attrs),t)))}):r.addMark(N,G,f.create(t))})});return z1(i,r,f)},Rp=(e,t)=>({tr:r})=>(r.setMeta(e,t),!0),V1=(e,t={})=>({state:r,dispatch:i,chain:a})=>{const o=xs(e,r.schema);return o.isTextblock?a().command(({commands:u})=>Om(o,t)(r)?!0:u.clearNodes()).command(({state:u})=>Om(o,t)(u,i)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},j1=e=>({tr:t,dispatch:r})=>{if(r){const{doc:i}=t,a=Lo(e,0,i.content.size),o=ct.create(i,a);t.setSelection(o)}return!0},Z1=e=>({tr:t,dispatch:r})=>{if(r){const{doc:i}=t,{from:a,to:o}=typeof e=="number"?{from:e,to:e}:e,u=Be.atStart(i).from,d=Be.atEnd(i).to,f=Lo(a,u,d),b=Lo(o,u,d),E=Be.create(i,f,b);t.setSelection(E)}return!0},W1=e=>({state:t,dispatch:r})=>{const i=xs(e,t.schema);return Cb(i)(t,r)};function Pm(e,t){const r=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(r){const i=r.filter(a=>t==null?void 0:t.includes(a.type.name));e.tr.ensureMarks(i)}}const G1=({keepMarks:e=!0}={})=>({tr:t,state:r,dispatch:i,editor:a})=>{const{selection:o,doc:u}=t,{$from:d,$to:f}=o,b=a.extensionManager.attributes,E=Gd(b,d.node().type.name,d.node().attrs);if(o instanceof ct&&o.node.isBlock)return!d.parentOffset||!Zt(u,d.pos)?!1:(i&&(e&&Pm(r,a.extensionManager.splittableMarks),t.split(d.pos).scrollIntoView()),!0);if(!d.parent.isBlock)return!1;if(i){const k=f.parentOffset===f.parent.content.size;o instanceof Be&&t.deleteSelection();const x=d.depth===0?void 0:I1(d.node(-1).contentMatchAt(d.indexAfter(-1)));let R=k&&x?[{type:x,attrs:E}]:void 0,N=Zt(t.doc,t.mapping.map(d.pos),1,R);if(!R&&!N&&Zt(t.doc,t.mapping.map(d.pos),1,x?[{type:x}]:void 0)&&(N=!0,R=x?[{type:x,attrs:E}]:void 0),N&&(t.split(t.mapping.map(d.pos),1,R),x&&!k&&!d.parentOffset&&d.parent.type!==x)){const G=t.mapping.map(d.before()),K=t.doc.resolve(G);d.node(-1).canReplaceWith(K.index(),K.index()+1,x)&&t.setNodeMarkup(t.mapping.map(d.before()),x)}e&&Pm(r,a.extensionManager.splittableMarks),t.scrollIntoView()}return!0},Y1=e=>({tr:t,state:r,dispatch:i,editor:a})=>{var o;const u=xs(e,r.schema),{$from:d,$to:f}=r.selection,b=r.selection.node;if(b&&b.isBlock||d.depth<2||!d.sameParent(f))return!1;const E=d.node(-1);if(E.type!==u)return!1;const k=a.extensionManager.attributes;if(d.parent.content.size===0&&d.node(-1).childCount===d.indexAfter(-1)){if(d.depth===2||d.node(-3).type!==u||d.index(-2)!==d.node(-2).childCount-1)return!1;if(i){let K=Ee.empty;const ge=d.index(-1)?1:d.index(-2)?2:3;for(let _t=d.depth-ge;_t>=d.depth-3;_t-=1)K=Ee.from(d.node(_t).copy(K));const de=d.indexAfter(-1){if(He>-1)return!1;_t.isTextblock&&_t.content.size===0&&(He=rn+1)}),He>-1&&t.setSelection(Be.near(t.doc.resolve(He))),t.scrollIntoView()}return!0}const x=f.pos===d.end()?E.contentMatchAt(0).defaultType:null,R=Gd(k,E.type.name,E.attrs),N=Gd(k,d.node().type.name,d.node().attrs);t.delete(d.pos,f.pos);const G=x?[{type:u,attrs:R},{type:x,attrs:N}]:[{type:u,attrs:R}];if(!Zt(t.doc,d.pos,2))return!1;if(i){const{selection:K,storedMarks:ge}=r,{splittableMarks:de}=a.extensionManager,xe=ge||K.$to.parentOffset&&K.$from.marks();if(t.split(d.pos,2,G).scrollIntoView(),!xe||!i)return!0;const ae=xe.filter(Ve=>de.includes(Ve.type.name));t.ensureMarks(ae)}return!0},Dp=(e,t)=>{const r=Wd(o=>o.type===t)(e.selection);if(!r)return!0;const i=e.doc.resolve(Math.max(0,r.pos-1)).before(r.depth);if(i===void 0)return!0;const a=e.doc.nodeAt(i);return r.node.type===(a==null?void 0:a.type)&&cn(e.doc,r.pos)&&e.join(r.pos),!0},Yd=(e,t)=>{const r=Wd(o=>o.type===t)(e.selection);if(!r)return!0;const i=e.doc.resolve(r.start).after(r.depth);if(i===void 0)return!0;const a=e.doc.nodeAt(i);return r.node.type===(a==null?void 0:a.type)&&cn(e.doc,i)&&e.join(i),!0};var q1=Object.freeze({__proto__:null,blur:Qb,clearContent:Vb,clearNodes:jb,command:Zb,createParagraphNear:Wb,cut:Gb,deleteCurrentNode:Yb,deleteNode:qb,deleteRange:Xb,deleteSelection:Kb,enter:Jb,exitCode:e1,extendMarkRange:n1,first:r1,focus:i1,forEach:s1,insertContent:a1,insertContentAt:u1,joinUp:c1,joinDown:d1,joinBackward:h1,joinForward:p1,joinItemBackward:f1,joinItemForward:m1,joinTextblockBackward:g1,joinTextblockForward:b1,keyboardShortcut:y1,lift:E1,liftEmptyBlock:S1,liftListItem:Cp,newlineInCode:v1,resetAttributes:k1,scrollIntoView:w1,selectAll:x1,selectNodeBackward:T1,selectNodeForward:C1,selectParentNode:A1,selectTextblockEnd:_1,selectTextblockStart:N1,setContent:R1,setMark:Q1,setMeta:Rp,setNode:V1,setNodeSelection:j1,setTextSelection:Z1,sinkListItem:W1,splitBlock:G1,splitListItem:Y1,toggleList:(e,t,r,i={})=>({editor:a,tr:o,state:u,dispatch:d,chain:f,commands:b,can:E})=>{const{extensions:k,splittableMarks:x}=a.extensionManager,R=xs(e,u.schema),N=xs(t,u.schema),{selection:G,storedMarks:K}=u,{$from:ge,$to:de}=G,xe=ge.blockRange(de),ae=K||G.$to.parentOffset&&G.$from.marks();if(!xe)return!1;const Ve=Wd(He=>Lm(He.type.name,k))(G);if(xe.depth>=1&&Ve&&xe.depth-Ve.depth<=1){if(Ve.node.type===R)return b.liftListItem(N);if(Lm(Ve.node.type.name,k)&&R.validContent(Ve.node.content)&&d)return f().command(()=>(o.setNodeMarkup(Ve.pos,R),!0)).command(()=>Dp(o,R)).command(()=>Yd(o,R)).run()}return!r||!ae||!d?f().command(()=>E().wrapInList(R,i)?!0:b.clearNodes()).wrapInList(R,i).command(()=>Dp(o,R)).command(()=>Yd(o,R)).run():f().command(()=>{const He=E().wrapInList(R,i),_t=ae.filter(rn=>x.includes(rn.type.name));return o.ensureMarks(_t),He?!0:b.clearNodes()}).wrapInList(R,i).command(()=>Dp(o,R)).command(()=>Yd(o,R)).run()},toggleMark:(e,t={},r={})=>({state:i,commands:a})=>{const{extendEmptyMarkRange:o=!1}=r,u=Io(e,i.schema);return Np(i,u,t)?a.unsetMark(u,{extendEmptyMarkRange:o}):a.setMark(u,t)},toggleNode:(e,t,r={})=>({state:i,commands:a})=>{const o=xs(e,i.schema),u=xs(t,i.schema);return Xl(i,o,r)?a.setNode(u):a.setNode(o,r)},toggleWrap:(e,t={})=>({state:r,commands:i})=>{const a=xs(e,r.schema);return Xl(r,a,t)?i.lift(a):i.wrapIn(a,t)},undoInputRule:()=>({state:e,dispatch:t})=>{const r=e.plugins;for(let i=0;i=0;f-=1)u.step(d.steps[f].invert(d.docs[f]));if(o.text){const f=u.doc.resolve(o.from).marks();u.replaceWith(o.from,o.to,e.schema.text(o.text,f))}else u.delete(o.from,o.to)}return!0}}return!1},unsetAllMarks:()=>({tr:e,dispatch:t})=>{const{selection:r}=e,{empty:i,ranges:a}=r;return i||t&&a.forEach(o=>{e.removeMark(o.$from.pos,o.$to.pos)}),!0},unsetMark:(e,t={})=>({tr:r,state:i,dispatch:a})=>{var o;const{extendEmptyMarkRange:u=!1}=t,{selection:d}=r,f=Io(e,i.schema),{$from:b,empty:E,ranges:k}=d;if(!a)return!0;if(E&&u){let{from:x,to:R}=d;const N=(o=b.marks().find(K=>K.type===f))===null||o===void 0?void 0:o.attrs,G=wp(b,f,N);G&&(x=G.from,R=G.to),r.removeMark(x,R,f)}else k.forEach(x=>{r.removeMark(x.$from.pos,x.$to.pos,f)});return r.removeStoredMark(f),!0},updateAttributes:(e,t={})=>({tr:r,state:i,dispatch:a})=>{let o=null,u=null;const d=Zd(typeof e=="string"?e:e.name,i.schema);return d?(d==="node"&&(o=xs(e,i.schema)),d==="mark"&&(u=Io(e,i.schema)),a&&r.selection.ranges.forEach(f=>{const b=f.$from.pos,E=f.$to.pos;i.doc.nodesBetween(b,E,(k,x)=>{o&&o===k.type&&r.setNodeMarkup(x,void 0,je(je({},k.attrs),t)),u&&k.marks.length&&k.marks.forEach(R=>{if(u===R.type){const N=Math.max(x,b),G=Math.min(x+k.nodeSize,E);r.addMark(N,G,u.create(je(je({},R.attrs),t)))}})})}),!0):!1},wrapIn:(e,t={})=>({state:r,dispatch:i})=>{const a=xs(e,r.schema);return Sb(a,t)(r,i)},wrapInList:(e,t={})=>({state:r,dispatch:i})=>{const a=xs(e,r.schema);return vb(a,t)(r,i)}});const Fm=xi.create({name:"commands",addCommands(){return je({},q1)}}),Bm=xi.create({name:"editable",addProseMirrorPlugins(){return[new Di({key:new _i("editable"),props:{editable:()=>this.editor.options.editable}})]}}),$m=xi.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new Di({key:new _i("focusEvents"),props:{handleDOMEvents:{focus:(t,r)=>{e.isFocused=!0;const i=e.state.tr.setMeta("focus",{event:r}).setMeta("addToHistory",!1);return t.dispatch(i),!1},blur:(t,r)=>{e.isFocused=!1;const i=e.state.tr.setMeta("blur",{event:r}).setMeta("addToHistory",!1);return t.dispatch(i),!1}}}})]}}),Um=xi.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:u})=>{const{selection:d,doc:f}=u,{empty:b,$anchor:E}=d,{pos:k,parent:x}=E,R=E.parent.isTextblock&&k>0?u.doc.resolve(k-1):E,N=R.parent.type.spec.isolating,G=E.pos-E.parentOffset,K=N&&R.parent.childCount===1?G===E.pos:B.atStart(f).from===k;return!b||!x.type.isTextblock||x.textContent.length||!K||K&&E.parent.type.name==="paragraph"?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},i=je({},r),a=_n(je({},r),{"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()});return Tp()||_m()?a:i},addProseMirrorPlugins(){return[new Di({key:new _i("clearDocument"),appendTransaction:(e,t,r)=>{if(!(e.some(k=>k.docChanged)&&!t.doc.eq(r.doc)))return;const{empty:i,from:a,to:o}=t.selection,u=B.atStart(t.doc).from,d=B.atEnd(t.doc).to;if(i||!(a===u&&o===d)||r.doc.textBetween(0,r.doc.content.size," "," ").length!==0)return;const f=r.tr,b=$d({state:r,transaction:f}),{commands:E}=new Ud({editor:this.editor,state:b});if(E.clearNodes(),!!f.steps.length)return f}})]}}),Hm=xi.create({name:"tabindex",addProseMirrorPlugins(){return[new Di({key:new _i("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var X1=Object.freeze({__proto__:null,ClipboardTextSerializer:xm,Commands:Fm,Editable:Bm,FocusEvents:$m,Keymap:Um,Tabindex:Hm});class Kl{constructor(t,r,i=!1,a=null){this.currentNode=null,this.actualDepth=null,this.isBlock=i,this.resolvedPos=t,this.editor=r,this.currentNode=a}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return(t=this.actualDepth)!==null&&t!==void 0?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let r=this.from,i=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can\u2019t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}r=this.from+1,i=this.to-1}this.editor.commands.insertContentAt({from:r,to:i},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),r=this.resolvedPos.doc.resolve(t);return new Kl(r,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new Kl(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new Kl(t,this.editor)}get children(){const t=[];return this.node.content.forEach((r,i)=>{const a=r.isBlock&&!r.isTextblock,o=this.pos+i+1,u=this.resolvedPos.doc.resolve(o);if(!a&&u.depth<=this.depth)return;const d=new Kl(u,this.editor,a,a?r:null);a&&(d.actualDepth=this.depth+1),t.push(new Kl(u,this.editor,a,a?r:null))}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,r={}){let i=null,a=this.parent;for(;a&&!i;){if(a.node.type.name===t)if(Object.keys(r).length>0){const o=a.node.attrs,u=Object.keys(r);for(let d=0;d{i&&a.length>0||(u.node.type.name===t&&o.every(d=>r[d]===u.node.attrs[d])&&a.push(u),!(i&&a.length>0)&&(a=a.concat(u.querySelectorAll(t,r,i))))}),a}setAttribute(t){const r=this.editor.state.selection;this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name,t).setTextSelection(r.from).run()}}const K1=`.ProseMirror { - position: relative; -} - -.ProseMirror { - word-wrap: break-word; - white-space: pre-wrap; - white-space: break-spaces; - -webkit-font-variant-ligatures: none; - font-variant-ligatures: none; - font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ -} - -.ProseMirror [contenteditable="false"] { - white-space: normal; -} - -.ProseMirror [contenteditable="false"] [contenteditable="true"] { - white-space: pre-wrap; -} - -.ProseMirror pre { - white-space: pre-wrap; -} - -img.ProseMirror-separator { - display: inline !important; - border: none !important; - margin: 0 !important; - width: 1px !important; - height: 1px !important; -} - -.ProseMirror-gapcursor { - display: none; - pointer-events: none; - position: absolute; - margin: 0; -} - -.ProseMirror-gapcursor:after { - content: ""; - display: block; - position: absolute; - top: -2px; - width: 20px; - border-top: 1px solid black; - animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; -} - -@keyframes ProseMirror-cursor-blink { - to { - visibility: hidden; - } -} - -.ProseMirror-hideselection *::selection { - background: transparent; -} - -.ProseMirror-hideselection *::-moz-selection { - background: transparent; -} - -.ProseMirror-hideselection * { - caret-color: transparent; -} - -.ProseMirror-focused .ProseMirror-gapcursor { - display: block; -} - -.tippy-box[data-animation=fade][data-state=hidden] { - opacity: 0 -}`;function J1(e,t,r){const i=document.querySelector(`style[data-tiptap-style${r?`-${r}`:""}]`);if(i!==null)return i;const a=document.createElement("style");return t&&a.setAttribute("nonce",t),a.setAttribute(`data-tiptap-style${r?`-${r}`:""}`,""),a.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(a),a}class eO extends Ab{constructor(t={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=J1(K1,this.options.injectNonce))}setOptions(t={}){this.options=je(je({},this.options),t),!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,r=!0){this.setOptions({editable:t}),r&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,r){const i=Em(r)?r(t,[...this.state.plugins]):[...this.state.plugins,t],a=this.state.reconfigure({plugins:i});this.view.updateState(a)}unregisterPlugin(t){if(this.isDestroyed)return;const r=typeof t=="string"?`${t}$`:t.key,i=this.state.reconfigure({plugins:this.state.plugins.filter(a=>!a.key.startsWith(r))});this.view.updateState(i)}createExtensionManager(){var t,r;const i=[...this.options.enableCoreExtensions?[Bm,xm.configure({blockSeparator:(r=(t=this.options.coreExtensionOptions)===null||t===void 0?void 0:t.clipboardTextSerializer)===null||r===void 0?void 0:r.blockSeparator}),Fm,$m,Um,Hm]:[],...this.options.extensions].filter(a=>["extension","node","mark"].includes(a==null?void 0:a.type));this.extensionManager=new Lu(i,this)}createCommandManager(){this.commandManager=new Ud({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const t=Rm(this.options.content,this.schema,this.options.parseOptions),r=Tm(t,this.options.autofocus);this.view=new xc(this.options.element,_n(je({},this.options.editorProps),{dispatchTransaction:this.dispatchTransaction.bind(this),state:Go.create({doc:t,selection:r||void 0})}));const i=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(i),this.createNodeViews(),this.prependClass();const a=this.view.dom;a.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const r=this.capturedTransaction;return this.capturedTransaction=null,r}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=t;return}t.steps.forEach(u=>{var d;return(d=this.capturedTransaction)===null||d===void 0?void 0:d.step(u)});return}const r=this.state.apply(t),i=!this.state.selection.eq(r.selection);this.view.updateState(r),this.emit("transaction",{editor:this,transaction:t}),i&&this.emit("selectionUpdate",{editor:this,transaction:t});const a=t.getMeta("focus"),o=t.getMeta("blur");a&&this.emit("focus",{editor:this,event:a.event,transaction:t}),o&&this.emit("blur",{editor:this,event:o.event,transaction:t}),!(!t.docChanged||t.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return Im(this.state,t)}isActive(t,r){const i=typeof t=="string"?t:null,a=typeof t=="string"?r:t;return U1(this.state,i,a)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Ap(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:r=` - -`,textSerializers:i={}}=t||{};return M1(this.state.doc,{blockSeparator:r,textSerializers:je(je({},wm(this.schema)),i)})}get isEmpty(){return H1(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var t;return!(!((t=this.view)===null||t===void 0)&&t.docView)}$node(t,r){var i;return((i=this.$doc)===null||i===void 0?void 0:i.querySelector(t,r))||null}$nodes(t,r){var i;return((i=this.$doc)===null||i===void 0?void 0:i.querySelectorAll(t,r))||null}$pos(t){const r=this.state.doc.resolve(t);return new Kl(r,this)}get $doc(){return this.$pos(0)}}function Jl(e){return new Rc({find:e.find,handler:({state:t,range:r,match:i})=>{const a=ai(e.getAttributes,void 0,i);if(a===!1||a===null)return null;const{tr:o}=t,u=i[i.length-1],d=i[0];if(u){const f=d.search(/\S/),b=r.from+d.indexOf(u),E=b+u.length;if(_p(r.from,r.to,t.doc).filter(x=>x.mark.type.excluded.find(R=>R===e.type&&R!==x.mark.type)).filter(x=>x.to>b).length)return null;Er.from&&o.delete(r.from+f,b);const k=r.from+f+u.length;o.addMark(r.from+f,k,e.type.create(a||{})),o.removeStoredMark(e.type)}}})}function Ip(e){return new Rc({find:e.find,handler:({state:t,range:r,match:i})=>{const a=ai(e.getAttributes,void 0,i)||{},{tr:o}=t,u=r.from;let d=r.to;const f=e.type.create(a);if(i[1]){const b=i[0].lastIndexOf(i[1]);let E=u+b;E>d?E=d:d=E+i[1].length;const k=i[0][i[0].length-1];o.insertText(k,u+i[0].length-1),o.replaceWith(E,d,f)}else i[0]&&o.insert(u-1,e.type.create(a)).delete(o.mapping.map(u),o.mapping.map(d));o.scrollIntoView()}})}function Lp(e){return new Rc({find:e.find,handler:({state:t,range:r,match:i})=>{const a=t.doc.resolve(r.from),o=ai(e.getAttributes,void 0,i)||{};if(!a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),e.type))return null;t.tr.delete(r.from,r.to).setBlockType(r.from,r.from,e.type,o)}})}function eu(e){return new Rc({find:e.find,handler:({state:t,range:r,match:i,chain:a})=>{const o=ai(e.getAttributes,void 0,i)||{},u=t.tr.delete(r.from,r.to),d=u.doc.resolve(r.from).blockRange(),f=d&&U(d,e.type,o);if(!f)return null;if(u.wrap(d,f),e.keepMarks&&e.editor){const{selection:E,storedMarks:k}=t,{splittableMarks:x}=e.editor.extensionManager,R=k||E.$to.parentOffset&&E.$from.marks();if(R){const N=R.filter(G=>x.includes(G.type.name));u.ensureMarks(N)}}if(e.keepAttributes){const E=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";a().updateAttributes(E,o).run()}const b=u.doc.resolve(r.from-1).nodeBefore;b&&b.type===e.type&&cn(u.doc,r.from-1)&&(!e.joinPredicate||e.joinPredicate(i,b))&&u.join(r.from-1)}})}class Ji{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config=je(je({},this.config),t),this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ai(or(this,"addOptions",{name:this.name}))),this.storage=ai(or(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Ji(t)}configure(t={}){const r=this.extend();return r.options=Qd(this.options,t),r.storage=ai(or(r,"addStorage",{name:r.name,options:r.options})),r}extend(t={}){const r=new Ji(je(je({},this.config),t));return r.parent=this,this.child=r,r.name=t.name?t.name:r.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${r.name}".`),r.options=ai(or(r,"addOptions",{name:r.name})),r.storage=ai(or(r,"addStorage",{name:r.name,options:r.options})),r}static handleExit({editor:t,mark:r}){const{tr:i}=t.state,a=t.state.selection.$from;if(a.pos===a.end()){const o=a.marks();if(!o.find(d=>(d==null?void 0:d.type.name)===r.name))return!1;const u=o.find(d=>(d==null?void 0:d.type.name)===r.name);return u&&i.removeStoredMark(u),i.insertText(" ",a.pos),t.view.dispatch(i),!0}return!1}}let ci=class GD{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config=je(je({},this.config),t),this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ai(or(this,"addOptions",{name:this.name}))),this.storage=ai(or(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new GD(t)}configure(t={}){const r=this.extend();return r.options=Qd(this.options,t),r.storage=ai(or(r,"addStorage",{name:r.name,options:r.options})),r}extend(t={}){const r=new GD(je(je({},this.config),t));return r.parent=this,this.child=r,r.name=t.name?t.name:r.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${r.name}".`),r.options=ai(or(r,"addOptions",{name:r.name})),r.storage=ai(or(r,"addStorage",{name:r.name,options:r.options})),r}};function ll(e){return new Pb({find:e.find,handler:({state:t,range:r,match:i,pasteEvent:a})=>{const o=ai(e.getAttributes,void 0,i,a);if(o===!1||o===null)return null;const{tr:u}=t,d=i[i.length-1],f=i[0];let b=r.to;if(d){const E=f.search(/\S/),k=r.from+f.indexOf(d),x=k+d.length;if(_p(r.from,r.to,t.doc).filter(R=>R.mark.type.excluded.find(N=>N===e.type&&N!==R.mark.type)).filter(R=>R.to>k).length)return null;xr.from&&u.delete(r.from+E,k),b=r.from+E+d.length,u.addMark(r.from+E,b,e.type.create(o||{})),u.removeStoredMark(e.type)}}})}function tO(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}class Oi extends HTMLElement{constructor(){super(),Ue(this,"template",""),Ue(this,"editor"),Ue(this,"options")}registerClickListener(){this.addEventListener("click",()=>{var t;const r=(t=this.editor)==null?void 0:t.chain();this.onClick(r),r==null||r.run()})}connectedCallback(){this.innerHTML=this.template}onClick(t){}onCreate(t,r){this.editor=t.editor,this.options=r}onTransaction(t){const r=this.querySelector("div");r&&(this.onActive(t.editor)?r.classList.add("active"):r.classList.remove("active"))}onActive(t){return!1}}class zm extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(t){t.undo()}}class nO extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(t){t.redo()}}var ca="top",La="bottom",Ma="right",da="left",Mp="auto",Lc=[ca,La,Ma,da],Fu="start",Mc="end",rO="clippingParents",Qm="viewport",Pc="popper",iO="reference",Vm=Lc.reduce(function(e,t){return e.concat([t+"-"+Fu,t+"-"+Mc])},[]),jm=[].concat(Lc,[Mp]).reduce(function(e,t){return e.concat([t,t+"-"+Fu,t+"-"+Mc])},[]),sO="beforeRead",aO="read",oO="afterRead",lO="beforeMain",uO="main",cO="afterMain",dO="beforeWrite",hO="write",pO="afterWrite",Zm=[sO,aO,oO,lO,uO,cO,dO,hO,pO];function uo(e){return e?(e.nodeName||"").toLowerCase():null}function ka(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tu(e){var t=ka(e).Element;return e instanceof t||e instanceof Element}function Pa(e){var t=ka(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Pp(e){if(typeof ShadowRoot>"u")return!1;var t=ka(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fO(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!Pa(o)||!uo(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(u){var d=a[u];d===!1?o.removeAttribute(u):o.setAttribute(u,d===!0?"":d)}))})}function mO(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var a=t.elements[i],o=t.attributes[i]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),d=u.reduce(function(f,b){return f[b]="",f},{});!Pa(a)||!uo(a)||(Object.assign(a.style,d),Object.keys(o).forEach(function(f){a.removeAttribute(f)}))})}}const Wm={name:"applyStyles",enabled:!0,phase:"write",fn:fO,effect:mO,requires:["computeStyles"]};function co(e){return e.split("-")[0]}var nu=Math.max,qd=Math.min,Bu=Math.round;function Fp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Gm(){return!/^((?!chrome|android).)*safari/i.test(Fp())}function $u(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),a=1,o=1;t&&Pa(e)&&(a=e.offsetWidth>0&&Bu(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Bu(i.height)/e.offsetHeight||1);var u=tu(e)?ka(e):window,d=u.visualViewport,f=!Gm()&&r,b=(i.left+(f&&d?d.offsetLeft:0))/a,E=(i.top+(f&&d?d.offsetTop:0))/o,k=i.width/a,x=i.height/o;return{width:k,height:x,top:E,right:b+k,bottom:E+x,left:b,x:b,y:E}}function Bp(e){var t=$u(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function Ym(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Pp(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Mo(e){return ka(e).getComputedStyle(e)}function qm(e){return["table","td","th"].indexOf(uo(e))>=0}function ul(e){return((tu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xd(e){return uo(e)==="html"?e:e.assignedSlot||e.parentNode||(Pp(e)?e.host:null)||ul(e)}function Xm(e){return!Pa(e)||Mo(e).position==="fixed"?null:e.offsetParent}function gO(e){var t=/firefox/i.test(Fp()),r=/Trident/i.test(Fp());if(r&&Pa(e)){var i=Mo(e);if(i.position==="fixed")return null}var a=Xd(e);for(Pp(a)&&(a=a.host);Pa(a)&&["html","body"].indexOf(uo(a))<0;){var o=Mo(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function Fc(e){for(var t=ka(e),r=Xm(e);r&&qm(r)&&Mo(r).position==="static";)r=Xm(r);return r&&(uo(r)==="html"||uo(r)==="body"&&Mo(r).position==="static")?t:r||gO(e)||t}function $p(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bc(e,t,r){return nu(e,qd(t,r))}function bO(e,t,r){var i=Bc(e,t,r);return i>r?r:i}function Km(){return{top:0,right:0,bottom:0,left:0}}function Kd(e){return Object.assign({},Km(),e)}function Jm(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var OO=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Kd(typeof e!="number"?e:Jm(e,Lc))};function yO(e){var t,r=e.state,i=e.name,a=e.options,o=r.elements.arrow,u=r.modifiersData.popperOffsets,d=co(r.placement),f=$p(d),b=[da,Ma].indexOf(d)>=0,E=b?"height":"width";if(!(!o||!u)){var k=OO(a.padding,r),x=Bp(o),R=f==="y"?ca:da,N=f==="y"?La:Ma,G=r.rects.reference[E]+r.rects.reference[f]-u[f]-r.rects.popper[E],K=u[f]-r.rects.reference[f],ge=Fc(o),de=ge?f==="y"?ge.clientHeight||0:ge.clientWidth||0:0,xe=G/2-K/2,ae=k[R],Ve=de-x[E]-k[N],He=de/2-x[E]/2+xe,_t=Bc(ae,He,Ve),rn=f;r.modifiersData[i]=(t={},t[rn]=_t,t.centerOffset=_t-He,t)}}function EO(e){var t=e.state,r=e.options,i=r.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Ym(t.elements.popper,a)&&(t.elements.arrow=a))}const SO={name:"arrow",enabled:!0,phase:"main",fn:yO,effect:EO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Uu(e){return e.split("-")[1]}var vO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kO(e,t){var r=e.x,i=e.y,a=t.devicePixelRatio||1;return{x:Bu(r*a)/a||0,y:Bu(i*a)/a||0}}function eg(e){var t,r=e.popper,i=e.popperRect,a=e.placement,o=e.variation,u=e.offsets,d=e.position,f=e.gpuAcceleration,b=e.adaptive,E=e.roundOffsets,k=e.isFixed,x=u.x,R=x===void 0?0:x,N=u.y,G=N===void 0?0:N,K=typeof E=="function"?E({x:R,y:G}):{x:R,y:G};R=K.x,G=K.y;var ge=u.hasOwnProperty("x"),de=u.hasOwnProperty("y"),xe=da,ae=ca,Ve=window;if(b){var He=Fc(r),_t="clientHeight",rn="clientWidth";if(He===ka(r)&&(He=ul(r),Mo(He).position!=="static"&&d==="absolute"&&(_t="scrollHeight",rn="scrollWidth")),He=He,a===ca||(a===da||a===Ma)&&o===Mc){ae=La;var St=k&&He===Ve&&Ve.visualViewport?Ve.visualViewport.height:He[_t];G-=St-i.height,G*=f?1:-1}if(a===da||(a===ca||a===La)&&o===Mc){xe=Ma;var xn=k&&He===Ve&&Ve.visualViewport?Ve.visualViewport.width:He[rn];R-=xn-i.width,R*=f?1:-1}}var tr=Object.assign({position:d},b&&vO),Xn=E===!0?kO({x:R,y:G},ka(r)):{x:R,y:G};if(R=Xn.x,G=Xn.y,f){var pr;return Object.assign({},tr,(pr={},pr[ae]=de?"0":"",pr[xe]=ge?"0":"",pr.transform=(Ve.devicePixelRatio||1)<=1?"translate("+R+"px, "+G+"px)":"translate3d("+R+"px, "+G+"px, 0)",pr))}return Object.assign({},tr,(t={},t[ae]=de?G+"px":"",t[xe]=ge?R+"px":"",t.transform="",t))}function wO(e){var t=e.state,r=e.options,i=r.gpuAcceleration,a=i===void 0?!0:i,o=r.adaptive,u=o===void 0?!0:o,d=r.roundOffsets,f=d===void 0?!0:d,b={placement:co(t.placement),variation:Uu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,eg(Object.assign({},b,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,eg(Object.assign({},b,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wO,data:{}};var Jd={passive:!0};function TO(e){var t=e.state,r=e.instance,i=e.options,a=i.scroll,o=a===void 0?!0:a,u=i.resize,d=u===void 0?!0:u,f=ka(t.elements.popper),b=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&b.forEach(function(E){E.addEventListener("scroll",r.update,Jd)}),d&&f.addEventListener("resize",r.update,Jd),function(){o&&b.forEach(function(E){E.removeEventListener("scroll",r.update,Jd)}),d&&f.removeEventListener("resize",r.update,Jd)}}const CO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:TO,data:{}};var AO={left:"right",right:"left",bottom:"top",top:"bottom"};function eh(e){return e.replace(/left|right|bottom|top/g,function(t){return AO[t]})}var _O={start:"end",end:"start"};function tg(e){return e.replace(/start|end/g,function(t){return _O[t]})}function Up(e){var t=ka(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Hp(e){return $u(ul(e)).left+Up(e).scrollLeft}function NO(e,t){var r=ka(e),i=ul(e),a=r.visualViewport,o=i.clientWidth,u=i.clientHeight,d=0,f=0;if(a){o=a.width,u=a.height;var b=Gm();(b||!b&&t==="fixed")&&(d=a.offsetLeft,f=a.offsetTop)}return{width:o,height:u,x:d+Hp(e),y:f}}function RO(e){var t,r=ul(e),i=Up(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=nu(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),u=nu(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-i.scrollLeft+Hp(e),f=-i.scrollTop;return Mo(a||r).direction==="rtl"&&(d+=nu(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:u,x:d,y:f}}function zp(e){var t=Mo(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function ng(e){return["html","body","#document"].indexOf(uo(e))>=0?e.ownerDocument.body:Pa(e)&&zp(e)?e:ng(Xd(e))}function $c(e,t){var r;t===void 0&&(t=[]);var i=ng(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=ka(i),u=a?[o].concat(o.visualViewport||[],zp(i)?i:[]):i,d=t.concat(u);return a?d:d.concat($c(Xd(u)))}function Qp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function DO(e,t){var r=$u(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function rg(e,t,r){return t===Qm?Qp(NO(e,r)):tu(t)?DO(t,r):Qp(RO(ul(e)))}function IO(e){var t=$c(Xd(e)),r=["absolute","fixed"].indexOf(Mo(e).position)>=0,i=r&&Pa(e)?Fc(e):e;return tu(i)?t.filter(function(a){return tu(a)&&Ym(a,i)&&uo(a)!=="body"}):[]}function LO(e,t,r,i){var a=t==="clippingParents"?IO(e):[].concat(t),o=[].concat(a,[r]),u=o[0],d=o.reduce(function(f,b){var E=rg(e,b,i);return f.top=nu(E.top,f.top),f.right=qd(E.right,f.right),f.bottom=qd(E.bottom,f.bottom),f.left=nu(E.left,f.left),f},rg(e,u,i));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function ig(e){var t=e.reference,r=e.element,i=e.placement,a=i?co(i):null,o=i?Uu(i):null,u=t.x+t.width/2-r.width/2,d=t.y+t.height/2-r.height/2,f;switch(a){case ca:f={x:u,y:t.y-r.height};break;case La:f={x:u,y:t.y+t.height};break;case Ma:f={x:t.x+t.width,y:d};break;case da:f={x:t.x-r.width,y:d};break;default:f={x:t.x,y:t.y}}var b=a?$p(a):null;if(b!=null){var E=b==="y"?"height":"width";switch(o){case Fu:f[b]=f[b]-(t[E]/2-r[E]/2);break;case Mc:f[b]=f[b]+(t[E]/2-r[E]/2);break}}return f}function Hu(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=i===void 0?e.placement:i,o=r.strategy,u=o===void 0?e.strategy:o,d=r.boundary,f=d===void 0?rO:d,b=r.rootBoundary,E=b===void 0?Qm:b,k=r.elementContext,x=k===void 0?Pc:k,R=r.altBoundary,N=R===void 0?!1:R,G=r.padding,K=G===void 0?0:G,ge=Kd(typeof K!="number"?K:Jm(K,Lc)),de=x===Pc?iO:Pc,xe=e.rects.popper,ae=e.elements[N?de:x],Ve=LO(tu(ae)?ae:ae.contextElement||ul(e.elements.popper),f,E,u),He=$u(e.elements.reference),_t=ig({reference:He,element:xe,strategy:"absolute",placement:a}),rn=Qp(Object.assign({},xe,_t)),St=x===Pc?rn:He,xn={top:Ve.top-St.top+ge.top,bottom:St.bottom-Ve.bottom+ge.bottom,left:Ve.left-St.left+ge.left,right:St.right-Ve.right+ge.right},tr=e.modifiersData.offset;if(x===Pc&&tr){var Xn=tr[a];Object.keys(xn).forEach(function(pr){var Hr=[Ma,La].indexOf(pr)>=0?1:-1,sr=[ca,La].indexOf(pr)>=0?"y":"x";xn[pr]+=Xn[sr]*Hr})}return xn}function vS(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=r.boundary,o=r.rootBoundary,u=r.padding,d=r.flipVariations,f=r.allowedAutoPlacements,b=f===void 0?jm:f,E=Uu(i),k=E?d?Vm:Vm.filter(function(N){return Uu(N)===E}):Lc,x=k.filter(function(N){return b.indexOf(N)>=0});x.length===0&&(x=k);var R=x.reduce(function(N,G){return N[G]=Hu(e,{placement:G,boundary:a,rootBoundary:o,padding:u})[co(G)],N},{});return Object.keys(R).sort(function(N,G){return R[N]-R[G]})}function MO(e){if(co(e)===Mp)return[];var t=eh(e);return[tg(e),t,tg(t)]}function kS(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,u=r.altAxis,d=u===void 0?!0:u,f=r.fallbackPlacements,b=r.padding,E=r.boundary,k=r.rootBoundary,x=r.altBoundary,R=r.flipVariations,N=R===void 0?!0:R,G=r.allowedAutoPlacements,K=t.options.placement,ge=co(K),de=ge===K,xe=f||(de||!N?[eh(K)]:MO(K)),ae=[K].concat(xe).reduce(function(Pi,yi){return Pi.concat(co(yi)===Mp?vS(t,{placement:yi,boundary:E,rootBoundary:k,padding:b,flipVariations:N,allowedAutoPlacements:G}):yi)},[]),Ve=t.rects.reference,He=t.rects.popper,_t=new Map,rn=!0,St=ae[0],xn=0;xn=0,sr=Hr?"width":"height",$t=Hu(t,{placement:tr,boundary:E,rootBoundary:k,altBoundary:x,padding:b}),rt=Hr?pr?Ma:da:pr?La:ca;Ve[sr]>He[sr]&&(rt=eh(rt));var Lt=eh(rt),gn=[];if(o&&gn.push($t[Xn]<=0),d&&gn.push($t[rt]<=0,$t[Lt]<=0),gn.every(function(Pi){return Pi})){St=tr,rn=!1;break}_t.set(tr,gn)}if(rn)for(var Vn=N?3:1,Rr=function(Pi){var yi=ae.find(function(ss){var ro=_t.get(ss);if(ro)return ro.slice(0,Pi).every(function(za){return za})});if(yi)return St=yi,"break"},Zr=Vn;Zr>0;Zr--){var Wi=Rr(Zr);if(Wi==="break")break}t.placement!==St&&(t.modifiersData[i]._skip=!0,t.placement=St,t.reset=!0)}}const YD={name:"flip",enabled:!0,phase:"main",fn:kS,requiresIfExists:["offset"],data:{_skip:!1}};function wS(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function aa(e){return[ca,Ma,La,da].some(function(t){return e[t]>=0})}function sg(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,u=Hu(t,{elementContext:"reference"}),d=Hu(t,{altBoundary:!0}),f=wS(u,i),b=wS(d,a,o),E=aa(f),k=aa(b);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:b,isReferenceHidden:E,hasPopperEscaped:k},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":E,"data-popper-escaped":k})}const PO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sg};function gT(e,t,r){var i=co(e),a=[da,ca].indexOf(i)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=o[0],d=o[1];return u=u||0,d=(d||0)*a,[da,Ma].indexOf(i)>=0?{x:d,y:u}:{x:u,y:d}}function xS(e){var t=e.state,r=e.options,i=e.name,a=r.offset,o=a===void 0?[0,0]:a,u=jm.reduce(function(E,k){return E[k]=gT(k,t.rects,o),E},{}),d=u[t.placement],f=d.x,b=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=b),t.modifiersData[i]=u}const bT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xS};function ag(e){var t=e.state,r=e.name;t.modifiersData[r]=ig({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const TS={name:"popperOffsets",enabled:!0,phase:"read",fn:ag,data:{}};function OT(e){return e==="x"?"y":"x"}function yT(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,o=a===void 0?!0:a,u=r.altAxis,d=u===void 0?!1:u,f=r.boundary,b=r.rootBoundary,E=r.altBoundary,k=r.padding,x=r.tether,R=x===void 0?!0:x,N=r.tetherOffset,G=N===void 0?0:N,K=Hu(t,{boundary:f,rootBoundary:b,padding:k,altBoundary:E}),ge=co(t.placement),de=Uu(t.placement),xe=!de,ae=$p(ge),Ve=OT(ae),He=t.modifiersData.popperOffsets,_t=t.rects.reference,rn=t.rects.popper,St=typeof G=="function"?G(Object.assign({},t.rects,{placement:t.placement})):G,xn=typeof St=="number"?{mainAxis:St,altAxis:St}:Object.assign({mainAxis:0,altAxis:0},St),tr=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Xn={x:0,y:0};if(He){if(o){var pr,Hr=ae==="y"?ca:da,sr=ae==="y"?La:Ma,$t=ae==="y"?"height":"width",rt=He[ae],Lt=rt+K[Hr],gn=rt-K[sr],Vn=R?-rn[$t]/2:0,Rr=de===Fu?_t[$t]:rn[$t],Zr=de===Fu?-rn[$t]:-_t[$t],Wi=t.elements.arrow,Pi=R&&Wi?Bp(Wi):{width:0,height:0},yi=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Km(),ss=yi[Hr],ro=yi[sr],za=Bc(0,_t[$t],Pi[$t]),mu=xe?_t[$t]/2-Vn-za-ss-xn.mainAxis:Rr-za-ss-xn.mainAxis,Oo=xe?-_t[$t]/2+Vn+za+ro+xn.mainAxis:Zr+za+ro+xn.mainAxis,wl=t.elements.arrow&&Fc(t.elements.arrow),Zo=wl?ae==="y"?wl.clientTop||0:wl.clientLeft||0:0,vi=(pr=tr==null?void 0:tr[ae])!=null?pr:0,Es=rt+mu-vi-Zo,io=rt+Oo-vi,Ns=Bc(R?qd(Lt,Es):Lt,rt,R?nu(gn,io):gn);He[ae]=Ns,Xn[ae]=Ns-rt}if(d){var Jr,gu=ae==="x"?ca:da,dr=ae==="x"?La:Ma,Ei=He[Ve],Fi=Ve==="y"?"height":"width",gi=Ei+K[gu],Qa=Ei-K[dr],Aa=[ca,da].indexOf(ge)!==-1,jn=(Jr=tr==null?void 0:tr[Ve])!=null?Jr:0,Or=Aa?gi:Ei-_t[Fi]-rn[Fi]-jn+xn.altAxis,qt=Aa?Ei+_t[Fi]+rn[Fi]-jn-xn.altAxis:Qa,wn=R&&Aa?bO(Or,Ei,qt):Bc(R?Or:gi,Ei,R?qt:Qa);He[Ve]=wn,Xn[Ve]=wn-Ei}t.modifiersData[i]=Xn}}const CS={name:"preventOverflow",enabled:!0,phase:"main",fn:yT,requiresIfExists:["offset"]};function og(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ET(e){return e===ka(e)||!Pa(e)?Up(e):og(e)}function FO(e){var t=e.getBoundingClientRect(),r=Bu(t.width)/e.offsetWidth||1,i=Bu(t.height)/e.offsetHeight||1;return r!==1||i!==1}function ST(e,t,r){r===void 0&&(r=!1);var i=Pa(t),a=Pa(t)&&FO(t),o=ul(t),u=$u(e,a,r),d={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((uo(t)!=="body"||zp(o))&&(d=ET(t)),Pa(t)?(f=$u(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):o&&(f.x=Hp(o))),{x:u.left+d.scrollLeft-f.x,y:u.top+d.scrollTop-f.y,width:u.width,height:u.height}}function vT(e){var t=new Map,r=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var u=[].concat(o.requires||[],o.requiresIfExists||[]);u.forEach(function(d){if(!r.has(d)){var f=t.get(d);f&&a(f)}}),i.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),i}function kT(e){var t=vT(e);return Zm.reduce(function(r,i){return r.concat(t.filter(function(a){return a.phase===i}))},[])}function AS(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function th(e){var t=e.reduce(function(r,i){var a=r[i.name];return r[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var cl={placement:"bottom",modifiers:[],strategy:"absolute"};function lg(){for(var e=arguments.length,t=new Array(e),r=0;r-1}function LS(e,t){return typeof e=="function"?e.apply(void 0,t):e}function MS(e,t){if(t===0)return e;var r;return function(i){clearTimeout(r),r=setTimeout(function(){e(i)},t)}}function QO(e,t){var r=Object.assign({},e);return t.forEach(function(i){delete r[i]}),r}function wT(e){return e.split(/\s+/).filter(Boolean)}function Zp(e){return[].concat(e)}function xT(e,t){e.indexOf(t)===-1&&e.push(t)}function VO(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function TT(e){return e.split("-")[0]}function Wp(e){return[].slice.call(e)}function jO(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function Gp(){return document.createElement("div")}function nh(e){return["Element","Fragment"].some(function(t){return zO(e,t)})}function rh(e){return zO(e,"NodeList")}function Ps(e){return zO(e,"MouseEvent")}function ha(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function qD(e){return nh(e)?[e]:rh(e)?Wp(e):Array.isArray(e)?e:Wp(document.querySelectorAll(e))}function ZO(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function PS(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function FS(e){var t,r=Zp(e),i=r[0];return i!=null&&(t=i.ownerDocument)!=null&&t.body?i.ownerDocument:document}function BS(e,t){var r=t.clientX,i=t.clientY;return e.every(function(a){var o=a.popperRect,u=a.popperState,d=a.props,f=d.interactiveBorder,b=TT(u.placement),E=u.modifiersData.offset;if(!E)return!0;var k=b==="bottom"?E.top.y:0,x=b==="top"?E.bottom.y:0,R=b==="right"?E.left.x:0,N=b==="left"?E.right.x:0,G=o.top-i+k>f,K=i-o.bottom-x>f,ge=o.left-r+R>f,de=r-o.right-N>f;return G||K||ge||de})}function WO(e,t,r){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[i](a,r)})}function $S(e,t){for(var r=t;r;){var i;if(e.contains(r))return!0;r=r.getRootNode==null||(i=r.getRootNode())==null?void 0:i.host}return!1}var dl={isTouch:!1},US=0;function GO(){dl.isTouch||(dl.isTouch=!0,window.performance&&document.addEventListener("mousemove",YO))}function YO(){var e=performance.now();e-US<20&&(dl.isTouch=!1,document.removeEventListener("mousemove",YO)),US=e}function ih(){var e=document.activeElement;if(ha(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function XD(){document.addEventListener("touchstart",GO,Po),window.addEventListener("blur",ih)}var KD=typeof window<"u"&&typeof document<"u",JD=KD?!!window.msCrypto:!1;function Yp(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function sh(e){var t=/[ \t]{2,}/g,r=/^[ \t]*/gm;return e.replace(t," ").replace(r,"").trim()}function ah(e){return sh(` - %ctippy.js - - %c`+sh(e)+` - - %c\u{1F477}\u200D This is a development-only message. It will be removed in production. - `)}function HS(e){return[ah(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var qp;({}).NODE_ENV!=="production"&&CT();function CT(){qp=new Set}function ru(e,t){if(e&&!qp.has(t)){var r;qp.add(t),(r=console).warn.apply(r,HS(t))}}function qO(e,t){if(e&&!qp.has(t)){var r;qp.add(t),(r=console).error.apply(r,HS(t))}}function AT(e){var t=!e,r=Object.prototype.toString.call(e)==="[object Object]"&&!e.addEventListener;qO(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),qO(r,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var cg={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},eI={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Xa=Object.assign({appendTo:UO,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},cg,eI),tI=Object.keys(Xa),zS=function(e){({}).NODE_ENV!=="production"&&XO(e,[]);var t=Object.keys(e);t.forEach(function(r){Xa[r]=e[r]})};function QS(e){var t=e.plugins||[],r=t.reduce(function(i,a){var o=a.name,u=a.defaultValue;if(o){var d;i[o]=e[o]!==void 0?e[o]:(d=Xa[o])!=null?d:u}return i},{});return Object.assign({},e,r)}function Uc(e,t){var r=t?Object.keys(QS(Object.assign({},Xa,{plugins:t}))):tI,i=r.reduce(function(a,o){var u=(e.getAttribute("data-tippy-"+o)||"").trim();if(!u)return a;if(o==="content")a[o]=u;else try{a[o]=JSON.parse(u)}catch(d){a[o]=u}return a},{});return i}function VS(e,t){var r=Object.assign({},t,{content:LS(t.content,[e])},t.ignoreAttributes?{}:Uc(e,t.plugins));return r.aria=Object.assign({},Xa.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}function XO(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var r=Object.keys(e);r.forEach(function(i){var a=QO(Xa,Object.keys(cg)),o=!jp(a,i);o&&(o=t.filter(function(u){return u.name===i}).length===0),ru(o,["`"+i+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",` - -`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/ -`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var jS=function(){return"innerHTML"};function KO(e,t){e[jS()]=t}function JO(e){var t=Gp();return e===!0?t.className=IS:(t.className=$O,nh(e)?t.appendChild(e):KO(t,e)),t}function ZS(e,t){nh(t.content)?(KO(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?KO(e,t.content):e.textContent=t.content)}function ey(e){var t=e.firstElementChild,r=Wp(t.children);return{box:t,content:r.find(function(i){return i.classList.contains(ug)}),arrow:r.find(function(i){return i.classList.contains(IS)||i.classList.contains($O)}),backdrop:r.find(function(i){return i.classList.contains(BO)})}}function ty(e){var t=Gp(),r=Gp();r.className=DS,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var i=Gp();i.className=ug,i.setAttribute("data-state","hidden"),ZS(i,e.props),t.appendChild(r),r.appendChild(i),a(e.props,e.props);function a(o,u){var d=ey(t),f=d.box,b=d.content,E=d.arrow;u.theme?f.setAttribute("data-theme",u.theme):f.removeAttribute("data-theme"),typeof u.animation=="string"?f.setAttribute("data-animation",u.animation):f.removeAttribute("data-animation"),u.inertia?f.setAttribute("data-inertia",""):f.removeAttribute("data-inertia"),f.style.maxWidth=typeof u.maxWidth=="number"?u.maxWidth+"px":u.maxWidth,u.role?f.setAttribute("role",u.role):f.removeAttribute("role"),(o.content!==u.content||o.allowHTML!==u.allowHTML)&&ZS(b,e.props),u.arrow?E?o.arrow!==u.arrow&&(f.removeChild(E),f.appendChild(JO(u.arrow))):f.appendChild(JO(u.arrow)):E&&f.removeChild(E)}return{popper:t,onUpdate:a}}ty.$$tippy=!0;var _T=1,ny=[],dg=[];function nI(e,t){var r=VS(e,Object.assign({},Xa,QS(jO(t)))),i,a,o,u=!1,d=!1,f=!1,b=!1,E,k,x,R=[],N=MS(Es,r.interactiveDebounce),G,K=_T++,ge=null,de=VO(r.plugins),xe={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},ae={id:K,reference:e,popper:Gp(),popperInstance:ge,props:r,state:xe,plugins:de,clearDelayTimeouts:Or,setProps:qt,setContent:wn,show:Dr,hide:mi,hideWithInteractivity:Js,enable:Aa,disable:jn,unmount:Wo,destroy:QD};if(!r.render)return{}.NODE_ENV!=="production"&&qO(!0,"render() function has not been supplied."),ae;var Ve=r.render(ae),He=Ve.popper,_t=Ve.onUpdate;He.setAttribute("data-tippy-root",""),He.id="tippy-"+ae.id,ae.popper=He,e._tippy=ae,He._tippy=ae;var rn=de.map(function(Gt){return Gt.fn(ae)}),St=e.hasAttribute("aria-expanded");return wl(),Vn(),rt(),Lt("onCreate",[ae]),r.showOnCreate&&gi(),He.addEventListener("mouseenter",function(){ae.props.interactive&&ae.state.isVisible&&ae.clearDelayTimeouts()}),He.addEventListener("mouseleave",function(){ae.props.interactive&&ae.props.trigger.indexOf("mouseenter")>=0&&Hr().addEventListener("mousemove",N)}),ae;function xn(){var Gt=ae.props.touch;return Array.isArray(Gt)?Gt:[Gt,0]}function tr(){return xn()[0]==="hold"}function Xn(){var Gt;return!!((Gt=ae.props.render)!=null&&Gt.$$tippy)}function pr(){return G||e}function Hr(){var Gt=pr().parentNode;return Gt?FS(Gt):document}function sr(){return ey(He)}function $t(Gt){return ae.state.isMounted&&!ae.state.isVisible||dl.isTouch||E&&E.type==="focus"?0:HO(ae.props.delay,Gt?0:1,Xa.delay)}function rt(Gt){Gt===void 0&&(Gt=!1),He.style.pointerEvents=ae.props.interactive&&!Gt?"":"none",He.style.zIndex=""+ae.props.zIndex}function Lt(Gt,xr,si){if(si===void 0&&(si=!0),rn.forEach(function(Ri){Ri[Gt]&&Ri[Gt].apply(Ri,xr)}),si){var Vi;(Vi=ae.props)[Gt].apply(Vi,xr)}}function gn(){var Gt=ae.props.aria;if(Gt.content){var xr="aria-"+Gt.content,si=He.id,Vi=Zp(ae.props.triggerTarget||e);Vi.forEach(function(Ri){var so=Ri.getAttribute(xr);if(ae.state.isVisible)Ri.setAttribute(xr,so?so+" "+si:si);else{var xl=so&&so.replace(si,"").trim();xl?Ri.setAttribute(xr,xl):Ri.removeAttribute(xr)}})}}function Vn(){if(!(St||!ae.props.aria.expanded)){var Gt=Zp(ae.props.triggerTarget||e);Gt.forEach(function(xr){ae.props.interactive?xr.setAttribute("aria-expanded",ae.state.isVisible&&xr===pr()?"true":"false"):xr.removeAttribute("aria-expanded")})}}function Rr(){Hr().removeEventListener("mousemove",N),ny=ny.filter(function(Gt){return Gt!==N})}function Zr(Gt){if(!(dl.isTouch&&(f||Gt.type==="mousedown"))){var xr=Gt.composedPath&&Gt.composedPath()[0]||Gt.target;if(!(ae.props.interactive&&$S(He,xr))){if(Zp(ae.props.triggerTarget||e).some(function(si){return $S(si,xr)})){if(dl.isTouch||ae.state.isVisible&&ae.props.trigger.indexOf("click")>=0)return}else Lt("onClickOutside",[ae,Gt]);ae.props.hideOnClick===!0&&(ae.clearDelayTimeouts(),ae.hide(),d=!0,setTimeout(function(){d=!1}),ae.state.isMounted||ss())}}}function Wi(){f=!0}function Pi(){f=!1}function yi(){var Gt=Hr();Gt.addEventListener("mousedown",Zr,!0),Gt.addEventListener("touchend",Zr,Po),Gt.addEventListener("touchstart",Pi,Po),Gt.addEventListener("touchmove",Wi,Po)}function ss(){var Gt=Hr();Gt.removeEventListener("mousedown",Zr,!0),Gt.removeEventListener("touchend",Zr,Po),Gt.removeEventListener("touchstart",Pi,Po),Gt.removeEventListener("touchmove",Wi,Po)}function ro(Gt,xr){mu(Gt,function(){!ae.state.isVisible&&He.parentNode&&He.parentNode.contains(He)&&xr()})}function za(Gt,xr){mu(Gt,xr)}function mu(Gt,xr){var si=sr().box;function Vi(Ri){Ri.target===si&&(WO(si,"remove",Vi),xr())}if(Gt===0)return xr();WO(si,"remove",k),WO(si,"add",Vi),k=Vi}function Oo(Gt,xr,si){si===void 0&&(si=!1);var Vi=Zp(ae.props.triggerTarget||e);Vi.forEach(function(Ri){Ri.addEventListener(Gt,xr,si),R.push({node:Ri,eventType:Gt,handler:xr,options:si})})}function wl(){tr()&&(Oo("touchstart",vi,{passive:!0}),Oo("touchend",io,{passive:!0})),wT(ae.props.trigger).forEach(function(Gt){if(Gt!=="manual")switch(Oo(Gt,vi),Gt){case"mouseenter":Oo("mouseleave",io);break;case"focus":Oo(JD?"focusout":"blur",Ns);break;case"focusin":Oo("focusout",Ns);break}})}function Zo(){R.forEach(function(Gt){var xr=Gt.node,si=Gt.eventType,Vi=Gt.handler,Ri=Gt.options;xr.removeEventListener(si,Vi,Ri)}),R=[]}function vi(Gt){var xr,si=!1;if(!(!ae.state.isEnabled||Jr(Gt)||d)){var Vi=((xr=E)==null?void 0:xr.type)==="focus";E=Gt,G=Gt.currentTarget,Vn(),!ae.state.isVisible&&Ps(Gt)&&ny.forEach(function(Ri){return Ri(Gt)}),Gt.type==="click"&&(ae.props.trigger.indexOf("mouseenter")<0||u)&&ae.props.hideOnClick!==!1&&ae.state.isVisible?si=!0:gi(Gt),Gt.type==="click"&&(u=!si),si&&!Vi&&Qa(Gt)}}function Es(Gt){var xr=Gt.target,si=pr().contains(xr)||He.contains(xr);if(!(Gt.type==="mousemove"&&si)){var Vi=Fi().concat(He).map(function(Ri){var so,xl=Ri._tippy,q0=(so=xl.popperInstance)==null?void 0:so.state;return q0?{popperRect:Ri.getBoundingClientRect(),popperState:q0,props:r}:null}).filter(Boolean);BS(Vi,Gt)&&(Rr(),Qa(Gt))}}function io(Gt){var xr=Jr(Gt)||ae.props.trigger.indexOf("click")>=0&&u;if(!xr){if(ae.props.interactive){ae.hideWithInteractivity(Gt);return}Qa(Gt)}}function Ns(Gt){ae.props.trigger.indexOf("focusin")<0&&Gt.target!==pr()||ae.props.interactive&&Gt.relatedTarget&&He.contains(Gt.relatedTarget)||Qa(Gt)}function Jr(Gt){return dl.isTouch?tr()!==Gt.type.indexOf("touch")>=0:!1}function gu(){dr();var Gt=ae.props,xr=Gt.popperOptions,si=Gt.placement,Vi=Gt.offset,Ri=Gt.getReferenceClientRect,so=Gt.moveTransition,xl=Xn()?ey(He).arrow:null,q0=Ri?{getBoundingClientRect:Ri,contextElement:Ri.contextElement||pr()}:e,cT={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(dT){var X0=dT.state;if(Xn()){var B4=sr(),VD=B4.box;["placement","reference-hidden","escaped"].forEach(function(hT){hT==="placement"?VD.setAttribute("data-placement",X0.placement):X0.attributes.popper["data-popper-"+hT]?VD.setAttribute("data-"+hT,""):VD.removeAttribute("data-"+hT)}),X0.attributes.popper={}}}},Wf=[{name:"offset",options:{offset:Vi}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!so}},cT];Xn()&&xl&&Wf.push({name:"arrow",options:{element:xl,padding:3}}),Wf.push.apply(Wf,(xr==null?void 0:xr.modifiers)||[]),ae.popperInstance=RS(q0,He,Object.assign({},xr,{placement:si,onFirstUpdate:x,modifiers:Wf}))}function dr(){ae.popperInstance&&(ae.popperInstance.destroy(),ae.popperInstance=null)}function Ei(){var Gt=ae.props.appendTo,xr,si=pr();ae.props.interactive&&Gt===UO||Gt==="parent"?xr=si.parentNode:xr=LS(Gt,[si]),xr.contains(He)||xr.appendChild(He),ae.state.isMounted=!0,gu(),{}.NODE_ENV!=="production"&&ru(ae.props.interactive&&Gt===Xa.appendTo&&si.nextElementSibling!==He,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",` - -`,"Using a wrapper
or tag around the reference element","solves this by creating a new parentNode context.",` - -`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",` - -`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function Fi(){return Wp(He.querySelectorAll("[data-tippy-root]"))}function gi(Gt){ae.clearDelayTimeouts(),Gt&&Lt("onTrigger",[ae,Gt]),yi();var xr=$t(!0),si=xn(),Vi=si[0],Ri=si[1];dl.isTouch&&Vi==="hold"&&Ri&&(xr=Ri),xr?i=setTimeout(function(){ae.show()},xr):ae.show()}function Qa(Gt){if(ae.clearDelayTimeouts(),Lt("onUntrigger",[ae,Gt]),!ae.state.isVisible){ss();return}if(!(ae.props.trigger.indexOf("mouseenter")>=0&&ae.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Gt.type)>=0&&u)){var xr=$t(!1);xr?a=setTimeout(function(){ae.state.isVisible&&ae.hide()},xr):o=requestAnimationFrame(function(){ae.hide()})}}function Aa(){ae.state.isEnabled=!0}function jn(){ae.hide(),ae.state.isEnabled=!1}function Or(){clearTimeout(i),clearTimeout(a),cancelAnimationFrame(o)}function qt(Gt){if({}.NODE_ENV!=="production"&&ru(ae.state.isDestroyed,Yp("setProps")),!ae.state.isDestroyed){Lt("onBeforeUpdate",[ae,Gt]),Zo();var xr=ae.props,si=VS(e,Object.assign({},xr,jO(Gt),{ignoreAttributes:!0}));ae.props=si,wl(),xr.interactiveDebounce!==si.interactiveDebounce&&(Rr(),N=MS(Es,si.interactiveDebounce)),xr.triggerTarget&&!si.triggerTarget?Zp(xr.triggerTarget).forEach(function(Vi){Vi.removeAttribute("aria-expanded")}):si.triggerTarget&&e.removeAttribute("aria-expanded"),Vn(),rt(),_t&&_t(xr,si),ae.popperInstance&&(gu(),Fi().forEach(function(Vi){requestAnimationFrame(Vi._tippy.popperInstance.forceUpdate)})),Lt("onAfterUpdate",[ae,Gt])}}function wn(Gt){ae.setProps({content:Gt})}function Dr(){({}).NODE_ENV!=="production"&&ru(ae.state.isDestroyed,Yp("show"));var Gt=ae.state.isVisible,xr=ae.state.isDestroyed,si=!ae.state.isEnabled,Vi=dl.isTouch&&!ae.props.touch,Ri=HO(ae.props.duration,0,Xa.duration);if(!(Gt||xr||si||Vi)&&!pr().hasAttribute("disabled")&&(Lt("onShow",[ae],!1),ae.props.onShow(ae)!==!1)){if(ae.state.isVisible=!0,Xn()&&(He.style.visibility="visible"),rt(),yi(),ae.state.isMounted||(He.style.transition="none"),Xn()){var so=sr(),xl=so.box,q0=so.content;ZO([xl,q0],0)}x=function(){var cT;if(!(!ae.state.isVisible||b)){if(b=!0,He.offsetHeight,He.style.transition=ae.props.moveTransition,Xn()&&ae.props.animation){var Wf=sr(),dT=Wf.box,X0=Wf.content;ZO([dT,X0],Ri),PS([dT,X0],"visible")}gn(),Vn(),xT(dg,ae),(cT=ae.popperInstance)==null||cT.forceUpdate(),Lt("onMount",[ae]),ae.props.animation&&Xn()&&za(Ri,function(){ae.state.isShown=!0,Lt("onShown",[ae])})}},Ei()}}function mi(){({}).NODE_ENV!=="production"&&ru(ae.state.isDestroyed,Yp("hide"));var Gt=!ae.state.isVisible,xr=ae.state.isDestroyed,si=!ae.state.isEnabled,Vi=HO(ae.props.duration,1,Xa.duration);if(!(Gt||xr||si)&&(Lt("onHide",[ae],!1),ae.props.onHide(ae)!==!1)){if(ae.state.isVisible=!1,ae.state.isShown=!1,b=!1,u=!1,Xn()&&(He.style.visibility="hidden"),Rr(),ss(),rt(!0),Xn()){var Ri=sr(),so=Ri.box,xl=Ri.content;ae.props.animation&&(ZO([so,xl],Vi),PS([so,xl],"hidden"))}gn(),Vn(),ae.props.animation?Xn()&&ro(Vi,ae.unmount):ae.unmount()}}function Js(Gt){({}).NODE_ENV!=="production"&&ru(ae.state.isDestroyed,Yp("hideWithInteractivity")),Hr().addEventListener("mousemove",N),xT(ny,N),N(Gt)}function Wo(){({}).NODE_ENV!=="production"&&ru(ae.state.isDestroyed,Yp("unmount")),ae.state.isVisible&&ae.hide(),ae.state.isMounted&&(dr(),Fi().forEach(function(Gt){Gt._tippy.unmount()}),He.parentNode&&He.parentNode.removeChild(He),dg=dg.filter(function(Gt){return Gt!==ae}),ae.state.isMounted=!1,Lt("onHidden",[ae]))}function QD(){({}).NODE_ENV!=="production"&&ru(ae.state.isDestroyed,Yp("destroy")),!ae.state.isDestroyed&&(ae.clearDelayTimeouts(),ae.unmount(),Zo(),delete e._tippy,ae.state.isDestroyed=!0,Lt("onDestroy",[ae]))}}function Fs(e,t){t===void 0&&(t={});var r=Xa.plugins.concat(t.plugins||[]);({}).NODE_ENV!=="production"&&(AT(e),XO(t,r)),XD();var i=Object.assign({},t,{plugins:r}),a=qD(e);if({}.NODE_ENV!=="production"){var o=nh(i.content),u=a.length>1;ru(o&&u,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",` - -`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",` - -`,`1) content: element.innerHTML -`,"2) content: () => element.cloneNode(true)"].join(" "))}var d=a.reduce(function(f,b){var E=b&&nI(b,i);return E&&f.push(E),f},[]);return nh(e)?d[0]:d}Fs.defaultProps=Xa,Fs.setDefaultProps=zS,Fs.currentInput=dl,Object.assign({},Wm,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),Fs.setDefaultProps({render:ty});class zu extends Oi{constructor(){super(...arguments),Ue(this,"tippyInstance"),Ue(this,"tippyEl"),Ue(this,"textEl"),Ue(this,"menuData",[]),Ue(this,"menuTextWidth","40px"),Ue(this,"defaultMenuIndex",0),Ue(this,"refreshMenuText",!0),Ue(this,"width","48px"),Ue(this,"dropDivWith","100px"),Ue(this,"dropDivHeight","260px"),Ue(this,"showItemsTip",!1)}renderTemplate(){this.template=` -
-
- - ${this.onMenuTextRender(this.defaultMenuIndex)} - -
- -
-
-
- `}connectedCallback(){this.renderTemplate(),super.connectedCallback(),this.textEl=this.querySelector("#text"),this.tippyInstance=Fs(this.querySelector("#tippy"),{content:this.createMenuElement(),appendTo:this.closest(".aie-container"),placement:"bottom",trigger:"click",interactive:!0,arrow:!1})}createMenuElement(){const t=document.createElement("div");t.style.height=this.dropDivHeight,t.style.width=this.dropDivWith,t.classList.add("aie-dropdown-container");for(let r=0;r
-
${this.onDropdownItemRender(r)}
- `,i.addEventListener("click",()=>{this.onDropdownItemClick(r),this.tippyInstance.hide()}),this.showItemsTip){const a=this.menuData[r];Fs(i,{appendTo:()=>this.closest(".aie-container"),content:a.tip||a.title,theme:"aietip",arrow:!0,placement:"right"})}t.appendChild(i)}return this.tippyEl=t,t}onTransaction(t){var r,i;const a=(r=this.tippyEl)==null?void 0:r.querySelector(".red-dot");a&&a.classList.remove("red-dot");let o=this.defaultMenuIndex;for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||NT,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),i=0;i{this.observers[i]=this.observers[i]||[],this.observers[i].push(r)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(i=>i!==r)}}emit(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a{o(...i)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...i])})}}function Xp(){let e,t;const r=new Promise((i,a)=>{e=i,t=a});return r.resolve=e,r.reject=t,r}function WS(e){return e==null?"":""+e}function RT(e,t,r){e.forEach(i=>{t[i]&&(r[i]=t[i])})}function pg(e,t,r){function i(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function a(){return!e||typeof e=="string"}const o=typeof t!="string"?[].concat(t):t.split(".");for(;o.length>1;){if(a())return{};const u=i(o.shift());!e[u]&&r&&(e[u]=new r),Object.prototype.hasOwnProperty.call(e,u)?e=e[u]:e={}}return a()?{}:{obj:e,k:i(o.shift())}}function GS(e,t,r){const{obj:i,k:a}=pg(e,t,Object);i[a]=r}function DT(e,t,r,i){const{obj:a,k:o}=pg(e,t,Object);a[o]=a[o]||[],i&&(a[o]=a[o].concat(r)),i||a[o].push(r)}function fg(e,t){const{obj:r,k:i}=pg(e,t);if(r)return r[i]}function IT(e,t,r){const i=fg(e,r);return i!==void 0?i:fg(t,r)}function Kp(e,t,r){for(const i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?typeof e[i]=="string"||e[i]instanceof String||typeof t[i]=="string"||t[i]instanceof String?r&&(e[i]=t[i]):Kp(e[i],t[i],r):e[i]=t[i]);return e}function oh(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var LT={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function YS(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>LT[t]):e}const MT=[" ",",","?","!",";"];function PT(e,t,r){t=t||"",r=r||"";const i=MT.filter(u=>t.indexOf(u)<0&&r.indexOf(u)<0);if(i.length===0)return!0;const a=new RegExp(`(${i.map(u=>u==="?"?"\\?":u).join("|")})`);let o=!a.test(e);if(!o){const u=e.indexOf(r);u>0&&!a.test(e.substring(0,u))&&(o=!0)}return o}function mg(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const i=t.split(r);let a=e;for(let o=0;oo+u;)u++,d=i.slice(o,o+u).join(r),f=a[d];if(f===void 0)return;if(f===null)return null;if(t.endsWith(d)){if(typeof f=="string")return f;if(d&&typeof f[d]=="string")return f[d]}const b=i.slice(o+u).join(r);return b?mg(f,b,r):void 0}a=a[i[o]]}return a}function gg(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class qS extends Ka{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let d=[t,r];i&&typeof i!="string"&&(d=d.concat(i)),i&&typeof i=="string"&&(d=d.concat(o?i.split(o):i)),t.indexOf(".")>-1&&(d=t.split("."));const f=fg(this.data,d);return f||!u||typeof i!="string"?f:mg(this.data&&this.data[t]&&this.data[t][r],i,o)}addResource(t,r,i,a){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const u=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let d=[t,r];i&&(d=d.concat(u?i.split(u):i)),t.indexOf(".")>-1&&(d=t.split("."),a=r,r=d[1]),this.addNamespaces(r),GS(this.data,d,a),o.silent||this.emit("added",t,r,i,a)}addResources(t,r,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in i)(typeof i[o]=="string"||Object.prototype.toString.apply(i[o])==="[object Array]")&&this.addResource(t,r,o,i[o],{silent:!0});a.silent||this.emit("added",t,r,i)}addResourceBundle(t,r,i,a,o){let u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},d=[t,r];t.indexOf(".")>-1&&(d=t.split("."),a=i,i=r,r=d[1]),this.addNamespaces(r);let f=fg(this.data,d)||{};a?Kp(f,i,o):f=je(je({},f),i),GS(this.data,d,f),u.silent||this.emit("added",t,r,i)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?je({},this.getResource(t,r)):this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(i=>r[i]&&Object.keys(r[i]).length>0)}toJSON(){return this.data}}var XS={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,i,a){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,r,i,a))}),t}};const KS={};class bg extends Ka{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),RT(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=hl.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const i=this.resolve(t,r);return i&&i.res!==void 0}extractFromKey(t,r){let i=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let o=r.ns||this.options.defaultNS||[];const u=i&&t.indexOf(i)>-1,d=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!PT(t,i,a);if(u&&!d){const f=t.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:t,namespaces:o};const b=t.split(i);(i!==a||i===a&&this.options.ns.indexOf(b[0])>-1)&&(o=b.shift()),t=b.join(a)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,r,i){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r=je({},r)),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:u,namespaces:d}=this.extractFromKey(t[t.length-1],r),f=d[d.length-1],b=r.lng||this.language,E=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(b&&b.toLowerCase()==="cimode"){if(E){const xe=r.nsSeparator||this.options.nsSeparator;return a?{res:`${f}${xe}${u}`,usedKey:u,exactUsedKey:u,usedLng:b,usedNS:f,usedParams:this.getUsedParamsDetails(r)}:`${f}${xe}${u}`}return a?{res:u,usedKey:u,exactUsedKey:u,usedLng:b,usedNS:f,usedParams:this.getUsedParamsDetails(r)}:u}const k=this.resolve(t,r);let x=k&&k.res;const R=k&&k.usedKey||u,N=k&&k.exactUsedKey||u,G=Object.prototype.toString.apply(x),K=["[object Number]","[object Function]","[object RegExp]"],ge=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,de=!this.i18nFormat||this.i18nFormat.handleAsObject;if(de&&x&&typeof x!="string"&&typeof x!="boolean"&&typeof x!="number"&&K.indexOf(G)<0&&!(typeof ge=="string"&&G==="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const xe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(R,x,_n(je({},r),{ns:d})):`key '${u} (${this.language})' returned an object instead of string.`;return a?(k.res=xe,k.usedParams=this.getUsedParamsDetails(r),k):xe}if(o){const xe=G==="[object Array]",ae=xe?[]:{},Ve=xe?N:R;for(const He in x)if(Object.prototype.hasOwnProperty.call(x,He)){const _t=`${Ve}${o}${He}`;ae[He]=this.translate(_t,_n(je({},r),{joinArrays:!1,ns:d})),ae[He]===_t&&(ae[He]=x[He])}x=ae}}else if(de&&typeof ge=="string"&&G==="[object Array]")x=x.join(ge),x&&(x=this.extendTranslation(x,t,r,i));else{let xe=!1,ae=!1;const Ve=r.count!==void 0&&typeof r.count!="string",He=bg.hasDefaultValue(r),_t=Ve?this.pluralResolver.getSuffix(b,r.count,r):"",rn=r.ordinal&&Ve?this.pluralResolver.getSuffix(b,r.count,{ordinal:!1}):"",St=r[`defaultValue${_t}`]||r[`defaultValue${rn}`]||r.defaultValue;!this.isValidLookup(x)&&He&&(xe=!0,x=St),this.isValidLookup(x)||(ae=!0,x=u);const xn=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ae?void 0:x,tr=He&&St!==x&&this.options.updateMissing;if(ae||xe||tr){if(this.logger.log(tr?"updateKey":"missingKey",b,f,u,tr?St:x),o){const sr=this.resolve(u,_n(je({},r),{keySeparator:!1}));sr&&sr.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Xn=[];const pr=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&pr&&pr[0])for(let sr=0;sr{const Lt=He&&rt!==x?rt:xn;this.options.missingKeyHandler?this.options.missingKeyHandler(sr,f,$t,Lt,tr,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(sr,f,$t,Lt,tr,r),this.emit("missingKey",sr,f,$t,x)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Ve?Xn.forEach(sr=>{this.pluralResolver.getSuffixes(sr,r).forEach($t=>{Hr([sr],u+$t,r[`defaultValue${$t}`]||St)})}):Hr(Xn,u,St))}x=this.extendTranslation(x,t,r,k,i),ae&&x===u&&this.options.appendNamespaceToMissingKey&&(x=`${f}:${u}`),(ae||xe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?x=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${f}:${u}`:u,xe?x:void 0):x=this.options.parseMissingKeyHandler(x))}return a?(k.res=x,k.usedParams=this.getUsedParamsDetails(r),k):x}extendTranslation(t,r,i,a,o){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,je(je({},this.options.interpolation.defaultVariables),i),i.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init(_n(je({},i),{interpolation:je(je({},this.options.interpolation),i.interpolation)}));const b=typeof t=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let E;if(b){const x=t.match(this.interpolator.nestingRegexp);E=x&&x.length}let k=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(k=je(je({},this.options.interpolation.defaultVariables),k)),t=this.interpolator.interpolate(t,k,i.lng||this.language,i),b){const x=t.match(this.interpolator.nestingRegexp),R=x&&x.length;E1&&arguments[1]!==void 0?arguments[1]:{},i,a,o,u,d;return typeof t=="string"&&(t=[t]),t.forEach(f=>{if(this.isValidLookup(i))return;const b=this.extractFromKey(f,r),E=b.key;a=E;let k=b.namespaces;this.options.fallbackNS&&(k=k.concat(this.options.fallbackNS));const x=r.count!==void 0&&typeof r.count!="string",R=x&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),N=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",G=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);k.forEach(K=>{this.isValidLookup(i)||(d=K,!KS[`${G[0]}-${K}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(d)&&(KS[`${G[0]}-${K}`]=!0,this.logger.warn(`key "${a}" for languages "${G.join(", ")}" won't get resolved as namespace "${d}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),G.forEach(ge=>{if(this.isValidLookup(i))return;u=ge;const de=[E];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(de,E,ge,K,r);else{let ae;x&&(ae=this.pluralResolver.getSuffix(ge,r.count,r));const Ve=`${this.options.pluralSeparator}zero`,He=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(x&&(de.push(E+ae),r.ordinal&&ae.indexOf(He)===0&&de.push(E+ae.replace(He,this.options.pluralSeparator)),R&&de.push(E+Ve)),N){const _t=`${E}${this.options.contextSeparator}${r.context}`;de.push(_t),x&&(de.push(_t+ae),r.ordinal&&ae.indexOf(He)===0&&de.push(_t+ae.replace(He,this.options.pluralSeparator)),R&&de.push(_t+Ve))}}let xe;for(;xe=de.pop();)this.isValidLookup(i)||(o=xe,i=this.getResource(ge,K,xe,r))}))})}),{res:i,usedKey:a,exactUsedKey:o,usedLng:u,usedNS:d}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,i,a):this.resourceStore.getResource(t,r,i,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&typeof t.replace!="string";let a=i?t.replace:t;if(i&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a=je(je({},this.options.interpolation.defaultVariables),a)),!i){a=je({},a);for(const o of r)delete a[o]}return a}static hasDefaultValue(t){const r="defaultValue";for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&r===i.substring(0,r.length)&&t[i]!==void 0)return!0;return!1}}function ry(e){return e.charAt(0).toUpperCase()+e.slice(1)}class JS{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=hl.create("languageUtils")}getScriptPartFromCode(t){if(t=gg(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=gg(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let i=t.split("-");return this.options.lowerCaseLng?i=i.map(a=>a.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=ry(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=ry(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=ry(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(i=>{if(r)return;const a=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(a))&&(r=a)}),!r&&this.options.supportedLngs&&t.forEach(i=>{if(r)return;const a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return r=a;r=this.options.supportedLngs.find(o=>{if(o===a||!(o.indexOf("-")<0&&a.indexOf("-")<0)&&o.indexOf(a)===0)return o})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t.default||[];let i=t[r];return i||(i=t[this.getScriptPartFromCode(r)]),i||(i=t[this.formatLanguageCode(r)]),i||(i=t[this.getLanguagePartFromCode(r)]),i||(i=t.default),i||[]}toResolveHierarchy(t,r){const i=this.getFallbackCodes(r||this.options.fallbackLng||[],t),a=[],o=u=>{u&&(this.isSupportedCode(u)?a.push(u):this.logger.warn(`rejecting language code not found in supportedLngs: ${u}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),i.forEach(u=>{a.indexOf(u)<0&&o(this.formatLanguageCode(u))}),a}}let FT=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],BT={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const ev=["v1","v2","v3"],tv=["v4"],nv={zero:0,one:1,two:2,few:3,many:4,other:5};function $T(){const e={};return FT.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:BT[t.fc]}})}),e}class rv{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=hl.create("pluralResolver"),(!this.options.compatibilityJSON||tv.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=$T()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(gg(t),{type:r.ordinal?"ordinal":"cardinal"})}catch(i){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(t,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(a=>`${r}${a}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((a,o)=>nv[a]-nv[o]).map(a=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a}`):i.numbers.map(a=>this.getSuffix(t,a,r)):[]}getSuffix(t,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,i);return a?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${a.select(r)}`:this.getSuffixRetroCompatible(a,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const i=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let a=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const o=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!ev.includes(this.options.compatibilityJSON)}}function iv(e,t,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=IT(e,t,r);return!o&&a&&typeof r=="string"&&(o=mg(e,r,i),o===void 0&&(o=mg(t,r,i))),o}class UT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=hl.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const r=t.interpolation;this.escape=r.escape!==void 0?r.escape:YS,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?oh(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?oh(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?oh(r.nestingPrefix):r.nestingPrefixEscaped||oh("$t("),this.nestingSuffix=r.nestingSuffix?oh(r.nestingSuffix):r.nestingSuffixEscaped||oh(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const r=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(r,"g");const i=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(i,"g")}interpolate(t,r,i,a){let o,u,d;const f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function b(R){return R.replace(/\$/g,"$$$$")}const E=R=>{if(R.indexOf(this.formatSeparator)<0){const ge=iv(r,f,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(ge,void 0,i,_n(je(je({},a),r),{interpolationkey:R})):ge}const N=R.split(this.formatSeparator),G=N.shift().trim(),K=N.join(this.formatSeparator).trim();return this.format(iv(r,f,G,this.options.keySeparator,this.options.ignoreJSONStructure),K,i,_n(je(je({},a),r),{interpolationkey:G}))};this.resetRegExp();const k=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,x=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>b(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?b(this.escape(R)):b(R)}].forEach(R=>{for(d=0;o=R.regex.exec(t);){const N=o[1].trim();if(u=E(N),u===void 0)if(typeof k=="function"){const K=k(t,o,a);u=typeof K=="string"?K:""}else if(a&&Object.prototype.hasOwnProperty.call(a,N))u="";else if(x){u=o[0];continue}else this.logger.warn(`missed to pass in variable ${N} for interpolating ${t}`),u="";else typeof u!="string"&&!this.useRawValueToEscape&&(u=WS(u));const G=R.safeValue(u);if(t=t.replace(o[0],G),x?(R.regex.lastIndex+=u.length,R.regex.lastIndex-=o[0].length):R.regex.lastIndex=0,d++,d>=this.maxReplaces)break}}),t}nest(t,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,o,u;function d(f,b){const E=this.nestingOptionsSeparator;if(f.indexOf(E)<0)return f;const k=f.split(new RegExp(`${E}[ ]*{`));let x=`{${k[1]}`;f=k[0],x=this.interpolate(x,u);const R=x.match(/'/g),N=x.match(/"/g);(R&&R.length%2===0&&!N||N.length%2!==0)&&(x=x.replace(/'/g,'"'));try{u=JSON.parse(x),b&&(u=je(je({},b),u))}catch(G){return this.logger.warn(`failed parsing options string in nesting for key ${f}`,G),`${f}${E}${x}`}return delete u.defaultValue,f}for(;a=this.nestingRegexp.exec(t);){let f=[];u=je({},i),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;let b=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const E=a[1].split(this.formatSeparator).map(k=>k.trim());a[1]=E.shift(),f=E,b=!0}if(o=r(d.call(this,a[1].trim(),u),u),o&&a[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=WS(o)),o||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),o=""),b&&(o=f.reduce((E,k)=>this.format(E,k,i.lng,_n(je({},i),{interpolationkey:a[1].trim()})),o.trim())),t=t.replace(a[0],o),this.regexp.lastIndex=0}return t}}function HT(e){let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const i=e.split("(");t=i[0].toLowerCase().trim();const a=i[1].substring(0,i[1].length-1);t==="currency"&&a.indexOf(":")<0?r.currency||(r.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?r.range||(r.range=a.trim()):a.split(";").forEach(o=>{if(!o)return;const[u,...d]=o.split(":"),f=d.join(":").trim().replace(/^'+|'+$/g,"");r[u.trim()]||(r[u.trim()]=f),f==="false"&&(r[u.trim()]=!1),f==="true"&&(r[u.trim()]=!0),isNaN(f)||(r[u.trim()]=parseInt(f,10))})}return{formatName:t,formatOptions:r}}function Qu(e){const t={};return function(r,i,a){const o=i+JSON.stringify(a);let u=t[o];return u||(u=e(gg(i),a),t[o]=u),u(r)}}class iy{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=hl.create("formatter"),this.options=t,this.formats={number:Qu((r,i)=>{const a=new Intl.NumberFormat(r,je({},i));return o=>a.format(o)}),currency:Qu((r,i)=>{const a=new Intl.NumberFormat(r,_n(je({},i),{style:"currency"}));return o=>a.format(o)}),datetime:Qu((r,i)=>{const a=new Intl.DateTimeFormat(r,je({},i));return o=>a.format(o)}),relativetime:Qu((r,i)=>{const a=new Intl.RelativeTimeFormat(r,je({},i));return o=>a.format(o,i.range||"day")}),list:Qu((r,i)=>{const a=new Intl.ListFormat(r,je({},i));return o=>a.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=Qu(r)}format(t,r,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((o,u)=>{const{formatName:d,formatOptions:f}=HT(u);if(this.formats[d]){let b=o;try{const E=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},k=E.locale||E.lng||a.locale||a.lng||i;b=this.formats[d](o,k,je(je(je({},f),a),E))}catch(E){this.logger.warn(E)}return b}else this.logger.warn(`there was no format function for ${d}`);return o},t)}}function zT(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class QT extends Ka{constructor(t,r,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=i,this.languageUtils=i.languageUtils,this.options=a,this.logger=hl.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,a.backend,a)}queueLoad(t,r,i,a){const o={},u={},d={},f={};return t.forEach(b=>{let E=!0;r.forEach(k=>{const x=`${b}|${k}`;!i.reload&&this.store.hasResourceBundle(b,k)?this.state[x]=2:this.state[x]<0||(this.state[x]===1?u[x]===void 0&&(u[x]=!0):(this.state[x]=1,E=!1,u[x]===void 0&&(u[x]=!0),o[x]===void 0&&(o[x]=!0),f[k]===void 0&&(f[k]=!0)))}),E||(d[b]=!0)}),(Object.keys(o).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(o),pending:Object.keys(u),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(f)}}loaded(t,r,i){const a=t.split("|"),o=a[0],u=a[1];r&&this.emit("failedLoading",o,u,r),i&&this.store.addResourceBundle(o,u,i),this.state[t]=r?-1:2;const d={};this.queue.forEach(f=>{DT(f.loaded,[o],u),zT(f,t),r&&f.errors.push(r),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(b=>{d[b]||(d[b]={});const E=f.loaded[b];E.length&&E.forEach(k=>{d[b][k]===void 0&&(d[b][k]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(f=>!f.done)}read(t,r,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,u=arguments.length>5?arguments[5]:void 0;if(!t.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:i,tried:a,wait:o,callback:u});return}this.readingCalls++;const d=(b,E)=>{if(this.readingCalls--,this.waitingReads.length>0){const k=this.waitingReads.shift();this.read(k.lng,k.ns,k.fcName,k.tried,k.wait,k.callback)}if(b&&E&&a{this.read.call(this,t,r,i,a+1,o*2,u)},o);return}u(b,E)},f=this.backend[i].bind(this.backend);if(f.length===2){try{const b=f(t,r);b&&typeof b.then=="function"?b.then(E=>d(null,E)).catch(d):d(null,b)}catch(b){d(b)}return}return f(t,r,d)}prepareLoading(t,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const o=this.queueLoad(t,r,i,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(u=>{this.loadOne(u)})}load(t,r,i){this.prepareLoading(t,r,{},i)}reload(t,r,i){this.prepareLoading(t,r,{reload:!0},i)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=t.split("|"),a=i[0],o=i[1];this.read(a,o,"read",void 0,void 0,(u,d)=>{u&&this.logger.warn(`${r}loading namespace ${o} for language ${a} failed`,u),!u&&d&&this.logger.log(`${r}loaded namespace ${o} for language ${a}`,d),this.loaded(t,u,d)})}saveMissing(t,r,i,a,o){let u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},d=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${i}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){const f=_n(je({},u),{isUpdate:o}),b=this.backend.create.bind(this.backend);if(b.length<6)try{let E;b.length===5?E=b(t,r,i,a,f):E=b(t,r,i,a),E&&typeof E.then=="function"?E.then(k=>d(null,k)).catch(d):d(null,E)}catch(E){d(E)}else b(t,r,i,a,d,f)}!t||!t[0]||this.store.addResource(t[0],r,i,a)}}}function Jp(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(i=>{t[i]=r[i]})}return t},interpolation:{escapeValue:!0,format:(e,t,r,i)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function sy(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ef(){}function rI(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]=="function"&&(e[t]=e[t].bind(e))})}class Og extends Ka{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=sy(t),this.services={},this.logger=hl,this.modules={external:[]},rI(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;typeof r=="function"&&(i=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const a=Jp();this.options=je(je(je({},a),this.options),sy(r)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=je(je({},a.interpolation),this.options.interpolation)),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function o(f){return f?typeof f=="function"?new f:f:null}if(!this.options.isClone){this.modules.logger?hl.init(o(this.modules.logger),this.options):hl.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=iy);const b=new JS(this.options);this.store=new qS(this.options.resources,this.options);const E=this.services;E.logger=hl,E.resourceStore=this.store,E.languageUtils=b,E.pluralResolver=new rv(b,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(E.formatter=o(f),E.formatter.init(E,this.options),this.options.interpolation.format=E.formatter.format.bind(E.formatter)),E.interpolator=new UT(this.options),E.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},E.backendConnector=new QT(o(this.modules.backend),E.resourceStore,E,this.options),E.backendConnector.on("*",function(k){for(var x=arguments.length,R=new Array(x>1?x-1:0),N=1;N1?x-1:0),N=1;N{k.init&&k.init(this)})}if(this.format=this.options.interpolation.format,i||(i=ef),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const u=Xp(),d=()=>{const f=(b,E)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(E),i(b,E)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),u}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ef;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],o=u=>{!u||u==="cimode"||this.services.languageUtils.toResolveHierarchy(u).forEach(d=>{d!=="cimode"&&a.indexOf(d)<0&&a.push(d)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>o(u)),this.options.preload&&this.options.preload.forEach(u=>o(u)),this.services.backendConnector.load(a,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,r,i){const a=Xp();return t||(t=this.languages),r||(r=this.options.ns),i||(i=ef),this.services.backendConnector.reload(t,r,o=>{a.resolve(),i(o)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&XS.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,r){var i=this;this.isLanguageChangingTo=t;const a=Xp();this.emit("languageChanging",t);const o=f=>{this.language=f,this.languages=this.services.languageUtils.toResolveHierarchy(f),this.resolvedLanguage=void 0,this.setResolvedLanguage(f)},u=(f,b)=>{b?(o(b),this.translator.changeLanguage(b),this.isLanguageChangingTo=void 0,this.emit("languageChanged",b),this.logger.log("languageChanged",b)):this.isLanguageChangingTo=void 0,a.resolve(function(){return i.t(...arguments)}),r&&r(f,function(){return i.t(...arguments)})},d=f=>{!t&&!f&&this.services.languageDetector&&(f=[]);const b=typeof f=="string"?f:this.services.languageUtils.getBestMatchFromCodes(f);b&&(this.language||o(b),this.translator.language||this.translator.changeLanguage(b),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(b)),this.loadResources(b,E=>{u(E,b)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(t),a}getFixedT(t,r,i){var a=this;const o=function(u,d){let f;if(typeof d!="object"){for(var b=arguments.length,E=new Array(b>2?b-2:0),k=2;k`${f.keyPrefix}${x}${N}`):R=f.keyPrefix?`${f.keyPrefix}${x}${u}`:u,a.t(R,f)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=r,o.keyPrefix=i,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=r.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const u=(d,f)=>{const b=this.services.backendConnector.state[`${d}|${f}`];return b===-1||b===2};if(r.precheck){const d=r.precheck(this,u);if(d!==void 0)return d}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(i,t)&&(!a||u(o,t)))}loadNamespaces(t,r){const i=Xp();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{i.resolve(),r&&r(a)}),i):(r&&r(),Promise.resolve())}loadLanguages(t,r){const i=Xp();typeof t=="string"&&(t=[t]);const a=this.options.preload||[],o=t.filter(u=>a.indexOf(u)<0);return o.length?(this.options.preload=a.concat(o),this.loadResources(u=>{i.resolve(),r&&r(u)}),i):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new JS(Jp());return r.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Og(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ef;const i=t.forkResourceStore;i&&delete t.forkResourceStore;const a=_n(je(je({},this.options),t),{isClone:!0}),o=new Og(a);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(u=>{o[u]=this[u]}),o.services=je({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},i&&(o.store=new qS(this.store.data,a),o.services.resourceStore=o.store),o.translator=new bg(o.services,a),o.translator.on("*",function(u){for(var d=arguments.length,f=new Array(d>1?d-1:0),b=1;bpi(e)),this.dropDivHeight="265px",this.dropDivWith="150px"}onDropdownActive(e,t){return t==0?e.isActive("paragraph"):e.isActive("heading",{level:t})}onDropdownItemClick(e){e==0?this.editor.chain().setParagraph().run():this.editor.chain().setHeading({level:e}).run()}onDropdownItemRender(e){return e==0?this.menuData[e]:`${this.menuData[e]}`}onMenuTextRender(e){return this.menuData[e].replace(" ","")}};const VT=[{name:"\u5B8B\u4F53",value:"SimSun"},{name:"\u4EFF\u5B8B",value:"FangSong"},{name:"\u9ED1\u4F53",value:"SimHei"},{name:"\u6977\u4F53",value:"KaiTi"},{name:"\u5FAE\u8F6F\u96C5\u9ED1",value:"Microsoft YaHei"},{name:"\u65B9\u6B63\u4EFF\u5B8B\u7B80\u4F53_GBK",value:"FangSong_GB2312"},{name:"Arial",value:"Arial"}];let jT=class extends zu{constructor(){super(),this.width="72px",this.menuTextWidth="60px",this.dropDivWith="150px"}onCreate(e,t){var r;super.onCreate(e,t),this.menuData=((r=t.fontFamily)==null?void 0:r.values)||VT,this.menuData=[{name:pi("default-font-family"),value:""}].concat(this.menuData)}onDropdownActive(e,t){return e.isActive("textStyle",{fontFamily:this.menuData[t].value})}onDropdownItemClick(e){const t=this.menuData[e].value;t?this.editor.chain().setFontFamily(t).run():this.editor.chain().unsetFontFamily().run()}onDropdownItemRender(e){return this.menuData[e].name}onMenuTextRender(e){return this.menuData[e].name}};const ZT=[{name:"9",value:9},{name:"10",value:10},{name:"11",value:11},{name:"12",value:12},{name:"14",value:14},{name:"18",value:18},{name:"20",value:20},{name:"22",value:22},{name:"24",value:24},{name:"26",value:26},{name:"28",value:28},{name:"30",value:30},{name:"36",value:36},{name:"42",value:42},{name:"48",value:48},{name:"56",value:56},{name:"72",value:72}];class av extends zu{constructor(){super(),this.dropDivWith="134px"}onCreate(t,r){var i;super.onCreate(t,r),this.menuData=((i=r.fontSize)==null?void 0:i.values)||ZT;for(let a=0;a - - - `,this.registerClickListener()}onClick(e){e.toggleBold()}onActive(e){return e.isActive("bold")}},lv=class extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(e){e.toggleItalic()}onActive(e){return e.isActive("italic")}},sI=class extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(e){e.toggleUnderline()}onActive(e){return e.isActive("underline")}},WT=class extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(e){e.toggleStrike()}onActive(e){return e.isActive("strike")}},uv=class extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(e){e.toggleSubscript()}onActive(e){return e.isActive("subscript")}},yg=class extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(e){e.toggleSuperscript()}onActive(e){return e.isActive("superscript")}};const Eg=["ffffff","000000","e9d989","2972f4","609eec","de3c36","a1d533","7334c5","27b5d9","ff8926","f2f2f2","7f7f7f","ddd9c3","c6d9f0","dbe5f1","f2dcdb","ebf1dd","e5e0ec","dbeef3","fdeada","d8d8d8","595959","c4bd97","8db3e2","b8cce4","e5b9b7","d7e3bc","ccc1d9","b7dde8","fbd5b5","bfbfbf","3f3f3f","938953","548dd4","95b3d7","d99694","c3d69b","b2a2c7","92cddc","fac08f","a5a5a5","262626","494429","17365d","366092","953734","76923c","5f497a","31859b","e36c09","6e6e6e","0c0c0c","1d1b10","0f243e","244061","632423","4f6128","3f3151","205867","974806"],Sg=["c00000","ff0000","ffc000","ffff00","92d050","00b050","00b0f0","0070c0","002060","7030a0"];class vg extends Oi{constructor(){super(),Ue(this,"historyColorsKey","historyColors"),Ue(this,"historyColors",[]),Ue(this,"iconSvg"),Ue(this,"menuColorEL"),Ue(this,"onColorItemClick"),Ue(this,"onDefaultColorClick")}connectedCallback(){this.template=` -
-
-
${this.iconSvg}
- -
- -
- `,super.connectedCallback();const t=localStorage.getItem(this.historyColorsKey);t&&(this.historyColors=JSON.parse(t)),this.querySelector(".currentColor").addEventListener("click",()=>{this.onColorItemClick(this.historyColors.length>0?this.historyColors[0]:"#ccc")}),this.menuColorEL=this.querySelector("#menuColorEL"),this.historyColors&&this.historyColors.length>0&&(this.menuColorEL.style.background=this.historyColors[0]),Fs(this.querySelector("#dropdown"),{content:this.createMenuElement(),placement:"bottom",trigger:"click",interactive:!0,arrow:!1})}createMenuElement(){const t=document.createElement("div");return t.style.height="278px",t.style.width="250px",t.classList.add("aie-dropdown-container"),t.innerHTML=` -
-
${pi("default")}
-
- ${Eg.map((r,i)=>`
`).join(" ")} -
-
${pi("standardColors")}
-
- ${Sg.map(r=>`
`).join(" ")} -
-
${pi("historyColors")}
-
- ${this.historyColors.map(r=>`
`).join(" ")} -
-
- `,t.querySelector("#defaultColor").addEventListener("click",()=>{this.onDefaultColorClick()}),t.querySelectorAll(".color-item").forEach(r=>{r.addEventListener("click",()=>{this.invokeColorItemClick(t,r)}),r.addEventListener("mouseover",()=>{r.style.border="solid 1px #999"}),r.addEventListener("mouseout",()=>{let i=r.getAttribute("data-color");i==="#ffffff"&&(i="#efefef"),r.style.border=`solid 1px ${i}`})}),t.querySelector("#history-colors").addEventListener("click",r=>{const i=r.target.closest(".history-color-item");i&&this.invokeColorItemClick(t,i)}),t}invokeColorItemClick(t,r){const i=r.getAttribute("data-color");this.historyColors=this.historyColors.filter(a=>a!==i),this.historyColors.unshift(i),this.historyColors.length>7&&(this.historyColors=this.historyColors.slice(0,7)),t.querySelector("#history-colors").innerHTML=` - ${this.historyColors.map(a=>`
`).join(" ")} - `,localStorage.setItem(this.historyColorsKey,JSON.stringify(this.historyColors)),this.menuColorEL.style.background=i,this.onColorItemClick(i)}}let ay=class extends vg{constructor(){super(),this.historyColorsKey="highlightHistoryColors",this.iconSvg='',this.onDefaultColorClick=()=>{var e;(e=this.editor)==null||e.chain().focus().unsetHighlight().run()},this.onColorItemClick=e=>{var t;(t=this.editor)==null||t.chain().focus().setHighlight({color:e}).run()}}onActive(e){return e.isActive("highlight")}};class oy extends vg{constructor(){super(),this.historyColorsKey="fontHistoryColors",this.iconSvg='',this.onDefaultColorClick=()=>{var t;(t=this.editor)==null||t.chain().focus().unsetColor().run()},this.onColorItemClick=t=>{var r;(r=this.editor)==null||r.chain().focus().setColor(t).run()}}onActive(t){return t.isActive("textStyle")}}class ly extends Oi{constructor(){super(),this.template=` -
-
-
- `}}let cv=class extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(e){e.toggleBulletList()}onActive(e){return e.isActive("bulletList")}},dv=class extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(e){e.toggleOrderedList()}onActive(e){return e.isActive("orderedList")}};class hv extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(t){t.outdent()}}class GT extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(t){t.indent()}}const pv=[{icon:'
',title:"align-left",value:"left"},{icon:'
',title:"align-center",value:"center"},{icon:'
',title:"align-right",value:"right"},{icon:'
',title:"align-justify",value:"justify"}];class lh extends zu{constructor(){super(),this.menuData=pv.map(t=>_n(je({},t),{title:pi(t.title)})),this.dropDivHeight="112px",this.dropDivWith="60px",this.width="36px",this.menuTextWidth="20px",this.showItemsTip=!0}onDropdownActive(t,r){return t.isActive({textAlign:this.menuData[r].value})}onDropdownItemClick(t){this.editor.chain().focus().setTextAlign(this.menuData[t].value).run()}onDropdownItemRender(t){return this.menuData[t].icon}onMenuTextRender(t){return this.menuData[t].icon}}class uy{constructor(){Ue(this,"tippyInstance"),Ue(this,"content"),Ue(this,"onConfirmClickFunc"),Ue(this,"onShowFunc")}setContent(t){this.content=t}onConfirmClick(t){this.onConfirmClickFunc=t}onShow(t){this.onShowFunc=t}setTrigger(t,r="bottom",i="click"){this.tippyInstance=Fs(t,{content:this.createContentElement(),appendTo:t.closest(".aie-container"),placement:r,trigger:i,interactive:!0,arrow:!1,onShow:a=>{this.onShowFunc&&this.onShowFunc(a)}})}show(){var t;(t=this.tippyInstance)==null||t.show()}hide(){var t;(t=this.tippyInstance)==null||t.hide()}createContentElement(){const t=` -
-
- -
-
${this.content}
- -
- `,r=document.createElement("div");return r.innerHTML=t,r.querySelector(".aie-popover-header-close").addEventListener("click",()=>{this.tippyInstance.hide()}),r.querySelector(".aie-popover-footer-confirm").addEventListener("click",()=>{this.onConfirmClickFunc&&this.onConfirmClickFunc(this.tippyInstance),this.tippyInstance.hide()}),r}}let YT=class extends Oi{constructor(){super(),this.template=` -
- -
- `}connectedCallback(){super.connectedCallback();const e=new uy;e.setContent(` -
${pi("link-address")}
-
- -
- -
${pi("link-open-type")}
-
- -
- `),e.onConfirmClick(t=>{var r,i;const a=t.popper.querySelector("#href").value;if(a.trim()===""){(r=this.editor)==null||r.chain().focus().extendMarkRange("link").unsetLink().run();return}let o=t.popper.querySelector("#target").value;o.trim()===""&&(o=null),(i=this.editor)==null||i.chain().focus().extendMarkRange("link").setLink({href:a,target:o,rel:null}).run()}),e.onShow(t=>{var r;const i=(r=this.editor)==null?void 0:r.getAttributes("link");i&&i.href?t.popper.querySelector("#href").value=i.href:t.popper.querySelector("#href").value="",i&&i.target?t.popper.querySelector("#target").value=i.target:t.popper.querySelector("#target").value=""}),e.setTrigger(this.querySelector("div"),"bottom")}onActive(e){return e.isActive("link")}};class tf extends Oi{constructor(){super(),this.template=` -
- -
- `}connectedCallback(){super.connectedCallback();const t=new uy;t.setContent(` -
- -
- `),t.onConfirmClick(r=>{var i;const a=r.popper.querySelector("#source-code");(i=this.editor)==null||i.commands.setContent(a.value)}),t.onShow(r=>{var i;r.popper.querySelector("#source-code").value=((i=this.editor)==null?void 0:i.getHTML())||""}),t.setTrigger(this.querySelector("div"),"bottom")}}class kg extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(t){t.toggleTaskList()}onActive(t){return t.isActive("taskList")}}const qT=["1.0","1.25","1.5","2.0","2.5","3.0"];class fv extends zu{constructor(){super(),this.menuData=qT,this.refreshMenuText=!1,this.dropDivHeight="180px",this.dropDivWith="70px",this.width="36px",this.menuTextWidth="20px"}onDropdownActive(t,r){return r==0?t.isActive("paragraph"):t.isActive("heading",{level:r})}onDropdownItemClick(t){const r=`${(Number(this.menuData[t])*100).toFixed(0)}%`;this.editor.chain().setLineHeight(r).run()}onDropdownItemRender(t){return this.menuData[t]}onMenuTextRender(t){return` -
- -
- `}}class Hc extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(t){t.toggleBlockquote()}onActive(t){return t.isActive("blockquote")}}let mv=class extends Oi{constructor(){super(),Ue(this,"fileInput"),this.template=` -
- - -
- `,this.registerClickListener()}connectedCallback(){var e,t;super.connectedCallback(),(t=(e=this.options)==null?void 0:e.image)!=null&&t.customMenuInvoke?this.querySelector("input").remove():(this.fileInput=this.querySelector("input"),this.fileInput.addEventListener("change",()=>{var r,i;const a=(r=this.fileInput)==null?void 0:r.files;if(a&&a.length>0)for(let o of a)(i=this.editor)==null||i.commands.uploadImage(o);this.fileInput.value=""}))}onClick(e){var t,r,i;(r=(t=this.options)==null?void 0:t.image)!=null&&r.customMenuInvoke?this.options.image.customMenuInvoke(this.editor.aiEditor):(i=this.fileInput)==null||i.click()}};class XT extends Oi{constructor(){super(),Ue(this,"fileInput"),this.template=` -
- - -
- `,this.registerClickListener()}connectedCallback(){var t,r;super.connectedCallback(),(r=(t=this.options)==null?void 0:t.video)!=null&&r.customMenuInvoke?this.querySelector("input").remove():(this.fileInput=this.querySelector("input"),this.fileInput.addEventListener("change",()=>{var i,a;const o=(i=this.fileInput)==null?void 0:i.files;if(o&&o.length>0)for(let u of o)(a=this.editor)==null||a.commands.uploadVideo(u);this.fileInput.value=""}))}onClick(t){var r,i,a;(i=(r=this.options)==null?void 0:r.video)!=null&&i.customMenuInvoke?this.options.video.customMenuInvoke(this.editor.aiEditor):(a=this.fileInput)==null||a.click()}}let gv=class extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(e){e.toggleCode()}onActive(e){return e.isActive("code")}},KT=class extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(e){e.toggleCodeBlock()}onActive(e){return e.isActive("codeBlock")}};class cy extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(t){t.unsetAllMarks()}}class bv extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(t){t.setHorizontalRule()}}let JT=class extends Oi{constructor(){super(),Ue(this,"instance"),this.template=` -
- -
- `}connectedCallback(){super.connectedCallback(),this.instance=Fs(this.querySelector("svg"),{content:this.createMenuElement(),appendTo:this.closest(".aie-container"),placement:"bottom",trigger:"click",interactive:!0,arrow:!1})}createMenuElement(){const e=document.createElement("div");e.classList.add("aie-dropdown-container"),e.innerHTML=` -
-
${pi("insertTable")}
-
- ${[...Array(8).keys()].map((r,i)=>[...Array(10).keys()].map((a,o)=>`
`).join("")).join("")} -
-
- `;const t=e.querySelector("#table-cells");return t.addEventListener("click",r=>{var i,a;const o=r.target.closest(".table-cell");if(o){let u=o.getAttribute("data-i"),d=o.getAttribute("data-j");(i=this.editor)==null||i.commands.insertTable({rows:Number(u)+1,cols:Number(d)+1,withHeaderRow:!0}),(a=this.instance)==null||a.hide()}}),t.addEventListener("mouseover",r=>{const i=r.target.closest(".table-cell");if(i){let a=Number(i.getAttribute("data-i")),o=Number(i.getAttribute("data-j"));const u=t.querySelectorAll("div"),d=e.querySelector("#columnRows");d.textContent=`${a+1} ${pi("row")} x ${o+1} ${pi("column")}`,u.forEach(f=>{let b=Number(f.getAttribute("data-i")),E=Number(f.getAttribute("data-j"));b<=a&&E<=o?f.classList.add("active"):f.classList.remove("active")})}}),t.addEventListener("mouseleave",()=>{t.querySelectorAll("div").forEach(i=>{i.classList.remove("active")});const r=e.querySelector("#columnRows");r.textContent=""}),e}};class eC extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(t){t.setHardBreak()}}class dy extends Oi{constructor(){super(),Ue(this,"fileInput"),this.template=` -
- - -
- `,this.registerClickListener()}connectedCallback(){var t,r;super.connectedCallback(),(r=(t=this.options)==null?void 0:t.attachment)!=null&&r.customMenuInvoke?this.querySelector("input").remove():(this.fileInput=this.querySelector("input"),this.fileInput.addEventListener("change",()=>{var i,a;const o=(i=this.fileInput)==null?void 0:i.files;if(o&&o.length>0)for(let u of o)(a=this.editor)==null||a.commands.uploadAttachment(u);this.fileInput.value=""}))}onClick(t){var r,i,a;(i=(r=this.options)==null?void 0:r.attachment)!=null&&i.customMenuInvoke?this.options.attachment.customMenuInvoke(this.editor.aiEditor):(a=this.fileInput)==null||a.click()}}class Ov extends Oi{constructor(){super(),Ue(this,"fullscreenSvg",''),Ue(this,"fullscreenExitSvg",''),Ue(this,"isFullscreen",!1),this.template=` -
- ${this.fullscreenSvg} -
- `,this.registerClickListener()}onClick(t){const r=this.closest(".aie-container");this.isFullscreen?(r.style.height="100%",r.style.width="",r.style.background="",r.style.position="",r.style.top="",r.style.left="",r.style.zIndex=""):(r.style.height="calc(100vh - 2px)",r.style.width="calc(100% - 2px)",r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.zIndex="9999"),this.isFullscreen=!this.isFullscreen,this.querySelector("div").innerHTML=this.isFullscreen?this.fullscreenExitSvg:this.fullscreenSvg}}class tC extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(t){let r=this.closest(".aie-container").querySelector(".aie-content").innerHTML;r=`
${r}
`;const i=Array.from(document.querySelectorAll("style, link")).map(d=>d.outerHTML).join("")+r,a=document.createElement("iframe");a.id="aie-print-iframe",a.setAttribute("style","position: absolute; width: 0; height: 0; top: -10px; left: -10px;"),document.body.appendChild(a);const o=a.contentWindow,u=a.contentDocument||a.contentWindow&&a.contentWindow.document;u&&(u.open(),u.write(i),u.close()),o&&(a.onload=function(){try{setTimeout(()=>{o.focus();try{o.document.execCommand("print",!1)||o.print()}catch(d){o.print()}o.close()},10)}catch(d){console.error(d)}setTimeout(function(){document.body.removeChild(a)},100)})}}const nC=["\u{1F600}","\u{1F603}","\u{1F604}","\u{1F601}","\u{1F606}","\u{1F605}","\u{1F923}","\u{1F602}","\u{1F642}","\u{1F643}","\u{1F609}","\u{1F60A}","\u{1F607}","\u{1F970}","\u{1F60D}","\u{1F929}","\u{1F618}","\u{1F617}","\u{1F61A}","\u{1F619}","\u{1F972}","\u{1F60B}","\u{1F61B}","\u{1F61C}","\u{1F92A}","\u{1F61D}","\u{1F911}","\u{1F917}","\u{1F92D}","\u{1F92B}","\u{1F914}","\u{1F910}","\u{1F928}","\u{1F610}","\u{1F611}","\u{1F636}","\u{1F636}\u200D\u{1F32B}","\u{1F60F}","\u{1F612}","\u{1F644}","\u{1F62C}","\u{1F62E}\u200D\u{1F4A8}","\u{1F925}","\u{1F60C}","\u{1F614}","\u{1F62A}","\u{1F924}","\u{1F634}","\u{1F637}","\u{1F912}","\u{1F915}","\u{1F922}","\u{1F92E}","\u{1F927}","\u{1F975}","\u{1F976}","\u{1F974}","\u{1F635}","\u{1F635}\u200D\u{1F4AB}","\u{1F92F}","\u{1F920}","\u{1F973}","\u{1F978}","\u{1F60E}","\u{1F913}","\u{1F9D0}","\u{1F615}","\u{1F61F}","\u{1F641}","\u{1F62E}","\u{1F632}","\u{1F633}","\u{1F97A}","\u{1F626}","\u{1F627}","\u{1F628}","\u{1F630}","\u{1F625}","\u{1F622}","\u{1F62D}","\u{1F631}","\u{1F616}","\u{1F623}","\u{1F61E}","\u{1F613}","\u{1F629}","\u{1F62B}","\u{1F971}","\u{1F624}","\u{1F621}","\u{1F620}","\u{1F92C}","\u{1F608}","\u{1F47F}","\u{1F480}","\u2620\uFE0F","\u{1F4A9}","\u{1F921}","\u{1F479}","\u{1F47A}","\u{1F47B}","\u{1F47D}","\u{1F47E}","\u{1F916}","\u{1F63A}","\u{1F638}","\u{1F639}","\u{1F63B}","\u{1F63C}","\u{1F63D}","\u{1F640}","\u{1F63F}","\u{1F63E}","\u{1F648}","\u{1F649}","\u{1F64A}","\u{1F48C}","\u{1F498}","\u{1F49D}","\u{1F496}","\u{1F497}","\u{1F493}","\u{1F49E}","\u{1F495}","\u{1F49F}","\u2763\uFE0F","\u{1F494}","\u{1F48B}","\u{1F4AF}","\u{1F4A2}","\u{1F4A5}","\u{1F4AB}","\u{1F4A6}","\u{1F4A8}","\u{1F4A4}"];class rC extends Oi{constructor(){super(),this.template=` -
- -
- `}connectedCallback(){super.connectedCallback(),Fs(this.querySelector("svg"),{content:this.createMenuElement(),appendTo:this.closest(".aie-container"),placement:"bottom",trigger:"click",interactive:!0,arrow:!1})}createMenuElement(){const t=document.createElement("div");return t.style.height="220px",t.style.width="400px",t.classList.add("aie-dropdown-container"),t.innerHTML=` -
-
- ${nC.map(r=>`
${r}
`).join("")} -
-
- `,t.querySelector(".emoji-cells").addEventListener("click",r=>{var i;const a=r.target.closest(".emoji-cell");a&&((i=this.editor)==null||i.commands.insertContent(a.innerHTML))}),t}}class iC extends Oi{constructor(){super(),Ue(this,"svg",''),this.template=` -
- ${this.svg} -
- `,this.registerClickListener()}onClick(t){var r;t.setPainter((r=this.editor)==null?void 0:r.state.selection.$head.marks())}}class wg{constructor(t,r,i){Ue(this,"editor"),Ue(this,"globalConfig"),Ue(this,"aiModelName"),Ue(this,"aiModelConfig"),this.editor=t,this.globalConfig=r,this.aiModelName=i,this.aiModelConfig=r.models[i]}chatWithPayload(t,r){const i=o=>{this.createAiClient(o,r).start(typeof t=="string"?t:JSON.stringify(t))},a=()=>{r==null||r.onStop()};this.globalConfig.onCreateClientUrl?this.globalConfig.onCreateClientUrl(this.aiModelName,this.aiModelConfig,i,a):i(this.createAiClientUrl())}chat(t,r,i){const a=u=>{const d=this.createAiClient(u,i),f=r.includes("{content}")?r.split("{content}").join(t):`${t} -${r}`,b=this.wrapPayload(f);d.start(typeof b=="string"?b:JSON.stringify(b))},o=()=>{i==null||i.onStop()};this.globalConfig.onCreateClientUrl?this.globalConfig.onCreateClientUrl(this.aiModelName,this.aiModelConfig,a,o):a(this.createAiClientUrl())}}class yv{constructor(t,r){Ue(this,"isStop",!1),Ue(this,"url"),Ue(this,"webSocket"),Ue(this,"isOpen",!1),Ue(this,"payload"),Ue(this,"listener"),this.url=t,this.listener=r}start(t){this.listener.onStart(this),this.payload=t,this.webSocket=new WebSocket(this.url),this.webSocket.onopen=r=>this.onOpen(r),this.webSocket.onmessage=r=>this.onMessage(r),this.webSocket.onclose=r=>this.onClose(r),this.webSocket.onerror=r=>this.onError(r)}stop(){this.webSocket&&(this.webSocket.close(),this.webSocket=void 0,this.isStop||(this.listener.onStop(),this.isStop=!0))}send(t){this.webSocket&&this.isOpen&&this.webSocket.send(t)}onOpen(t){this.isOpen=!0,this.send(this.payload)}onMessage(t){this.listener.onMessage(t.data)}onClose(t){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}onError(t){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}}var iu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ev(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var Sv={exports:{}};function sC(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var xg={exports:{}};const vv={},aC=Object.freeze(Object.defineProperty({__proto__:null,default:vv},Symbol.toStringTag,{value:"Module"})),Tg=Ev(aC);var kv;function su(){return kv||(kv=1,function(e,t){(function(r,i){e.exports=i()})(iu,function(){var r=r||function(i,a){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof iu<"u"&&iu.crypto&&(o=iu.crypto),!o&&typeof sC=="function")try{o=Tg}catch(de){}var u=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(de){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(de){}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||function(){function de(){}return function(xe){var ae;return de.prototype=xe,ae=new de,de.prototype=null,ae}}(),f={},b=f.lib={},E=b.Base=function(){return{extend:function(de){var xe=d(this);return de&&xe.mixIn(de),(!xe.hasOwnProperty("init")||this.init===xe.init)&&(xe.init=function(){xe.$super.init.apply(this,arguments)}),xe.init.prototype=xe,xe.$super=this,xe},create:function(){var de=this.extend();return de.init.apply(de,arguments),de},init:function(){},mixIn:function(de){for(var xe in de)de.hasOwnProperty(xe)&&(this[xe]=de[xe]);de.hasOwnProperty("toString")&&(this.toString=de.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),k=b.WordArray=E.extend({init:function(de,xe){de=this.words=de||[],xe!=a?this.sigBytes=xe:this.sigBytes=de.length*4},toString:function(de){return(de||R).stringify(this)},concat:function(de){var xe=this.words,ae=de.words,Ve=this.sigBytes,He=de.sigBytes;if(this.clamp(),Ve%4)for(var _t=0;_t>>2]>>>24-_t%4*8&255;xe[Ve+_t>>>2]|=rn<<24-(Ve+_t)%4*8}else for(var St=0;St>>2]=ae[St>>>2];return this.sigBytes+=He,this},clamp:function(){var de=this.words,xe=this.sigBytes;de[xe>>>2]&=4294967295<<32-xe%4*8,de.length=i.ceil(xe/4)},clone:function(){var de=E.clone.call(this);return de.words=this.words.slice(0),de},random:function(de){for(var xe=[],ae=0;ae>>2]>>>24-He%4*8&255;Ve.push((_t>>>4).toString(16)),Ve.push((_t&15).toString(16))}return Ve.join("")},parse:function(de){for(var xe=de.length,ae=[],Ve=0;Ve>>3]|=parseInt(de.substr(Ve,2),16)<<24-Ve%8*4;return new k.init(ae,xe/2)}},N=x.Latin1={stringify:function(de){for(var xe=de.words,ae=de.sigBytes,Ve=[],He=0;He>>2]>>>24-He%4*8&255;Ve.push(String.fromCharCode(_t))}return Ve.join("")},parse:function(de){for(var xe=de.length,ae=[],Ve=0;Ve>>2]|=(de.charCodeAt(Ve)&255)<<24-Ve%4*8;return new k.init(ae,xe)}},G=x.Utf8={stringify:function(de){try{return decodeURIComponent(escape(N.stringify(de)))}catch(xe){throw new Error("Malformed UTF-8 data")}},parse:function(de){return N.parse(unescape(encodeURIComponent(de)))}},K=b.BufferedBlockAlgorithm=E.extend({reset:function(){this._data=new k.init,this._nDataBytes=0},_append:function(de){typeof de=="string"&&(de=G.parse(de)),this._data.concat(de),this._nDataBytes+=de.sigBytes},_process:function(de){var xe,ae=this._data,Ve=ae.words,He=ae.sigBytes,_t=this.blockSize,rn=_t*4,St=He/rn;de?St=i.ceil(St):St=i.max((St|0)-this._minBufferSize,0);var xn=St*_t,tr=i.min(xn*4,He);if(xn){for(var Xn=0;Xn>>7)^(St<<14|St>>>18)^St>>>3,tr=k[rn-2],Xn=(tr<<15|tr>>>17)^(tr<<13|tr>>>19)^tr>>>10;k[rn]=xn+k[rn-7]+Xn+k[rn-16]}var pr=ae&Ve^~ae&He,Hr=K&ge^K&de^ge&de,sr=(K<<30|K>>>2)^(K<<19|K>>>13)^(K<<10|K>>>22),$t=(ae<<26|ae>>>6)^(ae<<21|ae>>>11)^(ae<<7|ae>>>25),rt=_t+$t+pr+E[rn]+k[rn],Lt=sr+Hr;_t=He,He=Ve,Ve=ae,ae=xe+rt|0,xe=de,de=ge,ge=K,K=rt+Lt|0}G[0]=G[0]+K|0,G[1]=G[1]+ge|0,G[2]=G[2]+de|0,G[3]=G[3]+xe|0,G[4]=G[4]+ae|0,G[5]=G[5]+Ve|0,G[6]=G[6]+He|0,G[7]=G[7]+_t|0},_doFinalize:function(){var R=this._data,N=R.words,G=this._nDataBytes*8,K=R.sigBytes*8;return N[K>>>5]|=128<<24-K%32,N[(K+64>>>9<<4)+14]=i.floor(G/4294967296),N[(K+64>>>9<<4)+15]=G,R.sigBytes=N.length*4,this._process(),this._hash},clone:function(){var R=d.clone.call(this);return R._hash=this._hash.clone(),R}});a.SHA256=d._createHelper(x),a.HmacSHA256=d._createHmacHelper(x)}(Math),r.SHA256})}(hy)),hy.exports}var py={exports:{}},xv;function lC(){return xv||(xv=1,function(e,t){(function(r,i){e.exports=i(su())})(iu,function(r){(function(){var i=r,a=i.lib,o=a.Base,u=i.enc,d=u.Utf8,f=i.algo;f.HMAC=o.extend({init:function(b,E){b=this._hasher=new b.init,typeof E=="string"&&(E=d.parse(E));var k=b.blockSize,x=k*4;E.sigBytes>x&&(E=b.finalize(E)),E.clamp();for(var R=this._oKey=E.clone(),N=this._iKey=E.clone(),G=R.words,K=N.words,ge=0;ge>>2]>>>24-R%4*8&255,G=b[R+1>>>2]>>>24-(R+1)%4*8&255,K=b[R+2>>>2]>>>24-(R+2)%4*8&255,ge=N<<16|G<<8|K,de=0;de<4&&R+de*.75>>6*(3-de)&63));var xe=k.charAt(64);if(xe)for(;x.length%4;)x.push(xe);return x.join("")},parse:function(f){var b=f.length,E=this._map,k=this._reverseMap;if(!k){k=this._reverseMap=[];for(var x=0;x>>6-R%4*2,K=N|G;k[x>>>2]|=K<<24-x%4*8,x++}return o.create(k,x)}}(),r.enc.Base64})})(Tv);var dC=Tv.exports;const hC=Fo(dC),Cg=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16));class fy extends wg{constructor(t,r){super(t,r,"spark"),this.aiModelConfig=je({version:"v3.5",protocol:"wss"},r.models.spark)}createAiClient(t,r){return new yv(t,{onStart:r.onStart,onStop:r.onStop,onMessage:i=>{var a,o,u,d,f;const b=JSON.parse(i);b.payload&&((o=(a=b.payload.usage)==null?void 0:a.text)!=null&&o.total_tokens&&this.globalConfig.onTokenConsume&&this.globalConfig.onTokenConsume(this.aiModelName,this.aiModelConfig,(d=(u=b.payload.usage)==null?void 0:u.text)==null?void 0:d.total_tokens),(f=b.payload.choices)!=null&&f.text&&b.payload.choices.text[0]&&r.onMessage(_n(je({},b.payload.choices.text[0]),{status:b.payload.choices.status})))}})}wrapPayload(t){const r=this.aiModelConfig,i={header:{app_id:r.appId,uid:Cg()},parameter:{chat:{domain:this.getDomain(r),temperature:.5,max_tokens:2048}},payload:{message:{text:[{role:"user",content:t}]}}};return JSON.stringify(i)}getDomain(t){switch(t.version){case"v3.5":return"generalv3.5";case"v3.1":return"generalv3";case"v2.1":return"generalv2";default:return"general"}}createAiClientUrl(){const t=this.aiModelConfig,r=new Date().toUTCString().replace("GMT","+0000");let i=`host: spark-api.xf-yun.com -`;i+="date: "+r+` -`,i+=`GET /${t.version}/chat HTTP/1.1`;const a=cC(i,t.apiSecret),o=hC.stringify(a),u=`api_key="${t.apiKey}", algorithm="hmac-sha256", headers="host date request-line", signature="${o}"`,d=btoa(u);return`${t.protocol}://spark-api.xf-yun.com/${t.version}/chat?authorization=${d}&date=${encodeURIComponent(r)}&host=spark-api.xf-yun.com`}}class uh{constructor(t,r){Ue(this,"isStop",!1),Ue(this,"config"),Ue(this,"fetch"),Ue(this,"isOpen",!1),Ue(this,"payload"),Ue(this,"listener"),this.config=t,this.listener=r}start(t){this.payload=t,this.onOpen(),this.listener.onStart(this)}stop(){this.fetch&&(this.fetch=void 0,this.isStop||(this.listener.onStop(),this.isStop=!0))}send(t){return iS(this,null,function*(){if(this.isOpen)try{this.fetch=yield fetch(this.config.url,{method:this.config.method,body:t});const r=this.fetch;if(!r.body)throw new Error("response.body is none");const i=({done:u,value:d})=>{if(u){this.onClose();return}return this.onMessage(o.decode(d)),a.read().then(({done:f,value:b})=>i({done:f,value:b}))},a=r.body.getReader(),o=new TextDecoder("utf-8");a.read().then(({done:u,value:d})=>i({done:u,value:d}))}catch(r){this.onError()}})}onOpen(){this.isOpen=!0,this.send(this.payload)}onMessage(t){this.listener.onMessage(t)}onClose(){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}onError(){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}}class pC extends wg{constructor(t,r){super(t,r,"wenxin"),this.aiModelConfig=je({},r.models.wenxin)}createAiClient(t,r){return new uh({url:t,method:"POST"},{onStart:r.onStart,onStop:r.onStop,onMessage:i=>{const a=i.match(/data:([\s\S]*)$/);if(!a)return;const o=JSON.parse(a[1]);r.onMessage({status:o.is_end?2:1,role:"assistant",content:o.result||"",index:o.sentence_id})}})}wrapPayload(t){const r={messages:[],stream:!0};return r.messages.push({role:"user",content:t}),JSON.stringify(r)}createAiClientUrl(){return`https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions_pro?access_token=${this.aiModelConfig.access_token}`}}class Cv{constructor(t,r){Ue(this,"isStop",!1),Ue(this,"config"),Ue(this,"fetch"),Ue(this,"isOpen",!1),Ue(this,"payload"),Ue(this,"listener"),Ue(this,"ctrl",new AbortController),this.config=t,this.listener=r}start(t){this.payload=t,this.onOpen(),this.listener.onStart(this)}stop(){this.fetch&&(this.ctrl.abort(),this.isStop||(this.listener.onStop(),this.isStop=!0))}send(t){return iS(this,null,function*(){var r;if(this.isOpen)try{const i=yield fetch(this.config.url,{method:this.config.method||"POST",headers:this.config.headers,body:t});if(!i.ok){this.onError();return}const a=(r=i.body)==null?void 0:r.getReader();if(!a){this.onError();return}const o=new TextDecoder("utf-8");for(;;){let{value:u,done:d}=yield a.read();if(d){this.onClose();break}let f=o.decode(u);if(!f)return;const b=f.split(` - -`);let E="",k=0;for(let x of b)x.indexOf("data:")==0?(E&&this.onMessage(E),E=x.substring(5)):(k!=b.length-1&&(E+=` - -`),E+=x),k++;E&&this.onMessage(E)}}catch(i){this.onError()}})}onOpen(){this.isOpen=!0,this.send(this.payload)}onMessage(t){this.listener.onMessage(t)}onClose(){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}onError(){this.isOpen=!1,this.isStop||(this.listener.onStop(),this.isStop=!0)}}class es extends wg{constructor(t,r){super(t,r,"custom"),this.aiModelConfig=je({protocol:"sse"},r.models.custom)}createAiClient(t,r){var i;const a=this.aiModelConfig,o={onStart:r.onStart,onStop:r.onStop,onMessage:u=>{var d;const f=this.aiModelConfig,b=(d=f.parseMessage)==null?void 0:d.call(f,u);b&&r.onMessage(b)}};return a.protocol==="sse"?new Cv({url:t,method:"post",headers:(i=a.headers)==null?void 0:i.call(a)},o):new yv(t,o)}wrapPayload(t){var r;const i=this.aiModelConfig;return(r=i.wrapPayload)==null?void 0:r.call(i,t)}createAiClientUrl(){var t;const r=this.aiModelConfig;return typeof r.url=="string"?r.url:(t=r.url)==null?void 0:t.call(r)}}class Oe extends wg{constructor(t,r){super(t,r,"openai"),this.aiModelConfig=je({endpoint:"https://api.openai.com",model:"gpt-3.5-turbo"},r.models.openai)}createAiClient(t,r){const i=this.aiModelConfig;return new Cv({url:t,method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i.apiKey}`}},{onStart:r.onStart,onStop:r.onStop,onMessage:a=>{var o,u;const d=JSON.parse(a);r.onMessage({status:d.choices[0].finish_reason==="stop"?2:1,role:"assistant",content:((o=d.choices[0].delta)==null?void 0:o.content)||"",index:d.choices[0].index}),this.globalConfig.onTokenConsume&&(u=d.choices[0].usage)!=null&&u.total_tokens&&this.globalConfig.onTokenConsume(this.aiModelName,this.aiModelConfig,d.choices[0].usage.total_tokens)}})}wrapPayload(t){const r={model:this.aiModelConfig.model,messages:[{role:"user",content:t}],stream:!0};return JSON.stringify(r)}createAiClientUrl(){return`${this.aiModelConfig.endpoint}/v1/chat/completions`}}class Ts{static init(t,r){var i;if(r&&r.models)for(let a of Object.keys(r.models))switch(a){case"spark":this.set(a,new fy(t,r));break;case"wenxin":this.set(a,new pC(t,r));break;case"openai":this.set(a,new Oe(t,r));break;case"custom":this.set(a,new es(t,r));break;default:const o=(i=r.modelFactory)==null?void 0:i.create(a,t,r);o&&this.set(a,o)}}static get(t){return(!t||t==="auto")&&(t=Object.keys(this.models)[0]),this.models[t]}static set(t,r){this.models[t]=r}}Ue(Ts,"models",{});const Av=e=>{let t="";return e.descendants(r=>{r.text&&(t+=r.text)}),t};class Ag{constructor(t,r){Ue(this,"editor"),Ue(this,"from"),Ue(this,"options"),this.editor=t,this.from=t.view.state.selection.from,this.options=r||{markdownParseEnable:!0}}onStart(){}onStop(){}onMessage(t){const{state:{tr:r},view:i}=this.editor;if(i.dispatch(r.insertText(t.content)),t.status==2&&this.options.markdownParseEnable){const a=this.editor.state.selection.to,o=this.editor.state.doc.textBetween(this.from,a),{state:{tr:u},view:d}=this.editor,f=this.editor.parseMarkdown(o);if(this.options.useMarkdownTextOnly){const b=Av(f),E=this.editor.schema.text(b);d.dispatch(u.replaceWith(this.from,a,E).scrollIntoView())}else d.dispatch(u.replaceWith(this.from,a,f).scrollIntoView())}this.editor.commands.scrollIntoView()}}class fC extends zu{constructor(){super(),Ue(this,"aiMenus",[{icon:'',name:`${pi("ai-continuation")}`,prompt:`{content} -\u8BF7\u5E2E\u6211\u7EE7\u7EED\u6269\u5C55\u4E00\u4E9B\u8FD9\u6BB5\u8BDD\u7684\u5185\u5BB9\u3002 -\u6CE8\u610F\uFF1A\u4F60\u5E94\u8BE5\u5148\u5224\u65AD\u4E00\u4E0B\u8FD9\u53E5\u8BDD\u662F\u4E2D\u6587\u8FD8\u662F\u82F1\u6587\uFF0C\u5982\u679C\u662F\u4E2D\u6587\uFF0C\u8BF7\u7ED9\u6211\u8FD4\u56DE\u4E2D\u6587\u7684\u5185\u5BB9\uFF0C\u5982\u679C\u662F\u82F1\u6587\uFF0C\u8BF7\u7ED9\u6211\u8FD4\u56DE\u82F1\u6587\u5185\u5BB9\uFF0C\u53EA\u9700\u8981\u8FD4\u56DE\u5185\u5BB9\u5373\u53EF\uFF0C\u4E0D\u9700\u8981\u544A\u77E5\u6211\u662F\u4E2D\u6587\u8FD8\u662F\u82F1\u6587\u3002`,text:"focusBefore",model:"auto"},{icon:'',name:`${pi("ai-optimization")}`,prompt:`{content} -\u8BF7\u5E2E\u6211\u4F18\u5316\u4E00\u4E0B\u8FD9\u6BB5\u6587\u5B57\u7684\u5185\u5BB9\uFF0C\u5E76\u8FD4\u56DE\u7ED3\u679C -\u6CE8\u610F\uFF1A\u4F60\u5E94\u8BE5\u5148\u5224\u65AD\u4E00\u4E0B\u8FD9\u53E5\u8BDD\u662F\u4E2D\u6587\u8FD8\u662F\u82F1\u6587\uFF0C\u5982\u679C\u662F\u4E2D\u6587\uFF0C\u8BF7\u7ED9\u6211\u8FD4\u56DE\u4E2D\u6587\u7684\u5185\u5BB9\uFF0C\u5982\u679C\u662F\u82F1\u6587\uFF0C\u8BF7\u7ED9\u6211\u8FD4\u56DE\u82F1\u6587\u5185\u5BB9\uFF0C\u53EA\u9700\u8981\u8FD4\u56DE\u5185\u5BB9\u5373\u53EF\uFF0C\u4E0D\u9700\u8981\u544A\u77E5\u6211\u662F\u4E2D\u6587\u8FD8\u662F\u82F1\u6587\u3002`,text:"selected",model:"auto"},{icon:'',name:`${pi("ai-proofreading")}`,prompt:`{content} -\u8BF7\u5E2E\u6211\u627E\u51FA\u8FD9\u6BB5\u8BDD\u7684\u9519\u522B\u5B57\uFF0C\u628A\u9519\u522B\u5B57\u4FEE\u6539\u540E\uFF0C\u5E76\u8FD4\u56DE\u7ED3\u679C\uFF0C\u4E0D\u8981\u89E3\u91CA\u6216\u5176\u4ED6\u591A\u4F59\u7684\u5185\u5BB9 -\u6CE8\u610F\uFF1A\u4F60\u5E94\u8BE5\u5148\u5224\u65AD\u4E00\u4E0B\u8FD9\u53E5\u8BDD\u662F\u4E2D\u6587\u8FD8\u662F\u82F1\u6587\uFF0C\u5982\u679C\u662F\u4E2D\u6587\uFF0C\u8BF7\u7ED9\u6211\u8FD4\u56DE\u4E2D\u6587\u7684\u5185\u5BB9\uFF0C\u5982\u679C\u662F\u82F1\u6587\uFF0C\u8BF7\u7ED9\u6211\u8FD4\u56DE\u82F1\u6587\u5185\u5BB9\uFF0C\u53EA\u9700\u8981\u8FD4\u56DE\u5185\u5BB9\u5373\u53EF\uFF0C\u4E0D\u9700\u8981\u544A\u77E5\u6211\u662F\u4E2D\u6587\u8FD8\u662F\u82F1\u6587\u3002`,text:"selected",model:"auto"},{icon:'',name:`${pi("ai-translation")}`,prompt:"\u8BF7\u5E2E\u6211\u7FFB\u8BD1\u4EE5\u4E0A\u5185\u5BB9\uFF0C\u5728\u7FFB\u8BD1\u4E4B\u524D\uFF0C\u60F3\u5148\u5224\u65AD\u4E00\u4E0B\u8FD9\u4E2A\u5185\u5BB9\u662F\u4E0D\u662F\u4E2D\u6587\uFF0C\u5982\u679C\u662F\u4E2D\u6587\uFF0C\u5219\u7FFB\u8BD1\u95EE\u82F1\u6587\uFF0C\u5982\u679C\u662F\u5176\u4ED6\u8BED\u8A00\uFF0C\u5219\u9700\u8981\u7FFB\u8BD1\u4E3A\u4E2D\u6587\uFF0C\u6CE8\u610F\uFF0C\u4F60\u53EA\u9700\u8981\u8FD4\u56DE\u7FFB\u8BD1\u7684\u7ED3\u679C\uFF0C\u4E0D\u9700\u8981\u5BF9\u6B64\u8FDB\u884C\u4EFB\u4F55\u89E3\u91CA\uFF0C\u4E0D\u9700\u8981\u9664\u4E86\u7FFB\u8BD1\u7ED3\u679C\u4EE5\u5916\u7684\u5176\u4ED6\u4EFB\u4F55\u5185\u5BB9\u3002",text:"selected",model:"auto"}]),this.dropDivHeight="auto",this.dropDivWith="fit-content",this.width="36px",this.menuTextWidth="20px"}onCreate(t,r){var i;super.onCreate(t,r),this.menuData=((i=r.ai)==null?void 0:i.menus)||this.aiMenus}renderTemplate(){this.template=` -
- -
- `}createMenuElement(){const t=document.createElement("div");t.style.height=this.dropDivHeight,t.style.width=this.dropDivWith,t.classList.add("aie-dropdown-container");for(let r=0;r${this.onDropdownItemRender(r)}
- `,i.addEventListener("click",()=>{this.onDropdownItemClick(r),this.tippyInstance.hide()}),t.appendChild(i)}return this.tippyEl=t,t}onTransaction(t){}onDropdownActive(t,r){return!1}getSelectedText(t){if(t==="selected"){const{selection:r,doc:i}=this.editor.state;return i.textBetween(r.from,r.to)}else return this.editor.state.selection.$head.parent.textContent}onDropdownItemClick(t){const r=this.menuData[t],i=this.getSelectedText(r.text);if(i){const a=Ts.get(r.model);a?a==null||a.chat(i,r.prompt,new Ag(this.editor)):console.error("Ai model config error.")}else console.error("Can not get selected text.")}onDropdownItemRender(t){return`
${this.menuData[t].icon}
${this.menuData[t].name}
`}onMenuTextRender(t){return this.menuData[t].icon}}class _v extends Oi{constructor(){super(),this.template=` -
- -
- `,this.registerClickListener()}onClick(t){var r;(r=this.editor)!=null&&r.isActive("container")?t.unsetContainer():t.setContainer("warning"),t.focus()}onActive(t){return t.isActive("container")}}class Nv extends Oi{constructor(){super(),Ue(this,"config")}onConfig(t){this.config=t,t.html?this.template=t.html:t.icon&&(this.template=`
${t.icon}
`),this.addEventListener("click",r=>{this.config&&this.config.onClick&&this.config.onClick(r,this.editor.aiEditor)})}}const dt=(e,t)=>{window.customElements.get(e)||window.customElements.define(e,t)};dt("aie-undo",zm),dt("aie-undo",zm),dt("aie-redo",nO),dt("aie-brush",iC),dt("aie-container",_v),dt("aie-custom",Nv),dt("aie-eraser",cy),dt("aie-heading",iI),dt("aie-font-family",jT),dt("aie-font-size",av),dt("aie-bold",ov),dt("aie-italic",lv),dt("aie-underline",sI),dt("aie-strike",WT),dt("aie-link",YT),dt("aie-source-code",tf),dt("aie-code",gv),dt("aie-subscript",uv),dt("aie-superscript",yg),dt("aie-highlight",ay),dt("aie-font-color",oy),dt("aie-divider",ly),dt("aie-bullet-list",cv),dt("aie-ordered-list",dv),dt("aie-indent-decrease",hv),dt("aie-indent-increase",GT),dt("aie-align",lh),dt("aie-todo",kg),dt("aie-line-height",fv),dt("aie-break",eC),dt("aie-quote",Hc),dt("aie-image",mv),dt("aie-video",XT),dt("aie-code-block",KT),dt("aie-hr",bv),dt("aie-table",JT),dt("aie-attachment",dy),dt("aie-fullscreen",Ov),dt("aie-printer",tC),dt("aie-emoji",rC),dt("aie-ai",fC);const mC=["undo","redo","brush","eraser","divider","heading","font-family","font-size","divider","bold","italic","underline","strike","link","code","subscript","superscript","hr","todo","emoji","divider","highlight","font-color","divider","align","line-height","divider","bullet-list","ordered-list","indent-decrease","indent-increase","break","divider","image","video","attachment","quote","container","code-block","table","divider","source-code","printer","fullscreen","ai"];class Rv extends HTMLElement{constructor(){super(),Ue(this,"menuButtons",[])}connectedCallback(){if(this.children&&this.children.length>0)return;const t=document.createElement("div");for(let r of this.menuButtons)t.appendChild(r);t.style.display="flex",t.style.flexWrap="wrap",this.appendChild(t)}onCreate(t,r){let i=r.toolbarKeys||mC;for(let a of i)if(a)try{if(typeof a=="string"){a=a.trim(),a==="|"&&(a="divider");const o=document.createElement("aie-"+a);if(o.classList.add("aie-menu-item"),o.onCreate(t,r),a!=="divider"){const u=pi(a);u&&Fs(o,{appendTo:()=>t.editor.view.dom.closest(".aie-container"),content:u,theme:"aietip",arrow:!0})}this.menuButtons.push(o)}else{const o=a,u=document.createElement("aie-custom");if(u.classList.add("aie-menu-item"),o.id&&u.setAttribute("id",o.id),o.className&&u.classList.add(o.className),u.onCreate(t,r),u.onConfig(o),o.tip){const d=pi(o.tip);d&&Fs(u,{appendTo:()=>t.editor.view.dom.closest(".aie-container"),content:d,theme:"aietip",arrow:!0})}o.onCreate&&o.onCreate(u,t.editor.aiEditor),this.menuButtons.push(u)}}catch(o){console.error("Can not create toolbar by key: "+a)}}onTransaction(t){for(let r of this.menuButtons)r.onTransaction(t)}}class di extends HTMLElement{constructor(){super(),Ue(this,"count",0),Ue(this,"draggable",!0)}initDraggable(t){if(this.draggable=!!t,!this.draggable)return;let r,i,a=300,o=300,u,d,f;const b=k=>{k.preventDefault(),document.removeEventListener("mouseup",b),document.removeEventListener("mousemove",E)},E=k=>{const x=k.clientX-r,R=k.clientY-i;if(x==0&&R==0)return;let N=u+x,G=d+R;N{var x;k.target.closest("svg")&&(k.preventDefault(),document.addEventListener("mouseup",b),document.addEventListener("mousemove",E),f=(x=k.target.closest(".aie-container"))==null?void 0:x.parentElement,u=f.clientWidth,d=f.clientHeight,r=k.clientX,i=k.clientY)}),this.addEventListener("mouseup",b)}updateCharacters(){this.draggable?this.innerHTML=`
- Powered by AiEditor, Characters: ${this.count} -
- -
-
- `:this.innerHTML=`
- Powered by AiEditor, Characters: ${this.count} -
- `}onCreate(t,r){this.count=t.editor.storage.characterCount.characters(),this.updateCharacters()}onTransaction(t){const r=t.editor.storage.characterCount.characters();r!=this.count&&(this.count=r,this.updateCharacters())}}const Dv=/^\s*>\s$/,Vu=ci.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return["blockquote",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[eu({find:Dv,type:this.type})]}}),gC=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,my=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,bC=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,Iv=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,Lv=Ji.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Jl({find:gC,type:this.type}),Jl({find:bC,type:this.type})]},addPasteRules(){return[ll({find:my,type:this.type}),ll({find:Iv,type:this.type})]}}),aI=ci.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",ui(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Bs=Ji.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:e=>e.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["span",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const r=Dc(e,this.type);return Object.entries(r).some(([,i])=>!!i)?!0:t.unsetMark(this.name)}}}}),Mv=/^\s*([-+*])\s$/,pl=ci.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(aI.name,this.editor.getAttributes(Bs.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=eu({find:Mv,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=eu({find:Mv,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Bs.name),editor:this.editor})),[e]}}),gy=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,OC=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,yC=Ji.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Jl({find:gy,type:this.type})]},addPasteRules(){return[ll({find:OC,type:this.type})]}}),EC=/^```([a-z]+)?[\s\n]$/,Gs=/^~~~([a-z]+)?[\s\n]$/,ho=ci.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:e=>{var t;const{languageClassPrefix:r}=this.options;return[...((t=e.firstElementChild)===null||t===void 0?void 0:t.classList)||[]].filter(a=>a.startsWith(r)).map(a=>a.replace(r,""))[0]||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",ui(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,r=t.pos===1;return!e||t.parent.type.name!==this.name?!1:r||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:r}=t,{$from:i,empty:a}=r;if(!a||i.parent.type!==this.type)return!1;const o=i.parentOffset===i.parent.nodeSize-2,u=i.parent.textContent.endsWith(` - -`);return!o||!u?!1:e.chain().command(({tr:d})=>(d.delete(i.pos-2,i.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:r,doc:i}=t,{$from:a,empty:o}=r;if(!o||a.parent.type!==this.type||a.parentOffset!==a.parent.nodeSize-2)return!1;const u=a.after();return u===void 0||i.nodeAt(u)?!1:e.commands.exitCode()}}},addInputRules(){return[Lp({find:EC,type:this.type,getAttributes:e=>({language:e[1]})}),Lp({find:Gs,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new Di({key:new _i("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const r=t.clipboardData.getData("text/plain"),i=t.clipboardData.getData("vscode-editor-data"),a=i?JSON.parse(i):void 0,o=a==null?void 0:a.mode;if(!r||!o)return!1;const{tr:u}=e.state;return e.state.selection.from===e.state.doc.nodeSize-(1+e.state.selection.$to.depth*2)?u.insert(e.state.selection.from-1,this.type.create({language:o})):u.replaceSelectionWith(this.type.create({language:o})),u.setSelection(Be.near(u.doc.resolve(Math.max(0,u.selection.from-2)))),u.insertText(r.replace(/\r\n?/g,` -`)),u.setMeta("paste",!0),e.dispatch(u),!0}}})]}}),SC=ci.create({name:"doc",topNode:!0,content:"block+"});function Pv(e={}){return new Di({view(t){return new Fv(t,e)}})}class Fv{constructor(t,r){var i;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(i=r.width)!==null&&i!==void 0?i:1,this.color=r.color===!1?void 0:r.color||"black",this.class=r.class,this.handlers=["dragover","dragend","drop","dragleave"].map(a=>{let o=u=>{this[a](u)};return t.dom.addEventListener(a,o),{name:a,handler:o}})}destroy(){this.handlers.forEach(({name:t,handler:r})=>this.editorView.dom.removeEventListener(t,r))}update(t,r){this.cursorPos!=null&&r.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),r=!t.parent.inlineContent,i;if(r){let d=t.nodeBefore,f=t.nodeAfter;if(d||f){let b=this.editorView.nodeDOM(this.cursorPos-(d?d.nodeSize:0));if(b){let E=b.getBoundingClientRect(),k=d?E.bottom:E.top;d&&f&&(k=(k+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),i={left:E.left,right:E.right,top:k-this.width/2,bottom:k+this.width/2}}}}if(!i){let d=this.editorView.coordsAtPos(this.cursorPos);i={left:d.left-this.width/2,right:d.left+this.width/2,top:d.top,bottom:d.bottom}}let a=this.editorView.dom.offsetParent;this.element||(this.element=a.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r);let o,u;if(!a||a==document.body&&getComputedStyle(a).position=="static")o=-pageXOffset,u=-pageYOffset;else{let d=a.getBoundingClientRect();o=d.left-a.scrollLeft,u=d.top-a.scrollTop}this.element.style.left=i.left-o+"px",this.element.style.top=i.top-u+"px",this.element.style.width=i.right-i.left+"px",this.element.style.height=i.bottom-i.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let r=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),i=r&&r.inside>=0&&this.editorView.state.doc.nodeAt(r.inside),a=i&&i.type.spec.disableDropCursor,o=typeof a=="function"?a(this.editorView,r,t):a;if(r&&!o){let u=r.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let d=oe(this.editorView.state.doc,u,this.editorView.dragging.slice);d!=null&&(u=d)}this.setCursor(u),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}const by=xi.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Pv(this.options)]}});class ds extends B{constructor(t){super(t,t)}map(t,r){let i=t.resolve(r.map(this.head));return ds.valid(i)?new ds(i):B.near(i)}content(){return gt.empty}eq(t){return t instanceof ds&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,r){if(typeof r.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ds(t.resolve(r.pos))}getBookmark(){return new Bv(this.anchor)}static valid(t){let r=t.parent;if(r.isTextblock||!oI(t)||!lI(t))return!1;let i=r.type.spec.allowGapCursor;if(i!=null)return i;let a=r.contentMatchAt(t.index()).defaultType;return a&&a.isTextblock}static findGapCursorFrom(t,r,i=!1){e:for(;;){if(!i&&ds.valid(t))return t;let a=t.pos,o=null;for(let u=t.depth;;u--){let d=t.node(u);if(r>0?t.indexAfter(u)0){o=d.child(r>0?t.indexAfter(u):t.index(u)-1);break}else if(u==0)return null;a+=r;let f=t.doc.resolve(a);if(ds.valid(f))return f}for(;;){let u=r>0?o.firstChild:o.lastChild;if(!u){if(o.isAtom&&!o.isText&&!ct.isSelectable(o)){t=t.doc.resolve(a+o.nodeSize*r),i=!1;continue e}break}o=u,a+=r;let d=t.doc.resolve(a);if(ds.valid(d))return d}return null}}}ds.prototype.visible=!1,ds.findFrom=ds.findGapCursorFrom,B.jsonID("gapcursor",ds);class Bv{constructor(t){this.pos=t}map(t){return new Bv(t.map(this.pos))}resolve(t){let r=t.resolve(this.pos);return ds.valid(r)?new ds(r):B.near(r)}}function oI(e){for(let t=e.depth;t>=0;t--){let r=e.index(t),i=e.node(t);if(r==0){if(i.type.spec.isolating)return!0;continue}for(let a=i.child(r-1);;a=a.lastChild){if(a.childCount==0&&!a.inlineContent||a.isAtom||a.type.spec.isolating)return!0;if(a.inlineContent)return!1}}return!0}function lI(e){for(let t=e.depth;t>=0;t--){let r=e.indexAfter(t),i=e.node(t);if(r==i.childCount){if(i.type.spec.isolating)return!0;continue}for(let a=i.child(r);;a=a.firstChild){if(a.childCount==0&&!a.inlineContent||a.isAtom||a.type.spec.isolating)return!0;if(a.inlineContent)return!1}}return!0}function uI(){return new Di({props:{decorations:I,createSelectionBetween(e,t,r){return t.pos==r.pos&&ds.valid(r)?new ds(r):null},handleClick:Ja,handleKeyDown:Wt,handleDOMEvents:{beforeinput:vt}}})}const Wt=Ct({ArrowLeft:Bo("horiz",-1),ArrowRight:Bo("horiz",1),ArrowUp:Bo("vert",-1),ArrowDown:Bo("vert",1)});function Bo(e,t){const r=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(i,a,o){let u=i.selection,d=t>0?u.$to:u.$from,f=u.empty;if(u instanceof Be){if(!o.endOfTextblock(r)||d.depth==0)return!1;f=!1,d=i.doc.resolve(t>0?d.after():d.before())}let b=ds.findGapCursorFrom(d,t,f);return b?(a&&a(i.tr.setSelection(new ds(b))),!0):!1}}function Ja(e,t,r){if(!e||!e.editable)return!1;let i=e.state.doc.resolve(t);if(!ds.valid(i))return!1;let a=e.posAtCoords({left:r.clientX,top:r.clientY});return a&&a.inside>-1&&ct.isSelectable(e.state.doc.nodeAt(a.inside))?!1:(e.dispatch(e.state.tr.setSelection(new ds(i))),!0)}function vt(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof ds))return!1;let{$from:r}=e.state.selection,i=r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);if(!i)return!1;let a=Ee.empty;for(let u=i.length-1;u>=0;u--)a=Ee.from(i[u].createAndFill(null,a));let o=e.state.tr.replace(r.pos,r.pos,new gt(a,0,0));return o.setSelection(Be.near(o.doc.resolve(r.pos+1))),e.dispatch(o),!1}function I(e){if(!(e.selection instanceof ds))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Ai.create(e.doc,[cs.widget(e.selection.head,t,{key:"gapcursor"})])}const vC=xi.create({name:"gapCursor",addProseMirrorPlugins(){return[uI()]},extendNodeSchema(e){var t;const r={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=ai(or(e,"allowGapCursor",r)))!==null&&t!==void 0?t:null}}}),ch=ci.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",ui(this.options.HTMLAttributes,e)]},renderText(){return` -`},addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:r,editor:i})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:a,storedMarks:o}=r;if(a.$from.parent.type.spec.isolating)return!1;const{keepMarks:u}=this.options,{splittableMarks:d}=i.extensionManager,f=o||a.$to.parentOffset&&a.$from.marks();return t().insertContent({type:this.name}).command(({tr:b,dispatch:E})=>{if(E&&f&&u){const k=f.filter(x=>d.includes(x.type.name));b.ensureMarks(k)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),pn=ci.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,ui(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>_n(je({},e),{[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>Lp({find:new RegExp(`^(#{1,${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}});var _g=200,$s=function(){};$s.prototype.append=function(e){return e.length?(e=$s.from(e),!this.length&&e||e.length<_g&&this.leafAppend(e)||this.length<_g&&e.leafPrepend(this)||this.appendInner(e)):this},$s.prototype.prepend=function(e){return e.length?$s.from(e).append(this):this},$s.prototype.appendInner=function(e){return new cI(this,e)},$s.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?$s.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},$s.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},$s.prototype.forEach=function(e,t,r){t===void 0&&(t=0),r===void 0&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)},$s.prototype.map=function(e,t,r){t===void 0&&(t=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(a,o){return i.push(e(a,o))},t,r),i},$s.from=function(e){return e instanceof $s?e:e&&e.length?new $v(e):$s.empty};var $v=function(e){function t(i){e.call(this),this.values=i}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(i,a){return i==0&&a==this.length?this:new t(this.values.slice(i,a))},t.prototype.getInner=function(i){return this.values[i]},t.prototype.forEachInner=function(i,a,o,u){for(var d=a;d=o;d--)if(i(this.values[d],u+d)===!1)return!1},t.prototype.leafAppend=function(i){if(this.length+i.length<=_g)return new t(this.values.concat(i.flatten()))},t.prototype.leafPrepend=function(i){if(this.length+i.length<=_g)return new t(i.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(t.prototype,r),t}($s);$s.empty=new $v([]);var cI=function(e){function t(r,i){e.call(this),this.left=r,this.right=i,this.length=r.length+i.length,this.depth=Math.max(r.depth,i.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return ru&&this.right.forEachInner(r,Math.max(i-u,0),Math.min(this.length,a)-u,o+u)===!1)return!1},t.prototype.forEachInvertedInner=function(r,i,a,o){var u=this.left.length;if(i>u&&this.right.forEachInvertedInner(r,i-u,Math.max(a,u)-u,o+u)===!1||a=a?this.right.slice(r-a,i-a):this.left.slice(r,a).append(this.right.slice(0,i-a))},t.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new t(this.left,i)},t.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new t(i,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t}($s);const kC=500;class Ae{constructor(t,r){this.items=t,this.eventCount=r}popEvent(t,r){if(this.eventCount==0)return null;let i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}let a,o;r&&(a=this.remapping(i,this.items.length),o=a.maps.length);let u=t.tr,d,f,b=[],E=[];return this.items.forEach((k,x)=>{if(!k.step){a||(a=this.remapping(i,x+1),o=a.maps.length),o--,E.push(k);return}if(a){E.push(new Fa(k.map));let R=k.step.map(a.slice(o)),N;R&&u.maybeStep(R).doc&&(N=u.mapping.maps[u.mapping.maps.length-1],b.push(new Fa(N,void 0,void 0,b.length+E.length))),o--,N&&a.appendMap(N,o)}else u.maybeStep(k.step);if(k.selection)return d=a?k.selection.map(a.slice(o)):k.selection,f=new Ae(this.items.slice(0,i).append(E.reverse().concat(b)),this.eventCount-1),!1},this.items.length,0),{remaining:f,transform:u,selection:d}}addTransform(t,r,i,a){let o=[],u=this.eventCount,d=this.items,f=!a&&d.length?d.get(d.length-1):null;for(let E=0;EwC&&(d=Os(d,b),u-=b),new Ae(d.append(o),u)}remapping(t,r){let i=new Er;return this.items.forEach((a,o)=>{let u=a.mirrorOffset!=null&&o-a.mirrorOffset>=t?i.maps.length-a.mirrorOffset:void 0;i.appendMap(a.map,u)},t,r),i}addMaps(t){return this.eventCount==0?this:new Ae(this.items.append(t.map(r=>new Fa(r))),this.eventCount)}rebased(t,r){if(!this.eventCount)return this;let i=[],a=Math.max(0,this.items.length-r),o=t.mapping,u=t.steps.length,d=this.eventCount;this.items.forEach(x=>{x.selection&&d--},a);let f=r;this.items.forEach(x=>{let R=o.getMirror(--f);if(R==null)return;u=Math.min(u,R);let N=o.maps[R];if(x.step){let G=t.steps[R].invert(t.docs[R]),K=x.selection&&x.selection.map(o.slice(f+1,R));K&&d++,i.push(new Fa(N,G,K))}else i.push(new Fa(N))},a);let b=[];for(let x=r;xkC&&(k=k.compress(this.items.length-i.length)),k}emptyItemCount(){let t=0;return this.items.forEach(r=>{r.step||t++}),t}compress(t=this.items.length){let r=this.remapping(0,t),i=r.maps.length,a=[],o=0;return this.items.forEach((u,d)=>{if(d>=t)a.push(u),u.selection&&o++;else if(u.step){let f=u.step.map(r.slice(i)),b=f&&f.getMap();if(i--,b&&r.appendMap(b,i),f){let E=u.selection&&u.selection.map(r.slice(i));E&&o++;let k=new Fa(b.invert(),f,E),x,R=a.length-1;(x=a.length&&a[R].merge(k))?a[R]=x:a.push(k)}}else u.map&&i--},this.items.length,0),new Ae($s.from(a.reverse()),o)}}Ae.empty=new Ae($s.empty,0);function Os(e,t){let r;return e.forEach((i,a)=>{if(i.selection&&t--==0)return r=a,!1}),e.slice(r)}class Fa{constructor(t,r,i,a){this.map=t,this.step=r,this.selection=i,this.mirrorOffset=a}merge(t){if(this.step&&t.step&&!t.selection){let r=t.step.merge(this.step);if(r)return new Fa(r.getMap().invert(),r,this.selection)}}}class po{constructor(t,r,i,a,o){this.done=t,this.undone=r,this.prevRanges=i,this.prevTime=a,this.prevComposition=o}}const wC=20;function ju(e,t,r,i){let a=r.getMeta(au),o;if(a)return a.historyState;r.getMeta(xC)&&(e=new po(e.done,e.undone,null,0,-1));let u=r.getMeta("appendedTransaction");if(r.steps.length==0)return e;if(u&&u.getMeta(au))return u.getMeta(au).redo?new po(e.done.addTransform(r,void 0,i,Rg(t)),e.undone,yy(r.mapping.maps[r.steps.length-1]),e.prevTime,e.prevComposition):new po(e.done,e.undone.addTransform(r,void 0,i,Rg(t)),null,e.prevTime,e.prevComposition);if(r.getMeta("addToHistory")!==!1&&!(u&&u.getMeta("addToHistory")===!1)){let d=r.getMeta("composition"),f=e.prevTime==0||!u&&e.prevComposition!=d&&(e.prevTime<(r.time||0)-i.newGroupDelay||!Oy(r,e.prevRanges)),b=u?Ng(e.prevRanges,r.mapping):yy(r.mapping.maps[r.steps.length-1]);return new po(e.done.addTransform(r,f?t.selection.getBookmark():void 0,i,Rg(t)),Ae.empty,b,r.time,d!=null?d:e.prevComposition)}else return(o=r.getMeta("rebased"))?new po(e.done.rebased(r,o),e.undone.rebased(r,o),Ng(e.prevRanges,r.mapping),e.prevTime,e.prevComposition):new po(e.done.addMaps(r.mapping.maps),e.undone.addMaps(r.mapping.maps),Ng(e.prevRanges,r.mapping),e.prevTime,e.prevComposition)}function Oy(e,t){if(!t)return!1;if(!e.docChanged)return!0;let r=!1;return e.mapping.maps[0].forEach((i,a)=>{for(let o=0;o=t[o]&&(r=!0)}),r}function yy(e){let t=[];return e.forEach((r,i,a,o)=>t.push(a,o)),t}function Ng(e,t){if(!e)return null;let r=[];for(let i=0;i{let r=au.getState(e);return!r||r.done.eventCount==0?!1:(t&&Uv(r,e,t,!1),!0)},nf=(e,t)=>{let r=au.getState(e);return!r||r.undone.eventCount==0?!1:(t&&Uv(r,e,t,!0),!0)},TC=xi.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>Sy(e,t),redo:()=>({state:e,dispatch:t})=>nf(e,t)}},addProseMirrorPlugins(){return[Hv(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-\u044F":()=>this.editor.commands.undo(),"Shift-Mod-\u044F":()=>this.editor.commands.redo()}}}),CC=ci.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:e}){return["hr",ui(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{const{$to:r}=t.selection,i=e();return r.parentOffset===0?i.insertContentAt(Math.max(r.pos-2,0),{type:this.name}):i.insertContent({type:this.name}),i.command(({tr:a,dispatch:o})=>{var u;if(o){const{$to:d}=a.selection,f=d.end();if(d.nodeAfter)d.nodeAfter.isTextblock?a.setSelection(Be.create(a.doc,d.pos+1)):d.nodeAfter.isBlock?a.setSelection(ct.create(a.doc,d.pos)):a.setSelection(Be.create(a.doc,d.pos));else{const b=(u=d.parent.type.contentMatch.defaultType)===null||u===void 0?void 0:u.create();b&&(a.insert(f,b),a.setSelection(Be.create(a.doc,f+1)))}a.scrollIntoView()}return!0}).run()}}},addInputRules(){return[Ip({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),AC=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,_C=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,NC=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,RC=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,vy=Ji.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>e.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Jl({find:AC,type:this.type}),Jl({find:NC,type:this.type})]},addPasteRules(){return[ll({find:_C,type:this.type}),ll({find:RC,type:this.type})]}}),$o=ci.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",ui(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),zv=ci.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",ui(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Qv=Ji.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:e=>e.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["span",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const r=Dc(e,this.type);return Object.entries(r).some(([,i])=>!!i)?!0:t.unsetMark(this.name)}}}}),ky=/^(\d+)\.\s$/,zc=ci.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const i=e,{start:t}=i,r=fT(i,["start"]);return t===1?["ol",ui(this.options.HTMLAttributes,r),0]:["ol",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(zv.name,this.editor.getAttributes(Qv.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=eu({find:ky,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,r)=>r.childCount+r.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=eu({find:ky,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>je({start:+t[1]},this.editor.getAttributes(Qv.name)),joinPredicate:(t,r)=>r.childCount+r.attrs.start===+t[1],editor:this.editor})),[e]}}),Vv=ci.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),DC=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,IC=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,jv=Ji.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["s",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Jl({find:DC,type:this.type})]},addPasteRules(){return[ll({find:IC,type:this.type})]}}),LC=ci.create({name:"text",group:"inline"}),MC=xi.create({name:"starterKit",addExtensions(){var e,t,r,i,a,o,u,d,f,b,E,k,x,R,N,G,K,ge;const de=[];return this.options.blockquote!==!1&&de.push(Vu.configure((e=this.options)===null||e===void 0?void 0:e.blockquote)),this.options.bold!==!1&&de.push(Lv.configure((t=this.options)===null||t===void 0?void 0:t.bold)),this.options.bulletList!==!1&&de.push(pl.configure((r=this.options)===null||r===void 0?void 0:r.bulletList)),this.options.code!==!1&&de.push(yC.configure((i=this.options)===null||i===void 0?void 0:i.code)),this.options.codeBlock!==!1&&de.push(ho.configure((a=this.options)===null||a===void 0?void 0:a.codeBlock)),this.options.document!==!1&&de.push(SC.configure((o=this.options)===null||o===void 0?void 0:o.document)),this.options.dropcursor!==!1&&de.push(by.configure((u=this.options)===null||u===void 0?void 0:u.dropcursor)),this.options.gapcursor!==!1&&de.push(vC.configure((d=this.options)===null||d===void 0?void 0:d.gapcursor)),this.options.hardBreak!==!1&&de.push(ch.configure((f=this.options)===null||f===void 0?void 0:f.hardBreak)),this.options.heading!==!1&&de.push(pn.configure((b=this.options)===null||b===void 0?void 0:b.heading)),this.options.history!==!1&&de.push(TC.configure((E=this.options)===null||E===void 0?void 0:E.history)),this.options.horizontalRule!==!1&&de.push(CC.configure((k=this.options)===null||k===void 0?void 0:k.horizontalRule)),this.options.italic!==!1&&de.push(vy.configure((x=this.options)===null||x===void 0?void 0:x.italic)),this.options.listItem!==!1&&de.push($o.configure((R=this.options)===null||R===void 0?void 0:R.listItem)),this.options.orderedList!==!1&&de.push(zc.configure((N=this.options)===null||N===void 0?void 0:N.orderedList)),this.options.paragraph!==!1&&de.push(Vv.configure((G=this.options)===null||G===void 0?void 0:G.paragraph)),this.options.strike!==!1&&de.push(jv.configure((K=this.options)===null||K===void 0?void 0:K.strike)),this.options.text!==!1&&de.push(LC.configure((ge=this.options)===null||ge===void 0?void 0:ge.text)),de}}),Zv=Ji.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),PC=Ji.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:e=>e.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["span",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const r=Dc(e,this.type);return Object.entries(r).some(([,i])=>!!i)?!0:t.unsetMark(this.name)}}}}),Wv=xi.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:e=>{var t;return(t=e.style.fontFamily)===null||t===void 0?void 0:t.replace(/['"]+/g,"")},renderHTML:e=>e.fontFamily?{style:`font-family: ${e.fontFamily.split(",").map(t=>CSS.escape(t.trim())).join(", ")}`}:{}}}}]},addCommands(){return{setFontFamily:e=>({chain:t})=>t().setMark("textStyle",{fontFamily:e}).run(),unsetFontFamily:()=>({chain:e})=>e().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),Gv=e=>{const t=document.createElement("div");return t.classList.add("aie-loader-placeholder"),t.innerHTML=` - - `,cs.widget(e.pos,t,{id:e.id})},FC=e=>{const t=document.createElement("div");return t.classList.add("aie-loader-placeholder"),t.style.height="20px",t.style.display="inline-block",t.innerHTML=` - - ${e.text} - `,cs.widget(e.pos,t,{id:e.id})},Yv=(e,t,r,i)=>{const a=new FormData;return a.append(i,e),new Promise((o,u)=>{fetch(t,{method:"post",headers:je({Accept:"application/json"},r),body:a}).then(d=>d.json()).then(d=>{o(d)}).catch(d=>{u(d)})})},BC=(e,t,r,i)=>{let a=new FileReader;return new Promise((o,u)=>{a.onload=()=>o({errorCode:0,data:{src:a.result,href:e.name}}),a.onerror=()=>u(a.error),setTimeout(()=>a.readAsDataURL(e),5e3*Math.random())})},wy=e=>e?Yv:BC,qv=new _i("aie-attachment-plugin"),rf="attachment_action",$C=xi.create({name:"attachment",addOptions(){return{uploadUrl:"",uploadHeaders:{},HTMLAttributes:{}}},addCommands(){return{uploadAttachment:e=>()=>{const t=typeof this.options.uploadHeaders=="object"?this.options.uploadHeaders:typeof this.options.uploadHeaders=="function"?this.options.uploadHeaders():{};if(this.options.uploaderEvent&&this.options.uploaderEvent.onUploadBefore&&this.options.uploaderEvent.onUploadBefore(e,this.options.uploadUrl,t)===!1)return!1;const r=Cg(),{state:{tr:i},view:a,schema:o}=this.editor;i.selection.empty||i.deleteSelection(),a.dispatch(i.setMeta(rf,{type:"add",id:r,pos:i.selection.from,text:e.name}));const u=this.options.uploader||wy(this.options.uploadUrl),d=this.options.uploadFormName||"attachment";return u(e,this.options.uploadUrl,t,d).then(f=>{var b;if((b=this.options.uploaderEvent)!=null&&b.onSuccess){const E=this.options.uploaderEvent.onSuccess(e,f);if(typeof E=="boolean"&&!E)return;typeof E=="object"&&(f=E)}if(f.errorCode===0&&f.data&&f.data.href){let E=qv.getState(this.editor.state).find(void 0,void 0,x=>x.id==r);const k=f.data.fileName||e.name;a.dispatch(a.state.tr.insertText(` ${k} `,E[0].from).addMark(E[0].from+1,k.length+E[0].from+1,o.marks.link.create({href:f.data.href,target:"_blank"})).setMeta(rf,{type:"remove",id:r}))}else a.dispatch(i.setMeta(rf,{type:"remove",id:r})),this.options.uploaderEvent&&this.options.uploaderEvent.onFailed&&this.options.uploaderEvent.onFailed(e,f)}).catch(f=>{const{state:{tr:b},view:E}=this.editor;E.dispatch(b.setMeta(rf,{type:"remove",id:r})),this.options.uploaderEvent&&this.options.uploaderEvent.onError&&this.options.uploaderEvent.onError(e,f)}),!0}}},addProseMirrorPlugins(){const e=this.editor;return[new Di({key:qv,state:{init:()=>Ai.empty,apply:(t,r)=>{const i=t.getMeta(rf);return r=r.map(t.mapping,t.doc),i&&i.type==="add"?r=r.add(t.doc,[FC(i)]):i&&i.type==="remove"&&(r=r.remove(r.find(void 0,void 0,a=>a.id==i.id))),r}},props:{decorations(t){return this.getState(t)},handleDOMEvents:{drop(t,r){if(!(r.dataTransfer&&r.dataTransfer.files&&r.dataTransfer.files.length))return!1;const i=Array.from(r.dataTransfer.files).filter(a=>!/video/i.test(a.type)&&!/image/i.test(a.type));return r.preventDefault(),i.forEach(a=>{e.commands.uploadAttachment(a)}),!0}}}})]}}),UC=xi.create({name:"painter",addCommands(){return{setPainter:e=>({view:{dispatch:t,state:{tr:r},dom:i}})=>(i.style.cursor="context-menu",t(r.setMeta("painterAction",{type:"start",marks:e})),!0)}},addProseMirrorPlugins(){return[new Di({key:new _i("aie-painter"),state:{init:()=>[],apply:(e,t)=>{const r=e.getMeta("painterAction");return r&&r.type==="start"?t=r.marks:r&&r.type==="end"&&(t=[]),t}},props:{handleDOMEvents:{mousedown(e,t){const r=this.getState(e.state);if(!r||r.length==0)return!1;const i=()=>{document.removeEventListener("mouseup",i);let{dispatch:a,state:{tr:o,selection:u},dom:d}=e;d.style.cursor="",o=o.removeMark(u.from,u.to);for(let f of r)f.type.name!="link"&&(o=o.addMark(u.from,u.to,f));a(o.setMeta("painterAction",{type:"end"}))};return document.addEventListener("mouseup",i),!0}}}})]}}),HC=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,Xv=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,Kv=Ji.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:e=>e.getAttribute("data-color")||e.style.backgroundColor,renderHTML:e=>e.color?{"data-color":e.color,style:`background-color: ${e.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:e}){return["mark",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{setHighlight:e=>({commands:t})=>t.setMark(this.name,e),toggleHighlight:e=>({commands:t})=>t.toggleMark(this.name,e),unsetHighlight:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[Jl({find:HC,type:this.type})]},addPasteRules(){return[ll({find:Xv,type:this.type})]}}),xy=xi.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:e=>{var t;return(t=e.style.color)===null||t===void 0?void 0:t.replace(/['"]+/g,"")},renderHTML:e=>e.color?{style:`color: ${e.color}`}:{}}}}]},addCommands(){return{setColor:e=>({chain:t})=>t().setMark("textStyle",{color:e}).run(),unsetColor:()=>({chain:e})=>e().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),zC=xi.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:e=>{var t;return(t=e.style.fontSize)==null?void 0:t.replace(/['"]+/g,"")},renderHTML:e=>e.fontSize?{style:`font-size: ${e.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:e=>({chain:t})=>t().setMark("textStyle",{fontSize:e}).run(),unsetFontSize:()=>({chain:e})=>e().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}),QC=xi.create({name:"lineHeight",addOptions(){return{types:["heading","paragraph"],heights:["100%","125%","150%","200%","250%","300%"],defaultHeight:"100%"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:this.options.defaultHeight,parseHTML:e=>e.style.lineHeight||this.options.defaultHeight,renderHTML:e=>e.lineHeight===this.options.defaultHeight?{}:{style:`line-height: ${e.lineHeight}`}}}}]},addCommands(){return{setLineHeight:e=>({commands:t})=>this.options.heights.includes(e)?this.options.types.every(r=>t.updateAttributes(r,{lineHeight:e})):!1,unsetLineHeight:()=>({commands:e})=>this.options.types.every(t=>e.resetAttributes(t,"lineHeight"))}}}),VC=xi.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:e=>e.style.textAlign||this.options.defaultAlignment,renderHTML:e=>e.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${e.textAlign}`}}}}]},addCommands(){return{setTextAlign:e=>({commands:t})=>this.options.alignments.includes(e)?this.options.types.map(r=>t.updateAttributes(r,{textAlign:e})).every(r=>r):!1,unsetTextAlign:()=>({commands:e})=>this.options.types.map(t=>e.resetAttributes(t,"textAlign")).every(t=>t)}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),jC=xi.create({name:"indent",addOptions(){return{types:["listItem","paragraph"],minLevel:0,maxLevel:8}},addGlobalAttributes(){return[{types:this.options.types,attributes:{indent:{default:0,parseHTML:e=>{const t=Number(e.getAttribute("data-indent"));return t&&t>this.options.minLevel?t:null},renderHTML:e=>e.indent?{style:`text-indent: ${(e==null?void 0:e.indent)*10}px`,"data-indent":e==null?void 0:e.indent}:{}}}}]},addCommands(){const e=(i,a,o)=>{var u;const d=(u=i==null?void 0:i.doc)==null?void 0:u.nodeAt(a);if(d){const b=(d.attrs.indent||0)+o,{minLevel:E,maxLevel:k}=this.options,x=bk?k:b;if(x!==d.attrs.indent){const f=d.attrs,{indent:R}=f,N=fT(f,["indent"]),G=x>E?_n(je({},N),{indent:x}):N;return i.setNodeMarkup(a,d.type,G,d.marks)}}return i},t=(i,a)=>{const{doc:o,selection:u}=i;if(o&&u&&(u instanceof Be||u instanceof Tn)){const{from:d,to:f}=u;o.nodesBetween(d,f,(b,E)=>this.options.types.includes(b.type.name)?(i=e(i,E,a),!1):!0)}return i},r=i=>()=>({tr:a,state:o,dispatch:u})=>{const{selection:d}=o;return a=a.setSelection(d),a=t(a,i),a.docChanged?(u==null||u(a),!0):!1};return{indent:r(1),outdent:r(-1)}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.indent(),"Shift-Tab":()=>this.editor.commands.outdent()}}}),ZC=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,WC=ci.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",ui(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[Ip({find:ZC,type:this.type,getAttributes:e=>{const[,,t,r,i]=e;return{src:r,alt:t,title:i}}})]}}),Jv=(e,t,r)=>{const i=e.querySelector(".resize-obj"),a=10;let o,u,d,f;const b=x=>{x.preventDefault(),t.addEventListener("mousemove",E),t.addEventListener("mouseup",k),t.addEventListener("mouseleave",k),o=x.clientX,u=Number(i.getAttribute("data-with"))||i.clientWidth,d=x.target.getAttribute("data-position"),f=t.clientWidth-100},E=x=>{const R=x.clientX-o;if(R==0)return;const N=d==="right"?R>0:R<0;let G=u+Math.abs(R)*(N?1:-1);G>=f&&(G=f),G{t.removeEventListener("mousemove",E),t.removeEventListener("mouseup",k),t.removeEventListener("mouseleave",k);const x={width:Number(i.getAttribute("data-width"))};r(x)};for(let x of e.querySelector(".aie-resize").children)x.addEventListener("mousedown",b)},Ge=new _i("aie-image-plugin"),sf="image_action",ek=WC.extend({name:"image",draggable:!0,selectable:!0,addOptions(){var e;return _n(je({},(e=this.parent)==null?void 0:e.call(this)),{uploadUrl:"",uploadHeaders:{},uploader:void 0,defaultSize:350})},allowGapCursor(){return!this.options.inline},addAttributes(){return{src:{default:"",parseHTML:e=>{var t;return`${(t=e.getAttribute("src"))!=null?t:""}`}},alt:{default:""},title:{default:""},width:{default:this.options.defaultSize},height:{default:"auto"},align:{default:"left"}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",ui(this.options.HTMLAttributes,e)]},addCommands(){var e;return _n(je({},(e=this.parent)==null?void 0:e.call(this)),{uploadImage:t=>()=>{const r=typeof this.options.uploadHeaders=="object"?this.options.uploadHeaders:typeof this.options.uploadHeaders=="function"?this.options.uploadHeaders():{};if(this.options.uploaderEvent&&this.options.uploaderEvent.onUploadBefore&&this.options.uploaderEvent.onUploadBefore(t,this.options.uploadUrl,r)===!1)return!1;const i=Cg(),{state:{tr:a},view:o,schema:u}=this.editor;a.selection.empty||a.deleteSelection(),o.dispatch(a.setMeta(sf,{type:"add",id:i,pos:a.selection.from}));const d=this.options.uploader||wy(this.options.uploadUrl),f=this.options.uploadFormName||"image";return d(t,this.options.uploadUrl,r,f).then(b=>{var E;if((E=this.options.uploaderEvent)!=null&&E.onSuccess){const k=this.options.uploaderEvent.onSuccess(t,b);if(typeof k=="boolean"&&!k)return;typeof k=="object"&&(b=k)}if(b.errorCode===0&&b.data&&b.data.src){let k=Ge.getState(this.editor.state).find(void 0,void 0,x=>x.id==i);o.dispatch(o.state.tr.insert(k[0].from,u.nodes.image.create({src:b.data.src,alt:b.data.alt})).setMeta(sf,{type:"remove",id:i}))}else o.dispatch(a.setMeta(sf,{type:"remove",id:i})),this.options.uploaderEvent&&this.options.uploaderEvent.onFailed&&this.options.uploaderEvent.onFailed(t,b)}).catch(b=>{const{state:{tr:E},view:k}=this.editor;k.dispatch(E.setMeta(sf,{type:"remove",id:i})),this.options.uploaderEvent&&this.options.uploaderEvent.onError&&this.options.uploaderEvent.onError(t,b)}),!0}})},addNodeView(){return e=>{if(!this.editor.isEditable)return{};const t=document.createElement("div"),{src:r,width:i,height:a,align:o}=e.node.attrs;return t.classList.add(`align-${o}`),t.innerHTML=` -
-
-
-
-
-
-
- -
- `,Jv(t,e.editor.view.dom,u=>e.editor.commands.updateAttributes("image",u)),{dom:t}}},addProseMirrorPlugins(){const e=this.editor;return[new Di({key:Ge,state:{init:()=>Ai.empty,apply:(t,r)=>{const i=t.getMeta(sf);if(i){let a=!1;const o=r.map(t.mapping,t.doc,{onRemove:u=>{a=!0}});a||(r=o),i.type==="add"?r=r.add(t.doc,[Gv(i)]):i.type==="remove"&&(r=r.remove(r.find(void 0,void 0,u=>u.id==i.id)))}return r}},props:{decorations(t){return this.getState(t)},handlePaste:(t,r)=>{var i;const a=Array.from(((i=r.clipboardData)==null?void 0:i.items)||[]);for(const o of a)if(o.type.indexOf("image")===0){r.preventDefault();const u=o.getAsFile();u&&this.editor.commands.uploadImage(u)}},handleDOMEvents:{drop(t,r){if(!(r.dataTransfer&&r.dataTransfer.files&&r.dataTransfer.files.length))return!1;const i=Array.from(r.dataTransfer.files).filter(f=>/image/i.test(f.type));if(i.length===0)return!1;r.preventDefault();const{state:{tr:a,doc:o},dispatch:u}=t,d=t.posAtCoords({left:r.clientX,top:r.clientY});return u(a.setSelection(Be.create(o,d.pos)).scrollIntoView()),i.forEach(f=>{e.commands.uploadImage(f)}),!0}},transformPastedHTML(t){const r=new DOMParser().parseFromString(t,"text/html"),i=r.documentElement.querySelector("body");if(i!=null&&i.children){const a=r.documentElement.querySelectorAll("p > img");for(const o of a){const u=o.parentNode,d=Array.prototype.indexOf.call(i.children,u);o.parentElement.prepend(o),i.insertBefore(o,i.children[d])}return i.innerHTML}return t}}})]}});var Dg,Ig;if(typeof WeakMap<"u"){let e=new WeakMap;Dg=t=>e.get(t),Ig=(t,r)=>(e.set(t,r),r)}else{const e=[];let t=0;Dg=r=>{for(let i=0;i(t==10&&(t=0),e[t++]=r,e[t++]=i)}var rs=class{constructor(e,t,r,i){this.width=e,this.height=t,this.map=r,this.problems=i}findCell(e){for(let t=0;t=r){(o||(o=[])).push({type:"overlong_rowspan",pos:E,n:ge-xe});break}const ae=a+xe*t;for(let Ve=0;Vei&&(o+=b.attrs.colspan)}}for(let u=0;u1&&(r=!0)}t==-1?t=o:t!=o&&(t=Math.max(t,o))}return t}function qC(e,t,r){e.problems||(e.problems=[]);const i={};for(let a=0;a0;t--)if(e.node(t).type.spec.tableRole=="row")return e.node(0).resolve(e.before(t+1));return null}function KC(e){for(let t=e.depth;t>0;t--){const r=e.node(t).type.spec.tableRole;if(r==="cell"||r==="header_cell")return e.node(t)}return null}function Uo(e){const t=e.selection.$head;for(let r=t.depth;r>0;r--)if(t.node(r).type.spec.tableRole=="row")return!0;return!1}function hh(e){const t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&t.node.type.spec.tableRole=="cell")return t.$anchor;const r=Zu(t.$head)||JC(t.$head);if(r)return r;throw new RangeError(`No cell found around position ${t.head}`)}function JC(e){for(let t=e.nodeAfter,r=e.pos;t;t=t.firstChild,r++){const i=t.type.spec.tableRole;if(i=="cell"||i=="header_cell")return e.doc.resolve(r)}for(let t=e.nodeBefore,r=e.pos;t;t=t.lastChild,r--){const i=t.type.spec.tableRole;if(i=="cell"||i=="header_cell")return e.doc.resolve(r-t.nodeSize)}}function Qc(e){return e.parent.type.spec.tableRole=="row"&&!!e.nodeAfter}function e2(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function Ty(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function ph(e,t,r){const i=e.node(-1),a=rs.get(i),o=e.start(-1),u=a.nextCell(e.pos-o,t,r);return u==null?null:e.node(0).resolve(o+u)}function Vc(e,t,r=1){const i=_n(je({},e),{colspan:e.colspan-r});return i.colwidth&&(i.colwidth=i.colwidth.slice(),i.colwidth.splice(t,r),i.colwidth.some(a=>a>0)||(i.colwidth=null)),i}function tk(e,t,r=1){const i=_n(je({},e),{colspan:e.colspan+r});if(i.colwidth){i.colwidth=i.colwidth.slice();for(let a=0;aE!=r.pos-o);f.unshift(r.pos-o);const b=f.map(E=>{const k=i.nodeAt(E);if(!k)throw RangeError(`No cell with offset ${E} found`);const x=o+E+1;return new J(d.resolve(x),d.resolve(x+k.content.size))});super(b[0].$from,b[0].$to,b),this.$anchorCell=t,this.$headCell=r}map(t,r){const i=t.resolve(r.map(this.$anchorCell.pos)),a=t.resolve(r.map(this.$headCell.pos));if(Qc(i)&&Qc(a)&&Ty(i,a)){const o=this.$anchorCell.node(-1)!=i.node(-1);return o&&this.isRowSelection()?hd.rowSelection(i,a):o&&this.isColSelection()?hd.colSelection(i,a):new hd(i,a)}return Be.between(i,a)}content(){const t=this.$anchorCell.node(-1),r=rs.get(t),i=this.$anchorCell.start(-1),a=r.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i),o={},u=[];for(let f=a.top;f0||K>0){let ge=N.attrs;if(G>0&&(ge=Vc(ge,0,G)),K>0&&(ge=Vc(ge,ge.colspan-K,K)),R.lefta.bottom){const ge=_n(je({},N.attrs),{rowspan:Math.min(R.bottom,a.bottom)-Math.max(R.top,a.top)});R.top0)return!1;const i=t+this.$anchorCell.nodeAfter.attrs.rowspan,a=r+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(i,a)==this.$headCell.node(-1).childCount}static colSelection(t,r=t){const i=t.node(-1),a=rs.get(i),o=t.start(-1),u=a.findCell(t.pos-o),d=a.findCell(r.pos-o),f=t.node(0);return u.top<=d.top?(u.top>0&&(t=f.resolve(o+a.map[u.left])),d.bottom0&&(r=f.resolve(o+a.map[d.left])),u.bottom0)return!1;const u=a+this.$anchorCell.nodeAfter.attrs.colspan,d=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(u,d)==r.width}eq(t){return t instanceof hd&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,r=t){const i=t.node(-1),a=rs.get(i),o=t.start(-1),u=a.findCell(t.pos-o),d=a.findCell(r.pos-o),f=t.node(0);return u.left<=d.left?(u.left>0&&(t=f.resolve(o+a.map[u.top*a.width])),d.right0&&(r=f.resolve(o+a.map[d.top*a.width])),u.right{t.push(cs.node(i,i+r.nodeSize,{class:"selectedCell"}))}),Ai.create(e.doc,t)}function of({$from:e,$to:t}){if(e.pos==t.pos||e.pos=0&&!(e.after(a+1)=0&&!(t.before(o+1)>t.start(o));o--,i--);return r==i&&/row|table/.test(e.node(a).type.spec.tableRole)}function n2({$from:e,$to:t}){let r,i;for(let a=e.depth;a>0;a--){const o=e.node(a);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){r=o;break}}for(let a=t.depth;a>0;a--){const o=t.node(a);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){i=o;break}}return r!==i&&t.parentOffset===0}function r2(e,t,r){const i=(t||e).selection,a=(t||e).doc;let o,u;if(i instanceof ct&&(u=i.node.type.spec.tableRole)){if(u=="cell"||u=="header_cell")o=fi.create(a,i.from);else if(u=="row"){const d=a.resolve(i.from+1);o=fi.rowSelection(d,d)}else if(!r){const d=rs.get(i.node),f=i.from+1,b=f+d.map[d.width*d.height-1];o=fi.create(a,f+1,b)}}else i instanceof Be&&of(i)?o=Be.create(a,i.from):i instanceof Be&&n2(i)&&(o=Be.create(a,i.$from.start(),i.$from.end()));return o&&(t||(t=e.tr)).setSelection(o),t}var lf=new _i("fix-tables");function nk(e,t,r,i){const a=e.childCount,o=t.childCount;e:for(let u=0,d=0;u{a.type.spec.tableRole=="table"&&(r=uf(e,a,o,r))};return t?t.doc!=e.doc&&nk(t.doc,e.doc,0,i):e.doc.descendants(i),r}function uf(e,t,r,i){const a=rs.get(t);if(!a.problems)return i;i||(i=e.tr);const o=[];for(let f=0;f0){let R="cell";E.firstChild&&(R=E.firstChild.type.spec.tableRole);const N=[];for(let K=0;K0&&i>0||t.child(0).type.spec.tableRole=="table");)r--,i--,t=t.child(0).content;const a=t.child(0),o=a.type.spec.tableRole,u=a.type.schema,d=[];if(o=="row")for(let f=0;f=0;u--){const{rowspan:d,colspan:f}=o.child(u).attrs;for(let b=a;b=t.length&&t.push(Ee.empty),r[a]i&&(x=x.type.createChecked(Vc(x.attrs,x.attrs.colspan,E+x.attrs.colspan-i),x.content)),b.push(x),E+=x.attrs.colspan;for(let R=1;Ra&&(k=k.type.create(_n(je({},k.attrs),{rowspan:Math.max(1,a-k.attrs.rowspan)}),k.content)),f.push(k)}o.push(Ee.from(f))}r=o,t=a}return{width:e,height:t,rows:r}}function s2(e,t,r,i,a,o,u){const d=e.doc.type.schema,f=pa(d);let b,E;if(a>t.width)for(let k=0,x=0;kt.height){const k=[];for(let N=0,G=(t.height-1)*t.width;N=t.width?!1:r.nodeAt(t.map[G+N]).type==f.header_cell;k.push(K?E||(E=f.header_cell.createAndFill()):b||(b=f.cell.createAndFill()))}const x=f.row.create(null,Ee.from(k)),R=[];for(let N=t.height;N{if(!a)return!1;const o=r.selection;if(o instanceof fi)return Pg(r,i,B.near(o.$headCell,t));if(e!="horiz"&&!o.empty)return!1;const u=lk(a,e,t);if(u==null)return!1;if(e=="horiz")return Pg(r,i,B.near(r.doc.resolve(o.head+t),t));{const d=r.doc.resolve(u),f=ph(d,e,t);let b;return f?b=B.near(f,1):t<0?b=B.near(r.doc.resolve(d.before(-1)),-1):b=B.near(r.doc.resolve(d.after(-1)),1),Pg(r,i,b)}}}function Bg(e,t){return(r,i,a)=>{if(!a)return!1;const o=r.selection;let u;if(o instanceof fi)u=o;else{const f=lk(a,e,t);if(f==null)return!1;u=new fi(r.doc.resolve(f))}const d=ph(u.$headCell,e,t);return d?Pg(r,i,new fi(u.$anchorCell,d)):!1}}function $g(e,t){const r=e.selection;if(!(r instanceof fi))return!1;if(t){const i=e.tr,a=pa(e.schema).cell.createAndFill().content;r.forEachCell((o,u)=>{o.content.eq(a)||i.replace(i.mapping.map(u+1),i.mapping.map(u+o.nodeSize-1),new gt(a,0,0))}),i.docChanged&&t(i)}return!0}function o2(e,t){const r=e.state.doc,i=Zu(r.resolve(t));return i?(e.dispatch(e.state.tr.setSelection(new fi(i))),!0):!1}function l2(e,t,r){if(!Uo(e.state))return!1;let i=Lg(r);const a=e.state.selection;if(a instanceof fi){i||(i={width:1,height:1,rows:[Ee.from(Mg(pa(e.state.schema).cell,r))]});const o=a.$anchorCell.node(-1),u=a.$anchorCell.start(-1),d=rs.get(o).rectBetween(a.$anchorCell.pos-u,a.$headCell.pos-u);return i=i2(i,d.right-d.left,d.bottom-d.top),ok(e.state,e.dispatch,u,d,i),!0}else if(i){const o=hh(e.state),u=o.start(-1);return ok(e.state,e.dispatch,u,rs.get(o.node(-1)).findCell(o.pos-u),i),!0}else return!1}function u2(e,t){var r;if(t.ctrlKey||t.metaKey)return;const i=uk(e,t.target);let a;if(t.shiftKey&&e.state.selection instanceof fi)o(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&(a=Zu(e.state.selection.$anchor))!=null&&((r=Ug(e,t))==null?void 0:r.pos)!=a.pos)o(a,t),t.preventDefault();else if(!i)return;function o(f,b){let E=Ug(e,b);const k=fl.getState(e.state)==null;if(!E||!Ty(f,E))if(k)E=f;else return;const x=new fi(f,E);if(k||!e.state.selection.eq(x)){const R=e.state.tr.setSelection(x);k&&R.setMeta(fl,f.pos),e.dispatch(R)}}function u(){e.root.removeEventListener("mouseup",u),e.root.removeEventListener("dragstart",u),e.root.removeEventListener("mousemove",d),fl.getState(e.state)!=null&&e.dispatch(e.state.tr.setMeta(fl,-1))}function d(f){const b=f,E=fl.getState(e.state);let k;if(E!=null)k=e.state.doc.resolve(E);else if(uk(e,b.target)!=i&&(k=Ug(e,t),!k))return u();k&&o(k,b)}e.root.addEventListener("mouseup",u),e.root.addEventListener("dragstart",u),e.root.addEventListener("mousemove",d)}function lk(e,t,r){if(!(e.state.selection instanceof Be))return null;const{$head:i}=e.state.selection;for(let a=i.depth-1;a>=0;a--){const o=i.node(a);if((r<0?i.index(a):i.indexAfter(a))!=(r<0?0:o.childCount))return null;if(o.type.spec.tableRole=="cell"||o.type.spec.tableRole=="header_cell"){const u=i.before(a),d=t=="vert"?r>0?"down":"up":r>0?"right":"left";return e.endOfTextblock(d)?u:null}}return null}function uk(e,t){for(;t&&t!=e.dom;t=t.parentNode)if(t.nodeName=="TD"||t.nodeName=="TH")return t;return null}function Ug(e,t){const r=e.posAtCoords({left:t.clientX,top:t.clientY});return r&&r?Zu(e.state.doc.resolve(r.pos)):null}var ck=class{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Cy(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!=this.node.type?!1:(this.node=e,Cy(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return e.type=="attributes"&&(e.target==this.table||this.colgroup.contains(e.target))}};function Cy(e,t,r,i,a,o){var u;let d=0,f=!0,b=t.firstChild;const E=e.firstChild;if(E){for(let k=0,x=0;knew r(d,t,f),new d2(-1,!1)},apply(o,u){return u.apply(o)}},props:{attributes:o=>{const u=fo.getState(o);return u&&u.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(o,u)=>{h2(o,u,e,t,i)},mouseleave:o=>{p2(o)},mousedown:(o,u)=>{f2(o,u,t)}},decorations:o=>{const u=fo.getState(o);if(u&&u.activeHandle>-1)return fa(o,u.activeHandle)},nodeViews:{}}});return a}var d2=class mT{constructor(t,r){this.activeHandle=t,this.dragging=r}apply(t){const r=this,i=t.getMeta(fo);if(i&&i.setHandle!=null)return new mT(i.setHandle,!1);if(i&&i.setDragging!==void 0)return new mT(r.activeHandle,i.setDragging);if(r.activeHandle>-1&&t.docChanged){let a=t.mapping.map(r.activeHandle,-1);return Qc(t.doc.resolve(a))||(a=-1),new mT(a,r.dragging)}return r}};function h2(e,t,r,i,a){const o=fo.getState(e.state);if(o&&!o.dragging){const u=m2(t.target);let d=-1;if(u){const{left:f,right:b}=u.getBoundingClientRect();t.clientX-f<=r?d=hk(e,t,"left",r):b-t.clientX<=r&&(d=hk(e,t,"right",r))}if(d!=o.activeHandle){if(!a&&d!==-1){const f=e.state.doc.resolve(d),b=f.node(-1),E=rs.get(b),k=f.start(-1);if(E.colCount(f.pos-k)+f.nodeAfter.attrs.colspan-1==E.width-1)return}fk(e,d)}}}function p2(e){const t=fo.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&fk(e,-1)}function f2(e,t,r){var i;const a=(i=e.dom.ownerDocument.defaultView)!=null?i:window,o=fo.getState(e.state);if(!o||o.activeHandle==-1||o.dragging)return!1;const u=e.state.doc.nodeAt(o.activeHandle),d=dk(e,o.activeHandle,u.attrs);e.dispatch(e.state.tr.setMeta(fo,{setDragging:{startX:t.clientX,startWidth:d}}));function f(E){a.removeEventListener("mouseup",f),a.removeEventListener("mousemove",b);const k=fo.getState(e.state);k!=null&&k.dragging&&(g2(e,k.activeHandle,pk(k.dragging,E,r)),e.dispatch(e.state.tr.setMeta(fo,{setDragging:null})))}function b(E){if(!E.which)return f(E);const k=fo.getState(e.state);if(k&&k.dragging){const x=pk(k.dragging,E,r);b2(e,k.activeHandle,x,r)}}return a.addEventListener("mouseup",f),a.addEventListener("mousemove",b),t.preventDefault(),!0}function dk(e,t,{colspan:r,colwidth:i}){const a=i&&i[i.length-1];if(a)return a;const o=e.domAtPos(t);let u=o.node.childNodes[o.offset].offsetWidth,d=r;if(i)for(let f=0;f0?-1:0;af(t,i,a+o)&&(o=a==0||a==t.width?null:0);for(let u=0;u0&&a0&&t.map[d-1]==f||a0?-1:0;v2(t,i,a+f)&&(f=a==0||a==t.height?null:0);for(let b=0,E=t.width*a;b0&&a0&&k==t.map[E-t.width]){const x=r.nodeAt(k).attrs;e.setNodeMarkup(e.mapping.slice(d).map(k+i),null,_n(je({},x),{rowspan:x.rowspan-1})),b+=x.colspan-1}else if(a0&&r[o]==r[o-1]||i.right0&&r[a]==r[a-e]||i.bottomr[i.type.spec.tableRole])(e,t)}function T2(e){return(t,r)=>{var i;const a=t.selection;let o,u;if(a instanceof fi){if(a.$anchorCell.pos!=a.$headCell.pos)return!1;o=a.$anchorCell.nodeAfter,u=a.$anchorCell.pos}else{if(o=KC(a.$from),!o)return!1;u=(i=Zu(a.$from))==null?void 0:i.pos}if(o==null||u==null||o.attrs.colspan==1&&o.attrs.rowspan==1)return!1;if(r){let d=o.attrs;const f=[],b=d.colwidth;d.rowspan>1&&(d=_n(je({},d),{rowspan:1})),d.colspan>1&&(d=_n(je({},d),{colspan:1}));const E=ml(t),k=t.tr;for(let R=0;R{u.attrs[e]!==t&&o.setNodeMarkup(d,null,_n(je({},u.attrs),{[e]:t}))}):o.setNodeMarkup(a.pos,null,_n(je({},a.nodeAfter.attrs),{[e]:t})),i(o)}return!0}}function A2(e){return function(t,r){if(!Uo(t))return!1;if(r){const i=pa(t.schema),a=ml(t),o=t.tr,u=a.map.cellsInRect(e=="column"?{left:a.left,top:0,right:a.right,bottom:a.map.height}:e=="row"?{left:0,top:a.top,right:a.map.width,bottom:a.bottom}:a),d=u.map(f=>a.table.nodeAt(f));for(let f=0;f{const R=x+o.tableStart,N=u.doc.nodeAt(R);N&&u.setNodeMarkup(R,k,N.attrs)}),i(u)}return!0}}cf("row",{useDeprecatedLogic:!0}),cf("column",{useDeprecatedLogic:!0});var _2=cf("cell",{useDeprecatedLogic:!0});function N2(e,t){if(t<0){const r=e.nodeBefore;if(r)return e.pos-r.nodeSize;for(let i=e.index(-1)-1,a=e.before();i>=0;i--){const o=e.node(-1).child(i),u=o.lastChild;if(u)return a-1-u.nodeSize;a-=o.nodeSize}}else{if(e.index()0;i--)if(r.node(i).type.spec.tableRole=="table")return t&&t(e.tr.delete(r.before(i),r.after(i)).scrollIntoView()),!0;return!1}function df({allowTableNodeSelection:e=!1}={}){return new Di({key:fl,state:{init(){return null},apply(t,r){const i=t.getMeta(fl);if(i!=null)return i==-1?null:i;if(r==null||!t.docChanged)return r;const{deleted:a,pos:o}=t.mapping.mapResult(r);return a?null:o}},props:{decorations:jc,handleDOMEvents:{mousedown:u2},createSelectionBetween(t){return fl.getState(t.state)!=null?t.state.selection:null},handleTripleClick:o2,handleKeyDown:a2,handlePaste:l2},appendTransaction(t,r,i){return r2(i,rk(i,r),e)}})}function mh(e,t,r,i,a,o){let u=0,d=!0,f=t.firstChild;const b=e.firstChild;for(let E=0,k=0;E{const i=e.nodes[r];i.spec.tableRole&&(t[i.spec.tableRole]=i)}),e.cached.tableNodeTypes=t,t}function R2(e,t,r,i,a){const o=wk(e),u=[],d=[];for(let b=0;b{const{selection:t}=e.state;if(!D2(t))return!1;let r=0;const i=Dm(t.ranges[0].$from,a=>a.type.name==="table");return i==null||i.node.descendants(a=>{if(a.type.name==="table")return!1;["tableCell","tableHeader"].includes(a.type.name)&&(r+=1)}),r===t.ranges.length?(e.commands.deleteTable(),!0):!1},I2=ci.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:vk,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({node:e,HTMLAttributes:t}){const{colgroup:r,tableWidth:i,tableMinWidth:a}=kk(e,this.options.cellMinWidth);return["table",ui(this.options.HTMLAttributes,t,{style:i?`width: ${i}`:`minWidth: ${a}`}),r,["tbody",0]]},addCommands(){return{insertTable:({rows:e=3,cols:t=3,withHeaderRow:r=!0}={})=>({tr:i,dispatch:a,editor:o})=>{const u=R2(o.schema,e,t,r);if(a){const d=i.selection.anchor+1;i.replaceSelectionWith(u).scrollIntoView().setSelection(Be.near(i.doc.resolve(d)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>O2(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>y2(e,t),deleteColumn:()=>({state:e,dispatch:t})=>S2(e,t),addRowBefore:()=>({state:e,dispatch:t})=>k2(e,t),addRowAfter:()=>({state:e,dispatch:t})=>w2(e,t),deleteRow:()=>({state:e,dispatch:t})=>Hg(e,t),deleteTable:()=>({state:e,dispatch:t})=>fh(e,t),mergeCells:()=>({state:e,dispatch:t})=>yk(e,t),splitCell:()=>({state:e,dispatch:t})=>zg(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>cf("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>cf("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>_2(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>yk(e,t)?!0:zg(e,t),setCellAttribute:(e,t)=>({state:r,dispatch:i})=>C2(e,t)(r,i),goToNextCell:()=>({state:e,dispatch:t})=>Sk(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>Sk(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&rk(e),!0),setCellSelection:e=>({tr:t,dispatch:r})=>{if(r){const i=fi.create(t.doc,e.anchorCell,e.headCell);t.setSelection(i)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:bh,"Mod-Backspace":bh,Delete:bh,"Mod-Delete":bh}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[c2({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],df({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){const t={name:e.name,options:e.options,storage:e.storage};return{tableRole:ai(or(e,"tableRole",t))}}}),Qg=ci.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:e}){return["tr",ui(this.options.HTMLAttributes,e),0]}}),Vg=ci.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{const t=e.getAttribute("colwidth");return t?[parseInt(t,10)]:null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:e}){return["th",ui(this.options.HTMLAttributes,e),0]}}),_y=ci.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{const t=e.getAttribute("colwidth");return t?[parseInt(t,10)]:null}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:e}){return["td",ui(this.options.HTMLAttributes,e),0]}}),jg=xi.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize"}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const t=(e==null?void 0:e.node)||this.editor.state.doc;return((e==null?void 0:e.mode)||this.options.mode)==="textSize"?t.textBetween(0,t.content.size,void 0," ").length:t.nodeSize},this.storage.words=e=>{const t=(e==null?void 0:e.node)||this.editor.state.doc;return t.textBetween(0,t.content.size," "," ").split(" ").filter(r=>r!=="").length}},addProseMirrorPlugins(){return[new Di({key:new _i("characterCount"),filterTransaction:(e,t)=>{const r=this.options.limit;if(!e.docChanged||r===0||r===null||r===void 0)return!0;const i=this.storage.characters({node:t.doc}),a=this.storage.characters({node:e.doc});if(a<=r||i>r&&a>r&&a<=i)return!0;if(i>r&&a>r&&a>i||!e.getMeta("paste"))return!1;const o=e.selection.$head.pos,u=a-r,d=o-u,f=o;return e.deleteRange(d,f),!(this.storage.characters({node:e.doc})>r)}})]}}),xk="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xF6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",L2="\u03B5\u03BB1\u03C52\u0431\u04331\u0435\u043B3\u0434\u0435\u0442\u04384\u0435\u044E2\u043A\u0430\u0442\u043E\u043B\u0438\u043A6\u043E\u043C3\u043C\u043A\u04342\u043E\u043D1\u0441\u043A\u0432\u04306\u043E\u043D\u043B\u0430\u0439\u043D5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043A\u04403\u049B\u0430\u04373\u0570\u0561\u05753\u05D9\u05E9\u05E8\u05D0\u05DC5\u05E7\u05D5\u05DD3\u0627\u0628\u0648\u0638\u0628\u064A5\u062A\u0635\u0627\u0644\u0627\u062A6\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062F\u06464\u0628\u062D\u0631\u064A\u06465\u062C\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062F\u064A\u06296\u0639\u0644\u064A\u0627\u06465\u0645\u063A\u0631\u06285\u0645\u0627\u0631\u0627\u062A5\u06CC\u0631\u0627\u06465\u0628\u0627\u0631\u062A2\u0632\u0627\u06314\u064A\u062A\u06433\u06BE\u0627\u0631\u062A5\u062A\u0648\u0646\u06334\u0633\u0648\u062F\u0627\u06463\u0631\u064A\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064A\u06466\u0642\u0637\u06313\u0643\u0627\u062B\u0648\u0644\u064A\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064A\u0633\u064A\u06275\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067E\u0627\u06A9\u0633\u062A\u0627\u06467\u0680\u0627\u0631\u062A4\u0915\u0949\u092E3\u0928\u0947\u091F3\u092D\u093E\u0930\u09240\u092E\u094D3\u094B\u09245\u0938\u0902\u0917\u0920\u09285\u09AC\u09BE\u0982\u09B2\u09BE5\u09AD\u09BE\u09B0\u09A42\u09F0\u09A44\u0A2D\u0A3E\u0A30\u0A244\u0AAD\u0ABE\u0AB0\u0AA44\u0B2D\u0B3E\u0B30\u0B244\u0B87\u0BA8\u0BCD\u0BA4\u0BBF\u0BAF\u0BBE6\u0BB2\u0B99\u0BCD\u0B95\u0BC86\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD11\u0C2D\u0C3E\u0C30\u0C24\u0C4D5\u0CAD\u0CBE\u0CB0\u0CA44\u0D2D\u0D3E\u0D30\u0D24\u0D025\u0DBD\u0D82\u0D9A\u0DCF4\u0E04\u0E2D\u0E213\u0E44\u0E17\u0E223\u0EA5\u0EB2\u0EA73\u10D2\u10D42\u307F\u3093\u306A3\u30A2\u30DE\u30BE\u30F34\u30AF\u30E9\u30A6\u30C94\u30B0\u30FC\u30B0\u30EB4\u30B3\u30E02\u30B9\u30C8\u30A23\u30BB\u30FC\u30EB3\u30D5\u30A1\u30C3\u30B7\u30E7\u30F36\u30DD\u30A4\u30F3\u30C84\u4E16\u754C2\u4E2D\u4FE11\u56FD1\u570B1\u6587\u7F513\u4E9A\u9A6C\u900A3\u4F01\u4E1A2\u4F5B\u5C712\u4FE1\u606F2\u5065\u5EB72\u516B\u53662\u516C\u53F81\u76CA2\u53F0\u6E7E1\u70632\u5546\u57CE1\u5E971\u68072\u5609\u91CC0\u5927\u9152\u5E975\u5728\u7EBF2\u5927\u62FF2\u5929\u4E3B\u65593\u5A31\u4E502\u5BB6\u96FB2\u5E7F\u4E1C2\u5FAE\u535A2\u6148\u55842\u6211\u7231\u4F603\u624B\u673A2\u62DB\u80582\u653F\u52A11\u5E9C2\u65B0\u52A0\u57612\u95FB2\u65F6\u5C1A2\u66F8\u7C4D2\u673A\u67842\u6DE1\u9A6C\u95213\u6E38\u620F2\u6FB3\u95802\u70B9\u770B2\u79FB\u52A82\u7EC4\u7EC7\u673A\u67844\u7F51\u57401\u5E971\u7AD91\u7EDC2\u8054\u901A2\u8C37\u6B4C2\u8D2D\u72692\u901A\u8CA92\u96C6\u56E22\u96FB\u8A0A\u76C8\u79D14\u98DE\u5229\u6D663\u98DF\u54C12\u9910\u53852\u9999\u683C\u91CC\u62C93\u6E2F2\uB2F7\uB1371\uCEF42\uC0BC\uC1312\uD55C\uAD6D2",Oh=(e,t)=>{for(const r in t)e[r]=t[r];return e},Zg="numeric",Wg="ascii",Ny="alpha",Gg="asciinumeric",Yg="alphanumeric",Ry="domain",Dy="emoji",M2="scheme",Tk="slashscheme",hf="whitespace";function P2(e,t){return e in t||(t[e]=[]),t[e]}function Zc(e,t,r){t[Zg]&&(t[Gg]=!0,t[Yg]=!0),t[Wg]&&(t[Gg]=!0,t[Ny]=!0),t[Gg]&&(t[Yg]=!0),t[Ny]&&(t[Yg]=!0),t[Yg]&&(t[Ry]=!0),t[Dy]&&(t[Ry]=!0);for(const i in t){const a=P2(i,r);a.indexOf(e)<0&&a.push(e)}}function F2(e,t){const r={};for(const i in t)t[i].indexOf(e)>=0&&(r[i]=!0);return r}function Ba(e){e===void 0&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}Ba.groups={},Ba.prototype={accepts(){return!!this.t},go(e){const t=this,r=t.j[e];if(r)return r;for(let i=0;ie.ta(t,r,i,a),wa=(e,t,r,i,a)=>e.tr(t,r,i,a),Ck=(e,t,r,i,a)=>e.ts(t,r,i,a),kn=(e,t,r,i,a)=>e.tt(t,r,i,a),ou="WORD",qg="UWORD",pf="LOCALHOST",Iy="TLD",Xg="UTLD",ff="SCHEME",yh="SLASH_SCHEME",Ak="NUM",B2="WS",mf="NL",gf="OPENBRACE",Kg="OPENBRACKET",Jg="OPENANGLEBRACKET",bf="OPENPAREN",Wu="CLOSEBRACE",Wc="CLOSEBRACKET",Of="CLOSEANGLEBRACKET",Eh="CLOSEPAREN",yf="AMPERSAND",Ef="APOSTROPHE",e0="ASTERISK",Gu="AT",t0="BACKSLASH",n0="BACKTICK",r0="CARET",Gc="COLON",_k="COMMA",Yc="DOLLAR",Us="DOT",Sf="EQUALS",Ly="EXCLAMATION",gl="HYPHEN",vf="PERCENT",kf="PIPE",wf="PLUS",i0="POUND",s0="QUERY",My="QUOTE",Py="SEMI",bl="SLASH",Sh="TILDE",a0="UNDERSCORE",Nk="EMOJI",lu="SYM";var Fy=Object.freeze({__proto__:null,WORD:ou,UWORD:qg,LOCALHOST:pf,TLD:Iy,UTLD:Xg,SCHEME:ff,SLASH_SCHEME:yh,NUM:Ak,WS:B2,NL:mf,OPENBRACE:gf,OPENBRACKET:Kg,OPENANGLEBRACKET:Jg,OPENPAREN:bf,CLOSEBRACE:Wu,CLOSEBRACKET:Wc,CLOSEANGLEBRACKET:Of,CLOSEPAREN:Eh,AMPERSAND:yf,APOSTROPHE:Ef,ASTERISK:e0,AT:Gu,BACKSLASH:t0,BACKTICK:n0,CARET:r0,COLON:Gc,COMMA:_k,DOLLAR:Yc,DOT:Us,EQUALS:Sf,EXCLAMATION:Ly,HYPHEN:gl,PERCENT:vf,PIPE:kf,PLUS:wf,POUND:i0,QUERY:s0,QUOTE:My,SEMI:Py,SLASH:bl,TILDE:Sh,UNDERSCORE:a0,EMOJI:Nk,SYM:lu});const vh=/[a-z]/,By=new RegExp("\\p{L}","u"),$y=new RegExp("\\p{Emoji}","u"),qc=/\d/,Rk=/\s/,Uy=` -`,$2="\uFE0F",U2="\u200D";let o0=null,l0=null;function H2(e){e===void 0&&(e=[]);const t={};Ba.groups=t;const r=new Ba;o0==null&&(o0=Q2(xk)),l0==null&&(l0=Q2(L2)),kn(r,"'",Ef),kn(r,"{",gf),kn(r,"[",Kg),kn(r,"<",Jg),kn(r,"(",bf),kn(r,"}",Wu),kn(r,"]",Wc),kn(r,">",Of),kn(r,")",Eh),kn(r,"&",yf),kn(r,"*",e0),kn(r,"@",Gu),kn(r,"`",n0),kn(r,"^",r0),kn(r,":",Gc),kn(r,",",_k),kn(r,"$",Yc),kn(r,".",Us),kn(r,"=",Sf),kn(r,"!",Ly),kn(r,"-",gl),kn(r,"%",vf),kn(r,"|",kf),kn(r,"+",wf),kn(r,"#",i0),kn(r,"?",s0),kn(r,'"',My),kn(r,"/",bl),kn(r,";",Py),kn(r,"~",Sh),kn(r,"_",a0),kn(r,"\\",t0);const i=wa(r,qc,Ak,{[Zg]:!0});wa(i,qc,i);const a=wa(r,vh,ou,{[Wg]:!0});wa(a,vh,a);const o=wa(r,By,qg,{[Ny]:!0});wa(o,vh),wa(o,By,o);const u=wa(r,Rk,B2,{[hf]:!0});kn(r,Uy,mf,{[hf]:!0}),kn(u,Uy),wa(u,Rk,u);const d=wa(r,$y,Nk,{[Dy]:!0});wa(d,$y,d),kn(d,$2,d);const f=kn(d,U2);wa(f,$y,d);const b=[[vh,a]],E=[[vh,null],[By,o]];for(let k=0;kk[0]>x[0]?1:-1);for(let k=0;k=0?R[Ry]=!0:vh.test(x)?qc.test(x)?R[Gg]=!0:R[Wg]=!0:R[Zg]=!0,Ck(r,x,x,R)}return Ck(r,"localhost",pf,{ascii:!0}),r.jd=new Ba(lu),{start:r,tokens:Oh({groups:t},Fy)}}function z2(e,t){const r=Dk(t.replace(/[A-Z]/g,d=>d.toLowerCase())),i=r.length,a=[];let o=0,u=0;for(;u=0&&(k+=r[u].length,x++),b+=r[u].length,o+=r[u].length,u++;o-=k,u-=x,b-=k,a.push({t:E.t,v:t.slice(o-b,o),s:o-b,e:o})}return a}function Dk(e){const t=[],r=e.length;let i=0;for(;i56319||i+1===r||(o=e.charCodeAt(i+1))<56320||o>57343?e[i]:e.slice(i,i+2);t.push(u),i+=u.length}return t}function Xc(e,t,r,i,a){let o;const u=t.length;for(let d=0;d=0;)o++;if(o>0){t.push(r.join(""));for(let u=parseInt(e.substring(i,i+o),10);u>0;u--)r.pop();i+=o}else r.push(e[i]),i++}return t}const kh={defaultProtocol:"http",events:null,format:zy,formatHref:zy,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Hy(e,t){t===void 0&&(t=null);let r=Oh({},kh);e&&(r=Oh(r,e instanceof Hy?e.o:e));const i=r.ignoreTags,a=[];for(let o=0;or?i.substring(0,r)+"\u2026":i},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return e===void 0&&(e=kh.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,r=this.toHref(e.get("defaultProtocol")),i=e.get("formatHref",r,this),a=e.get("tagName",r,t),o=this.toFormattedString(e),u={},d=e.get("className",r,t),f=e.get("target",r,t),b=e.get("rel",r,t),E=e.getObj("attributes",r,t),k=e.getObj("events",r,t);return u.href=i,d&&(u.class=d),f&&(u.target=f),b&&(u.rel=b),E&&Oh(u,E),{tagName:a,attributes:u,content:o,eventListeners:k}}};function Yu(e,t){class r extends Ik{constructor(a,o){super(a,o),this.t=e}}for(const i in t)r.prototype[i]=t[i];return r.t=e,r}const u0=Yu("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Qy=Yu("text"),Lk=Yu("nl"),hs=Yu("url",{isLink:!0,toHref(e){return e===void 0&&(e=kh.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==pf&&e[1].t===Gc}}),Cs=e=>new Ba(e);function V2(e){let{groups:t}=e;const r=t.domain.concat([yf,e0,Gu,t0,n0,r0,Yc,Sf,gl,Ak,vf,kf,wf,i0,bl,lu,Sh,a0]),i=[Ef,Of,Wu,Wc,Eh,Gc,_k,Us,Ly,Jg,gf,Kg,bf,s0,My,Py],a=[yf,Ef,e0,t0,n0,r0,Wu,Yc,Sf,gl,gf,vf,kf,wf,i0,s0,bl,lu,Sh,a0],o=Cs(),u=kn(o,Sh);kr(u,a,u),kr(u,t.domain,u);const d=Cs(),f=Cs(),b=Cs();kr(o,t.domain,d),kr(o,t.scheme,f),kr(o,t.slashscheme,b),kr(d,a,u),kr(d,t.domain,d);const E=kn(d,Gu);kn(u,Gu,E),kn(f,Gu,E),kn(b,Gu,E);const k=kn(u,Us);kr(k,a,u),kr(k,t.domain,u);const x=Cs();kr(E,t.domain,x),kr(x,t.domain,x);const R=kn(x,Us);kr(R,t.domain,x);const N=Cs(u0);kr(R,t.tld,N),kr(R,t.utld,N),kn(E,pf,N);const G=kn(x,gl);kr(G,t.domain,x),kr(N,t.domain,x),kn(N,Us,R),kn(N,gl,G);const K=kn(N,Gc);kr(K,t.numeric,u0);const ge=kn(d,gl),de=kn(d,Us);kr(ge,t.domain,d),kr(de,a,u),kr(de,t.domain,d);const xe=Cs(hs);kr(de,t.tld,xe),kr(de,t.utld,xe),kr(xe,t.domain,d),kr(xe,a,u),kn(xe,Us,de),kn(xe,gl,ge),kn(xe,Gu,E);const ae=kn(xe,Gc),Ve=Cs(hs);kr(ae,t.numeric,Ve);const He=Cs(hs),_t=Cs();kr(He,r,He),kr(He,i,_t),kr(_t,r,He),kr(_t,i,_t),kn(xe,bl,He),kn(Ve,bl,He);const rn=kn(f,Gc),St=kn(b,Gc),xn=kn(St,bl),tr=kn(xn,bl);kr(f,t.domain,d),kn(f,Us,de),kn(f,gl,ge),kr(b,t.domain,d),kn(b,Us,de),kn(b,gl,ge),kr(rn,t.domain,He),kn(rn,bl,He),kr(tr,t.domain,He),kr(tr,r,He),kn(tr,bl,He);const Xn=kn(He,gf),pr=kn(He,Kg),Hr=kn(He,Jg),sr=kn(He,bf);kn(_t,gf,Xn),kn(_t,Kg,pr),kn(_t,Jg,Hr),kn(_t,bf,sr),kn(Xn,Wu,He),kn(pr,Wc,He),kn(Hr,Of,He),kn(sr,Eh,He),kn(Xn,Wu,He);const $t=Cs(hs),rt=Cs(hs),Lt=Cs(hs),gn=Cs(hs);kr(Xn,r,$t),kr(pr,r,rt),kr(Hr,r,Lt),kr(sr,r,gn);const Vn=Cs(),Rr=Cs(),Zr=Cs(),Wi=Cs();return kr(Xn,i),kr(pr,i),kr(Hr,i),kr(sr,i),kr($t,r,$t),kr(rt,r,rt),kr(Lt,r,Lt),kr(gn,r,gn),kr($t,i,$t),kr(rt,i,rt),kr(Lt,i,Lt),kr(gn,i,gn),kr(Vn,r,Vn),kr(Rr,r,rt),kr(Zr,r,Lt),kr(Wi,r,gn),kr(Vn,i,Vn),kr(Rr,i,Rr),kr(Zr,i,Zr),kr(Wi,i,Wi),kn(rt,Wc,He),kn(Lt,Of,He),kn(gn,Eh,He),kn($t,Wu,He),kn(Rr,Wc,He),kn(Zr,Of,He),kn(Wi,Eh,He),kn(Vn,Eh,He),kn(o,pf,xe),kn(o,mf,Lk),{start:o,tokens:Fy}}function j2(e,t,r){let i=r.length,a=0,o=[],u=[];for(;a=0&&x++,a++,E++;if(x<0)a-=E,a0&&(o.push(Vy(Qy,t,u)),u=[]),a-=x,E-=x;const R=k.t,N=r.slice(a-E,a);o.push(Vy(R,t,N))}}return u.length>0&&o.push(Vy(Qy,t,u)),o}function Vy(e,t,r){const i=r[0].s,a=r[r.length-1].e,o=t.slice(i,a);return new e(o,r)}const Z2=typeof console<"u"&&console&&console.warn||(()=>{}),W2="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",ts={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function G2(){Ba.groups={},ts.scanner=null,ts.parser=null,ts.tokenQueue=[],ts.pluginQueue=[],ts.customSchemes=[],ts.initialized=!1}function jy(e,t){if(t===void 0&&(t=!1),ts.initialized&&Z2(`linkifyjs: already initialized - will not register custom scheme "${e}" ${W2}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error(`linkifyjs: incorrect scheme format. -1. Must only contain digits, lowercase ASCII letters or "-" -2. Cannot start or end with "-" -3. "-" cannot repeat`);ts.customSchemes.push([e,t])}function Y2(){ts.scanner=H2(ts.customSchemes);for(let e=0;e{const a=t.some(f=>f.docChanged)&&!r.doc.eq(i.doc),o=t.some(f=>f.getMeta("preventAutolink"));if(!a||o)return;const{tr:u}=i,d=D1(r.doc,[...t]);if($1(d).forEach(({newRange:f})=>{const b=L1(i.doc,f,x=>x.isTextblock);let E,k;if(b.length>1?(E=b[0],k=i.doc.textBetween(E.pos,E.pos+E.node.nodeSize,void 0," ")):b.length&&i.doc.textBetween(f.from,f.to," "," ").endsWith(" ")&&(E=b[0],k=i.doc.textBetween(E.pos,f.to,void 0," ")),E&&k){const x=k.split(" ").filter(K=>K!=="");if(x.length<=0)return!1;const R=x[x.length-1],N=E.pos+k.lastIndexOf(R);if(!R)return!1;const G=Mk(R).map(K=>K.toObject());if(!q2(G))return!1;G.filter(K=>K.isLink).map(K=>_n(je({},K),{from:N+K.start+1,to:N+K.end+1})).filter(K=>i.schema.marks.code?!i.doc.rangeHasMark(K.from,K.to,i.schema.marks.code):!0).filter(K=>e.validate?e.validate(K.value):!0).forEach(K=>{_p(K.from,K.to,i.doc).some(ge=>ge.mark.type===e.type)||u.addMark(K.from,K.to,e.type.create({href:K.href}))})}}),!!u.steps.length)return u}})}function K2(e){return new Di({key:new _i("handleClickLink"),props:{handleClick:(t,r,i)=>{var a,o;if(e.whenNotEditable&&t.editable||i.button!==0)return!1;let u=i.target;const d=[];for(;u.nodeName!=="DIV";)d.push(u),u=u.parentNode;if(!d.find(x=>x.nodeName==="A"))return!1;const f=Im(t.state,e.type.name),b=i.target,E=(a=b==null?void 0:b.href)!==null&&a!==void 0?a:f.href,k=(o=b==null?void 0:b.target)!==null&&o!==void 0?o:f.target;return b&&E?(window.open(E,k),!0):!1}}})}function Fk(e){return new Di({key:new _i("handlePasteLink"),props:{handlePaste:(t,r,i)=>{const{state:a}=t,{selection:o}=a,{empty:u}=o;if(u)return!1;let d="";i.content.forEach(b=>{d+=b.textContent});const f=Pk(d).find(b=>b.isLink&&b.value===d);return!d||!f?!1:(e.editor.commands.setMark(e.type,{href:f.href}),!0)}}})}const Zy=Ji.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(e=>{if(typeof e=="string"){jy(e);return}jy(e.scheme,e.optionalSlashes)})},onDestroy(){G2()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:e}){var t;return!((t=e.href)===null||t===void 0)&&t.startsWith("javascript:")?["a",ui(this.options.HTMLAttributes,_n(je({},e),{href:""})),0]:["a",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{setLink:e=>({chain:t})=>t().setMark(this.name,e).setMeta("preventAutolink",!0).run(),toggleLink:e=>({chain:t})=>t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[ll({find:e=>{const t=[];if(e){const r=Pk(e).filter(i=>i.isLink);r.length&&r.forEach(i=>t.push({text:i.value,data:{href:i.href},index:i.start}))}return t},type:this.type,getAttributes:e=>{var t;return{href:(t=e.data)===null||t===void 0?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[];return this.options.autolink&&e.push(X2({type:this.type,validate:this.options.validate})),this.options.openOnClick&&e.push(K2({type:this.type,whenNotEditable:this.options.openOnClick==="whenNotEditable"})),this.options.linkOnPaste&&e.push(Fk({editor:this.editor,type:this.type})),e}}),J2=Ji.create({name:"superscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sup"},{style:"vertical-align",getAttrs(e){return e!=="super"?!1:null}}]},renderHTML({HTMLAttributes:e}){return["sup",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{setSuperscript:()=>({commands:e})=>e.setMark(this.name),toggleSuperscript:()=>({commands:e})=>e.toggleMark(this.name),unsetSuperscript:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}}),eA=Ji.create({name:"subscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sub"},{style:"vertical-align",getAttrs(e){return e!=="sub"?!1:null}}]},renderHTML({HTMLAttributes:e}){return["sub",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{setSubscript:()=>({commands:e})=>e.setMark(this.name),toggleSubscript:()=>({commands:e})=>e.toggleMark(this.name),unsetSubscript:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}}),tA=ci.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",ui(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),nA=/^\s*(\[([( |x])?\])\s$/,Wy=ci.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList"}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>e.getAttribute("data-checked")==="true",renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",ui(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?_n(je({},e),{Tab:()=>this.editor.commands.sinkListItem(this.name)}):e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:r,editor:i})=>{const a=document.createElement("li"),o=document.createElement("label"),u=document.createElement("span"),d=document.createElement("input"),f=document.createElement("div");return o.contentEditable="false",d.type="checkbox",d.addEventListener("change",b=>{if(!i.isEditable&&!this.options.onReadOnlyChecked){d.checked=!d.checked;return}const{checked:E}=b.target;i.isEditable&&typeof r=="function"&&i.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:k})=>{const x=r(),R=k.doc.nodeAt(x);return k.setNodeMarkup(x,void 0,_n(je({},R==null?void 0:R.attrs),{checked:E})),!0}).run(),!i.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,E)||(d.checked=!d.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([b,E])=>{a.setAttribute(b,E)}),a.dataset.checked=e.attrs.checked,e.attrs.checked&&d.setAttribute("checked","checked"),o.append(d,u),a.append(o,f),Object.entries(t).forEach(([b,E])=>{a.setAttribute(b,E)}),{dom:a,contentDOM:f,update:b=>b.type!==this.type?!1:(a.dataset.checked=b.attrs.checked,b.attrs.checked?d.setAttribute("checked","checked"):d.removeAttribute("checked"),!0)}}},addInputRules(){return[eu({find:nA,type:this.type,getAttributes:e=>({checked:e[e.length-1]==="x"})})]}});var Gy={exports:{}};function Yy(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){var r=e[t];typeof r=="object"&&!Object.isFrozen(r)&&Yy(r)}),e}Gy.exports=Yy,Gy.exports.default=Yy;let qy=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function wh(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function qu(e,...t){const r=Object.create(null);for(const i in e)r[i]=e[i];return t.forEach(function(i){for(const a in i)r[a]=i[a]}),r}const rA="",Bk=e=>!!e.scope||e.sublanguage&&e.language,iA=(e,{prefix:t})=>{if(e.includes(".")){const r=e.split(".");return[`${t}${r.shift()}`,...r.map((i,a)=>`${i}${"_".repeat(a+1)}`)].join(" ")}return`${t}${e}`};let Xy=class{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=wh(e)}openNode(e){if(!Bk(e))return;let t="";e.sublanguage?t=`language-${e.language}`:t=iA(e.scope,{prefix:this.classPrefix}),this.span(t)}closeNode(e){Bk(e)&&(this.buffer+=rA)}value(){return this.buffer}span(e){this.buffer+=``}};const $k=(e={})=>{const t={children:[]};return Object.assign(t,e),t};let sA=class o3{constructor(){this.rootNode=$k(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const r=$k({scope:t});this.add(r),this.stack.push(r)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,r){return typeof r=="string"?t.addText(r):r.children&&(t.openNode(r),r.children.forEach(i=>this._walk(t,i)),t.closeNode(r)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(r=>typeof r=="string")?t.children=[t.children.join("")]:t.children.forEach(r=>{o3._collapse(r)}))}},Uk=class extends sA{constructor(e){super(),this.options=e}addKeyword(e,t){e!==""&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){e!==""&&this.add(e)}addSublanguage(e,t){const r=e.root;r.sublanguage=!0,r.language=t,this.add(r)}toHTML(){return new Xy(this,this.options).value()}finalize(){return!0}};function xh(e){return e?typeof e=="string"?e:e.source:null}function Hk(e){return Kc("(?=",e,")")}function uu(e){return Kc("(?:",e,")*")}function mo(e){return Kc("(?:",e,")?")}function Kc(...e){return e.map(t=>xh(t)).join("")}function xf(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function c0(...e){return"("+(xf(e).capture?"":"?:")+e.map(t=>xh(t)).join("|")+")"}function zk(e){return new RegExp(e.toString()+"|").exec("").length-1}function aA(e,t){const r=e&&e.exec(t);return r&&r.index===0}const Ky=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Jy(e,{joinWith:t}){let r=0;return e.map(i=>{r+=1;const a=r;let o=xh(i),u="";for(;o.length>0;){const d=Ky.exec(o);if(!d){u+=o;break}u+=o.substring(0,d.index),o=o.substring(d.index+d[0].length),d[0][0]==="\\"&&d[1]?u+="\\"+String(Number(d[1])+a):(u+=d[0],d[0]==="("&&r++)}return u}).map(i=>`(${i})`).join(t)}const oA=/\b\B/,Qk="[a-zA-Z]\\w*",Vk="[a-zA-Z_]\\w*",jk="\\b\\d+(\\.\\d+)?",Ho="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",go="\\b(0b[01]+)",lA="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",eE=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Kc(t,/.*\b/,e.binary,/\b.*/)),qu({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(r,i)=>{r.index!==0&&i.ignoreMatch()}},e)},Jc={begin:"\\\\[\\s\\S]",relevance:0},uA={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Jc]},cA={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Jc]},ni={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},la=function(e,t,r={}){const i=qu({scope:"comment",begin:e,end:t,contains:[]},r);i.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const a=c0("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return i.contains.push({begin:Kc(/[ ]+/,"(",a,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},Ni=la("//","$"),dA=la("/\\*","\\*/"),hA=la("#","$"),Xu={scope:"number",begin:jk,relevance:0},ji={scope:"number",begin:Ho,relevance:0},pA={scope:"number",begin:go,relevance:0},fA={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Jc,{begin:/\[/,end:/\]/,relevance:0,contains:[Jc]}]}]},mA={scope:"title",begin:Qk,relevance:0},Zk={scope:"title",begin:Vk,relevance:0},gA={begin:"\\.\\s*"+Vk,relevance:0};var ed=Object.freeze({__proto__:null,MATCH_NOTHING_RE:oA,IDENT_RE:Qk,UNDERSCORE_IDENT_RE:Vk,NUMBER_RE:jk,C_NUMBER_RE:Ho,BINARY_NUMBER_RE:go,RE_STARTERS_RE:lA,SHEBANG:eE,BACKSLASH_ESCAPE:Jc,APOS_STRING_MODE:uA,QUOTE_STRING_MODE:cA,PHRASAL_WORDS_MODE:ni,COMMENT:la,C_LINE_COMMENT_MODE:Ni,C_BLOCK_COMMENT_MODE:dA,HASH_COMMENT_MODE:hA,NUMBER_MODE:Xu,C_NUMBER_MODE:ji,BINARY_NUMBER_MODE:pA,REGEXP_MODE:fA,TITLE_MODE:mA,UNDERSCORE_TITLE_MODE:Zk,METHOD_GUARD:gA,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,r)=>{r.data._beginMatch=t[1]},"on:end":(t,r)=>{r.data._beginMatch!==t[1]&&r.ignoreMatch()}})}});function bA(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function OA(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function yA(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=bA,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function EA(e,t){Array.isArray(e.illegal)&&(e.illegal=c0(...e.illegal))}function SA(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function vA(e,t){e.relevance===void 0&&(e.relevance=1)}const kA=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const r=Object.assign({},e);Object.keys(e).forEach(i=>{delete e[i]}),e.keywords=r.keywords,e.begin=Kc(r.beforeMatch,Hk(r.begin)),e.starts={relevance:0,contains:[Object.assign(r,{endsParent:!0})]},e.relevance=0,delete r.beforeMatch},wA=["of","and","for","in","not","or","if","then","parent","list","value"],xA="keyword";function Wk(e,t,r=xA){const i=Object.create(null);return typeof e=="string"?a(r,e.split(" ")):Array.isArray(e)?a(r,e):Object.keys(e).forEach(function(o){Object.assign(i,Wk(e[o],t,o))}),i;function a(o,u){t&&(u=u.map(d=>d.toLowerCase())),u.forEach(function(d){const f=d.split("|");i[f[0]]=[o,TA(f[0],f[1])]})}}function TA(e,t){return t?Number(t):Gk(e)?0:1}function Gk(e){return wA.includes(e.toLowerCase())}const tE={},td=e=>{console.error(e)},d0=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Th=(e,t)=>{tE[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),tE[`${e}/${t}`]=!0)},h0=new Error;function Yk(e,t,{key:r}){let i=0;const a=e[r],o={},u={};for(let d=1;d<=t.length;d++)u[d+i]=a[d],o[d+i]=!0,i+=zk(t[d-1]);e[r]=u,e[r]._emit=o,e[r]._multi=!0}function p0(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw td("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),h0;if(typeof e.beginScope!="object"||e.beginScope===null)throw td("beginScope must be object"),h0;Yk(e,e.begin,{key:"beginScope"}),e.begin=Jy(e.begin,{joinWith:""})}}function CA(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw td("skip, excludeEnd, returnEnd not compatible with endScope: {}"),h0;if(typeof e.endScope!="object"||e.endScope===null)throw td("endScope must be object"),h0;Yk(e,e.end,{key:"endScope"}),e.end=Jy(e.end,{joinWith:""})}}function $a(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function AA(e){$a(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),p0(e),CA(e)}function _A(e){function t(u,d){return new RegExp(xh(u),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(d?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(d,f){f.position=this.position++,this.matchIndexes[this.matchAt]=f,this.regexes.push([f,d]),this.matchAt+=zk(d)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const d=this.regexes.map(f=>f[1]);this.matcherRe=t(Jy(d,{joinWith:"|"}),!0),this.lastIndex=0}exec(d){this.matcherRe.lastIndex=this.lastIndex;const f=this.matcherRe.exec(d);if(!f)return null;const b=f.findIndex((k,x)=>x>0&&k!==void 0),E=this.matchIndexes[b];return f.splice(0,b),Object.assign(f,E)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(d){if(this.multiRegexes[d])return this.multiRegexes[d];const f=new r;return this.rules.slice(d).forEach(([b,E])=>f.addRule(b,E)),f.compile(),this.multiRegexes[d]=f,f}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(d,f){this.rules.push([d,f]),f.type==="begin"&&this.count++}exec(d){const f=this.getMatcher(this.regexIndex);f.lastIndex=this.lastIndex;let b=f.exec(d);if(this.resumingScanAtSamePosition()&&!(b&&b.index===this.lastIndex)){const E=this.getMatcher(0);E.lastIndex=this.lastIndex+1,b=E.exec(d)}return b&&(this.regexIndex+=b.position+1,this.regexIndex===this.count&&this.considerAll()),b}}function a(u){const d=new i;return u.contains.forEach(f=>d.addRule(f.begin,{rule:f,type:"begin"})),u.terminatorEnd&&d.addRule(u.terminatorEnd,{type:"end"}),u.illegal&&d.addRule(u.illegal,{type:"illegal"}),d}function o(u,d){const f=u;if(u.isCompiled)return f;[OA,SA,AA,kA].forEach(E=>E(u,d)),e.compilerExtensions.forEach(E=>E(u,d)),u.__beforeBegin=null,[yA,EA,vA].forEach(E=>E(u,d)),u.isCompiled=!0;let b=null;return typeof u.keywords=="object"&&u.keywords.$pattern&&(u.keywords=Object.assign({},u.keywords),b=u.keywords.$pattern,delete u.keywords.$pattern),b=b||/\w+/,u.keywords&&(u.keywords=Wk(u.keywords,e.case_insensitive)),f.keywordPatternRe=t(b,!0),d&&(u.begin||(u.begin=/\B|\b/),f.beginRe=t(f.begin),!u.end&&!u.endsWithParent&&(u.end=/\B|\b/),u.end&&(f.endRe=t(f.end)),f.terminatorEnd=xh(f.end)||"",u.endsWithParent&&d.terminatorEnd&&(f.terminatorEnd+=(u.end?"|":"")+d.terminatorEnd)),u.illegal&&(f.illegalRe=t(u.illegal)),u.contains||(u.contains=[]),u.contains=[].concat(...u.contains.map(function(E){return NA(E==="self"?u:E)})),u.contains.forEach(function(E){o(E,f)}),u.starts&&o(u.starts,d),f.matcher=a(f),f}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=qu(e.classNameAliases||{}),o(e)}function qk(e){return e?e.endsWithParent||qk(e.starts):!1}function NA(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return qu(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:qk(e)?qu(e,{starts:e.starts?qu(e.starts):null}):Object.isFrozen(e)?qu(e):e}var RA="11.6.0";let DA=class extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}};const nE=wh,rE=qu,Xk=Symbol("nomatch"),IA=7;var Ch=function(e){const t=Object.create(null),r=Object.create(null),i=[];let a=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",u={disableAutodetect:!0,name:"Plain text",contains:[]};let d={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Uk};function f($t){return d.noHighlightRe.test($t)}function b($t){let rt=$t.className+" ";rt+=$t.parentNode?$t.parentNode.className:"";const Lt=d.languageDetectRe.exec(rt);if(Lt){const gn=St(Lt[1]);return gn||(d0(o.replace("{}",Lt[1])),d0("Falling back to no-highlight mode for this block.",$t)),gn?Lt[1]:"no-highlight"}return rt.split(/\s+/).find(gn=>f(gn)||St(gn))}function E($t,rt,Lt){let gn="",Vn="";typeof rt=="object"?(gn=$t,Lt=rt.ignoreIllegals,Vn=rt.language):(Th("10.7.0","highlight(lang, code, ...args) has been deprecated."),Th("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),Vn=$t,gn=rt),Lt===void 0&&(Lt=!0);const Rr={code:gn,language:Vn};Hr("before:highlight",Rr);const Zr=Rr.result?Rr.result:k(Rr.language,Rr.code,Lt);return Zr.code=Rr.code,Hr("after:highlight",Zr),Zr}function k($t,rt,Lt,gn){const Vn=Object.create(null);function Rr(jn,Or){return jn.keywords[Or]}function Zr(){if(!Jr.keywords){dr.addText(Ei);return}let jn=0;Jr.keywordPatternRe.lastIndex=0;let Or=Jr.keywordPatternRe.exec(Ei),qt="";for(;Or;){qt+=Ei.substring(jn,Or.index);const wn=Es.case_insensitive?Or[0].toLowerCase():Or[0],Dr=Rr(Jr,wn);if(Dr){const[mi,Js]=Dr;if(dr.addText(qt),qt="",Vn[wn]=(Vn[wn]||0)+1,Vn[wn]<=IA&&(Fi+=Js),mi.startsWith("_"))qt+=Or[0];else{const Wo=Es.classNameAliases[mi]||mi;dr.addKeyword(Or[0],Wo)}}else qt+=Or[0];jn=Jr.keywordPatternRe.lastIndex,Or=Jr.keywordPatternRe.exec(Ei)}qt+=Ei.substring(jn),dr.addText(qt)}function Wi(){if(Ei==="")return;let jn=null;if(typeof Jr.subLanguage=="string"){if(!t[Jr.subLanguage]){dr.addText(Ei);return}jn=k(Jr.subLanguage,Ei,!0,gu[Jr.subLanguage]),gu[Jr.subLanguage]=jn._top}else jn=R(Ei,Jr.subLanguage.length?Jr.subLanguage:null);Jr.relevance>0&&(Fi+=jn.relevance),dr.addSublanguage(jn._emitter,jn.language)}function Pi(){Jr.subLanguage!=null?Wi():Zr(),Ei=""}function yi(jn,Or){let qt=1;const wn=Or.length-1;for(;qt<=wn;){if(!jn._emit[qt]){qt++;continue}const Dr=Es.classNameAliases[jn[qt]]||jn[qt],mi=Or[qt];Dr?dr.addKeyword(mi,Dr):(Ei=mi,Zr(),Ei=""),qt++}}function ss(jn,Or){return jn.scope&&typeof jn.scope=="string"&&dr.openNode(Es.classNameAliases[jn.scope]||jn.scope),jn.beginScope&&(jn.beginScope._wrap?(dr.addKeyword(Ei,Es.classNameAliases[jn.beginScope._wrap]||jn.beginScope._wrap),Ei=""):jn.beginScope._multi&&(yi(jn.beginScope,Or),Ei="")),Jr=Object.create(jn,{parent:{value:Jr}}),Jr}function ro(jn,Or,qt){let wn=aA(jn.endRe,qt);if(wn){if(jn["on:end"]){const Dr=new qy(jn);jn["on:end"](Or,Dr),Dr.isMatchIgnored&&(wn=!1)}if(wn){for(;jn.endsParent&&jn.parent;)jn=jn.parent;return jn}}if(jn.endsWithParent)return ro(jn.parent,Or,qt)}function za(jn){return Jr.matcher.regexIndex===0?(Ei+=jn[0],1):(Aa=!0,0)}function mu(jn){const Or=jn[0],qt=jn.rule,wn=new qy(qt),Dr=[qt.__beforeBegin,qt["on:begin"]];for(const mi of Dr)if(mi&&(mi(jn,wn),wn.isMatchIgnored))return za(Or);return qt.skip?Ei+=Or:(qt.excludeBegin&&(Ei+=Or),Pi(),!qt.returnBegin&&!qt.excludeBegin&&(Ei=Or)),ss(qt,jn),qt.returnBegin?0:Or.length}function Oo(jn){const Or=jn[0],qt=rt.substring(jn.index),wn=ro(Jr,jn,qt);if(!wn)return Xk;const Dr=Jr;Jr.endScope&&Jr.endScope._wrap?(Pi(),dr.addKeyword(Or,Jr.endScope._wrap)):Jr.endScope&&Jr.endScope._multi?(Pi(),yi(Jr.endScope,jn)):Dr.skip?Ei+=Or:(Dr.returnEnd||Dr.excludeEnd||(Ei+=Or),Pi(),Dr.excludeEnd&&(Ei=Or));do Jr.scope&&dr.closeNode(),!Jr.skip&&!Jr.subLanguage&&(Fi+=Jr.relevance),Jr=Jr.parent;while(Jr!==wn.parent);return wn.starts&&ss(wn.starts,jn),Dr.returnEnd?0:Or.length}function wl(){const jn=[];for(let Or=Jr;Or!==Es;Or=Or.parent)Or.scope&&jn.unshift(Or.scope);jn.forEach(Or=>dr.openNode(Or))}let Zo={};function vi(jn,Or){const qt=Or&&Or[0];if(Ei+=jn,qt==null)return Pi(),0;if(Zo.type==="begin"&&Or.type==="end"&&Zo.index===Or.index&&qt===""){if(Ei+=rt.slice(Or.index,Or.index+1),!a){const wn=new Error(`0 width match regex (${$t})`);throw wn.languageName=$t,wn.badRule=Zo.rule,wn}return 1}if(Zo=Or,Or.type==="begin")return mu(Or);if(Or.type==="illegal"&&!Lt){const wn=new Error('Illegal lexeme "'+qt+'" for mode "'+(Jr.scope||"")+'"');throw wn.mode=Jr,wn}else if(Or.type==="end"){const wn=Oo(Or);if(wn!==Xk)return wn}if(Or.type==="illegal"&&qt==="")return 1;if(Qa>1e5&&Qa>Or.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ei+=qt,qt.length}const Es=St($t);if(!Es)throw td(o.replace("{}",$t)),new Error('Unknown language: "'+$t+'"');const io=_A(Es);let Ns="",Jr=gn||io;const gu={},dr=new d.__emitter(d);wl();let Ei="",Fi=0,gi=0,Qa=0,Aa=!1;try{for(Jr.matcher.considerAll();;){Qa++,Aa?Aa=!1:Jr.matcher.considerAll(),Jr.matcher.lastIndex=gi;const jn=Jr.matcher.exec(rt);if(!jn)break;const Or=rt.substring(gi,jn.index),qt=vi(Or,jn);gi=jn.index+qt}return vi(rt.substring(gi)),dr.closeAllNodes(),dr.finalize(),Ns=dr.toHTML(),{language:$t,value:Ns,relevance:Fi,illegal:!1,_emitter:dr,_top:Jr}}catch(jn){if(jn.message&&jn.message.includes("Illegal"))return{language:$t,value:nE(rt),illegal:!0,relevance:0,_illegalBy:{message:jn.message,index:gi,context:rt.slice(gi-100,gi+100),mode:jn.mode,resultSoFar:Ns},_emitter:dr};if(a)return{language:$t,value:nE(rt),illegal:!1,relevance:0,errorRaised:jn,_emitter:dr,_top:Jr};throw jn}}function x($t){const rt={value:nE($t),illegal:!1,relevance:0,_top:u,_emitter:new d.__emitter(d)};return rt._emitter.addText($t),rt}function R($t,rt){rt=rt||d.languages||Object.keys(t);const Lt=x($t),gn=rt.filter(St).filter(tr).map(Pi=>k(Pi,$t,!1));gn.unshift(Lt);const Vn=gn.sort((Pi,yi)=>{if(Pi.relevance!==yi.relevance)return yi.relevance-Pi.relevance;if(Pi.language&&yi.language){if(St(Pi.language).supersetOf===yi.language)return 1;if(St(yi.language).supersetOf===Pi.language)return-1}return 0}),[Rr,Zr]=Vn,Wi=Rr;return Wi.secondBest=Zr,Wi}function N($t,rt,Lt){const gn=rt&&r[rt]||Lt;$t.classList.add("hljs"),$t.classList.add(`language-${gn}`)}function G($t){let rt=null;const Lt=b($t);if(f(Lt))return;if(Hr("before:highlightElement",{el:$t,language:Lt}),$t.children.length>0&&(d.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn($t)),d.throwUnescapedHTML))throw new DA("One of your code blocks includes unescaped HTML.",$t.innerHTML);rt=$t;const gn=rt.textContent,Vn=Lt?E(gn,{language:Lt,ignoreIllegals:!0}):R(gn);$t.innerHTML=Vn.value,N($t,Lt,Vn.language),$t.result={language:Vn.language,re:Vn.relevance,relevance:Vn.relevance},Vn.secondBest&&($t.secondBest={language:Vn.secondBest.language,relevance:Vn.secondBest.relevance}),Hr("after:highlightElement",{el:$t,result:Vn,text:gn})}function K($t){d=rE(d,$t)}const ge=()=>{ae(),Th("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function de(){ae(),Th("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let xe=!1;function ae(){if(document.readyState==="loading"){xe=!0;return}document.querySelectorAll(d.cssSelector).forEach(G)}function Ve(){xe&&ae()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Ve,!1);function He($t,rt){let Lt=null;try{Lt=rt(e)}catch(gn){if(td("Language definition for '{}' could not be registered.".replace("{}",$t)),a)td(gn);else throw gn;Lt=u}Lt.name||(Lt.name=$t),t[$t]=Lt,Lt.rawDefinition=rt.bind(null,e),Lt.aliases&&xn(Lt.aliases,{languageName:$t})}function _t($t){delete t[$t];for(const rt of Object.keys(r))r[rt]===$t&&delete r[rt]}function rn(){return Object.keys(t)}function St($t){return $t=($t||"").toLowerCase(),t[$t]||t[r[$t]]}function xn($t,{languageName:rt}){typeof $t=="string"&&($t=[$t]),$t.forEach(Lt=>{r[Lt.toLowerCase()]=rt})}function tr($t){const rt=St($t);return rt&&!rt.disableAutodetect}function Xn($t){$t["before:highlightBlock"]&&!$t["before:highlightElement"]&&($t["before:highlightElement"]=rt=>{$t["before:highlightBlock"](Object.assign({block:rt.el},rt))}),$t["after:highlightBlock"]&&!$t["after:highlightElement"]&&($t["after:highlightElement"]=rt=>{$t["after:highlightBlock"](Object.assign({block:rt.el},rt))})}function pr($t){Xn($t),i.push($t)}function Hr($t,rt){const Lt=$t;i.forEach(function(gn){gn[Lt]&&gn[Lt](rt)})}function sr($t){return Th("10.7.0","highlightBlock will be removed entirely in v12.0"),Th("10.7.0","Please use highlightElement now."),G($t)}Object.assign(e,{highlight:E,highlightAuto:R,highlightAll:ae,highlightElement:G,highlightBlock:sr,configure:K,initHighlighting:ge,initHighlightingOnLoad:de,registerLanguage:He,unregisterLanguage:_t,listLanguages:rn,getLanguage:St,registerAliases:xn,autoDetection:tr,inherit:rE,addPlugin:pr}),e.debugMode=function(){a=!1},e.safeMode=function(){a=!0},e.versionString=RA,e.regex={concat:Kc,lookahead:Hk,either:c0,optional:mo,anyNumberOfTimes:uu};for(const $t in ed)typeof ed[$t]=="object"&&Gy.exports(ed[$t]);return Object.assign(e,ed),e}({}),Kk=Ch;Ch.HighlightJS=Ch,Ch.default=Ch;var Jk=Kk;function Ah(e,t=[]){return e.map(r=>{const i=[...t,...r.properties?r.properties.className:[]];return r.children?Ah(r.children,i):{text:r.value,classes:i}}).flat()}function f0(e){return e.value||e.children||[]}function LA(e){return!!Jk.getLanguage(e)}function ew({doc:e,name:t,lowlight:r,defaultLanguage:i}){const a=[];return Pu(e,o=>o.type.name===t).forEach(o=>{let u=o.pos+1;const d=o.node.attrs.language||i,f=r.listLanguages(),b=d&&(f.includes(d)||LA(d))?f0(r.highlight(d,o.node.textContent)):f0(r.highlightAuto(o.node.textContent));Ah(b).forEach(E=>{const k=u+E.text.length;if(E.classes.length){const x=cs.inline(u,k,{class:E.classes.join(" ")});a.push(x)}u=k})}),Ai.create(e,a)}function MA(e){return typeof e=="function"}function PA({name:e,lowlight:t,defaultLanguage:r}){if(!["highlight","highlightAuto","listLanguages"].every(a=>MA(t[a])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const i=new Di({key:new _i("lowlight"),state:{init:(a,{doc:o})=>ew({doc:o,name:e,lowlight:t,defaultLanguage:r}),apply:(a,o,u,d)=>{const f=u.selection.$head.parent.type.name,b=d.selection.$head.parent.type.name,E=Pu(u.doc,x=>x.type.name===e),k=Pu(d.doc,x=>x.type.name===e);return a.docChanged&&([f,b].includes(e)||k.length!==E.length||a.steps.some(x=>x.from!==void 0&&x.to!==void 0&&E.some(R=>R.pos>=x.from&&R.pos+R.node.nodeSize<=x.to)))?ew({doc:a.doc,name:e,lowlight:t,defaultLanguage:r}):o.map(a.mapping,a.doc)}},props:{decorations(a){return i.getState(a)}}});return i}const iE=ho.extend({addOptions(){var e;return _n(je({},(e=this.parent)===null||e===void 0?void 0:e.call(this)),{lowlight:{},defaultLanguage:null})},addProseMirrorPlugins(){var e;return[...((e=this.parent)===null||e===void 0?void 0:e.call(this))||[],PA({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}});function tw(e,t,r={}){const{empty:i,ranges:a,from:o,to:u}=e.selection,d=t?Io(t,e.schema):null;if(i)return!!(e.storedMarks||e.selection.$from.marks()).filter(N=>d?d.name===N.type.name:!0).find(N=>Mu(N.attrs,r,{strict:!1}));let f=o,b=u;const E=[];a.forEach(({$from:N,$to:G})=>{const K=N.pos,ge=G.pos;f=Math.min(f,K),b=Math.max(f,ge),e.doc.nodesBetween(K,ge,(de,xe)=>{if(!de.isText&&!de.marks.length)return;const ae=Math.max(K,xe),Ve=Math.min(ge,xe+de.nodeSize);E.push(...de.marks.map(He=>({mark:He,from:ae,to:Ve})))})});const k=b-f;if(k===0)return!1;const x=E.filter(N=>d?d.name===N.mark.type.name:!0).filter(N=>Mu(N.mark.attrs,r,{strict:!1})).reduce((N,G)=>N+G.to-G.from,0),R=E.filter(N=>d?N.mark.type!==d&&N.mark.type.excludes(d):!0).reduce((N,G)=>N+G.to-G.from,0);return(x>0?x+R:x)>=k}function nw(e){var t;return!!((t=e.spec.group)!=null&&t.split(" ").includes("list"))}function rw(e,t,r={}){if(!t)return Xl(e,null,r)||tw(e,null,r);const i=e.schema.nodes[t];if(i){if(nw(i)){const a=Wd(o=>nw(o.type))(e.selection);return!!(a&&a.node.type.name===t)}return Xl(e,t,r)}return e.schema.marks[t]?tw(e,t,r):!1}function iw(e){return new Rc({find:e.find,handler:({state:t,range:r,match:i,commands:a})=>{const o=t.doc.resolve(r.from),u=ai(e.getAttributes,void 0,i)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),e.type))return null;t.tr.delete(r.from,r.to).setBlockType(r.from,r.from,e.type,u),setTimeout(()=>a.focus(!0),0)}})}const sw=[{name:"Auto",value:"auto"},{name:"Plain Text",value:"plaintext",alias:["text","txt"]},{name:"Bash",value:"bash",alias:["sh"]},{name:"BASIC",value:"basic",alias:[]},{name:"C",value:"c",alias:["h"]},{name:"Clojure",value:"clojure",alias:["clj","edn"]},{name:"CMake",value:"cmake",alias:["cmake.in"]},{name:"CoffeeScript",value:"coffeescript",alias:["coffee","cson","iced"]},{name:"C++",value:"cpp",alias:["cc","c++","h++","hpp","hh","hxx","cxx"]},{name:"C#",value:"csharp",alias:["cs","c#"]},{name:"CSS",value:"css",alias:[]},{name:"Dart",value:"dart",alias:[]},{name:"Delphi",value:"delphi",alias:["dpr","dfm","pas","pascal"]},{name:"Dockerfile",value:"dockerfile",alias:["docker"]},{name:"Erlang",value:"erlang",alias:["erl"]},{name:"Go",value:"go",alias:["golang"]},{name:"GraphQL",value:"graphql",alias:["gql"]},{name:"Groovy",value:"groovy",alias:[]},{name:"Java",value:"java",alias:["jsp"]},{name:"JavaScript",value:"javascript",alias:["js","jsx","mjs","cjs"]},{name:"JSON",value:"json",alias:[]},{name:"Kotlin",value:"kotlin",alias:["kt","kts"]},{name:"Lua",value:"lua",alias:[]},{name:"Makefile",value:"makefile",alias:["mk","mak","make"]},{name:"Markdown",value:"markdown",alias:["md","mkdown","mkd"]},{name:"Matlab",value:"matlab",alias:[]},{name:"Objective-C",value:"objectivec",alias:["mm","objc","obj-c","obj-c++","objective-c++"]},{name:"PHP",value:"php",alias:[]},{name:"Properties",value:"properties",alias:[]},{name:"Python",value:"python",alias:["py","gyp","ipython"]},{name:"Ruby",value:"ruby",alias:["rb","gemspec","podspec","thor","irb"]},{name:"Rust",value:"rust",alias:["rs"]},{name:"Scala",value:"scala",alias:[]},{name:"SCSS",value:"scss",alias:[]},{name:"Shell",value:"shell",alias:["console","shellsession"]},{name:"SQL",value:"sql",alias:[]},{name:"Swift",value:"swift",alias:[]},{name:"TypeScript",value:"typescript",alias:["ts","tsx"]},{name:"WebAssembly",value:"wasm",alias:[]},{name:"HTML, XML",value:"xml",alias:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"]},{name:"YAML",value:"yaml",alias:["yml"]}],aw=e=>{if(!e)return null;const t=e.toLocaleLowerCase();return sw.find(r=>r.value===t||r.alias&&r.alias.includes(t))};function ow(e,t){const{$from:r,from:i,to:a}=e,o=(t.textContent||"").split(` -`).reduce((k,x,R)=>(k[R]=(k[R-1]||0)+x.length+(R===0?0:1),k),{}),u=r.parentOffset,d=r.parentOffset+a-i,f=Object.keys(o),b=f.find(k=>o[k]>=u),E=f.find(k=>o[k]>=d);return{start:b,end:E}}const FA=/^[`·]{3}([a-z]+)?[\s\n]$/,BA=/^[~~]{3}([a-z]+)?[\s\n]$/,$A=iE.extend({addOptions(){var e;return _n(je({},(e=this.parent)==null?void 0:e.call(this)),{lowlight:{},defaultLanguage:null,languages:sw})},addCommands(){var e;return _n(je({},(e=this.parent)==null?void 0:e.call(this)),{addCodeComments:(t,r)=>({editor:i})=>{const{storage:a,view:{dispatch:o},state:{tr:u}}=i;o(u.setSelection(ct.create(i.state.doc,r)).deleteSelection());const d=a.markdown.serializer.serialize(t);return Ts.get(this.options.codeCommentsAi.model).chat(d,this.options.codeCommentsAi.prompt,new Ag(i,{markdownParseEnable:!0,useMarkdownTextOnly:!0})),!0},addCodeExplain:(t,r)=>({editor:i})=>{const{storage:a,view:{dispatch:o},state:{tr:u}}=i,d=i.state.doc.nodeSize;d<=r+t.nodeSize+2?(i.commands.insertContentAt(r+t.nodeSize+1,"

"),o(u.setSelection(Be.create(i.state.doc,d-2)))):o(u.setSelection(Be.create(i.state.doc,r+t.nodeSize+1)));const f=a.markdown.serializer.serialize(t),b=Ts.get(this.options.codeExplainAi.model);return b==null||b.chat(f,this.options.codeExplainAi.prompt,new Ag(i)),!0},toggleCodeBlock:t=>({commands:r,editor:i,chain:a})=>{const{state:o}=i,{from:u,to:d}=o.selection;if(!rw(o,this.name)&&!o.selection.empty){let f=!0;const b=[];if(o.doc.nodesBetween(u,d,(E,k)=>{if(E.isInline)return!1;if(E.type.name!=="paragraph")return k+1<=u&&k+E.nodeSize-1>=d?void 0:(f=!1,!1);{const x=(E.textContent||"").slice(k+1>u?0:u-k-1,k+E.nodeSize-11)return a().command(({state:E,tr:k})=>(k.replaceRangeWith(u,d,this.type.create(t,E.schema.text(b.join(` -`)))),!0)).setTextSelection({from:u+2,to:u+2}).run()}return r.toggleNode(this.name,"paragraph",t)}})},addKeyboardShortcuts(){var e;return _n(je({},(e=this.parent)==null?void 0:e.call(this)),{Tab:({editor:t})=>{const{state:r,view:i}=t;if(!rw(r,this.name))return!1;const{selection:a,tr:o}=r,u=" ";if(a.empty)i.dispatch(o.insertText(u));else{const{$from:d,from:f,to:b}=a,E=d.node();if(E.type!==this.type)return!1;const{start:k,end:x}=ow(a,E);if(k===void 0||x===void 0)return i.dispatch(o.replaceSelectionWith(r.schema.text(u))),!0;const R=(E.textContent||"").split(` -`).map((K,ge)=>ge>=k&&ge<=x&&K?u+K:K),N=d.node(1),G=d.start(1);o.replaceWith(G,G+N.nodeSize-2,r.schema.text(R.join(` -`))),o.setSelection(Be.between(o.doc.resolve(f+u.length),o.doc.resolve(b+(x-k+1)*u.length))),i.dispatch(o)}return!0}})},addInputRules(){return[iw({find:FA,type:this.type,getAttributes:e=>{var t;return{language:((t=aw(e[1]))==null?void 0:t.value)||this.options.defaultLanguage}}}),iw({find:BA,type:this.type,getAttributes:e=>{var t;return{language:((t=aw(e[1]))==null?void 0:t.value)||this.options.defaultLanguage}}})]},addNodeView(){return e=>{var t,r;const i=document.createElement("div");i.classList.add("aie-codeblock-wrapper");const{language:a}=e.node.attrs;if(!this.editor.isEditable)return i.innerHTML=` -
-
${a||this.options.defaultLanguage}
-
-
- `,{dom:i,contentDOM:i.querySelector("code")};i.innerHTML=` -
- ${this.options.codeCommentsAi?'
'+pi("codeblock-ai-auto-comment")+"
":""} - ${this.options.codeExplainAi?'
'+pi("codeblock-ai-code-explain")+"
":""} -
${a||this.options.defaultLanguage}
-
-
- `;const o=()=>{const d=document.createElement("div");return d.classList.add("aie-codeblock-langs"),d.innerHTML=` - ${this.options.languages.map(f=>`
${f.name}
`).join("")}`,d.addEventListener("click",f=>{const b=f.target.closest(".aie-codeblock-langs-item");if(b){const E=b.getAttribute("data-item");e.editor.chain().setCodeBlock({language:E}).run()}}),d},u=Fs(i.querySelector(".aie-codeblock-tools-lang"),{content:o(),appendTo:e.editor.options.element,placement:"bottom-end",trigger:"click",interactive:!0,arrow:!1,aria:{content:null,expanded:!1}});return(t=i.querySelector(".aie-codeblock-tools-comments"))==null||t.addEventListener("click",d=>{const f=e.editor.view.posAtCoords({left:d.clientX,top:d.clientY}),b=e.editor.state.doc.resolve(f.pos).parent;e.editor.chain().addCodeComments(b,f.pos)}),(r=i.querySelector(".aie-codeblock-tools-explain"))==null||r.addEventListener("click",d=>{const f=e.editor.view.posAtCoords({left:d.clientX,top:d.clientY}),b=e.editor.state.doc.resolve(f.pos).parent;e.editor.chain().addCodeExplain(b,f.pos)}),{dom:i,contentDOM:i.querySelector("code"),destroy:()=>{u.destroy()}}}}});function lw(e){const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="<[^<>]+>",u="(?!struct)("+i+"|"+t.optional(a)+"[a-zA-Z_]\\w*"+t.optional(o)+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},f="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",b={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+f+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},E={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},k={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(b,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:t.optional(a)+e.IDENT_RE,relevance:0},R=t.optional(a)+e.IDENT_RE+"\\s*\\(",N=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],G=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],K=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],ge=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],de={type:G,keyword:N,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:K},xe={className:"function.dispatch",relevance:0,keywords:{_hint:ge},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},ae=[xe,k,d,r,e.C_BLOCK_COMMENT_MODE,E,b],Ve={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:de,contains:ae.concat([{begin:/\(/,end:/\)/,keywords:de,contains:ae.concat(["self"]),relevance:0}]),relevance:0},He={className:"function",begin:"("+u+"[\\*&\\s]+)+"+R,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:de,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:de,relevance:0},{begin:R,returnBegin:!0,contains:[x],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,E]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:de,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,b,E,d,{begin:/\(/,end:/\)/,keywords:de,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,b,E,d]}]},d,r,e.C_BLOCK_COMMENT_MODE,k]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:de,illegal:"",keywords:de,contains:["self",d]},{begin:e.IDENT_RE+"::",keywords:de},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function UA(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=lw(e),i=r.keywords;return i.type=[...i.type,...t.type],i.literal=[...i.literal,...t.literal],i.built_in=[...i.built_in,...t.built_in],i._hints=t._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}function HA(e){const t=e.regex,r={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},u={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,a]};a.contains.push(u);const d={match:/\\"/},f={className:"string",begin:/'/,end:/'/},b={match:/\\'/},E={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,r]},k=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],x=e.SHEBANG({binary:`(${k.join("|")})`,relevance:10}),R={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},N=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],G=["true","false"],K={match:/(\/[a-z._-]+)+/},ge=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],de=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],xe=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],ae=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:N,literal:G,built_in:[...ge,...de,"set","shopt",...xe,...ae]},contains:[x,e.SHEBANG(),R,E,e.HASH_COMMENT_MODE,o,K,u,d,f,b,r]}}function zA(e){const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="<[^<>]+>",u="("+i+"|"+t.optional(a)+"[a-zA-Z_]\\w*"+t.optional(o)+")",d={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},f="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",b={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+f+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},E={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},k={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(b,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:t.optional(a)+e.IDENT_RE,relevance:0},R=t.optional(a)+e.IDENT_RE+"\\s*\\(",N={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},G=[k,d,r,e.C_BLOCK_COMMENT_MODE,E,b],K={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:N,contains:G.concat([{begin:/\(/,end:/\)/,keywords:N,contains:G.concat(["self"]),relevance:0}]),relevance:0},ge={begin:"("+u+"[\\*&\\s]+)+"+R,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:N,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:N,relevance:0},{begin:R,returnBegin:!0,contains:[e.inherit(x,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:N,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,b,E,d,{begin:/\(/,end:/\)/,keywords:N,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,b,E,d]}]},d,r,e.C_BLOCK_COMMENT_MODE,k]};return{name:"C",aliases:["h"],keywords:N,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:k,strings:b,keywords:N}}}function QA(e){const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="<[^<>]+>",u="(?!struct)("+i+"|"+t.optional(a)+"[a-zA-Z_]\\w*"+t.optional(o)+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},f="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",b={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+f+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},E={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},k={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(b,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},x={className:"title",begin:t.optional(a)+e.IDENT_RE,relevance:0},R=t.optional(a)+e.IDENT_RE+"\\s*\\(",N=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],G=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],K=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],ge=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],de={type:G,keyword:N,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:K},xe={className:"function.dispatch",relevance:0,keywords:{_hint:ge},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},ae=[xe,k,d,r,e.C_BLOCK_COMMENT_MODE,E,b],Ve={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:de,contains:ae.concat([{begin:/\(/,end:/\)/,keywords:de,contains:ae.concat(["self"]),relevance:0}]),relevance:0},He={className:"function",begin:"("+u+"[\\*&\\s]+)+"+R,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:de,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:de,relevance:0},{begin:R,returnBegin:!0,contains:[x],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,E]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:de,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,b,E,d,{begin:/\(/,end:/\)/,keywords:de,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,b,E,d]}]},d,r,e.C_BLOCK_COMMENT_MODE,k]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:de,illegal:"",keywords:de,contains:["self",d]},{begin:e.IDENT_RE+"::",keywords:de},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function VA(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],i=["default","false","null","true"],a=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],u={keyword:a.concat(o),built_in:t,literal:i},d=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),f={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},b={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},E=e.inherit(b,{illegal:/\n/}),k={className:"subst",begin:/\{/,end:/\}/,keywords:u},x=e.inherit(k,{illegal:/\n/}),R={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,x]},N={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},k]},G=e.inherit(N,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]});k.contains=[N,R,b,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,e.C_BLOCK_COMMENT_MODE],x.contains=[G,R,E,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const K={variants:[N,R,b,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},ge={begin:"<",end:">",contains:[{beginKeywords:"in out"},d]},de=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",xe={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:u,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},K,f,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},d,ge,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[d,ge,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+de+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:u,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,ge],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,relevance:0,contains:[K,f,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},xe]}}const jA=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),ZA=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],uw=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],cw=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],WA=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],GA=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function dw(e){const t=e.regex,r=jA(e),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},a="and or not only",o=/@-?\w[\w]*(-\w+)*/,u="[a-zA-Z-][a-zA-Z0-9_-]*",d=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,i,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+u,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+cw.join("|")+")"},{begin:":(:)?("+WA.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+GA.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...d,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:uw.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+ZA.join("|")+")\\b"}]}}function YA(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function hw(e){const t={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:t,illegal:"fw(e,t,r-1))}function XA(e){const t=e.regex,r="[\xC0-\u02B8a-zA-Z_$][\xC0-\u02B8a-zA-Z_$0-9]*",i=r+fw("(?:<"+r+"~~~(?:\\s*,\\s*"+r+"~~~)*>)?",/~~~/g,2),a={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},o={className:"meta",begin:"@"+r,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},u={className:"params",begin:/\(/,end:/\)/,keywords:a,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:a,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,r),/\s+/,r,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,r],className:{1:"keyword",3:"title.class"},contains:[u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+i+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:a,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:a,relevance:0,contains:[o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,pw,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},pw,o]}}const mw="[A-Za-z$_][0-9A-Za-z$_]*",KA=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],JA=["true","false","null","undefined","NaN","Infinity"],gw=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],bw=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ow=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],e_=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],yw=[].concat(Ow,gw,bw);function aE(e){const t=e.regex,r=(rt,{after:Lt})=>{const gn="",end:""},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(rt,Lt)=>{const gn=rt[0].length+rt.index,Vn=rt.input[gn];if(Vn==="<"||Vn===","){Lt.ignoreMatch();return}Vn===">"&&(r(rt,{after:gn})||Lt.ignoreMatch());let Rr;const Zr=rt.input.substring(gn);if(Rr=Zr.match(/^\s*=/)){Lt.ignoreMatch();return}if((Rr=Zr.match(/^\s+extends\s+/))&&Rr.index===0){Lt.ignoreMatch();return}}},d={$pattern:mw,keyword:KA,literal:JA,built_in:yw,"variable.language":e_},f="[0-9](_?[0-9])*",b=`\\.(${f})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",k={className:"number",variants:[{begin:`(\\b(${E})((${b})|\\.)?|(${b}))[eE][+-]?(${f})\\b`},{begin:`\\b(${E})\\b((${b})\\b|\\.)?|(${b})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},x={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},R={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"xml"}},N={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"css"}},G={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"graphql"}},K={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,x]},ge={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},de=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,R,N,G,K,{match:/\$\d+/},k];x.contains=de.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(de)});const xe=[].concat(ge,x.contains),ae=xe.concat([{begin:/\(/,end:/\)/,keywords:d,contains:["self"].concat(xe)}]),Ve={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:ae},He={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,t.concat(i,"(",t.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},_t={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...gw,...bw]}},rn={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},St={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[Ve],illegal:/%/},xn={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function tr(rt){return t.concat("(?!",rt.join("|"),")")}const Xn={match:t.concat(/\b/,tr([...Ow,"super","import"]),i,t.lookahead(/\(/)),className:"title.function",relevance:0},pr={begin:t.concat(/\./,t.lookahead(t.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Hr={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},Ve]},sr="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",$t={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(sr)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[Ve]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:ae,CLASS_REFERENCE:_t},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),rn,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,R,N,G,K,ge,{match:/\$\d+/},k,_t,{className:"attr",begin:i+t.lookahead(":"),relevance:0},$t,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[ge,e.REGEXP_MODE,{className:"function",begin:sr,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:ae}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:o},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},St,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[Ve,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},pr,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[Ve]},Xn,xn,He,Hr,{match:/\$[(.]/}]}}function t_(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],a={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",keywords:{literal:i},contains:[t,r,e.QUOTE_STRING_MODE,a,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Rh="[0-9](_*[0-9])*",Tf=`\\.(${Rh})`,g0="[0-9a-fA-F](_*[0-9a-fA-F])*",n_={className:"number",variants:[{begin:`(\\b(${Rh})((${Tf})|\\.)?|(${Tf}))[eE][+-]?(${Rh})[fFdD]?\\b`},{begin:`\\b(${Rh})((${Tf})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Tf})[fFdD]?\\b`},{begin:`\\b(${Rh})[fFdD]\\b`},{begin:`\\b0[xX]((${g0})\\.?|(${g0})?\\.(${g0}))[pP][+-]?(${Rh})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${g0})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function r_(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},r={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},i={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},a={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},u={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,a]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,a]}]};a.contains.push(u);const d={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},f={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(u,{className:"string"}),"self"]}]},b=n_,E=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),k={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},x=k;return x.variants[1].contains=[k],k.variants[1].contains=[x],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,E,r,i,d,f,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[k,e.C_LINE_COMMENT_MODE,E],relevance:0},e.C_LINE_COMMENT_MODE,E,d,f,u,e.C_NUMBER_MODE]},E]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},d,f]},u,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` -`},b]}}const i_=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),s_=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],a_=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Ew=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Sw=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o_=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),l_=Ew.concat(Sw);function u_(e){const t=i_(e),r=l_,i="and or not only",a="[\\w-]+",o="("+a+"|@\\{"+a+"\\})",u=[],d=[],f=function(xe){return{className:"string",begin:"~?"+xe+".*?"+xe}},b=function(xe,ae,Ve){return{className:xe,begin:ae,relevance:Ve}},E={$pattern:/[a-z-]+/,keyword:i,attribute:a_.join(" ")},k={begin:"\\(",end:"\\)",contains:d,keywords:E,relevance:0};d.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,f("'"),f('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,k,b("variable","@@?"+a,10),b("variable","@\\{"+a+"\\}"),b("built_in","~?`[^`]*?`"),{className:"attribute",begin:a+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const x=d.concat({begin:/\{/,end:/\}/,contains:u}),R={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(d)},N={begin:o+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o_.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:d}}]},G={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:E,returnEnd:!0,contains:d,relevance:0}},K={className:"variable",variants:[{begin:"@"+a+"\\s*:",relevance:15},{begin:"@"+a}],starts:{end:"[;}]",returnEnd:!0,contains:x}},ge={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,R,b("keyword","all\\b"),b("variable","@\\{"+a+"\\}"),{begin:"\\b("+s_.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,b("selector-tag",o,0),b("selector-id","#"+o),b("selector-class","\\."+o,0),b("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Ew.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Sw.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:x},{begin:"!important"},t.FUNCTION_DISPATCH]},de={begin:a+`:(:)?(${r.join("|")})`,returnBegin:!0,contains:[ge]};return u.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,G,K,de,N,ge,R,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:u}}function c_(e){const t="\\[=*\\[",r="\\]=*\\]",i={begin:t,end:r,contains:["self"]},a=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,r,{contains:[i],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:a.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:a}].concat(a)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:r,contains:[i],relevance:5}])}}function d_(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},a={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},u={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},d=/[A-Za-z][A-Za-z0-9+.-]*/,f={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,d,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},E={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},k=e.inherit(b,{contains:[]}),x=e.inherit(E,{contains:[]});b.contains.push(x),E.contains.push(k);let R=[r,f];return[b,E,k,x].forEach(N=>{N.contains=N.contains.concat(R)}),R=R.concat(b,E),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:R},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:R}]}]},r,o,b,E,{className:"quote",begin:"^>\\s+",contains:R,end:"$"},a,i,f,u]}}function p_(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,i={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},a={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:i,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+a.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:a,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function f_(e){const t=e.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],i=/[dualxmsipngr]{0,12}/,a={$pattern:/[\w.]+/,keyword:r.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:a},u={begin:/->\{/,end:/\}/},d={variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},f=[e.BACKSLASH_ESCAPE,o,d],b=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],E=(R,N,G="\\1")=>{const K=G==="\\1"?G:t.concat(G,N);return t.concat(t.concat("(?:",R,")"),N,/(?:\\.|[^\\\/])*?/,K,/(?:\\.|[^\\\/])*?/,G,i)},k=(R,N,G)=>t.concat(t.concat("(?:",R,")"),N,/(?:\\.|[^\\\/])*?/,G,i),x=[d,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),u,{className:"string",contains:f,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:E("s|tr|y",t.either(...b,{capture:!0}))},{begin:E("s|tr|y","\\(","\\)")},{begin:E("s|tr|y","\\[","\\]")},{begin:E("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:k("(?:m|qr)?",/\//,/\//)},{begin:k("m|qr",t.either(...b,{capture:!0}),/\1/)},{begin:k("m|qr",/\(/,/\)/)},{begin:k("m|qr",/\[/,/\]/)},{begin:k("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=x,u.contains=x,{name:"Perl",aliases:["pl","pm"],keywords:a,contains:x}}function m_(e){const t=e.regex,r=/(?![A-Za-z0-9])(?![$])/,i=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),a=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),o={scope:"variable",match:"\\$+"+i},u={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},d={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},f=e.inherit(e.APOS_STRING_MODE,{illegal:null}),b=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(d)}),E={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(d),"on:begin":(Xn,pr)=>{pr.data._beginMatch=Xn[1]||Xn[2]},"on:end":(Xn,pr)=>{pr.data._beginMatch!==Xn[1]&&pr.ignoreMatch()}},k=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),x=`[ -]`,R={scope:"string",variants:[b,f,E,k]},N={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},G=["false","null","true"],K=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],ge=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],de={keyword:K,literal:(Xn=>{const pr=[];return Xn.forEach(Hr=>{pr.push(Hr),Hr.toLowerCase()===Hr?pr.push(Hr.toUpperCase()):pr.push(Hr.toLowerCase())}),pr})(G),built_in:ge},xe=Xn=>Xn.map(pr=>pr.replace(/\|\d+$/,"")),ae={variants:[{match:[/new/,t.concat(x,"+"),t.concat("(?!",xe(ge).join("\\b|"),"\\b)"),a],scope:{1:"keyword",4:"title.class"}}]},Ve=t.concat(i,"\\b(?!\\()"),He={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),Ve],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[a,t.concat(/::/,t.lookahead(/(?!class\b)/)),Ve],scope:{1:"title.class",3:"variable.constant"}},{match:[a,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[a,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},_t={scope:"attr",match:t.concat(i,t.lookahead(":"),t.lookahead(/(?!::)/))},rn={relevance:0,begin:/\(/,end:/\)/,keywords:de,contains:[_t,o,He,e.C_BLOCK_COMMENT_MODE,R,N,ae]},St={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",xe(K).join("\\b|"),"|",xe(ge).join("\\b|"),"\\b)"),i,t.concat(x,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[rn]};rn.contains.push(St);const xn=[_t,He,e.C_BLOCK_COMMENT_MODE,R,N,ae],tr={begin:t.concat(/#\[\s*/,a),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:G,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:G,keyword:["new","array"]},contains:["self",...xn]},...xn,{scope:"meta",match:a}]};return{case_insensitive:!1,keywords:de,contains:[tr,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},u,{scope:"variable.language",match:/\$this\b/},o,St,He,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},ae,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:de,contains:["self",o,He,e.C_BLOCK_COMMENT_MODE,R,N]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},R,N]}}function g_(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function b_(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function O_(e){const t=e.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],a={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},o={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:a,illegal:/#/},d={begin:/\{\{/,relevance:0},f={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o,d,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o,d,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,d,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,d,u]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},b="[0-9](_?[0-9])*",E=`(\\b(${b}))?\\.(${b})|\\b(${b})\\.`,k=`\\b|${i.join("|")}`,x={className:"number",relevance:0,variants:[{begin:`(\\b(${b})|(${E}))[eE][+-]?(${b})[jJ]?(?=${k})`},{begin:`(${E})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${k})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${k})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${k})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${k})`},{begin:`\\b(${b})[jJ](?=${k})`}]},R={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:a,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},N={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:["self",o,x,f,e.HASH_COMMENT_MODE]}]};return u.contains=[f,x,o],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:a,illegal:/(<\/|\?)|=>/,contains:[o,x,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},f,R,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[N]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[x,N,f]}]}}function y_(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function E_(e){const t=e.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),a=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[a,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[o,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:a},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function vw(e){const t=e.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),a=t.concat(i,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield","include","extend","prepend","public","private","protected","raise","throw"],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},u={className:"doctag",begin:"@[A-Za-z]+"},d={begin:"#<",end:">"},f=[e.COMMENT("#","$",{contains:[u]}),e.COMMENT("^=begin","^=end",{contains:[u],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],b={className:"subst",begin:/#\{/,end:/\}/,keywords:o},E={className:"string",contains:[e.BACKSLASH_ESCAPE,b],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,b]})]}]},k="[1-9](_?[0-9])*|0",x="[0-9](_?[0-9])*",R={className:"number",relevance:0,variants:[{begin:`\\b(${k})(\\.(${x}))?([eE][+-]?(${x})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},N={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},G=[E,{variants:[{match:[/class\s+/,a,/\s+<\s+/,a]},{match:[/\b(class|module)\s+/,a]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,a],scope:{2:"title.class"},keywords:o},{relevance:0,match:[a,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[N]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[E,{begin:r}],relevance:0},R,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,b],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(d,f),relevance:0}].concat(d,f);b.contains=G,N.contains=G;const K="[>?]>",ge="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",de="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",xe=[{begin:/^\s*=>/,starts:{end:"$",contains:G}},{className:"meta.prompt",begin:"^("+K+"|"+ge+"|"+de+")(?=[ ])",starts:{end:"$",keywords:o,contains:G}}];return f.unshift(d),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(xe).concat(f).concat(G)}}function S_(e){const t=e.regex,r={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))},i="([ui](8|16|32|64|128|size)|f(32|64))?",a=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],o=["true","false","Some","None","Ok","Err"],u=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],d=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:d,keyword:a,literal:o,built_in:u},illegal:""},r]}}const kw=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),v_=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],k_=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],w_=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],oE=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],ww=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function x_(e){const t=kw(e),r=oE,i=w_,a="@[a-z-]+",o="and or not only",u={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+v_.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+r.join("|")+")"},u,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ww.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,u,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:a,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:k_.join(" ")},contains:[{begin:a,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},u,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function T_(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function Ku(e){const t=e.regex,r=e.COMMENT("--","$"),i={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},a={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["true","false","unknown"],u=["double precision","large object","with timezone","without timezone"],d=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],f=["add","asc","collation","desc","final","first","last","view"],b=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],E=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],k=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],x=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],R=E,N=[...b,...f].filter(xe=>!E.includes(xe)),G={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},K={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},ge={begin:t.concat(/\b/,t.either(...R),/\s*\(/),relevance:0,keywords:{built_in:R}};function de(xe,{exceptions:ae,when:Ve}={}){const He=Ve;return ae=ae||[],xe.map(_t=>_t.match(/\|\d+$/)||ae.includes(_t)?_t:He(_t)?`${_t}|0`:_t)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:de(N,{when:xe=>xe.length<3}),literal:o,type:d,built_in:k},contains:[{begin:t.either(...x),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:N.concat(x),literal:o,type:d}},{className:"type",begin:t.either(...u)},ge,G,i,a,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,K]}}function lE(e){return e?typeof e=="string"?e:e.source:null}function b0(e){return Li("(?=",e,")")}function Li(...e){return e.map(t=>lE(t)).join("")}function C_(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function eo(...e){return"("+(C_(e).capture?"":"?:")+e.map(t=>lE(t)).join("|")+")"}const O0=e=>Li(/\b/,e,/\w$/.test(e)?/\b/:/\B/),pI=["Protocol","Type"].map(O0),A_=["init","self"].map(O0),fI=["Any","Self"],xw=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],__=["false","nil","true"],mI=["assignment","associativity","higherThan","left","lowerThan","none","right"],gI=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],N_=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],R_=eo(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),D_=eo(R_,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Ol=Li(R_,D_,"*"),I_=eo(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),yl=eo(I_,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),cu=Li(I_,yl,"*"),uE=Li(/[A-Z]/,yl,"*"),L_=["attached","autoclosure",Li(/convention\(/,eo("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Li(/objc\(/,cu,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],M_=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function P_(e){const t={match:/\s+/,relevance:0},r=e.COMMENT("/\\*","\\*/",{contains:["self"]}),i=[e.C_LINE_COMMENT_MODE,r],a={match:[/\./,eo(...pI,...A_)],className:{2:"keyword"}},o={match:Li(/\./,eo(...xw)),relevance:0},u=xw.filter(vi=>typeof vi=="string").concat(["_|0"]),d=xw.filter(vi=>typeof vi!="string").concat(fI).map(O0),f={variants:[{className:"keyword",match:eo(...d,...A_)}]},b={$pattern:eo(/\b\w+/,/#\w+/),keyword:u.concat(gI),literal:__},E=[a,o,f],k={match:Li(/\./,eo(...N_)),relevance:0},x={className:"built_in",match:Li(/\b/,eo(...N_),/(?=\()/)},R=[k,x],N={match:/->/,relevance:0},G={className:"operator",relevance:0,variants:[{match:Ol},{match:`\\.(\\.|${D_})+`}]},K=[N,G],ge="([0-9]_*)+",de="([0-9a-fA-F]_*)+",xe={className:"number",relevance:0,variants:[{match:`\\b(${ge})(\\.(${ge}))?([eE][+-]?(${ge}))?\\b`},{match:`\\b0x(${de})(\\.(${de}))?([pP][+-]?(${ge}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},ae=(vi="")=>({className:"subst",variants:[{match:Li(/\\/,vi,/[0\\tnr"']/)},{match:Li(/\\/,vi,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Ve=(vi="")=>({className:"subst",match:Li(/\\/,vi,/[\t ]*(?:[\r\n]|\r\n)/)}),He=(vi="")=>({className:"subst",label:"interpol",begin:Li(/\\/,vi,/\(/),end:/\)/}),_t=(vi="")=>({begin:Li(vi,/"""/),end:Li(/"""/,vi),contains:[ae(vi),Ve(vi),He(vi)]}),rn=(vi="")=>({begin:Li(vi,/"/),end:Li(/"/,vi),contains:[ae(vi),He(vi)]}),St={className:"string",variants:[_t(),_t("#"),_t("##"),_t("###"),rn(),rn("#"),rn("##"),rn("###")]},xn=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],tr={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:xn},Xn=vi=>{const Es=Li(vi,/\//),io=Li(/\//,vi);return{begin:Es,end:io,contains:[...xn,{scope:"comment",begin:`#(?!.*${io})`,end:/$/}]}},pr={scope:"regexp",variants:[Xn("###"),Xn("##"),Xn("#"),tr]},Hr={match:Li(/`/,cu,/`/)},sr={className:"variable",match:/\$\d+/},$t={className:"variable",match:`\\$${yl}+`},rt=[Hr,sr,$t],Lt={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:M_,contains:[...K,xe,St]}]}},gn={scope:"keyword",match:Li(/@/,eo(...L_))},Vn={scope:"meta",match:Li(/@/,cu)},Rr=[Lt,gn,Vn],Zr={match:b0(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Li(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,yl,"+")},{className:"type",match:uE,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Li(/\s+&\s+/,b0(uE)),relevance:0}]},Wi={begin://,keywords:b,contains:[...i,...E,...Rr,N,Zr]};Zr.contains.push(Wi);const Pi={match:Li(cu,/\s*:/),keywords:"_|0",relevance:0},yi={begin:/\(/,end:/\)/,relevance:0,keywords:b,contains:["self",Pi,...i,pr,...E,...R,...K,xe,St,...rt,...Rr,Zr]},ss={begin://,keywords:"repeat each",contains:[...i,Zr]},ro={begin:eo(b0(Li(cu,/\s*:/)),b0(Li(cu,/\s+/,cu,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:cu}]},za={begin:/\(/,end:/\)/,keywords:b,contains:[ro,...i,...E,...K,xe,St,...Rr,Zr,yi],endsParent:!0,illegal:/["']/},mu={match:[/(func|macro)/,/\s+/,eo(Hr.match,cu,Ol)],className:{1:"keyword",3:"title.function"},contains:[ss,za,t],illegal:[/\[/,/%/]},Oo={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ss,za,t],illegal:/\[|%/},wl={match:[/operator/,/\s+/,Ol],className:{1:"keyword",3:"title"}},Zo={begin:[/precedencegroup/,/\s+/,uE],className:{1:"keyword",3:"title"},contains:[Zr],keywords:[...mI,...__],end:/}/};for(const vi of St.variants){const Es=vi.contains.find(Ns=>Ns.label==="interpol");Es.keywords=b;const io=[...E,...R,...K,xe,St,...rt];Es.contains=[...io,{begin:/\(/,end:/\)/,contains:["self",...io]}]}return{name:"Swift",keywords:b,contains:[...i,mu,Oo,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:b,contains:[e.inherit(e.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...E]},wl,Zo,{beginKeywords:"import",end:/$/,contains:[...i],relevance:0},pr,...E,...R,...K,xe,St,...rt,...Rr,Zr,yi]}}const y0="[A-Za-z$_][0-9A-Za-z$_]*",Tw=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Cw=["true","false","null","undefined","NaN","Infinity"],Aw=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],_w=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Nw=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],cE=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Rw=[].concat(Nw,Aw,_w);function F_(e){const t=e.regex,r=(rt,{after:Lt})=>{const gn="",end:""},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(rt,Lt)=>{const gn=rt[0].length+rt.index,Vn=rt.input[gn];if(Vn==="<"||Vn===","){Lt.ignoreMatch();return}Vn===">"&&(r(rt,{after:gn})||Lt.ignoreMatch());let Rr;const Zr=rt.input.substring(gn);if(Rr=Zr.match(/^\s*=/)){Lt.ignoreMatch();return}if((Rr=Zr.match(/^\s+extends\s+/))&&Rr.index===0){Lt.ignoreMatch();return}}},d={$pattern:y0,keyword:Tw,literal:Cw,built_in:Rw,"variable.language":cE},f="[0-9](_?[0-9])*",b=`\\.(${f})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",k={className:"number",variants:[{begin:`(\\b(${E})((${b})|\\.)?|(${b}))[eE][+-]?(${f})\\b`},{begin:`\\b(${E})\\b((${b})\\b|\\.)?|(${b})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},x={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},R={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"xml"}},N={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"css"}},G={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"graphql"}},K={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,x]},ge={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},de=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,R,N,G,K,{match:/\$\d+/},k];x.contains=de.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(de)});const xe=[].concat(ge,x.contains),ae=xe.concat([{begin:/\(/,end:/\)/,keywords:d,contains:["self"].concat(xe)}]),Ve={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:ae},He={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,t.concat(i,"(",t.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},_t={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Aw,..._w]}},rn={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},St={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[Ve],illegal:/%/},xn={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function tr(rt){return t.concat("(?!",rt.join("|"),")")}const Xn={match:t.concat(/\b/,tr([...Nw,"super","import"]),i,t.lookahead(/\(/)),className:"title.function",relevance:0},pr={begin:t.concat(/\./,t.lookahead(t.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Hr={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},Ve]},sr="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",$t={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(sr)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[Ve]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:ae,CLASS_REFERENCE:_t},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),rn,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,R,N,G,K,ge,{match:/\$\d+/},k,_t,{className:"attr",begin:i+t.lookahead(":"),relevance:0},$t,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[ge,e.REGEXP_MODE,{className:"function",begin:sr,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:ae}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:o},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},St,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[Ve,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},pr,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[Ve]},Xn,xn,He,Hr,{match:/\$[(.]/}]}}function B_(e){const t=F_(e),r=y0,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[t.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[t.exports.CLASS_REFERENCE]},u={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},d=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],f={$pattern:y0,keyword:Tw.concat(d),literal:Cw,built_in:Rw.concat(i),"variable.language":cE},b={className:"meta",begin:"@"+r},E=(x,R,N)=>{const G=x.contains.findIndex(K=>K.label===R);if(G===-1)throw new Error("can not find mode to replace");x.contains.splice(G,1,N)};Object.assign(t.keywords,f),t.exports.PARAMS_CONTAINS.push(b),t.contains=t.contains.concat([b,a,o]),E(t,"shebang",e.SHEBANG()),E(t,"use_strict",u);const k=t.contains.find(x=>x.label==="func.def");return k.relevance=0,Object.assign(t,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),t}function $_(e){const t=e.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},i={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},a=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,u=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,d=/\d{1,2}(:\d{1,2}){1,2}/,f={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,a),/ *#/)},{begin:t.concat(/# */,d,/ *#/)},{begin:t.concat(/# */,u,/ *#/)},{begin:t.concat(/# */,t.either(o,a),/ +/,t.either(u,d),/ *#/)}]},b={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},E={className:"label",begin:/^\w+:/},k=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),x=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,i,f,b,E,k,x,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[x]}]}}function U_(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const r=e.COMMENT(/;;/,/$/),i=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],a={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},u={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},d={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},f={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},b={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:i},contains:[r,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,u,a,e.QUOTE_STRING_MODE,f,b,d]}}function H_(e){const t=e.regex,r=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},u=e.inherit(o,{begin:/\(/,end:/\)/}),d=e.inherit(e.APOS_STRING_MODE,{className:"string"}),f=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),b={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[o,f,d,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[o,u,f,d]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:b}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function z_(e){const t="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},a={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,a]},u=e.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),d="[0-9]{4}(-[0-9][0-9]){0,2}",f="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",b="(\\.[0-9]*)?",E="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",k={className:"number",begin:"\\b"+d+f+b+E+"\\b"},x={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},R={begin:/\{/,end:/\}/,contains:[x],illegal:"\\n",relevance:0},N={begin:"\\[",end:"\\]",contains:[x],illegal:"\\n",relevance:0},G=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},k,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},R,N,o],K=[...G];return K.pop(),K.push(u),x.contains=K,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:G}}const Dw={arduino:UA,bash:HA,c:zA,cpp:QA,csharp:VA,css:dw,diff:YA,go:hw,graphql:qA,ini:sE,java:XA,javascript:aE,json:t_,kotlin:r_,less:u_,lua:c_,makefile:d_,markdown:h_,objectivec:p_,perl:f_,php:m_,"php-template":g_,plaintext:b_,python:O_,"python-repl":y_,r:E_,ruby:vw,rust:S_,scss:x_,shell:T_,sql:Ku,swift:P_,typescript:B_,vbnet:$_,wasm:U_,xml:H_,yaml:z_};function Iw(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const r=e[t],i=typeof r;(i==="object"||i==="function")&&!Object.isFrozen(r)&&Iw(r)}),e}class Lw{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Mw(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Ju(e,...t){const r=Object.create(null);for(const i in e)r[i]=e[i];return t.forEach(function(i){for(const a in i)r[a]=i[a]}),r}const Q_="
",Pw=e=>!!e.scope,V_=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const r=e.split(".");return[`${t}${r.shift()}`,...r.map((i,a)=>`${i}${"_".repeat(a+1)}`)].join(" ")}return`${t}${e}`};class j_{constructor(t,r){this.buffer="",this.classPrefix=r.classPrefix,t.walk(this)}addText(t){this.buffer+=Mw(t)}openNode(t){if(!Pw(t))return;const r=V_(t.scope,{prefix:this.classPrefix});this.span(r)}closeNode(t){Pw(t)&&(this.buffer+=Q_)}value(){return this.buffer}span(t){this.buffer+=``}}const Fw=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class dE{constructor(){this.rootNode=Fw(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const r=Fw({scope:t});this.add(r),this.stack.push(r)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,r){return typeof r=="string"?t.addText(r):r.children&&(t.openNode(r),r.children.forEach(i=>this._walk(t,i)),t.closeNode(r)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(r=>typeof r=="string")?t.children=[t.children.join("")]:t.children.forEach(r=>{dE._collapse(r)}))}}class Z_ extends dE{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,r){const i=t.root;r&&(i.scope=`language:${r}`),this.add(i)}toHTML(){return new j_(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function ec(e){return e?typeof e=="string"?e:e.source:null}function E0(e){return nd("(?=",e,")")}function W_(e){return nd("(?:",e,")*")}function G_(e){return nd("(?:",e,")?")}function nd(...e){return e.map(t=>ec(t)).join("")}function Y_(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function hE(...e){return"("+(Y_(e).capture?"":"?:")+e.map(t=>ec(t)).join("|")+")"}function Bw(e){return new RegExp(e.toString()+"|").exec("").length-1}function $w(e,t){const r=e&&e.exec(t);return r&&r.index===0}const Uw=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function pE(e,{joinWith:t}){let r=0;return e.map(i=>{r+=1;const a=r;let o=ec(i),u="";for(;o.length>0;){const d=Uw.exec(o);if(!d){u+=o;break}u+=o.substring(0,d.index),o=o.substring(d.index+d[0].length),d[0][0]==="\\"&&d[1]?u+="\\"+String(Number(d[1])+a):(u+=d[0],d[0]==="("&&r++)}return u}).map(i=>`(${i})`).join(t)}const Hw=/\b\B/,S0="[a-zA-Z]\\w*",Cf="[a-zA-Z_]\\w*",zw="\\b\\d+(\\.\\d+)?",zo="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Qw="\\b(0b[01]+)",q_="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",X_=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=nd(t,/.*\b/,e.binary,/\b.*/)),Ju({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(r,i)=>{r.index!==0&&i.ignoreMatch()}},e)},Af={begin:"\\\\[\\s\\S]",relevance:0},K_={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Af]},J_={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Af]},_f={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},v0=function(e,t,r={}){const i=Ju({scope:"comment",begin:e,end:t,contains:[]},r);i.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const a=hE("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return i.contains.push({begin:nd(/[ ]+/,"(",a,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},eN=v0("//","$"),fE=v0("/\\*","\\*/"),tN=v0("#","$"),nN={scope:"number",begin:zw,relevance:0},mE={scope:"number",begin:zo,relevance:0},Vw={scope:"number",begin:Qw,relevance:0},gE={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Af,{begin:/\[/,end:/\]/,relevance:0,contains:[Af]}]},bE={scope:"title",begin:S0,relevance:0},jw={scope:"title",begin:Cf,relevance:0},rN={begin:"\\.\\s*"+Cf,relevance:0};var k0=Object.freeze({__proto__:null,APOS_STRING_MODE:K_,BACKSLASH_ESCAPE:Af,BINARY_NUMBER_MODE:Vw,BINARY_NUMBER_RE:Qw,COMMENT:v0,C_BLOCK_COMMENT_MODE:fE,C_LINE_COMMENT_MODE:eN,C_NUMBER_MODE:mE,C_NUMBER_RE:zo,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,r)=>{r.data._beginMatch=t[1]},"on:end":(t,r)=>{r.data._beginMatch!==t[1]&&r.ignoreMatch()}})},HASH_COMMENT_MODE:tN,IDENT_RE:S0,MATCH_NOTHING_RE:Hw,METHOD_GUARD:rN,NUMBER_MODE:nN,NUMBER_RE:zw,PHRASAL_WORDS_MODE:_f,QUOTE_STRING_MODE:J_,REGEXP_MODE:gE,RE_STARTERS_RE:q_,SHEBANG:X_,TITLE_MODE:bE,UNDERSCORE_IDENT_RE:Cf,UNDERSCORE_TITLE_MODE:jw});function OE(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function iN(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function yE(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=OE,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function EE(e,t){Array.isArray(e.illegal)&&(e.illegal=hE(...e.illegal))}function SE(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Zw(e,t){e.relevance===void 0&&(e.relevance=1)}const Ww=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const r=Object.assign({},e);Object.keys(e).forEach(i=>{delete e[i]}),e.keywords=r.keywords,e.begin=nd(r.beforeMatch,E0(r.begin)),e.starts={relevance:0,contains:[Object.assign(r,{endsParent:!0})]},e.relevance=0,delete r.beforeMatch},w0=["of","and","for","in","not","or","if","then","parent","list","value"],sN="keyword";function Gw(e,t,r=sN){const i=Object.create(null);return typeof e=="string"?a(r,e.split(" ")):Array.isArray(e)?a(r,e):Object.keys(e).forEach(function(o){Object.assign(i,Gw(e[o],t,o))}),i;function a(o,u){t&&(u=u.map(d=>d.toLowerCase())),u.forEach(function(d){const f=d.split("|");i[f[0]]=[o,aN(f[0],f[1])]})}}function aN(e,t){return t?Number(t):oN(e)?0:1}function oN(e){return w0.includes(e.toLowerCase())}const vE={},tc=e=>{console.error(e)},Yw=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Dh=(e,t)=>{vE[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),vE[`${e}/${t}`]=!0)},x0=new Error;function qw(e,t,{key:r}){let i=0;const a=e[r],o={},u={};for(let d=1;d<=t.length;d++)u[d+i]=a[d],o[d+i]=!0,i+=Bw(t[d-1]);e[r]=u,e[r]._emit=o,e[r]._multi=!0}function Xw(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw tc("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),x0;if(typeof e.beginScope!="object"||e.beginScope===null)throw tc("beginScope must be object"),x0;qw(e,e.begin,{key:"beginScope"}),e.begin=pE(e.begin,{joinWith:""})}}function Nf(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw tc("skip, excludeEnd, returnEnd not compatible with endScope: {}"),x0;if(typeof e.endScope!="object"||e.endScope===null)throw tc("endScope must be object"),x0;qw(e,e.end,{key:"endScope"}),e.end=pE(e.end,{joinWith:""})}}function kE(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function OI(e){kE(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Xw(e),Nf(e)}function lN(e){function t(u,d){return new RegExp(ec(u),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(d?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(d,f){f.position=this.position++,this.matchIndexes[this.matchAt]=f,this.regexes.push([f,d]),this.matchAt+=Bw(d)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const d=this.regexes.map(f=>f[1]);this.matcherRe=t(pE(d,{joinWith:"|"}),!0),this.lastIndex=0}exec(d){this.matcherRe.lastIndex=this.lastIndex;const f=this.matcherRe.exec(d);if(!f)return null;const b=f.findIndex((k,x)=>x>0&&k!==void 0),E=this.matchIndexes[b];return f.splice(0,b),Object.assign(f,E)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(d){if(this.multiRegexes[d])return this.multiRegexes[d];const f=new r;return this.rules.slice(d).forEach(([b,E])=>f.addRule(b,E)),f.compile(),this.multiRegexes[d]=f,f}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(d,f){this.rules.push([d,f]),f.type==="begin"&&this.count++}exec(d){const f=this.getMatcher(this.regexIndex);f.lastIndex=this.lastIndex;let b=f.exec(d);if(this.resumingScanAtSamePosition()&&!(b&&b.index===this.lastIndex)){const E=this.getMatcher(0);E.lastIndex=this.lastIndex+1,b=E.exec(d)}return b&&(this.regexIndex+=b.position+1,this.regexIndex===this.count&&this.considerAll()),b}}function a(u){const d=new i;return u.contains.forEach(f=>d.addRule(f.begin,{rule:f,type:"begin"})),u.terminatorEnd&&d.addRule(u.terminatorEnd,{type:"end"}),u.illegal&&d.addRule(u.illegal,{type:"illegal"}),d}function o(u,d){const f=u;if(u.isCompiled)return f;[iN,SE,OI,Ww].forEach(E=>E(u,d)),e.compilerExtensions.forEach(E=>E(u,d)),u.__beforeBegin=null,[yE,EE,Zw].forEach(E=>E(u,d)),u.isCompiled=!0;let b=null;return typeof u.keywords=="object"&&u.keywords.$pattern&&(u.keywords=Object.assign({},u.keywords),b=u.keywords.$pattern,delete u.keywords.$pattern),b=b||/\w+/,u.keywords&&(u.keywords=Gw(u.keywords,e.case_insensitive)),f.keywordPatternRe=t(b,!0),d&&(u.begin||(u.begin=/\B|\b/),f.beginRe=t(f.begin),!u.end&&!u.endsWithParent&&(u.end=/\B|\b/),u.end&&(f.endRe=t(f.end)),f.terminatorEnd=ec(f.end)||"",u.endsWithParent&&d.terminatorEnd&&(f.terminatorEnd+=(u.end?"|":"")+d.terminatorEnd)),u.illegal&&(f.illegalRe=t(u.illegal)),u.contains||(u.contains=[]),u.contains=[].concat(...u.contains.map(function(E){return yI(E==="self"?u:E)})),u.contains.forEach(function(E){o(E,f)}),u.starts&&o(u.starts,d),f.matcher=a(f),f}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Ju(e.classNameAliases||{}),o(e)}function uN(e){return e?e.endsWithParent||uN(e.starts):!1}function yI(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Ju(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:uN(e)?Ju(e,{starts:e.starts?Ju(e.starts):null}):Object.isFrozen(e)?Ju(e):e}var EI="11.9.0";class Ih extends Error{constructor(t,r){super(t),this.name="HTMLInjectionError",this.html=r}}const ma=Mw,El=Ju,Rf=Symbol("nomatch"),rd=7,du=function(e){const t=Object.create(null),r=Object.create(null),i=[];let a=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",u={disableAutodetect:!0,name:"Plain text",contains:[]};let d={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Z_};function f(rt){return d.noHighlightRe.test(rt)}function b(rt){let Lt=rt.className+" ";Lt+=rt.parentNode?rt.parentNode.className:"";const gn=d.languageDetectRe.exec(Lt);if(gn){const Vn=St(gn[1]);return Vn||(Yw(o.replace("{}",gn[1])),Yw("Falling back to no-highlight mode for this block.",rt)),Vn?gn[1]:"no-highlight"}return Lt.split(/\s+/).find(Vn=>f(Vn)||St(Vn))}function E(rt,Lt,gn){let Vn="",Rr="";typeof Lt=="object"?(Vn=rt,gn=Lt.ignoreIllegals,Rr=Lt.language):(Dh("10.7.0","highlight(lang, code, ...args) has been deprecated."),Dh("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),Rr=rt,Vn=Lt),gn===void 0&&(gn=!0);const Zr={code:Vn,language:Rr};sr("before:highlight",Zr);const Wi=Zr.result?Zr.result:k(Zr.language,Zr.code,gn);return Wi.code=Zr.code,sr("after:highlight",Wi),Wi}function k(rt,Lt,gn,Vn){const Rr=Object.create(null);function Zr(qt,wn){return qt.keywords[wn]}function Wi(){if(!dr.keywords){Fi.addText(gi);return}let qt=0;dr.keywordPatternRe.lastIndex=0;let wn=dr.keywordPatternRe.exec(gi),Dr="";for(;wn;){Dr+=gi.substring(qt,wn.index);const mi=Ns.case_insensitive?wn[0].toLowerCase():wn[0],Js=Zr(dr,mi);if(Js){const[Wo,QD]=Js;if(Fi.addText(Dr),Dr="",Rr[mi]=(Rr[mi]||0)+1,Rr[mi]<=rd&&(Qa+=QD),Wo.startsWith("_"))Dr+=wn[0];else{const Gt=Ns.classNameAliases[Wo]||Wo;ss(wn[0],Gt)}}else Dr+=wn[0];qt=dr.keywordPatternRe.lastIndex,wn=dr.keywordPatternRe.exec(gi)}Dr+=gi.substring(qt),Fi.addText(Dr)}function Pi(){if(gi==="")return;let qt=null;if(typeof dr.subLanguage=="string"){if(!t[dr.subLanguage]){Fi.addText(gi);return}qt=k(dr.subLanguage,gi,!0,Ei[dr.subLanguage]),Ei[dr.subLanguage]=qt._top}else qt=R(gi,dr.subLanguage.length?dr.subLanguage:null);dr.relevance>0&&(Qa+=qt.relevance),Fi.__addSublanguage(qt._emitter,qt.language)}function yi(){dr.subLanguage!=null?Pi():Wi(),gi=""}function ss(qt,wn){qt!==""&&(Fi.startScope(wn),Fi.addText(qt),Fi.endScope())}function ro(qt,wn){let Dr=1;const mi=wn.length-1;for(;Dr<=mi;){if(!qt._emit[Dr]){Dr++;continue}const Js=Ns.classNameAliases[qt[Dr]]||qt[Dr],Wo=wn[Dr];Js?ss(Wo,Js):(gi=Wo,Wi(),gi=""),Dr++}}function za(qt,wn){return qt.scope&&typeof qt.scope=="string"&&Fi.openNode(Ns.classNameAliases[qt.scope]||qt.scope),qt.beginScope&&(qt.beginScope._wrap?(ss(gi,Ns.classNameAliases[qt.beginScope._wrap]||qt.beginScope._wrap),gi=""):qt.beginScope._multi&&(ro(qt.beginScope,wn),gi="")),dr=Object.create(qt,{parent:{value:dr}}),dr}function mu(qt,wn,Dr){let mi=$w(qt.endRe,Dr);if(mi){if(qt["on:end"]){const Js=new Lw(qt);qt["on:end"](wn,Js),Js.isMatchIgnored&&(mi=!1)}if(mi){for(;qt.endsParent&&qt.parent;)qt=qt.parent;return qt}}if(qt.endsWithParent)return mu(qt.parent,wn,Dr)}function Oo(qt){return dr.matcher.regexIndex===0?(gi+=qt[0],1):(Or=!0,0)}function wl(qt){const wn=qt[0],Dr=qt.rule,mi=new Lw(Dr),Js=[Dr.__beforeBegin,Dr["on:begin"]];for(const Wo of Js)if(Wo&&(Wo(qt,mi),mi.isMatchIgnored))return Oo(wn);return Dr.skip?gi+=wn:(Dr.excludeBegin&&(gi+=wn),yi(),!Dr.returnBegin&&!Dr.excludeBegin&&(gi=wn)),za(Dr,qt),Dr.returnBegin?0:wn.length}function Zo(qt){const wn=qt[0],Dr=Lt.substring(qt.index),mi=mu(dr,qt,Dr);if(!mi)return Rf;const Js=dr;dr.endScope&&dr.endScope._wrap?(yi(),ss(wn,dr.endScope._wrap)):dr.endScope&&dr.endScope._multi?(yi(),ro(dr.endScope,qt)):Js.skip?gi+=wn:(Js.returnEnd||Js.excludeEnd||(gi+=wn),yi(),Js.excludeEnd&&(gi=wn));do dr.scope&&Fi.closeNode(),!dr.skip&&!dr.subLanguage&&(Qa+=dr.relevance),dr=dr.parent;while(dr!==mi.parent);return mi.starts&&za(mi.starts,qt),Js.returnEnd?0:wn.length}function vi(){const qt=[];for(let wn=dr;wn!==Ns;wn=wn.parent)wn.scope&&qt.unshift(wn.scope);qt.forEach(wn=>Fi.openNode(wn))}let Es={};function io(qt,wn){const Dr=wn&&wn[0];if(gi+=qt,Dr==null)return yi(),0;if(Es.type==="begin"&&wn.type==="end"&&Es.index===wn.index&&Dr===""){if(gi+=Lt.slice(wn.index,wn.index+1),!a){const mi=new Error(`0 width match regex (${rt})`);throw mi.languageName=rt,mi.badRule=Es.rule,mi}return 1}if(Es=wn,wn.type==="begin")return wl(wn);if(wn.type==="illegal"&&!gn){const mi=new Error('Illegal lexeme "'+Dr+'" for mode "'+(dr.scope||"")+'"');throw mi.mode=dr,mi}else if(wn.type==="end"){const mi=Zo(wn);if(mi!==Rf)return mi}if(wn.type==="illegal"&&Dr==="")return 1;if(jn>1e5&&jn>wn.index*3)throw new Error("potential infinite loop, way more iterations than matches");return gi+=Dr,Dr.length}const Ns=St(rt);if(!Ns)throw tc(o.replace("{}",rt)),new Error('Unknown language: "'+rt+'"');const Jr=lN(Ns);let gu="",dr=Vn||Jr;const Ei={},Fi=new d.__emitter(d);vi();let gi="",Qa=0,Aa=0,jn=0,Or=!1;try{if(Ns.__emitTokens)Ns.__emitTokens(Lt,Fi);else{for(dr.matcher.considerAll();;){jn++,Or?Or=!1:dr.matcher.considerAll(),dr.matcher.lastIndex=Aa;const qt=dr.matcher.exec(Lt);if(!qt)break;const wn=Lt.substring(Aa,qt.index),Dr=io(wn,qt);Aa=qt.index+Dr}io(Lt.substring(Aa))}return Fi.finalize(),gu=Fi.toHTML(),{language:rt,value:gu,relevance:Qa,illegal:!1,_emitter:Fi,_top:dr}}catch(qt){if(qt.message&&qt.message.includes("Illegal"))return{language:rt,value:ma(Lt),illegal:!0,relevance:0,_illegalBy:{message:qt.message,index:Aa,context:Lt.slice(Aa-100,Aa+100),mode:qt.mode,resultSoFar:gu},_emitter:Fi};if(a)return{language:rt,value:ma(Lt),illegal:!1,relevance:0,errorRaised:qt,_emitter:Fi,_top:dr};throw qt}}function x(rt){const Lt={value:ma(rt),illegal:!1,relevance:0,_top:u,_emitter:new d.__emitter(d)};return Lt._emitter.addText(rt),Lt}function R(rt,Lt){Lt=Lt||d.languages||Object.keys(t);const gn=x(rt),Vn=Lt.filter(St).filter(tr).map(yi=>k(yi,rt,!1));Vn.unshift(gn);const Rr=Vn.sort((yi,ss)=>{if(yi.relevance!==ss.relevance)return ss.relevance-yi.relevance;if(yi.language&&ss.language){if(St(yi.language).supersetOf===ss.language)return 1;if(St(ss.language).supersetOf===yi.language)return-1}return 0}),[Zr,Wi]=Rr,Pi=Zr;return Pi.secondBest=Wi,Pi}function N(rt,Lt,gn){const Vn=Lt&&r[Lt]||gn;rt.classList.add("hljs"),rt.classList.add(`language-${Vn}`)}function G(rt){let Lt=null;const gn=b(rt);if(f(gn))return;if(sr("before:highlightElement",{el:rt,language:gn}),rt.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",rt);return}if(rt.children.length>0&&(d.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(rt)),d.throwUnescapedHTML))throw new Ih("One of your code blocks includes unescaped HTML.",rt.innerHTML);Lt=rt;const Vn=Lt.textContent,Rr=gn?E(Vn,{language:gn,ignoreIllegals:!0}):R(Vn);rt.innerHTML=Rr.value,rt.dataset.highlighted="yes",N(rt,gn,Rr.language),rt.result={language:Rr.language,re:Rr.relevance,relevance:Rr.relevance},Rr.secondBest&&(rt.secondBest={language:Rr.secondBest.language,relevance:Rr.secondBest.relevance}),sr("after:highlightElement",{el:rt,result:Rr,text:Vn})}function K(rt){d=El(d,rt)}const ge=()=>{ae(),Dh("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function de(){ae(),Dh("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let xe=!1;function ae(){if(document.readyState==="loading"){xe=!0;return}document.querySelectorAll(d.cssSelector).forEach(G)}function Ve(){xe&&ae()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Ve,!1);function He(rt,Lt){let gn=null;try{gn=Lt(e)}catch(Vn){if(tc("Language definition for '{}' could not be registered.".replace("{}",rt)),a)tc(Vn);else throw Vn;gn=u}gn.name||(gn.name=rt),t[rt]=gn,gn.rawDefinition=Lt.bind(null,e),gn.aliases&&xn(gn.aliases,{languageName:rt})}function _t(rt){delete t[rt];for(const Lt of Object.keys(r))r[Lt]===rt&&delete r[Lt]}function rn(){return Object.keys(t)}function St(rt){return rt=(rt||"").toLowerCase(),t[rt]||t[r[rt]]}function xn(rt,{languageName:Lt}){typeof rt=="string"&&(rt=[rt]),rt.forEach(gn=>{r[gn.toLowerCase()]=Lt})}function tr(rt){const Lt=St(rt);return Lt&&!Lt.disableAutodetect}function Xn(rt){rt["before:highlightBlock"]&&!rt["before:highlightElement"]&&(rt["before:highlightElement"]=Lt=>{rt["before:highlightBlock"](Object.assign({block:Lt.el},Lt))}),rt["after:highlightBlock"]&&!rt["after:highlightElement"]&&(rt["after:highlightElement"]=Lt=>{rt["after:highlightBlock"](Object.assign({block:Lt.el},Lt))})}function pr(rt){Xn(rt),i.push(rt)}function Hr(rt){const Lt=i.indexOf(rt);Lt!==-1&&i.splice(Lt,1)}function sr(rt,Lt){const gn=rt;i.forEach(function(Vn){Vn[gn]&&Vn[gn](Lt)})}function $t(rt){return Dh("10.7.0","highlightBlock will be removed entirely in v12.0"),Dh("10.7.0","Please use highlightElement now."),G(rt)}Object.assign(e,{highlight:E,highlightAuto:R,highlightAll:ae,highlightElement:G,highlightBlock:$t,configure:K,initHighlighting:ge,initHighlightingOnLoad:de,registerLanguage:He,unregisterLanguage:_t,listLanguages:rn,getLanguage:St,registerAliases:xn,autoDetection:tr,inherit:El,addPlugin:pr,removePlugin:Hr}),e.debugMode=function(){a=!1},e.safeMode=function(){a=!0},e.versionString=EI,e.regex={concat:nd,lookahead:E0,either:hE,optional:G_,anyNumberOfTimes:W_};for(const rt in k0)typeof k0[rt]=="object"&&Iw(k0[rt]);return Object.assign(e,k0),e},Lh=du({});Lh.newInstance=()=>du({});var cN=Lh;Lh.HighlightJS=Lh,Lh.default=Lh;const wE=Fo(cN),Kw={},dN="hljs-";function hN(e){const t=wE.newInstance();return e&&o(e),{highlight:r,highlightAuto:i,listLanguages:a,register:o,registerAlias:u,registered:d};function r(f,b,E){const k=E||Kw,x=typeof k.prefix=="string"?k.prefix:dN;if(!t.getLanguage(f))throw new Error("Unknown language: `"+f+"` is not registered");t.configure({__emitter:T0,classPrefix:x});const R=t.highlight(b,{ignoreIllegals:!0,language:f});if(R.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:R.errorRaised});const N=R._emitter.root,G=N.data;return G.language=R.language,G.relevance=R.relevance,N}function i(f,b){const E=(b||Kw).subset||a();let k=-1,x=0,R;for(;++kx&&(x=G.data.relevance,R=G)}return R||{type:"root",children:[],data:{language:void 0,relevance:x}}}function a(){return t.listLanguages()}function o(f,b){if(typeof f=="string")t.registerLanguage(f,b);else{let E;for(E in f)Object.hasOwn(f,E)&&t.registerLanguage(E,f[E])}}function u(f,b){if(typeof f=="string")t.registerAliases(typeof b=="string"?b:[...b],{languageName:f});else{let E;for(E in f)if(Object.hasOwn(f,E)){const k=f[E];t.registerAliases(typeof k=="string"?k:[...k],{languageName:E})}}}function d(f){return!!t.getLanguage(f)}}class T0{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const r=this.stack[this.stack.length-1],i=r.children[r.children.length-1];i&&i.type==="text"?i.value+=t:r.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,r){const i=this.stack[this.stack.length-1],a=t.root.children;r?i.children.push({type:"element",tagName:"span",properties:{className:[r]},children:a}):i.children.push(...a)}openNode(t){const r=this,i=t.split(".").map(function(u,d){return d?u+"_".repeat(d):r.options.classPrefix+u}),a=this.stack[this.stack.length-1],o={type:"element",tagName:"span",properties:{className:i},children:[]};a.children.push(o),this.stack.push(o)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const pN=/!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/,xE=new _i("aie-video-plugin"),Df="video_action",fN=ci.create({name:"video",group:"block",addAttributes(){return{src:{default:null,parseHTML:e=>{const t=e.getAttribute("src");if(t)return t;const r=e.querySelector("source");return r?r.getAttribute("src"):null},renderHTML:e=>({src:e.src})},poster:{default:null,parseHTML:e=>e.getAttribute("poster"),renderHTML:e=>({poster:e.poster})},width:{default:350},controls:{default:!0}}},parseHTML(){return[{tag:"video",getAttrs:e=>({src:e.getAttribute("src"),poster:e.getAttribute("poster")})}]},renderHTML({HTMLAttributes:e}){return["video",_n(je({controls:"true"},e),{src:null}),["source",{src:e.src}]]},addCommands(){return{setVideo:e=>({commands:t})=>t.insertContent(`
"},Sl.code_block=function(e,t,r,i,a){const o=e[t];return""+ic(e[t].content)+` -`},Sl.fence=function(e,t,r,i,a){const o=e[t],u=o.info?Fh(o.info).trim():"";let d="",f="";if(u){const E=u.split(/(\s+)/g);d=E[0],f=E.slice(2).join("")}let b;if(r.highlight?b=r.highlight(o.content,d,f)||ic(o.content):b=ic(o.content),b.indexOf("${b} -`}return`
${b}
-`},Sl.image=function(e,t,r,i,a){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=a.renderInlineAsText(o.children,r,i),a.renderToken(e,t,r)},Sl.hardbreak=function(e,t,r){return r.xhtmlOut?`
-`:`
-`},Sl.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`
-`:`
-`:` -`},Sl.text=function(e,t){return ic(e[t].content)},Sl.html_block=function(e,t){return e[t].content},Sl.html_inline=function(e,t){return e[t].content};function ad(){this.rules=Bf({},Sl)}ad.prototype.renderAttrs=function(e){let t,r,i;if(!e.attrs)return"";for(i="",t=0,r=e.attrs.length;t -`:">",a},ad.prototype.renderInline=function(e,t,r){let i="";const a=this.rules;for(let o=0,u=e.length;o=0&&(r=this.attrs[t][1]),r},Hs.prototype.attrJoin=function(e,t){const r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t};function Qo(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}Qo.prototype.Token=Hs;const wR=/\r\n?|\n/g,od=/\0/g;function xR(e){let t;t=e.src.replace(wR,` -`),t=t.replace(od,"\uFFFD"),e.src=t}function TR(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function CR(e){const t=e.tokens;for(let r=0,i=t.length;r\s]/i.test(e)}function _R(e){return/^<\/a\s*>/i.test(e)}function NR(e){const t=e.tokens;if(e.md.options.linkify)for(let r=0,i=t.length;r=0;u--){const d=a[u];if(d.type==="link_close"){for(u--;a[u].level!==d.level&&a[u].type!=="link_open";)u--;continue}if(d.type==="html_inline"&&(AR(d.content)&&o>0&&o--,_R(d.content)&&o++),!(o>0)&&d.type==="text"&&e.md.linkify.test(d.content)){const f=d.content;let b=e.md.linkify.match(f);const E=[];let k=d.level,x=0;b.length>0&&b[0].index===0&&u>0&&a[u-1].type==="text_special"&&(b=b.slice(1));for(let R=0;Rx){const Ve=new e.Token("text","",0);Ve.content=f.slice(x,ge),Ve.level=k,E.push(Ve)}const de=new e.Token("link_open","a",1);de.attrs=[["href",G]],de.level=k++,de.markup="linkify",de.info="auto",E.push(de);const xe=new e.Token("text","",0);xe.content=K,xe.level=k,E.push(xe);const ae=new e.Token("link_close","a",-1);ae.level=--k,ae.markup="linkify",ae.info="auto",E.push(ae),x=b[R].lastIndex}if(x=0;r--){const i=e[r];i.type==="text"&&!t&&(i.content=i.content.replace(Ax,Nx)),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function FE(e){let t=0;for(let r=e.length-1;r>=0;r--){const i=e[r];i.type==="text"&&!t&&Cx.test(i.content)&&(i.content=i.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function hu(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(RR.test(e.tokens[t].content)&&PE(e.tokens[t].children),Cx.test(e.tokens[t].content)&&FE(e.tokens[t].children))}const DR=/['"]/,Rx=/['"]/g,Dx="\u2019";function L0(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}function IR(e,t){let r;const i=[];for(let a=0;a=0&&!(i[r].level<=u);r--);if(i.length=r+1,o.type!=="text")continue;let d=o.content,f=0,b=d.length;e:for(;f=0)N=d.charCodeAt(E.index-1);else for(r=a-1;r>=0&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r--)if(e[r].content){N=e[r].content.charCodeAt(e[r].content.length-1);break}let G=32;if(f=48&&N<=57&&(x=k=!1),k&&x&&(k=K,x=ge),!k&&!x){R&&(o.content=L0(o.content,E.index,Dx));continue}if(x)for(r=i.length-1;r>=0;r--){let ae=i[r];if(i[r].level=0;t--)e.tokens[t].type!=="inline"||!DR.test(e.tokens[t].content)||IR(e.tokens[t].children,e)}function MR(e){let t,r;const i=e.tokens,a=i.length;for(let o=0;o0&&this.level++,this.tokens.push(i),i},vl.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},vl.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;et;)if(!qi(this.src.charCodeAt(--e)))return e+1;return e},vl.prototype.skipChars=function(e,t){for(let r=this.src.length;er;)if(t!==this.src.charCodeAt(--e))return e+1;return e},vl.prototype.getLines=function(e,t,r,i){if(e>=t)return"";const a=new Array(t-e);for(let o=0,u=e;ur?a[o]=new Array(d-r+1).join(" ")+this.src.slice(b,E):a[o]=this.src.slice(b,E)}return a.join("")},vl.prototype.Token=Hs;const PR=65536;function M0(e,t){const r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(r,i)}function Ix(e){const t=[],r=e.length;let i=0,a=e.charCodeAt(i),o=!1,u=0,d="";for(;ir)return!1;let a=t+1;if(e.sCount[a]=4)return!1;let o=e.bMarks[a]+e.tShift[a];if(o>=e.eMarks[a])return!1;const u=e.src.charCodeAt(o++);if(u!==124&&u!==45&&u!==58||o>=e.eMarks[a])return!1;const d=e.src.charCodeAt(o++);if(d!==124&&d!==45&&d!==58&&!qi(d)||u===45&&qi(d))return!1;for(;o=4)return!1;b=Ix(f),b.length&&b[0]===""&&b.shift(),b.length&&b[b.length-1]===""&&b.pop();const k=b.length;if(k===0||k!==E.length)return!1;if(i)return!0;const x=e.parentType;e.parentType="table";const R=e.md.block.ruler.getRules("blockquote"),N=e.push("table_open","table",1),G=[t,0];N.map=G;const K=e.push("thead_open","thead",1);K.map=[t,t+1];const ge=e.push("tr_open","tr",1);ge.map=[t,t+1];for(let ae=0;ae=4||(b=Ix(f),b.length&&b[0]===""&&b.shift(),b.length&&b[b.length-1]===""&&b.pop(),xe+=k-b.length,xe>PR))break;if(a===t+2){const He=e.push("tbody_open","tbody",1);He.map=de=[t+2,0]}const Ve=e.push("tr_open","tr",1);Ve.map=[a,a+1];for(let He=0;He=4){i++,a=i;continue}break}e.line=a;const o=e.push("code_block","code",0);return o.content=e.getLines(t,a,4+e.blkIndent,!1)+` -`,o.map=[t,e.line],!0}function $R(e,t,r,i){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||a+3>o)return!1;const u=e.src.charCodeAt(a);if(u!==126&&u!==96)return!1;let d=a;a=e.skipChars(a,u);let f=a-d;if(f<3)return!1;const b=e.src.slice(d,a),E=e.src.slice(a,o);if(u===96&&E.indexOf(String.fromCharCode(u))>=0)return!1;if(i)return!0;let k=t,x=!1;for(;k++,!(k>=r||(a=d=e.bMarks[k]+e.tShift[k],o=e.eMarks[k],a=4)&&(a=e.skipChars(a,u),!(a-d=4||e.src.charCodeAt(a)!==62)return!1;if(i)return!0;const d=[],f=[],b=[],E=[],k=e.md.block.ruler.getRules("blockquote"),x=e.parentType;e.parentType="blockquote";let R=!1,N;for(N=t;N=o)break;if(e.src.charCodeAt(a++)===62&&!xe){let Ve=e.sCount[N]+1,He,_t;e.src.charCodeAt(a)===32?(a++,Ve++,_t=!1,He=!0):e.src.charCodeAt(a)===9?(He=!0,(e.bsCount[N]+Ve)%4===3?(a++,Ve++,_t=!1):_t=!0):He=!1;let rn=Ve;for(d.push(e.bMarks[N]),e.bMarks[N]=a;a=o,f.push(e.bsCount[N]),e.bsCount[N]=e.sCount[N]+1+(He?1:0),b.push(e.sCount[N]),e.sCount[N]=rn-Ve,E.push(e.tShift[N]),e.tShift[N]=a-e.bMarks[N];continue}if(R)break;let ae=!1;for(let Ve=0,He=k.length;Ve";const ge=[t,0];K.map=ge,e.md.block.tokenize(e,t,N);const de=e.push("blockquote_close","blockquote",-1);de.markup=">",e.lineMax=u,e.parentType=x,ge[1]=e.line;for(let xe=0;xe=4)return!1;let o=e.bMarks[t]+e.tShift[t];const u=e.src.charCodeAt(o++);if(u!==42&&u!==45&&u!==95)return!1;let d=1;for(;o=i)return-1;let o=e.src.charCodeAt(a++);if(o<48||o>57)return-1;for(;;){if(a>=i)return-1;if(o=e.src.charCodeAt(a++),o>=48&&o<=57){if(a-r>=10)return-1;continue}if(o===41||o===46)break;return-1}return a=4||e.listIndent>=0&&e.sCount[f]-e.listIndent>=4&&e.sCount[f]=e.blkIndent&&(E=!0);let k,x,R;if((R=Mx(e,f))>=0){if(k=!0,u=e.bMarks[f]+e.tShift[f],x=Number(e.src.slice(u,R-1)),E&&x!==1)return!1}else if((R=Lx(e,f))>=0)k=!1;else return!1;if(E&&e.skipSpaces(R)>=e.eMarks[f])return!1;if(i)return!0;const N=e.src.charCodeAt(R-1),G=e.tokens.length;k?(d=e.push("ordered_list_open","ol",1),x!==1&&(d.attrs=[["start",x]])):d=e.push("bullet_list_open","ul",1);const K=[f,0];d.map=K,d.markup=String.fromCharCode(N);let ge=!1;const de=e.md.block.ruler.getRules("list"),xe=e.parentType;for(e.parentType="list";f=a?_t=1:_t=Ve-ae,_t>4&&(_t=1);const rn=ae+_t;d=e.push("list_item_open","li",1),d.markup=String.fromCharCode(N);const St=[f,0];d.map=St,k&&(d.info=e.src.slice(u,R-1));const xn=e.tight,tr=e.tShift[f],Xn=e.sCount[f],pr=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=rn,e.tight=!0,e.tShift[f]=He-e.bMarks[f],e.sCount[f]=Ve,He>=a&&e.isEmpty(f+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,f,r,!0),(!e.tight||ge)&&(b=!1),ge=e.line-f>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=pr,e.tShift[f]=tr,e.sCount[f]=Xn,e.tight=xn,d=e.push("list_item_close","li",-1),d.markup=String.fromCharCode(N),f=e.line,St[1]=f,f>=r||e.sCount[f]=4)break;let Hr=!1;for(let sr=0,$t=de.length;sr<$t;sr++)if(de[sr](e,f,r,!0)){Hr=!0;break}if(Hr)break;if(k){if(R=Mx(e,f),R<0)break;u=e.bMarks[f]+e.tShift[f]}else if(R=Lx(e,f),R<0)break;if(N!==e.src.charCodeAt(R-1))break}return k?d=e.push("ordered_list_close","ol",-1):d=e.push("bullet_list_close","ul",-1),d.markup=String.fromCharCode(N),K[1]=f,e.line=f,e.parentType=xe,b&&P0(e,G),!0}function Bh(e,t,r,i){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],u=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==91)return!1;function d(de){const xe=e.lineMax;if(de>=xe||e.isEmpty(de))return null;let ae=!1;if(e.sCount[de]-e.blkIndent>3&&(ae=!0),e.sCount[de]<0&&(ae=!0),!ae){const _t=e.md.block.ruler.getRules("reference"),rn=e.parentType;e.parentType="reference";let St=!1;for(let xn=0,tr=_t.length;xn"u"&&(e.env.references={}),typeof e.env.references[ge]>"u"&&(e.env.references[ge]={title:K,href:k}),e.line=u),!0):!1}const zR=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],QR="[a-zA-Z_:][a-zA-Z0-9:._-]*",VR="[^\"'=<>`\\x00-\\x20]+",jR="'[^']*'",ZR='"[^"]*"',vI="(?:"+VR+"|"+jR+"|"+ZR+")",WR="(?:\\s+"+QR+"(?:\\s*=\\s*"+vI+")?)",Fx="<[A-Za-z][A-Za-z0-9\\-]*"+WR+"*\\s*\\/?>",Bx="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",GR="",YR="<[?][\\s\\S]*?[?]>",qR="]*>",XR="",KR=new RegExp("^(?:"+Fx+"|"+Bx+"|"+GR+"|"+YR+"|"+qR+"|"+XR+")"),JR=new RegExp("^(?:"+Fx+"|"+Bx+")"),ld=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(JR.source+"\\s*$"),/^$/,!1]];function eD(e,t,r,i){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(a)!==60)return!1;let u=e.src.slice(a,o),d=0;for(;d=4)return!1;let u=e.src.charCodeAt(a);if(u!==35||a>=o)return!1;let d=1;for(u=e.src.charCodeAt(++a);u===35&&a6||aa&&qi(e.src.charCodeAt(f-1))&&(o=f),e.line=t+1;const b=e.push("heading_open","h"+String(d),1);b.markup="########".slice(0,d),b.map=[t,e.line];const E=e.push("inline","",0);E.content=e.src.slice(a,o).trim(),E.map=[t,e.line],E.children=[];const k=e.push("heading_close","h"+String(d),-1);return k.markup="########".slice(0,d),!0}function nD(e,t,r){const i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const a=e.parentType;e.parentType="paragraph";let o=0,u,d=t+1;for(;d3)continue;if(e.sCount[d]>=e.blkIndent){let R=e.bMarks[d]+e.tShift[d];const N=e.eMarks[d];if(R=N))){o=u===61?1:2;break}}if(e.sCount[d]<0)continue;let x=!1;for(let R=0,N=i.length;R3||e.sCount[o]<0)continue;let b=!1;for(let E=0,k=i.length;E=r||e.sCount[u]=o){e.line=r;break}const f=e.line;let b=!1;for(let E=0;E=e.line)throw new Error("block rule didn't increment state.line");break}if(!b)throw new Error("none of the block rules matched");e.tight=!d,e.isEmpty(e.line-1)&&(d=!0),u=e.line,u0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(a),i},zf.prototype.scanDelims=function(e,t){const r=this.posMax,i=this.src.charCodeAt(e),a=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o0)return!1;const r=e.pos,i=e.posMax;if(r+3>i||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47)return!1;const a=e.pending.match(aD);if(!a)return!1;const o=a[1],u=e.md.linkify.matchAtStart(e.src.slice(r-o.length));if(!u)return!1;let d=u.url;if(d.length<=o.length)return!1;d=d.replace(/\*+$/,"");const f=e.md.normalizeLink(d);if(!e.md.validateLink(f))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const b=e.push("link_open","a",1);b.attrs=[["href",f]],b.markup="linkify",b.info="auto";const E=e.push("text","",0);E.content=e.md.normalizeLinkText(d);const k=e.push("link_close","a",-1);k.markup="linkify",k.info="auto"}return e.pos+=d.length-o.length,!0}function oD(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==10)return!1;const i=e.pending.length-1,a=e.posMax;if(!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){let o=i-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r?@[]^_`{|}~-".split("").forEach(function(e){$0[e.charCodeAt(0)]=1});function lD(e,t){let r=e.pos;const i=e.posMax;if(e.src.charCodeAt(r)!==92||(r++,r>=i))return!1;let a=e.src.charCodeAt(r);if(a===10){for(t||e.push("hardbreak","br",0),r++;r=55296&&a<=56319&&r+1=56320&&d<=57343&&(o+=e.src[r+1],r++)}const u="\\"+o;if(!t){const d=e.push("text_special","",0);a<256&&$0[a]!==0?d.content=o:d.content=u,d.markup=u,d.info="escape"}return e.pos=r+1,!0}function kI(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==96)return!1;const i=r;r++;const a=e.posMax;for(;r=0;i--){const a=t[i];if(a.marker!==95&&a.marker!==42||a.end===-1)continue;const o=t[a.end],u=i>0&&t[i-1].end===a.end+1&&t[i-1].marker===a.marker&&t[i-1].token===a.token-1&&t[a.end+1].token===o.token+1,d=String.fromCharCode(a.marker),f=e.tokens[a.token];f.type=u?"strong_open":"em_open",f.tag=u?"strong":"em",f.nesting=1,f.markup=u?d+d:d,f.content="";const b=e.tokens[o.token];b.type=u?"strong_close":"em_close",b.tag=u?"strong":"em",b.nesting=-1,b.markup=u?d+d:d,b.content="",u&&(e.tokens[t[i-1].token].content="",e.tokens[t[a.end+1].token].content="",i--)}}function Hx(e){const t=e.tokens_meta,r=e.tokens_meta.length;HE(e,e.delimiters);for(let i=0;i=k)return!1;if(f=N,a=e.md.helpers.parseLinkDestination(e.src,N,e.posMax),a.ok){for(u=e.md.normalizeLink(a.str),e.md.validateLink(u)?N=a.pos:u="",f=N;N=k||e.src.charCodeAt(N)!==41)&&(b=!0),N++}if(b){if(typeof e.env.references>"u")return!1;if(N=0?i=e.src.slice(f,N++):N=R+1):N=R+1,i||(i=e.src.slice(x,R)),o=e.env.references[I0(i)],!o)return e.pos=E,!1;u=o.href,d=o.title}if(!t){e.pos=x,e.posMax=R;const G=e.push("link_open","a",1),K=[["href",u]];G.attrs=K,d&&K.push(["title",d]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=N,e.posMax=k,!0}function zE(e,t){let r,i,a,o,u,d,f,b,E="";const k=e.pos,x=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const R=e.pos+2,N=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(N<0)return!1;if(o=N+1,o=x)return!1;for(b=o,d=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),d.ok&&(E=e.md.normalizeLink(d.str),e.md.validateLink(E)?o=d.pos:E=""),b=o;o=x||e.src.charCodeAt(o)!==41)return e.pos=k,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o=0?a=e.src.slice(b,o++):o=N+1):o=N+1,a||(a=e.src.slice(R,N)),u=e.env.references[I0(a)],!u)return e.pos=k,!1;E=u.href,f=u.title}if(!t){i=e.src.slice(R,N);const G=[];e.md.inline.parse(i,e.md,e.env,G);const K=e.push("image","img",0),ge=[["src",E],["alt",""]];K.attrs=ge,K.children=G,K.content=i,f&&ge.push(["title",f])}return e.pos=o,e.posMax=x,!0}const QE=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Qx=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Vx(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==60)return!1;const i=e.pos,a=e.posMax;for(;;){if(++r>=a)return!1;const u=e.src.charCodeAt(r);if(u===60)return!1;if(u===62)break}const o=e.src.slice(i+1,r);if(Qx.test(o)){const u=e.md.normalizeLink(o);if(!e.md.validateLink(u))return!1;if(!t){const d=e.push("link_open","a",1);d.attrs=[["href",u]],d.markup="autolink",d.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(o);const b=e.push("link_close","a",-1);b.markup="autolink",b.info="auto"}return e.pos+=o.length+2,!0}if(QE.test(o)){const u=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(u))return!1;if(!t){const d=e.push("link_open","a",1);d.attrs=[["href",u]],d.markup="autolink",d.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(o);const b=e.push("link_close","a",-1);b.markup="autolink",b.info="auto"}return e.pos+=o.length+2,!0}return!1}function H0(e){return/^\s]/i.test(e)}function wI(e){return/^<\/a\s*>/i.test(e)}function hD(e){const t=e|32;return t>=97&&t<=122}function pD(e,t){if(!e.md.options.html)return!1;const r=e.posMax,i=e.pos;if(e.src.charCodeAt(i)!==60||i+2>=r)return!1;const a=e.src.charCodeAt(i+1);if(a!==33&&a!==63&&a!==47&&!hD(a))return!1;const o=e.src.slice(i).match(KR);if(!o)return!1;if(!t){const u=e.push("html_inline","",0);u.content=o[0],H0(u.content)&&e.linkLevel++,wI(u.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const fD=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,mD=/^&([a-z][a-z0-9]{1,31});/i;function gD(e,t){const r=e.pos,i=e.posMax;if(e.src.charCodeAt(r)!==38||r+1>=i)return!1;if(e.src.charCodeAt(r+1)===35){const a=e.src.slice(r).match(fD);if(a){if(!t){const o=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),u=e.push("text_special","",0);u.content=LE(o)?D0(o):D0(65533),u.markup=a[0],u.info="entity"}return e.pos+=a[0].length,!0}}else{const a=e.src.slice(r).match(mD);if(a){const o=Ff(a[0]);if(o!==a[0]){if(!t){const u=e.push("text_special","",0);u.content=o,u.markup=a[0],u.info="entity"}return e.pos+=a[0].length,!0}}}return!1}function VE(e){const t={},r=e.length;if(!r)return;let i=0,a=-2;const o=[];for(let u=0;uf;b-=o[b]+1){const k=e[b];if(k.marker===d.marker&&k.open&&k.end<0){let x=!1;if((k.close||d.open)&&(k.length+d.length)%3===0&&(k.length%3!==0||d.length%3!==0)&&(x=!0),!x){const R=b>0&&!e[b-1].open?o[b-1]+1:0;o[u]=u-b+R,o[b]=R,d.open=!1,k.end=u,k.close=!1,E=-1,a=-2;break}}}E!==-1&&(t[d.marker][(d.open?3:0)+(d.length||0)%3]=E)}}function bD(e){const t=e.tokens_meta,r=e.tokens_meta.length;VE(e.delimiters);for(let i=0;i0&&i++,a[t].type==="text"&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;u||e.pos++,o[t]=e.pos},Qf.prototype.tokenize=function(e){const t=this.ruler.getRules(""),r=t.length,i=e.posMax,a=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(u){if(e.pos>=i)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Qf.prototype.parse=function(e,t,r,i){const a=new this.State(e,t,r,i);this.tokenize(a);const o=this.ruler2.getRules(""),u=o.length;for(let d=0;d|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function WE(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}function z0(e){return Object.prototype.toString.call(e)}function ED(e){return z0(e)==="[object String]"}function SD(e){return z0(e)==="[object Object]"}function vD(e){return z0(e)==="[object RegExp]"}function jx(e){return z0(e)==="[object Function]"}function kD(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Zx={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function wD(e){return Object.keys(e||{}).reduce(function(t,r){return t||Zx.hasOwnProperty(r)},!1)}const xD={"http:":{validate:function(e,t,r){const i=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(i)?i.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){const i=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(i)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:i.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){const i=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(i)?i.match(r.re.mailto)[0].length:0}}},TD="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Wx="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function CD(e){e.__index__=-1,e.__text_cache__=""}function Gx(e){return function(t,r){const i=t.slice(r);return e.test(i)?i.match(e)[0].length:0}}function Q0(){return function(e,t){t.normalize(e)}}function V0(e){const t=e.re=yD(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(TD),r.push(t.src_xn),t.src_tlds=r.join("|");function i(d){return d.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(i(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(i(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(i(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(i(t.tpl_host_fuzzy_test),"i");const a=[];e.__compiled__={};function o(d,f){throw new Error('(LinkifyIt) Invalid schema "'+d+'": '+f)}Object.keys(e.__schemas__).forEach(function(d){const f=e.__schemas__[d];if(f===null)return;const b={validate:null,link:null};if(e.__compiled__[d]=b,SD(f)){vD(f.validate)?b.validate=Gx(f.validate):jx(f.validate)?b.validate=f.validate:o(d,f),jx(f.normalize)?b.normalize=f.normalize:f.normalize?o(d,f):b.normalize=Q0();return}if(ED(f)){a.push(d);return}o(d,f)}),a.forEach(function(d){e.__compiled__[e.__schemas__[d]]&&(e.__compiled__[d].validate=e.__compiled__[e.__schemas__[d]].validate,e.__compiled__[d].normalize=e.__compiled__[e.__schemas__[d]].normalize)}),e.__compiled__[""]={validate:null,normalize:Q0()};const u=Object.keys(e.__compiled__).filter(function(d){return d.length>0&&e.__compiled__[d]}).map(kD).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),CD(e)}function AD(e,t){const r=e.__index__,i=e.__last_index__,a=e.__text_cache__.slice(r,i);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=i+t,this.raw=a,this.text=a,this.url=a}function GE(e,t){const r=new AD(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function Ua(e,t){if(!(this instanceof Ua))return new Ua(e,t);t||wD(e)&&(t=e,e={}),this.__opts__=WE({},Zx,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=WE({},xD,e),this.__compiled__={},this.__tlds__=Wx,this.__tlds_replaced__=!1,this.re={},V0(this)}Ua.prototype.add=function(e,t){return this.__schemas__[e]=t,V0(this),this},Ua.prototype.set=function(e){return this.__opts__=WE(this.__opts__,e),this},Ua.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,r,i,a,o,u,d,f,b;if(this.re.schema_test.test(e)){for(d=this.re.schema_search,d.lastIndex=0;(t=d.exec(e))!==null;)if(a=this.testSchemaAt(e,t[2],d.lastIndex),a){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(f=e.search(this.re.host_fuzzy_test),f>=0&&(this.__index__<0||f=0&&(i=e.match(this.re.email_fuzzy))!==null&&(o=i.index+i[1].length,u=i.index+i[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=u))),this.__index__>=0},Ua.prototype.pretest=function(e){return this.re.pretest.test(e)},Ua.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},Ua.prototype.match=function(e){const t=[];let r=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(GE(this,r)),r=this.__last_index__);let i=r?e.slice(r):e;for(;this.test(i);)t.push(GE(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return t.length?t:null},Ua.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const r=this.testSchemaAt(e,t[2],t[0].length);return r?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r,GE(this,0)):null},Ua.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,a){return r!==a[i-1]}).reverse(),V0(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,V0(this),this)},Ua.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},Ua.prototype.onCompile=function(){};const $h=2147483647,pu=36,YE=1,Vf=26,_D=38,Yx=700,qx=72,Xx=128,n="-",s=/^xn--/,l=/[^\0-\x7F]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=pu-YE,O=Math.floor,w=String.fromCharCode;function C(e){throw new RangeError(p[e])}function L(e,t){const r=[];let i=e.length;for(;i--;)r[i]=t(e[i]);return r}function H(e,t){const r=e.split("@");let i="";r.length>1&&(i=r[0]+"@",e=r[1]),e=e.replace(c,".");const a=e.split("."),o=L(a,t).join(".");return i+o}function j(e){const t=[];let r=0;const i=e.length;for(;r=55296&&a<=56319&&rString.fromCodePoint(...e),se=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:pu},Se=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},at=function(e,t,r){let i=0;for(e=r?O(e/Yx):e>>1,e+=O(e/t);e>g*Vf>>1;i+=pu)e=O(e/g);return O(i+(g+1)*e/(e+_D))},ot=function(e){const t=[],r=e.length;let i=0,a=Xx,o=qx,u=e.lastIndexOf(n);u<0&&(u=0);for(let d=0;d=128&&C("not-basic"),t.push(e.charCodeAt(d));for(let d=u>0?u+1:0;d=r&&C("invalid-input");const x=se(e.charCodeAt(d++));x>=pu&&C("invalid-input"),x>O(($h-i)/E)&&C("overflow"),i+=x*E;const R=k<=o?YE:k>=o+Vf?Vf:k-o;if(xO($h/N)&&C("overflow"),E*=N}const b=t.length+1;o=at(i-f,b,f==0),O(i/b)>$h-a&&C("overflow"),a+=O(i/b),i%=b,t.splice(i++,0,a)}return String.fromCodePoint(...t)},Ke=function(e){const t=[];e=j(e);const r=e.length;let i=Xx,a=0,o=qx;for(const f of e)f<128&&t.push(w(f));const u=t.length;let d=u;for(u&&t.push(n);d=i&&EO(($h-a)/b)&&C("overflow"),a+=(f-i)*b,i=f;for(const E of e)if(E$h&&C("overflow"),E===i){let k=a;for(let x=pu;;x+=pu){const R=x<=o?YE:x>=o+Vf?Vf:x-o;if(k=0))try{t.hostname=Jt.toASCII(t.hostname)}catch(r){}return id(TE(t))}function hr(e){const t=N0(e,!0);if(t.hostname&&(!t.protocol||An.indexOf(t.protocol)>=0))try{t.hostname=Jt.toUnicode(t.hostname)}catch(r){}return Ph(TE(t),Ph.defaultChars+"%")}function Jn(e,t){if(!(this instanceof Jn))return new Jn(e,t);t||IE(e)||(t=e||{},e="default"),this.inline=new Qf,this.block=new B0,this.core=new $E,this.renderer=new ad,this.linkify=new Ua,this.validateLink=wr,this.normalizeLink=Ln,this.normalizeLinkText=hr,this.utils=vR,this.helpers=Bf({},Tx),this.options={},this.configure(e),t&&this.set(t)}Jn.prototype.set=function(e){return Bf(this.options,e),this},Jn.prototype.configure=function(e){const t=this;if(IE(e)){const r=e;if(e=Qn[r],!e)throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this},Jn.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));const i=e.filter(function(a){return r.indexOf(a)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this},Jn.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));const i=e.filter(function(a){return r.indexOf(a)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this},Jn.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Jn.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const r=new this.core.State(e,this,t);return this.core.process(r),r.tokens},Jn.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Jn.prototype.parseInline=function(e,t){const r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},Jn.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Ur=new Ce({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return["p",0]}},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM(){return["blockquote",0]}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return["div",["hr"]]}},heading:{attrs:{level:{default:1}},content:"(text | image)*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM(e){return["h"+e.attrs.level,0]}},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>({params:e.getAttribute("data-params")||""})}],toDOM(e){return["pre",e.attrs.params?{"data-params":e.attrs.params}:{},["code",0]]}},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs(e){return{order:e.hasAttribute("start")?+e.getAttribute("start"):1,tight:e.hasAttribute("data-tight")}}}],toDOM(e){return["ol",{start:e.attrs.order==1?null:e.attrs.order,"data-tight":e.attrs.tight?"true":null},0]}},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:e=>({tight:e.hasAttribute("data-tight")})}],toDOM(e){return["ul",{"data-tight":e.attrs.tight?"true":null},0]}},list_item:{content:"block+",defining:!0,parseDOM:[{tag:"li"}],toDOM(){return["li",0]}},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(e){return{src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")}}}],toDOM(e){return["img",e.attrs]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return["br"]}}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>e.type.name=="em"}],toDOM(){return["em"]}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name=="strong"},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM(){return["strong"]}},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(e){return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM(e){return["a",e.attrs]}},code:{parseDOM:[{tag:"code"}],toDOM(){return["code"]}}}});function Nr(e,t){if(e.isText&&t.isText&&Pt.sameSet(e.marks,t.marks))return e.withText(e.text+t.text)}class jr{constructor(t,r){this.schema=t,this.tokenHandlers=r,this.stack=[{type:t.topNodeType,attrs:null,content:[],marks:Pt.none}]}top(){return this.stack[this.stack.length-1]}push(t){this.stack.length&&this.top().content.push(t)}addText(t){if(!t)return;let r=this.top(),i=r.content,a=i[i.length-1],o=this.schema.text(t,r.marks),u;a&&(u=Nr(a,o))?i[i.length-1]=u:i.push(o)}openMark(t){let r=this.top();r.marks=t.addToSet(r.marks)}closeMark(t){let r=this.top();r.marks=t.removeFromSet(r.marks)}parseTokens(t){for(let r=0;r{u.openNode(o,nr(a,d,f,b)),u.addText(Bi(d.content)),u.closeNode()}:(r[i+"_open"]=(u,d,f,b)=>u.openNode(o,nr(a,d,f,b)),r[i+"_close"]=u=>u.closeNode())}else if(a.node){let o=e.nodeType(a.node);r[i]=(u,d,f,b)=>u.addNode(o,nr(a,d,f,b))}else if(a.mark){let o=e.marks[a.mark];Fe(a,i)?r[i]=(u,d,f,b)=>{u.openMark(o.create(nr(a,d,f,b))),u.addText(Bi(d.content)),u.closeMark(o)}:(r[i+"_open"]=(u,d,f,b)=>u.openMark(o.create(nr(a,d,f,b))),r[i+"_close"]=u=>u.closeMark(o))}else if(a.ignore)Fe(a,i)?r[i]=Zi:(r[i+"_open"]=Zi,r[i+"_close"]=Zi);else throw new RangeError("Unrecognized parsing spec "+JSON.stringify(a))}return r.text=(i,a)=>i.addText(a.content),r.inline=(i,a)=>i.parseTokens(a.children),r.softbreak=r.softbreak||(i=>i.addText(" ")),r}let Xi=class{constructor(e,t,r){this.schema=e,this.tokenizer=t,this.tokens=r,this.tokenHandlers=Qe(e,r)}parse(e,t={}){let r=new jr(this.schema,this.tokenHandlers),i;r.parseTokens(this.tokenizer.parse(e,t));do i=r.closeNode();while(r.stack.length);return i||this.schema.topNodeType.createAndFill()}};function As(e,t){for(;++t({tight:As(t,r)})},ordered_list:{block:"ordered_list",getAttrs:(e,t,r)=>({order:+e.attrGet("start")||1,tight:As(t,r)})},heading:{block:"heading",getAttrs:e=>({level:+e.tag.slice(1)})},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:e=>({params:e.info||""}),noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:e=>({src:e.attrGet("src"),title:e.attrGet("title")||null,alt:e.children[0]&&e.children[0].content||null})},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:e=>({href:e.attrGet("href"),title:e.attrGet("title")||null})},code_inline:{mark:"code",noCloseToken:!0}});let Mr=class{constructor(e,t,r={}){this.nodes=e,this.marks=t,this.options=r}serialize(e,t={}){t=Object.assign({},this.options,t);let r=new $i(this.nodes,this.marks,t);return r.renderContent(e),r.out}};const zs=new Mr({blockquote(e,t){e.wrapBlock("> ",null,t,()=>e.renderContent(t))},code_block(e,t){const r=t.textContent.match(/`{3,}/gm),i=r?r.sort().slice(-1)[0]+"`":"```";e.write(i+(t.attrs.params||"")+` -`),e.text(t.textContent,!1),e.write(` -`),e.write(i),e.closeBlock(t)},heading(e,t){e.write(e.repeat("#",t.attrs.level)+" "),e.renderInline(t,!1),e.closeBlock(t)},horizontal_rule(e,t){e.write(t.attrs.markup||"---"),e.closeBlock(t)},bullet_list(e,t){e.renderList(t," ",()=>(t.attrs.bullet||"*")+" ")},ordered_list(e,t){let r=t.attrs.order||1,i=String(r+t.childCount-1).length,a=e.repeat(" ",i+2);e.renderList(t,a,o=>{let u=String(r+o);return e.repeat(" ",i-u.length)+u+". "})},list_item(e,t){e.renderContent(t)},paragraph(e,t){e.renderInline(t),e.closeBlock(t)},image(e,t){e.write("!["+e.esc(t.attrs.alt||"")+"]("+t.attrs.src.replace(/[\(\)]/g,"\\$&")+(t.attrs.title?' "'+t.attrs.title.replace(/"/g,'\\"')+'"':"")+")")},hard_break(e,t,r,i){for(let a=i+1;a":"]("+t.attrs.href.replace(/[\(\)"]/g,"\\$&")+(t.attrs.title?` "${t.attrs.title.replace(/"/g,'\\"')}"`:"")+")"},mixable:!0},code:{open(e,t,r,i){return Mi(r.child(i),-1)},close(e,t,r,i){return Mi(r.child(i-1),1)},escape:!1}});function Mi(e,t){let r=/`+/g,i,a=0;if(e.isText)for(;i=r.exec(e.text);)a=Math.max(a,i[0].length);let o=a>0&&t>0?" `":"`";for(let u=0;u0&&t<0&&(o+=" "),o}function to(e,t,r){if(e.attrs.title||!/^\w+:/.test(e.attrs.href))return!1;let i=t.child(r);return!i.isText||i.text!=e.attrs.href||i.marks[i.marks.length-1]!=e?!1:r==t.childCount-1||!e.isInSet(t.child(r+1).marks)}let $i=class{constructor(e,t,r){this.nodes=e,this.marks=t,this.options=r,this.delim="",this.out="",this.closed=null,this.inAutolink=void 0,this.atBlockStart=!1,this.inTightList=!1,typeof this.options.tightLists>"u"&&(this.options.tightLists=!1),typeof this.options.hardBreakNodeName>"u"&&(this.options.hardBreakNodeName="hard_break")}flushClose(e=2){if(this.closed){if(this.atBlank()||(this.out+=` -`),e>1){let t=this.delim,r=/\s+$/.exec(t);r&&(t=t.slice(0,t.length-r[0].length));for(let i=1;ithis.render(t,e,i))}renderInline(e,t=!0){this.atBlockStart=t;let r=[],i="",a=(o,u,d)=>{let f=o?o.marks:[];o&&o.type.name===this.options.hardBreakNodeName&&(f=f.filter(N=>{if(d+1==e.childCount)return!1;let G=e.child(d+1);return N.isInSet(G.marks)&&(!G.isText||/\S/.test(G.text))}));let b=i;if(i="",o&&o.isText&&f.some(N=>{let G=this.marks[N.type.name];return G&&G.expelEnclosingWhitespace&&!N.isInSet(r)})){let[N,G,K]=/^(\s*)(.*)$/m.exec(o.text);G&&(b+=G,o=K?o.withText(K):null,o||(f=r))}if(o&&o.isText&&f.some(N=>{let G=this.marks[N.type.name];return G&&G.expelEnclosingWhitespace&&(d==e.childCount-1||!N.isInSet(e.child(d+1).marks))})){let[N,G,K]=/^(.*?)(\s*)$/m.exec(o.text);K&&(i=K,o=G?o.withText(G):null,o||(f=r))}let E=f.length?f[f.length-1]:null,k=E&&this.marks[E.type.name].escape===!1,x=f.length-(k?1:0);e:for(let N=0;NK?f=f.slice(0,K).concat(G).concat(f.slice(K,N)).concat(f.slice(N+1,x)):K>N&&(f=f.slice(0,N).concat(f.slice(N+1,K)).concat(G).concat(f.slice(K,x)));continue e}}}let R=0;for(;R0&&(this.atBlockStart=!1)};e.forEach(a),a(null,0,e.childCount),this.atBlockStart=!1}renderList(e,t,r){this.closed&&this.closed.type==e.type?this.flushClose(3):this.inTightList&&this.flushClose(1);let i=typeof e.attrs.tight<"u"?e.attrs.tight:this.options.tightLists,a=this.inTightList;this.inTightList=i,e.forEach((o,u,d)=>{d&&i&&this.flushClose(1),this.wrapBlock(t,r(d),e,()=>this.render(o,e,d))}),this.inTightList=a}esc(e,t=!1){return e=e.replace(/[`*\\~\[\]_]/g,(r,i)=>r=="_"&&i>0&&i+1])/,"\\$&").replace(/^(\s*)(#{1,6})(\s|$)/,"$1\\$2$3").replace(/^(\s*\d+)\.\s/,"$1\\. ")),this.options.escapeExtraCharacters&&(e=e.replace(this.options.escapeExtraCharacters,"\\$&")),e}quote(e){let t=e.indexOf('"')==-1?'""':e.indexOf("'")==-1?"''":"()";return t[0]+e+t[1]}repeat(e,t){let r="";for(let i=0;i=55296&&E<=57343?a+="\uFFFD\uFFFD\uFFFD":a+=String.fromCharCode(E),o+=6;continue}}if((d&248)===240&&o+91114111?a+="\uFFFD\uFFFD\uFFFD\uFFFD":(k-=65536,a+=String.fromCharCode(55296+(k>>10),56320+(k&1023))),o+=9;continue}}a+="\uFFFD"}return a})}no.defaultChars=";/?:@&=+$,#",no.componentChars="";const _s={};function Uh(e){let t=_s[e];if(t)return t;t=_s[e]=[];for(let r=0;r<128;r++){const i=String.fromCharCode(r);/^[0-9a-z]$/i.test(i)?t.push(i):t.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2))}for(let r=0;r"u"&&(r=!0);const i=Uh(t);let a="";for(let o=0,u=e.length;o=55296&&d<=57343){if(d>=55296&&d<=56319&&o+1=56320&&f<=57343){a+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}a+="%EF%BF%BD";continue}a+=encodeURIComponent(e[o])}return a}kl.defaultChars=";/?:@&=+$,-_.!~*'()#",kl.componentChars="-_.!~*'()";function is(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function ud(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const j0=/^([a-z0-9.+-]+:)/i,jf=/:[0-9]*$/,qE=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,XE=["<",">",'"',"`"," ","\r",` -`," "],Z0=["{","}","|","\\","^","`"].concat(XE),cd=["'"].concat(Z0),Zf=["%","/","?",";","#"].concat(cd),jt=["/","?","#"],Et=255,fn=/^[+a-z0-9A-Z_-]{0,63}$/,br=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,lr={javascript:!0,"javascript:":!0},Qi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function qs(e,t){if(e&&e instanceof ud)return e;const r=new ud;return r.parse(e,t),r}ud.prototype.parse=function(e,t){let r,i,a,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const b=qE.exec(o);if(b)return this.pathname=b[1],b[2]&&(this.search=b[2]),this}let u=j0.exec(o);if(u&&(u=u[0],r=u.toLowerCase(),this.protocol=u,o=o.substr(u.length)),(t||u||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=o.substr(0,2)==="//",a&&!(u&&lr[u])&&(o=o.substr(2),this.slashes=!0)),!lr[u]&&(a||u&&!Qi[u])){let b=-1;for(let N=0;N127?de+="x":de+=ge[xe];if(!de.match(fn)){const xe=N.slice(0,G),ae=N.slice(G+1),Ve=ge.match(br);Ve&&(xe.push(Ve[1]),ae.unshift(Ve[2])),ae.length&&(o=ae.join(".")+o),this.hostname=xe.join(".");break}}}}this.hostname.length>Et&&(this.hostname=""),R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const d=o.indexOf("#");d!==-1&&(this.hash=o.substr(d),o=o.slice(0,d));const f=o.indexOf("?");return f!==-1&&(this.search=o.substr(f),o=o.slice(0,f)),o&&(this.pathname=o),Qi[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},ud.prototype.parseHost=function(e){let t=jf.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Xs=Object.freeze(Object.defineProperty({__proto__:null,decode:no,encode:kl,format:is,parse:qs},Symbol.toStringTag,{value:"Module"})),Ta=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ks=/[\0-\x1F\x7F-\x9F]/,ba=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,ps=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Ca=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,KE=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,dd=Object.freeze(Object.defineProperty({__proto__:null,Any:Ta,Cc:Ks,Cf:ba,P:ps,S:Ca,Z:KE},Symbol.toStringTag,{value:"Module"}));function Kx(e){return Object.prototype.toString.call(e)}function ND(e){return Kx(e)==="[object String]"}const l3=Object.prototype.hasOwnProperty;function u3(e,t){return l3.call(e,t)}function Jx(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if(typeof t!="object")throw new TypeError(t+"must be object");Object.keys(t).forEach(function(r){e[r]=t[r]})}}),e}function xI(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function RD(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function eT(e){if(e>65535){e-=65536;const t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}const TI=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,c3=/&([a-z#][a-z0-9]{1,31});/gi,d3=new RegExp(TI.source+"|"+c3.source,"gi"),h3=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function p3(e,t){if(t.charCodeAt(0)===35&&h3.test(t)){const i=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return RD(i)?eT(i):e}const r=Ff(e);return r!==e?r:e}function f3(e){return e.indexOf("\\")<0?e:e.replace(TI,"$1")}function W0(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(d3,function(t,r,i){return r||p3(t,i)})}const m3=/[&<>"]/,g3=/[&<>"]/g,b3={"&":"&","<":"<",">":">",'"':"""};function O3(e){return b3[e]}function Hh(e){return m3.test(e)?e.replace(g3,O3):e}const y3=/[.?*+^$[\]\\(){}|-]/g;function E3(e){return e.replace(y3,"\\$&")}function ns(e){switch(e){case 9:case 32:return!0}return!1}function JE(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function eS(e){return ps.test(e)||Ca.test(e)}function tS(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function tT(e){return e=e.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(e=e.replace(/ẞ/g,"\xDF")),e.toLowerCase().toUpperCase()}const S3={mdurl:Xs,ucmicro:dd},v3=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:xI,assign:Jx,escapeHtml:Hh,escapeRE:E3,fromCodePoint:eT,has:u3,isMdAsciiPunct:tS,isPunctChar:eS,isSpace:ns,isString:ND,isValidEntityCode:RD,isWhiteSpace:JE,lib:S3,normalizeReference:tT,unescapeAll:W0,unescapeMd:f3},Symbol.toStringTag,{value:"Module"}));function k3(e,t,r){let i,a,o,u;const d=e.posMax,f=e.pos;for(e.pos=t+1,i=1;e.pos32))return o;if(i===41){if(u===0)break;u--}a++}return t===a||u!==0||(o.str=W0(e.slice(t,a)),o.pos=a,o.ok=!0),o}function x3(e,t,r,i){let a,o=t;const u={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(i)u.str=i.str,u.marker=i.marker;else{if(o>=r)return u;let d=e.charCodeAt(o);if(d!==34&&d!==39&&d!==40)return u;t++,o++,d===40&&(d=41),u.marker=d}for(;o"+Hh(o.content)+""},sc.code_block=function(e,t,r,i,a){const o=e[t];return""+Hh(e[t].content)+` -`},sc.fence=function(e,t,r,i,a){const o=e[t],u=o.info?W0(o.info).trim():"";let d="",f="";if(u){const E=u.split(/(\s+)/g);d=E[0],f=E.slice(2).join("")}let b;if(r.highlight?b=r.highlight(o.content,d,f)||Hh(o.content):b=Hh(o.content),b.indexOf("${b} -`}return`
${b}
-`},sc.image=function(e,t,r,i,a){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=a.renderInlineAsText(o.children,r,i),a.renderToken(e,t,r)},sc.hardbreak=function(e,t,r){return r.xhtmlOut?`
-`:`
-`},sc.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`
-`:`
-`:` -`},sc.text=function(e,t){return Hh(e[t].content)},sc.html_block=function(e,t){return e[t].content},sc.html_inline=function(e,t){return e[t].content};function G0(){this.rules=Jx({},sc)}G0.prototype.renderAttrs=function(e){let t,r,i;if(!e.attrs)return"";for(i="",t=0,r=e.attrs.length;t -`:">",a},G0.prototype.renderInline=function(e,t,r){let i="";const a=this.rules;for(let o=0,u=e.length;o=0&&(r=this.attrs[t][1]),r},fu.prototype.attrJoin=function(e,t){const r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t};function CI(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}CI.prototype.Token=fu;const C3=/\r\n?|\n/g,A3=/\0/g;function _3(e){let t;t=e.src.replace(C3,` -`),t=t.replace(A3,"\uFFFD"),e.src=t}function N3(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function R3(e){const t=e.tokens;for(let r=0,i=t.length;r\s]/i.test(e)}function I3(e){return/^<\/a\s*>/i.test(e)}function L3(e){const t=e.tokens;if(e.md.options.linkify)for(let r=0,i=t.length;r=0;u--){const d=a[u];if(d.type==="link_close"){for(u--;a[u].level!==d.level&&a[u].type!=="link_open";)u--;continue}if(d.type==="html_inline"&&(D3(d.content)&&o>0&&o--,I3(d.content)&&o++),!(o>0)&&d.type==="text"&&e.md.linkify.test(d.content)){const f=d.content;let b=e.md.linkify.match(f);const E=[];let k=d.level,x=0;b.length>0&&b[0].index===0&&u>0&&a[u-1].type==="text_special"&&(b=b.slice(1));for(let R=0;Rx){const Ve=new e.Token("text","",0);Ve.content=f.slice(x,ge),Ve.level=k,E.push(Ve)}const de=new e.Token("link_open","a",1);de.attrs=[["href",G]],de.level=k++,de.markup="linkify",de.info="auto",E.push(de);const xe=new e.Token("text","",0);xe.content=K,xe.level=k,E.push(xe);const ae=new e.Token("link_close","a",-1);ae.level=--k,ae.markup="linkify",ae.info="auto",E.push(ae),x=b[R].lastIndex}if(x=0;r--){const i=e[r];i.type==="text"&&!t&&(i.content=i.content.replace(P3,B3)),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function U3(e){let t=0;for(let r=e.length-1;r>=0;r--){const i=e[r];i.type==="text"&&!t&&AI.test(i.content)&&(i.content=i.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function H3(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(M3.test(e.tokens[t].content)&&$3(e.tokens[t].children),AI.test(e.tokens[t].content)&&U3(e.tokens[t].children))}const z3=/['"]/,_I=/['"]/g,NI="\u2019";function nT(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}function Q3(e,t){let r;const i=[];for(let a=0;a=0&&!(i[r].level<=u);r--);if(i.length=r+1,o.type!=="text")continue;let d=o.content,f=0,b=d.length;e:for(;f=0)N=d.charCodeAt(E.index-1);else for(r=a-1;r>=0&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r--)if(e[r].content){N=e[r].content.charCodeAt(e[r].content.length-1);break}let G=32;if(f=48&&N<=57&&(x=k=!1),k&&x&&(k=K,x=ge),!k&&!x){R&&(o.content=nT(o.content,E.index,NI));continue}if(x)for(r=i.length-1;r>=0;r--){let ae=i[r];if(i[r].level=0;t--)e.tokens[t].type!=="inline"||!z3.test(e.tokens[t].content)||Q3(e.tokens[t].children,e)}function j3(e){let t,r;const i=e.tokens,a=i.length;for(let o=0;o0&&this.level++,this.tokens.push(i),i},ac.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},ac.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;et;)if(!ns(this.src.charCodeAt(--e)))return e+1;return e},ac.prototype.skipChars=function(e,t){for(let r=this.src.length;er;)if(t!==this.src.charCodeAt(--e))return e+1;return e},ac.prototype.getLines=function(e,t,r,i){if(e>=t)return"";const a=new Array(t-e);for(let o=0,u=e;ur?a[o]=new Array(d-r+1).join(" ")+this.src.slice(b,E):a[o]=this.src.slice(b,E)}return a.join("")},ac.prototype.Token=fu;const Z3=65536;function LD(e,t){const r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(r,i)}function RI(e){const t=[],r=e.length;let i=0,a=e.charCodeAt(i),o=!1,u=0,d="";for(;ir)return!1;let a=t+1;if(e.sCount[a]=4)return!1;let o=e.bMarks[a]+e.tShift[a];if(o>=e.eMarks[a])return!1;const u=e.src.charCodeAt(o++);if(u!==124&&u!==45&&u!==58||o>=e.eMarks[a])return!1;const d=e.src.charCodeAt(o++);if(d!==124&&d!==45&&d!==58&&!ns(d)||u===45&&ns(d))return!1;for(;o=4)return!1;b=RI(f),b.length&&b[0]===""&&b.shift(),b.length&&b[b.length-1]===""&&b.pop();const k=b.length;if(k===0||k!==E.length)return!1;if(i)return!0;const x=e.parentType;e.parentType="table";const R=e.md.block.ruler.getRules("blockquote"),N=e.push("table_open","table",1),G=[t,0];N.map=G;const K=e.push("thead_open","thead",1);K.map=[t,t+1];const ge=e.push("tr_open","tr",1);ge.map=[t,t+1];for(let ae=0;ae=4||(b=RI(f),b.length&&b[0]===""&&b.shift(),b.length&&b[b.length-1]===""&&b.pop(),xe+=k-b.length,xe>Z3))break;if(a===t+2){const He=e.push("tbody_open","tbody",1);He.map=de=[t+2,0]}const Ve=e.push("tr_open","tr",1);Ve.map=[a,a+1];for(let He=0;He=4){i++,a=i;continue}break}e.line=a;const o=e.push("code_block","code",0);return o.content=e.getLines(t,a,4+e.blkIndent,!1)+` -`,o.map=[t,e.line],!0}function Y3(e,t,r,i){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||a+3>o)return!1;const u=e.src.charCodeAt(a);if(u!==126&&u!==96)return!1;let d=a;a=e.skipChars(a,u);let f=a-d;if(f<3)return!1;const b=e.src.slice(d,a),E=e.src.slice(a,o);if(u===96&&E.indexOf(String.fromCharCode(u))>=0)return!1;if(i)return!0;let k=t,x=!1;for(;k++,!(k>=r||(a=d=e.bMarks[k]+e.tShift[k],o=e.eMarks[k],a=4)&&(a=e.skipChars(a,u),!(a-d=4||e.src.charCodeAt(a)!==62)return!1;if(i)return!0;const d=[],f=[],b=[],E=[],k=e.md.block.ruler.getRules("blockquote"),x=e.parentType;e.parentType="blockquote";let R=!1,N;for(N=t;N=o)break;if(e.src.charCodeAt(a++)===62&&!xe){let Ve=e.sCount[N]+1,He,_t;e.src.charCodeAt(a)===32?(a++,Ve++,_t=!1,He=!0):e.src.charCodeAt(a)===9?(He=!0,(e.bsCount[N]+Ve)%4===3?(a++,Ve++,_t=!1):_t=!0):He=!1;let rn=Ve;for(d.push(e.bMarks[N]),e.bMarks[N]=a;a=o,f.push(e.bsCount[N]),e.bsCount[N]=e.sCount[N]+1+(He?1:0),b.push(e.sCount[N]),e.sCount[N]=rn-Ve,E.push(e.tShift[N]),e.tShift[N]=a-e.bMarks[N];continue}if(R)break;let ae=!1;for(let Ve=0,He=k.length;Ve";const ge=[t,0];K.map=ge,e.md.block.tokenize(e,t,N);const de=e.push("blockquote_close","blockquote",-1);de.markup=">",e.lineMax=u,e.parentType=x,ge[1]=e.line;for(let xe=0;xe=4)return!1;let o=e.bMarks[t]+e.tShift[t];const u=e.src.charCodeAt(o++);if(u!==42&&u!==45&&u!==95)return!1;let d=1;for(;o=i)return-1;let o=e.src.charCodeAt(a++);if(o<48||o>57)return-1;for(;;){if(a>=i)return-1;if(o=e.src.charCodeAt(a++),o>=48&&o<=57){if(a-r>=10)return-1;continue}if(o===41||o===46)break;return-1}return a=4||e.listIndent>=0&&e.sCount[f]-e.listIndent>=4&&e.sCount[f]=e.blkIndent&&(E=!0);let k,x,R;if((R=II(e,f))>=0){if(k=!0,u=e.bMarks[f]+e.tShift[f],x=Number(e.src.slice(u,R-1)),E&&x!==1)return!1}else if((R=DI(e,f))>=0)k=!1;else return!1;if(E&&e.skipSpaces(R)>=e.eMarks[f])return!1;if(i)return!0;const N=e.src.charCodeAt(R-1),G=e.tokens.length;k?(d=e.push("ordered_list_open","ol",1),x!==1&&(d.attrs=[["start",x]])):d=e.push("bullet_list_open","ul",1);const K=[f,0];d.map=K,d.markup=String.fromCharCode(N);let ge=!1;const de=e.md.block.ruler.getRules("list"),xe=e.parentType;for(e.parentType="list";f=a?_t=1:_t=Ve-ae,_t>4&&(_t=1);const rn=ae+_t;d=e.push("list_item_open","li",1),d.markup=String.fromCharCode(N);const St=[f,0];d.map=St,k&&(d.info=e.src.slice(u,R-1));const xn=e.tight,tr=e.tShift[f],Xn=e.sCount[f],pr=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=rn,e.tight=!0,e.tShift[f]=He-e.bMarks[f],e.sCount[f]=Ve,He>=a&&e.isEmpty(f+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,f,r,!0),(!e.tight||ge)&&(b=!1),ge=e.line-f>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=pr,e.tShift[f]=tr,e.sCount[f]=Xn,e.tight=xn,d=e.push("list_item_close","li",-1),d.markup=String.fromCharCode(N),f=e.line,St[1]=f,f>=r||e.sCount[f]=4)break;let Hr=!1;for(let sr=0,$t=de.length;sr<$t;sr++)if(de[sr](e,f,r,!0)){Hr=!0;break}if(Hr)break;if(k){if(R=II(e,f),R<0)break;u=e.bMarks[f]+e.tShift[f]}else if(R=DI(e,f),R<0)break;if(N!==e.src.charCodeAt(R-1))break}return k?d=e.push("ordered_list_close","ol",-1):d=e.push("bullet_list_close","ul",-1),d.markup=String.fromCharCode(N),K[1]=f,e.line=f,e.parentType=xe,b&&K3(e,G),!0}function eL(e,t,r,i){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],u=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==91)return!1;function d(de){const xe=e.lineMax;if(de>=xe||e.isEmpty(de))return null;let ae=!1;if(e.sCount[de]-e.blkIndent>3&&(ae=!0),e.sCount[de]<0&&(ae=!0),!ae){const _t=e.md.block.ruler.getRules("reference"),rn=e.parentType;e.parentType="reference";let St=!1;for(let xn=0,tr=_t.length;xn"u"&&(e.env.references={}),typeof e.env.references[ge]>"u"&&(e.env.references[ge]={title:K,href:k}),e.line=u),!0):!1}const tL=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],nL="[a-zA-Z_:][a-zA-Z0-9:._-]*",rL="[^\"'=<>`\\x00-\\x20]+",iL="'[^']*'",sL='"[^"]*"',aL="(?:"+rL+"|"+iL+"|"+sL+")",oL="(?:\\s+"+nL+"(?:\\s*=\\s*"+aL+")?)",LI="<[A-Za-z][A-Za-z0-9\\-]*"+oL+"*\\s*\\/?>",MI="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",lL="",uL="<[?][\\s\\S]*?[?]>",cL="]*>",dL="",hL=new RegExp("^(?:"+LI+"|"+MI+"|"+lL+"|"+uL+"|"+cL+"|"+dL+")"),pL=new RegExp("^(?:"+LI+"|"+MI+")"),Y0=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(pL.source+"\\s*$"),/^$/,!1]];function fL(e,t,r,i){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(a)!==60)return!1;let u=e.src.slice(a,o),d=0;for(;d=4)return!1;let u=e.src.charCodeAt(a);if(u!==35||a>=o)return!1;let d=1;for(u=e.src.charCodeAt(++a);u===35&&a6||aa&&ns(e.src.charCodeAt(f-1))&&(o=f),e.line=t+1;const b=e.push("heading_open","h"+String(d),1);b.markup="########".slice(0,d),b.map=[t,e.line];const E=e.push("inline","",0);E.content=e.src.slice(a,o).trim(),E.map=[t,e.line],E.children=[];const k=e.push("heading_close","h"+String(d),-1);return k.markup="########".slice(0,d),!0}function gL(e,t,r){const i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const a=e.parentType;e.parentType="paragraph";let o=0,u,d=t+1;for(;d3)continue;if(e.sCount[d]>=e.blkIndent){let R=e.bMarks[d]+e.tShift[d];const N=e.eMarks[d];if(R=N))){o=u===61?1:2;break}}if(e.sCount[d]<0)continue;let x=!1;for(let R=0,N=i.length;R3||e.sCount[o]<0)continue;let b=!1;for(let E=0,k=i.length;E=r||e.sCount[u]=o){e.line=r;break}const f=e.line;let b=!1;for(let E=0;E=e.line)throw new Error("block rule didn't increment state.line");break}if(!b)throw new Error("none of the block rules matched");e.tight=!d,e.isEmpty(e.line-1)&&(d=!0),u=e.line,u0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(a),i},nS.prototype.scanDelims=function(e,t){const r=this.posMax,i=this.src.charCodeAt(e),a=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o0)return!1;const r=e.pos,i=e.posMax;if(r+3>i||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47)return!1;const a=e.pending.match(EL);if(!a)return!1;const o=a[1],u=e.md.linkify.matchAtStart(e.src.slice(r-o.length));if(!u)return!1;let d=u.url;if(d.length<=o.length)return!1;d=d.replace(/\*+$/,"");const f=e.md.normalizeLink(d);if(!e.md.validateLink(f))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const b=e.push("link_open","a",1);b.attrs=[["href",f]],b.markup="linkify",b.info="auto";const E=e.push("text","",0);E.content=e.md.normalizeLinkText(d);const k=e.push("link_close","a",-1);k.markup="linkify",k.info="auto"}return e.pos+=d.length-o.length,!0}function vL(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==10)return!1;const i=e.pending.length-1,a=e.posMax;if(!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){let o=i-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r?@[]^_`{|}~-".split("").forEach(function(e){MD[e.charCodeAt(0)]=1});function kL(e,t){let r=e.pos;const i=e.posMax;if(e.src.charCodeAt(r)!==92||(r++,r>=i))return!1;let a=e.src.charCodeAt(r);if(a===10){for(t||e.push("hardbreak","br",0),r++;r=55296&&a<=56319&&r+1=56320&&d<=57343&&(o+=e.src[r+1],r++)}const u="\\"+o;if(!t){const d=e.push("text_special","",0);a<256&&MD[a]!==0?d.content=o:d.content=u,d.markup=u,d.info="escape"}return e.pos=r+1,!0}function wL(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==96)return!1;const i=r;r++;const a=e.posMax;for(;r=0;i--){const a=t[i];if(a.marker!==95&&a.marker!==42||a.end===-1)continue;const o=t[a.end],u=i>0&&t[i-1].end===a.end+1&&t[i-1].marker===a.marker&&t[i-1].token===a.token-1&&t[a.end+1].token===o.token+1,d=String.fromCharCode(a.marker),f=e.tokens[a.token];f.type=u?"strong_open":"em_open",f.tag=u?"strong":"em",f.nesting=1,f.markup=u?d+d:d,f.content="";const b=e.tokens[o.token];b.type=u?"strong_close":"em_close",b.tag=u?"strong":"em",b.nesting=-1,b.markup=u?d+d:d,b.content="",u&&(e.tokens[t[i-1].token].content="",e.tokens[t[a.end+1].token].content="",i--)}}function AL(e){const t=e.tokens_meta,r=e.tokens_meta.length;BI(e,e.delimiters);for(let i=0;i=k)return!1;if(f=N,a=e.md.helpers.parseLinkDestination(e.src,N,e.posMax),a.ok){for(u=e.md.normalizeLink(a.str),e.md.validateLink(u)?N=a.pos:u="",f=N;N=k||e.src.charCodeAt(N)!==41)&&(b=!0),N++}if(b){if(typeof e.env.references>"u")return!1;if(N=0?i=e.src.slice(f,N++):N=R+1):N=R+1,i||(i=e.src.slice(x,R)),o=e.env.references[tT(i)],!o)return e.pos=E,!1;u=o.href,d=o.title}if(!t){e.pos=x,e.posMax=R;const G=e.push("link_open","a",1),K=[["href",u]];G.attrs=K,d&&K.push(["title",d]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=N,e.posMax=k,!0}function NL(e,t){let r,i,a,o,u,d,f,b,E="";const k=e.pos,x=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const R=e.pos+2,N=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(N<0)return!1;if(o=N+1,o=x)return!1;for(b=o,d=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),d.ok&&(E=e.md.normalizeLink(d.str),e.md.validateLink(E)?o=d.pos:E=""),b=o;o=x||e.src.charCodeAt(o)!==41)return e.pos=k,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o=0?a=e.src.slice(b,o++):o=N+1):o=N+1,a||(a=e.src.slice(R,N)),u=e.env.references[tT(a)],!u)return e.pos=k,!1;E=u.href,f=u.title}if(!t){i=e.src.slice(R,N);const G=[];e.md.inline.parse(i,e.md,e.env,G);const K=e.push("image","img",0),ge=[["src",E],["alt",""]];K.attrs=ge,K.children=G,K.content=i,f&&ge.push(["title",f])}return e.pos=o,e.posMax=x,!0}const RL=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,DL=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function IL(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==60)return!1;const i=e.pos,a=e.posMax;for(;;){if(++r>=a)return!1;const u=e.src.charCodeAt(r);if(u===60)return!1;if(u===62)break}const o=e.src.slice(i+1,r);if(DL.test(o)){const u=e.md.normalizeLink(o);if(!e.md.validateLink(u))return!1;if(!t){const d=e.push("link_open","a",1);d.attrs=[["href",u]],d.markup="autolink",d.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(o);const b=e.push("link_close","a",-1);b.markup="autolink",b.info="auto"}return e.pos+=o.length+2,!0}if(RL.test(o)){const u=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(u))return!1;if(!t){const d=e.push("link_open","a",1);d.attrs=[["href",u]],d.markup="autolink",d.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(o);const b=e.push("link_close","a",-1);b.markup="autolink",b.info="auto"}return e.pos+=o.length+2,!0}return!1}function LL(e){return/^\s]/i.test(e)}function ML(e){return/^<\/a\s*>/i.test(e)}function PL(e){const t=e|32;return t>=97&&t<=122}function FL(e,t){if(!e.md.options.html)return!1;const r=e.posMax,i=e.pos;if(e.src.charCodeAt(i)!==60||i+2>=r)return!1;const a=e.src.charCodeAt(i+1);if(a!==33&&a!==63&&a!==47&&!PL(a))return!1;const o=e.src.slice(i).match(hL);if(!o)return!1;if(!t){const u=e.push("html_inline","",0);u.content=o[0],LL(u.content)&&e.linkLevel++,ML(u.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const BL=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,$L=/^&([a-z][a-z0-9]{1,31});/i;function UL(e,t){const r=e.pos,i=e.posMax;if(e.src.charCodeAt(r)!==38||r+1>=i)return!1;if(e.src.charCodeAt(r+1)===35){const a=e.src.slice(r).match(BL);if(a){if(!t){const o=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),u=e.push("text_special","",0);u.content=RD(o)?eT(o):eT(65533),u.markup=a[0],u.info="entity"}return e.pos+=a[0].length,!0}}else{const a=e.src.slice(r).match($L);if(a){const o=Ff(a[0]);if(o!==a[0]){if(!t){const u=e.push("text_special","",0);u.content=o,u.markup=a[0],u.info="entity"}return e.pos+=a[0].length,!0}}}return!1}function UI(e){const t={},r=e.length;if(!r)return;let i=0,a=-2;const o=[];for(let u=0;uf;b-=o[b]+1){const k=e[b];if(k.marker===d.marker&&k.open&&k.end<0){let x=!1;if((k.close||d.open)&&(k.length+d.length)%3===0&&(k.length%3!==0||d.length%3!==0)&&(x=!0),!x){const R=b>0&&!e[b-1].open?o[b-1]+1:0;o[u]=u-b+R,o[b]=R,d.open=!1,k.end=u,k.close=!1,E=-1,a=-2;break}}}E!==-1&&(t[d.marker][(d.open?3:0)+(d.length||0)%3]=E)}}function HL(e){const t=e.tokens_meta,r=e.tokens_meta.length;UI(e.delimiters);for(let i=0;i0&&i++,a[t].type==="text"&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;u||e.pos++,o[t]=e.pos},rS.prototype.tokenize=function(e){const t=this.ruler.getRules(""),r=t.length,i=e.posMax,a=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(u){if(e.pos>=i)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},rS.prototype.parse=function(e,t,r,i){const a=new this.State(e,t,r,i);this.tokenize(a);const o=this.ruler2.getRules(""),u=o.length;for(let d=0;d|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function BD(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}function sT(e){return Object.prototype.toString.call(e)}function VL(e){return sT(e)==="[object String]"}function jL(e){return sT(e)==="[object Object]"}function ZL(e){return sT(e)==="[object RegExp]"}function HI(e){return sT(e)==="[object Function]"}function WL(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const zI={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function GL(e){return Object.keys(e||{}).reduce(function(t,r){return t||zI.hasOwnProperty(r)},!1)}const YL={"http:":{validate:function(e,t,r){const i=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(i)?i.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){const i=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(i)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:i.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){const i=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(i)?i.match(r.re.mailto)[0].length:0}}},qL="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",XL="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function KL(e){e.__index__=-1,e.__text_cache__=""}function JL(e){return function(t,r){const i=t.slice(r);return e.test(i)?i.match(e)[0].length:0}}function QI(){return function(e,t){t.normalize(e)}}function aT(e){const t=e.re=QL(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(qL),r.push(t.src_xn),t.src_tlds=r.join("|");function i(d){return d.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(i(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(i(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(i(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(i(t.tpl_host_fuzzy_test),"i");const a=[];e.__compiled__={};function o(d,f){throw new Error('(LinkifyIt) Invalid schema "'+d+'": '+f)}Object.keys(e.__schemas__).forEach(function(d){const f=e.__schemas__[d];if(f===null)return;const b={validate:null,link:null};if(e.__compiled__[d]=b,jL(f)){ZL(f.validate)?b.validate=JL(f.validate):HI(f.validate)?b.validate=f.validate:o(d,f),HI(f.normalize)?b.normalize=f.normalize:f.normalize?o(d,f):b.normalize=QI();return}if(VL(f)){a.push(d);return}o(d,f)}),a.forEach(function(d){e.__compiled__[e.__schemas__[d]]&&(e.__compiled__[d].validate=e.__compiled__[e.__schemas__[d]].validate,e.__compiled__[d].normalize=e.__compiled__[e.__schemas__[d]].normalize)}),e.__compiled__[""]={validate:null,normalize:QI()};const u=Object.keys(e.__compiled__).filter(function(d){return d.length>0&&e.__compiled__[d]}).map(WL).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),KL(e)}function eM(e,t){const r=e.__index__,i=e.__last_index__,a=e.__text_cache__.slice(r,i);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=i+t,this.raw=a,this.text=a,this.url=a}function $D(e,t){const r=new eM(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function Vo(e,t){if(!(this instanceof Vo))return new Vo(e,t);t||GL(e)&&(t=e,e={}),this.__opts__=BD({},zI,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=BD({},YL,e),this.__compiled__={},this.__tlds__=XL,this.__tlds_replaced__=!1,this.re={},aT(this)}Vo.prototype.add=function(e,t){return this.__schemas__[e]=t,aT(this),this},Vo.prototype.set=function(e){return this.__opts__=BD(this.__opts__,e),this},Vo.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,r,i,a,o,u,d,f,b;if(this.re.schema_test.test(e)){for(d=this.re.schema_search,d.lastIndex=0;(t=d.exec(e))!==null;)if(a=this.testSchemaAt(e,t[2],d.lastIndex),a){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(f=e.search(this.re.host_fuzzy_test),f>=0&&(this.__index__<0||f=0&&(i=e.match(this.re.email_fuzzy))!==null&&(o=i.index+i[1].length,u=i.index+i[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=u))),this.__index__>=0},Vo.prototype.pretest=function(e){return this.re.pretest.test(e)},Vo.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},Vo.prototype.match=function(e){const t=[];let r=0;this.__index__>=0&&this.__text_cache__===e&&(t.push($D(this,r)),r=this.__last_index__);let i=r?e.slice(r):e;for(;this.test(i);)t.push($D(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return t.length?t:null},Vo.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const r=this.testSchemaAt(e,t[2],t[0].length);return r?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r,$D(this,0)):null},Vo.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,a){return r!==a[i-1]}).reverse(),aT(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,aT(this),this)},Vo.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},Vo.prototype.onCompile=function(){};const tM={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},nM={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},rM={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},iM={default:tM,zero:nM,commonmark:rM},sM=/^(vbscript|javascript|file|data):/,aM=/^data:image\/(gif|png|jpeg|webp);/;function oM(e){const t=e.trim().toLowerCase();return sM.test(t)?aM.test(t):!0}const VI=["http:","https:","mailto:"];function lM(e){const t=qs(e,!0);if(t.hostname&&(!t.protocol||VI.indexOf(t.protocol)>=0))try{t.hostname=Jt.toASCII(t.hostname)}catch(r){}return kl(is(t))}function uM(e){const t=qs(e,!0);if(t.hostname&&(!t.protocol||VI.indexOf(t.protocol)>=0))try{t.hostname=Jt.toUnicode(t.hostname)}catch(r){}return no(is(t),no.defaultChars+"%")}function jo(e,t){if(!(this instanceof jo))return new jo(e,t);t||ND(e)||(t=e||{},e="default"),this.inline=new rS,this.block=new iT,this.core=new ID,this.renderer=new G0,this.linkify=new Vo,this.validateLink=oM,this.normalizeLink=lM,this.normalizeLinkText=uM,this.utils=v3,this.helpers=Jx({},T3),this.options={},this.configure(e),t&&this.set(t)}jo.prototype.set=function(e){return Jx(this.options,e),this},jo.prototype.configure=function(e){const t=this;if(ND(e)){const r=e;if(e=iM[r],!e)throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this},jo.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));const i=e.filter(function(a){return r.indexOf(a)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this},jo.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));const i=e.filter(function(a){return r.indexOf(a)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this},jo.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},jo.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const r=new this.core.State(e,this,t);return this.core.process(r),r.tokens},jo.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},jo.prototype.parseInline=function(e,t){const r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},jo.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var UD=!0,jI=!1,ZI=!1,cM=function(e,t){t&&(UD=!t.enabled,jI=!!t.label,ZI=!!t.labelAfter),e.core.ruler.after("inline","github-task-lists",function(r){for(var i=r.tokens,a=2;a=0;i--)if(e[i].level===r)return i;return-1}function hM(e,t){return OM(e[t])&&yM(e[t-1])&&EM(e[t-2])&&SM(e[t])}function pM(e,t){if(e.children.unshift(fM(e,t)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),jI)if(ZI){e.children.pop();var r="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+r+'">',e.children.push(bM(e.content,r,t))}else e.children.unshift(mM(t)),e.children.push(gM(t))}function fM(e,t){var r=new t("html_inline","",0),i=UD?' disabled="" ':"";return e.content.indexOf("[ ] ")===0?r.content='':(e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0)&&(r.content=''),r}function mM(e){var t=new e("html_inline","",0);return t.content="",t}function bM(e,t,r){var i=new r("html_inline","",0);return i.content='",i.attrs=[{for:t}],i}function OM(e){return e.type==="inline"}function yM(e){return e.type==="paragraph_open"}function EM(e){return e.type==="list_item_open"}function SM(e){return e.content.indexOf("[ ] ")===0||e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0}const vM=Fo(cM);var kM=Object.defineProperty,wM=(e,t,r)=>t in e?kM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oT=(e,t,r)=>(wM(e,typeof t!="symbol"?t+"":t,r),r);const xM=xi.create({name:"markdownTightLists",addOptions:()=>({tight:!0,tightClass:"tight",listTypes:["bulletList","orderedList"]}),addGlobalAttributes(){return[{types:this.options.listTypes,attributes:{tight:{default:this.options.tight,parseHTML:e=>e.getAttribute("data-tight")==="true"||!e.querySelector("p"),renderHTML:e=>({class:e.tight?this.options.tightClass:null,"data-tight":e.tight?"true":null})}}}]},addCommands(){var e=this;return{toggleTight:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return r=>{let{editor:i,commands:a}=r;function o(u){if(!i.isActive(u))return!1;const d=i.getAttributes(u);return a.updateAttributes(u,{tight:t!=null?t:!(d!=null&&d.tight)})}return e.options.listTypes.some(u=>o(u))}}}}}),GI=jo();function YI(e,t){return GI.inline.State.prototype.scanDelims.call({src:e,posMax:e.length}),new GI.inline.State(e,null,null,[]).scanDelims(t,!0)}function qI(e,t,r,i){let a=e.substring(0,r)+e.substring(r+t.length);return a=a.substring(0,r+i)+t+a.substring(r+i),a}function TM(e,t,r,i){let a=r,o=e;for(;ar&&!YI(o,a).can_close;)o=qI(o,t,a,-1),a--;return{text:o,from:r,to:a}}function AM(e,t,r,i){let a={text:e,from:r,to:i};return a=TM(a.text,t,a.from,a.to),a=CM(a.text,t,a.from,a.to),a.to-a.from) (<\/.*?>)$/);return i?[i[1],i[2]]:null}function HD(e){const t=`${e}`;return new window.DOMParser().parseFromString(t,"text/html").body}function NM(e){return e==null?void 0:e.replace(//g,">")}function RM(e){const t=e.parentElement,r=t.cloneNode();for(;t.firstChild&&t.firstChild!==e;)r.appendChild(t.firstChild);r.childNodes.length>0&&t.parentElement.insertBefore(r,t),t.parentElement.insertBefore(e,t),t.childNodes.length===0&&t.remove()}function DM(e){const t=e.parentNode;for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}const lT=ci.create({name:"markdownHTMLNode",addStorage(){return{markdown:{serialize(e,t,r){this.editor.storage.markdown.options.html?e.write(IM(t,r)):(console.warn(`Tiptap Markdown: "${t.type.name}" node is only available in html mode`),e.write(`[${t.type.name}]`)),t.isBlock&&e.closeBlock(t)},parse:{}}}}});function IM(e,t){const r=e.type.schema,i=Ap(Ee.from(e),r);return e.isBlock&&(t instanceof Ee||t.type.name===r.topNodeType.name)?LM(i):i}function LM(e){const t=HD(e).firstElementChild;return t.innerHTML=t.innerHTML.trim()?` -${t.innerHTML} -`:` -`,t.outerHTML}const MM=ci.create({name:"blockquote"}),PM=MM.extend({addStorage(){return{markdown:{serialize:zs.nodes.blockquote,parse:{}}}}}),FM=ci.create({name:"bulletList"}),JI=FM.extend({addStorage(){return{markdown:{serialize(e,t){return e.renderList(t," ",()=>(this.editor.storage.markdown.options.bulletListMarker||"-")+" ")},parse:{}}}}}),BM=ci.create({name:"codeBlock"}),$M=BM.extend({addStorage(){return{markdown:{serialize(e,t){e.write("```"+(t.attrs.language||"")+` -`),e.text(t.textContent,!1),e.ensureNewLine(),e.write("```"),e.closeBlock(t)},parse:{setup(e){var t;e.set({langPrefix:(t=this.options.languageClassPrefix)!==null&&t!==void 0?t:"language-"})},updateDOM(e){e.innerHTML=e.innerHTML.replace(/\n<\/code><\/pre>/g,"")}}}}}}),UM=ci.create({name:"hardBreak"}),e3=UM.extend({addStorage(){return{markdown:{serialize(e,t,r,i){for(let a=i+1;a0&&t.child(r-i-1).type.name===e.type.name;i++);return i}const XM=YM.extend({addStorage(){return{markdown:{serialize(e,t,r,i){const a=t.attrs.start||1,o=String(a+t.childCount-1).length,u=e.repeat(" ",o+2),d=qM(t,r,i)%2?") ":". ";e.renderList(t,u,f=>{const b=String(a+f);return e.repeat(" ",o-b.length)+b+d})},parse:{}}}}}),KM=ci.create({name:"paragraph"}),JM=KM.extend({addStorage(){return{markdown:{serialize:zs.nodes.paragraph,parse:{}}}}});function zD(e){var t,r;return(t=e==null||(r=e.content)===null||r===void 0?void 0:r.content)!==null&&t!==void 0?t:[]}const e4=ci.create({name:"table"}),t4=e4.extend({addStorage(){return{markdown:{serialize(e,t,r){if(!n4(t)){lT.storage.markdown.serialize.call(this,e,t,r);return}e.inTable=!0,t.forEach((i,a,o)=>{if(e.write("| "),i.forEach((u,d,f)=>{f&&e.write(" | ");const b=u.firstChild;b.textContent.trim()&&e.renderInline(b)}),e.write(" |"),e.ensureNewLine(),!o){const u=Array.from({length:i.childCount}).map(()=>"---").join(" | ");e.write(`| ${u} |`),e.ensureNewLine()}}),e.closeBlock(t),e.inTable=!1},parse:{}}}}});function t3(e){return e.attrs.colspan>1||e.attrs.rowspan>1}function n4(e){const t=zD(e),r=t[0],i=t.slice(1);return!(zD(r).some(a=>a.type.name!=="tableHeader"||t3(a)||a.childCount>1)||i.some(a=>zD(a).some(o=>o.type.name==="tableHeader"||t3(o)||o.childCount>1)))}const r4=ci.create({name:"taskItem"}),i4=r4.extend({addStorage(){return{markdown:{serialize(e,t){const r=t.attrs.checked?"[x]":"[ ]";e.write(`${r} `),e.renderContent(t)},parse:{updateDOM(e){[...e.querySelectorAll(".task-list-item")].forEach(t=>{const r=t.querySelector("input");t.setAttribute("data-type","taskItem"),r&&(t.setAttribute("data-checked",r.checked),r.remove())})}}}}}}),s4=ci.create({name:"taskList"}),a4=s4.extend({addStorage(){return{markdown:{serialize:JI.storage.markdown.serialize,parse:{setup(e){e.use(vM)},updateDOM(e){[...e.querySelectorAll(".contains-task-list")].forEach(t=>{t.setAttribute("data-type","taskList")})}}}}}}),o4=ci.create({name:"text"}),l4=o4.extend({addStorage(){return{markdown:{serialize(e,t){e.text(NM(t.text))},parse:{}}}}}),u4=Ji.create({name:"bold"}),c4=u4.extend({addStorage(){return{markdown:{serialize:zs.marks.strong,parse:{}}}}}),d4=Ji.create({name:"code"}),h4=d4.extend({addStorage(){return{markdown:{serialize:zs.marks.code,parse:{}}}}}),p4=Ji.create({name:"italic"}),f4=p4.extend({addStorage(){return{markdown:{serialize:zs.marks.em,parse:{}}}}}),m4=Ji.create({name:"link"}),g4=m4.extend({addStorage(){return{markdown:{serialize:zs.marks.link,parse:{}}}}}),b4=Ji.create({name:"strike"}),O4=b4.extend({addStorage(){return{markdown:{serialize:{open:"~~",close:"~~",expelEnclosingWhitespace:!0},parse:{}}}}}),y4=[PM,JI,$M,e3,zM,VM,lT,ZM,GM,XM,JM,t4,i4,a4,l4,c4,h4,XI,f4,g4,O4];function uT(e){var t,r;const i=(t=e.storage)===null||t===void 0?void 0:t.markdown,a=(r=y4.find(o=>o.name===e.name))===null||r===void 0?void 0:r.storage.markdown;return i||a?je(je({},a),i):null}class E4{constructor(t){oT(this,"editor",null),this.editor=t}serialize(t){const r=new _M(this.nodes,this.marks,{hardBreakNodeName:e3.name});return r.renderContent(t),r.out}get nodes(){var t;return je(je({},Object.fromEntries(Object.keys(this.editor.schema.nodes).map(r=>[r,this.serializeNode(lT)]))),Object.fromEntries((t=this.editor.extensionManager.extensions.filter(r=>r.type==="node"&&this.serializeNode(r)).map(r=>[r.name,this.serializeNode(r)]))!==null&&t!==void 0?t:[]))}get marks(){var t;return je(je({},Object.fromEntries(Object.keys(this.editor.schema.marks).map(r=>[r,this.serializeMark(XI)]))),Object.fromEntries((t=this.editor.extensionManager.extensions.filter(r=>r.type==="mark"&&this.serializeMark(r)).map(r=>[r.name,this.serializeMark(r)]))!==null&&t!==void 0?t:[]))}serializeNode(t){var r;return(r=uT(t))===null||r===void 0||(r=r.serialize)===null||r===void 0?void 0:r.bind({editor:this.editor,options:t.options})}serializeMark(t){var r;const i=(r=uT(t))===null||r===void 0?void 0:r.serialize;return i?_n(je({},i),{open:typeof i.open=="function"?i.open.bind({editor:this.editor,options:t.options}):i.open,close:typeof i.close=="function"?i.close.bind({editor:this.editor,options:t.options}):i.close}):null}}class S4{constructor(t,r){oT(this,"editor",null),oT(this,"md",null);let{html:i,linkify:a,breaks:o}=r;this.editor=t,this.md=this.withPatchedRenderer(jo({html:i,linkify:a,breaks:o}))}parse(t){let{inline:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string"){this.editor.extensionManager.extensions.forEach(o=>{var u;return(u=uT(o))===null||u===void 0||(u=u.parse)===null||u===void 0||(u=u.setup)===null||u===void 0?void 0:u.call({editor:this.editor,options:o.options},this.md)});const i=this.md.render(t),a=HD(i);return this.editor.extensionManager.extensions.forEach(o=>{var u;return(u=uT(o))===null||u===void 0||(u=u.parse)===null||u===void 0||(u=u.updateDOM)===null||u===void 0?void 0:u.call({editor:this.editor,options:o.options},a)}),this.normalizeDOM(a,{inline:r,content:t}),a.innerHTML}return t}normalizeDOM(t,r){let{inline:i,content:a}=r;return this.normalizeBlocks(t),t.querySelectorAll("*").forEach(o=>{var u;((u=o.nextSibling)===null||u===void 0?void 0:u.nodeType)===Node.TEXT_NODE&&!o.closest("pre")&&(o.nextSibling.textContent=o.nextSibling.textContent.replace(/^\n/,""))}),i&&this.normalizeInline(t,a),t}normalizeBlocks(t){const r=Object.values(this.editor.schema.nodes).filter(i=>i.isBlock).map(i=>{var a;return(a=i.spec.parseDOM)===null||a===void 0?void 0:a.map(o=>o.tag)}).flat().filter(Boolean).join(",");r&&[...t.querySelectorAll(r)].forEach(i=>{i.parentElement.matches("p")&&RM(i)})}normalizeInline(t,r){var i;if((i=t.firstElementChild)!==null&&i!==void 0&&i.matches("p")){var a,o,u,d;const f=t.firstElementChild,{nextElementSibling:b}=f,E=(a=(o=r.match(/^\s+/))===null||o===void 0?void 0:o[0])!==null&&a!==void 0?a:"",k=b?"":(u=(d=r.match(/\s+$/))===null||d===void 0?void 0:d[0])!==null&&u!==void 0?u:"";if(r.match(/^\n\n/)){f.innerHTML=`${f.innerHTML}${k}`;return}DM(f),t.innerHTML=`${E}${t.innerHTML}${k}`}}withPatchedRenderer(t){const r=i=>function(){const a=i(...arguments);return a===` -`?a:a[a.length-1]===` -`?a.slice(0,-1):a};return t.renderer.rules.hardbreak=r(t.renderer.rules.hardbreak),t.renderer.rules.softbreak=r(t.renderer.rules.softbreak),t.renderer.rules.fence=r(t.renderer.rules.fence),t.renderer.rules.code_block=r(t.renderer.rules.code_block),t.renderer.renderToken=r(t.renderer.renderToken.bind(t.renderer)),t}}const v4=xi.create({name:"markdownClipboard",addOptions(){return{transformPastedText:!1,transformCopiedText:!1}},addProseMirrorPlugins(){return[new Di({key:new _i("markdownClipboard"),props:{clipboardTextParser:(e,t,r)=>{if(r||!this.options.transformPastedText)return null;const i=this.editor.storage.markdown.parser.parse(e,{inline:!0});return Rt.fromSchema(this.editor.schema).parseSlice(HD(i),{preserveWhitespace:!0,context:t})},clipboardTextSerializer:e=>this.options.transformCopiedText?this.editor.storage.markdown.serializer.serialize(e.content):null}})]}}),k4=xi.create({name:"markdown",priority:50,addOptions(){return{html:!0,tightLists:!0,tightListClass:"tight",bulletListMarker:"-",linkify:!1,breaks:!1,transformPastedText:!1,transformCopiedText:!1}},addCommands(){const e=X1.Commands.config.addCommands();return{setContent:(t,r,i)=>a=>e.setContent(a.editor.storage.markdown.parser.parse(t),r,i)(a),insertContentAt:(t,r,i)=>a=>e.insertContentAt(t,a.editor.storage.markdown.parser.parse(r,{inline:!0}),i)(a)}},onBeforeCreate(){this.editor.storage.markdown={options:je({},this.options),parser:new S4(this.editor,this.options),serializer:new E4(this.editor),getMarkdown:()=>this.editor.storage.markdown.serializer.serialize(this.editor.state.doc)},this.editor.options.initialContent=this.editor.options.content,this.editor.options.content=this.editor.storage.markdown.parser.parse(this.editor.options.content)},onCreate(){this.editor.options.content=this.editor.options.initialContent,delete this.editor.options.initialContent},addStorage(){return{}},addExtensions(){return[xM.configure({tight:this.options.tightLists,tightClass:this.options.tightListClass}),v4.configure({transformPastedText:this.options.transformPastedText,transformCopiedText:this.options.transformCopiedText})]}});var w4=function(e,t,r){function i(x){return x.trim().split(" ",2)[0]===t}function a(x,R,N,G,K){return x[R].nesting===1&&x[R].attrJoin("class",t),K.renderToken(x,R,N,G,K)}r=r||{};var o=3,u=r.marker||":",d=u.charCodeAt(0),f=u.length,b=r.validate||i,E=r.render||a;function k(x,R,N,G){var K,ge,de,xe,ae,Ve,He,_t,rn=!1,St=x.bMarks[R]+x.tShift[R],xn=x.eMarks[R];if(d!==x.src.charCodeAt(St))return!1;for(K=St+1;K<=xn&&u[(K-St)%f]===x.src[K];K++);if(de=Math.floor((K-St)/f),de=N||(St=x.bMarks[ge]+x.tShift[ge],xn=x.eMarks[ge],St=4)){for(K=St+1;K<=xn&&u[(K-St)%f]===x.src[K];K++);if(!(Math.floor((K-St)/f){this.options.classes.forEach(t=>{e.use(x4,t)})}}}}},addAttributes(){return{containerClass:{default:null,parseHTML:e=>[...e.classList].find(t=>this.options.classes.includes(t)),renderHTML:e=>({class:e.containerClass})}}},parseHTML(){return[{tag:"div",getAttrs:e=>{const t=e,r=["container-wrapper"].concat(this.options.classes);return[...t.classList].find(i=>r.includes(i))?null:!1}}]},renderHTML({HTMLAttributes:e}){return["div",ui(this.options.HTMLAttributes,e),0]},addCommands(){return{setContainer:e=>({commands:t})=>t.wrapIn(this.name,{containerClass:e}),toggleContainer:e=>({commands:t})=>t.toggleWrap(this.name,{containerClass:e}),unsetContainer:()=>({commands:e})=>e.lift(this.name)}},addInputRules(){return[eu({find:T4,type:this.type,getAttributes:e=>({containerClass:e[1]})})]}}),A4=pn.extend({addAttributes(){var e;return _n(je({},(e=this.parent)==null?void 0:e.call(this)),{id:{default:null}})}}),_4=xi.create({name:"saveExt",addKeyboardShortcuts(){return{"Mod-s":({editor:e})=>this.options.onSave?this.options.onSave(e.aiEditor):!1}}}),N4=ci.create({name:"figure",content:"block+",group:"block",defining:!0,draggable:!0,selectable:!0,addOptions(){return{HTMLAttributes:{dir:"auto"}}},parseHTML(){return[{tag:"figure"}]},renderHTML({HTMLAttributes:e}){return["figure",ui(this.options.HTMLAttributes,e),0]}}),R4=ci.create({name:"figcaption",content:"inline*",group:"block",defining:!0,addOptions(){return{HTMLAttributes:{dir:"auto"}}},parseHTML(){return[{tag:"figcaption"}]},renderHTML({HTMLAttributes:e}){return["figcaption",ui(this.options.HTMLAttributes,e),0]}}),D4=(e,t)=>{var r,i,a,o,u,d,f,b,E,k,x,R,N,G,K,ge,de,xe,ae,Ve,He,_t,rn,St,xn,tr;const Xn=[MC.configure({codeBlock:!1,heading:!1})];return Xn.push(Zv,PC,Wv,A4,$C.configure({uploadUrl:(r=t.attachment)==null?void 0:r.uploadUrl,uploadHeaders:(i=t.attachment)==null?void 0:i.uploadHeaders,uploadFormName:(a=t.attachment)==null?void 0:a.uploadFormName,uploader:((o=t.attachment)==null?void 0:o.uploader)||t.uploader,uploaderEvent:(u=t.attachment)==null?void 0:u.uploaderEvent}),UC,ix,Kv.configure({multicolor:!0}),xy,zC,QC,VC.configure({types:["heading","paragraph"]}),jC,ek.configure({allowBase64:typeof((d=t.image)==null?void 0:d.allowBase64)>"u"?!0:(f=t.image)==null?void 0:f.allowBase64,defaultSize:((b=t.image)==null?void 0:b.defaultSize)||350,uploadUrl:(E=t.image)==null?void 0:E.uploadUrl,uploadHeaders:(k=t.image)==null?void 0:k.uploadHeaders,uploadFormName:(x=t.image)==null?void 0:x.uploadFormName,uploader:((R=t.image)==null?void 0:R.uploader)||t.uploader,uploaderEvent:(N=t.image)==null?void 0:N.uploaderEvent}),I2.configure({resizable:!0,lastColumnResizable:!0,allowTableNodeSelection:!0}),Qg,Vg,_y,jg,Zy.configure({openOnClick:!1,autolink:typeof((G=t.link)==null?void 0:G.autolink)>"u"?!0:(K=t.link)==null?void 0:K.autolink,HTMLAttributes:{ref:(ge=t==null?void 0:t.link)==null?void 0:ge.rel,class:(de=t==null?void 0:t.link)==null?void 0:de.class}}),J2,eA,tA,Wy.configure({nested:!0}),$A.configure({lowlight:hN(Dw),defaultLanguage:"auto",languageClassPrefix:"language-",codeExplainAi:((ae=(xe=t.ai)==null?void 0:xe.codeBlock)==null?void 0:ae.codeExplain)||{model:"auto",prompt:"\u5E2E\u6211\u5BF9\u8FD9\u4E2A\u4EE3\u7801\u8FDB\u884C\u89E3\u91CA\uFF0C\u8FD4\u56DE\u4EE3\u7801\u7684\u89E3\u91CA\u5185\u5BB9\uFF0C\u6CE8\u610F\uFF0C\u4E0D\u9700\u8981\u5BF9\u4EE3\u7801\u7684\u6CE8\u91CA\u8FDB\u884C\u89E3\u91CA"},codeCommentsAi:((He=(Ve=t.ai)==null?void 0:Ve.codeBlock)==null?void 0:He.codeComments)||{model:"auto",prompt:"\u5E2E\u6211\u5BF9\u8FD9\u4E2A\u4EE3\u7801\u6DFB\u52A0\u4E00\u4E9B\u6CE8\u91CA\uFF0C\u5E76\u8FD4\u56DE\u6DFB\u52A0\u6CE8\u91CA\u7684\u4EE3\u7801\uFF0C\u53EA\u8FD4\u56DE\u4EE3\u7801"}}),fN.configure({uploadUrl:(_t=t.video)==null?void 0:_t.uploadUrl,uploadHeaders:(rn=t.video)==null?void 0:rn.uploadHeaders,uploadFormName:(St=t.video)==null?void 0:St.uploadFormName,uploader:((xn=t.video)==null?void 0:xn.uploader)||t.uploader,uploaderEvent:(tr=t.video)==null?void 0:tr.uploaderEvent}),mN,N4,R4,_4.configure({onSave:t.onSave}),k4.configure({html:!0,tightLists:!0,tightListClass:"tight",bulletListMarker:"-",linkify:!0,breaks:!0,transformPastedText:!0,transformCopiedText:!1}),C4,...zN(e)),t.placeholder&&Xn.push(QN.configure({placeholder:t.placeholder})),Xn.push(rx.configure({suggestion:{items:pr=>{var Hr;return((Hr=t.ai)==null?void 0:Hr.commands)||GN}}})),t.onMentionQuery&&Xn.push(WN(t.onMentionQuery)),Xn},I4={default:"\u9ED8\u8BA4",delete:"\u5220\u9664",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",undo:"\u64A4\u9500",redo:"\u91CD\u505A",brush:"\u683C\u5F0F\u5237",container:"\u9AD8\u4EAE\u5757",eraser:"\u6E05\u9664\u683C\u5F0F",heading:"\u6B63\u6587/\u6807\u9898","font-family":"\u5B57\u4F53","font-size":"\u5B57\u53F7",bold:"\u52A0\u7C97",italic:"\u659C\u4F53",underline:"\u4E0B\u5212\u7EBF",strike:"\u5220\u9664\u7EBF",link:"\u94FE\u63A5","source-code":"\u6E90\u4EE3\u7801",code:"\u884C\u5185\u4EE3\u7801",subscript:"\u4E0B\u6807",superscript:"\u4E0A\u6807",hr:"\u5206\u5272\u7EBF",todo:"\u4EFB\u52A1\u5217\u8868",emoji:"\u8868\u60C5",highlight:"\u9AD8\u4EAE","font-color":"\u5B57\u4F53\u989C\u8272",align:"\u5BF9\u9F50","line-height":"\u884C\u9AD8","bullet-list":"\u65E0\u5E8F\u5217\u8868","ordered-list":"\u6709\u5E8F\u5217\u8868","indent-decrease":"\u51CF\u5C11\u7F29\u8FDB","indent-increase":"\u589E\u52A0\u7F29\u8FDB",break:"\u5F3A\u5236\u6362\u884C",image:"\u56FE\u7247",video:"\u89C6\u9891",attachment:"\u9644\u4EF6",quote:"\u5F15\u7528","code-block":"\u4EE3\u7801\u5757",table:"\u8868\u683C",printer:"\u6253\u5370",fullscreen:"\u5168\u5C4F",ai:"\u4EBA\u5DE5\u667A\u80FD",paragraph:"\u6B63\u6587",h1:"\u6807\u9898 1",h2:"\u6807\u9898 2",h3:"\u6807\u9898 3",h4:"\u6807\u9898 4",h5:"\u6807\u9898 5",h6:"\u6807\u9898 6",standardColors:"\u6807\u51C6\u8272",historyColors:"\u6700\u8FD1\u4F7F\u7528",insertTable:"\u63D2\u5165\u8868\u683C",row:"\u884C",column:"\u5217","align-left":"\u5C45\u5DE6\u5BF9\u9F50","align-right":"\u5C45\u53F3\u5BF9\u9F50","align-center":"\u5C45\u4E2D\u5BF9\u9F50","align-justify":"\u4E24\u7AEF\u5BF9\u9F50","insert-column-left":"\u5DE6\u4FA7\u63D2\u5165\u5217","insert-column-right":"\u53F3\u4FA7\u63D2\u5165\u5217","insert-row-top":"\u4E0A\u65B9\u63D2\u5165\u884C","insert-row-bottom":"\u4E0B\u65B9\u63D2\u5165\u884C","delete-column":"\u5220\u9664\u5F53\u524D\u5217","delete-row":"\u5220\u9664\u5F53\u524D\u884C","merge-cells-horizontal":"\u5408\u5E76\u5355\u5143\u683C","merge-cells-vertical":"\u5408\u5E76\u5355\u5143\u683C","split-cells-horizontal":"\u89E3\u9664\u5408\u5E76\u5355\u5143\u683C","split-cells-vertical":"\u89E3\u9664\u5408\u5E76\u5355\u5143\u683C","delete-table":"\u4E0A\u4F20\u8868\u683C","edit-link":"\u7F16\u8F91\u94FE\u63A5",unlink:"\u53D6\u6D88\u94FE\u63A5","visit-link":"\u8BBF\u95EE\u94FE\u63A5","link-address":"\u94FE\u63A5\u5730\u5740","link-open-type":"\u6253\u5F00\u65B9\u5F0F","link-open-blank":"\u65B0\u7A97\u53E3","default-font-size":"\u5B57\u53F7","default-font-family":"\u9ED8\u8BA4\u5B57\u4F53","codeblock-ai-auto-comment":"\u81EA\u52A8\u6CE8\u91CA","codeblock-ai-code-explain":"\u4EE3\u7801\u89E3\u91CA","placeholder-tell-ai-what-to-do-next":"\u544A\u8BC9 AI \u4E0B\u4E00\u6B65\u5E94\u8BE5\u5982\u4F55\uFF1F\u6BD4\u5982\uFF1A\u5E2E\u6211\u7FFB\u8BD1\u6210\u82F1\u8BED","tip-you-can-enter-text-above-or-select-the-operation-below":"\u63D0\u793A\uFF1A\u60A8\u53EF\u4EE5\u5728\u4E0A\u9762\u8F93\u5165\u6587\u5B57\u6216\u8005\u9009\u62E9\u4E0B\u65B9\u7684\u64CD\u4F5C","you-can-do-the-following":"\u60A8\u53EF\u4EE5\u8FDB\u884C\u4EE5\u4E0B\u64CD\u4F5C:","improve-writing":"\u6539\u8FDB\u5199\u4F5C","check-spelling-and-grammar":"\u68C0\u67E5\u62FC\u5199\u548C\u8BED\u6CD5","make-shorter":"\u7B80\u5316\u5185\u5BB9","make-longer":"\u4E30\u5BCC\u5185\u5BB9",translate:"\u7FFB\u8BD1",summarize:"\u603B\u7ED3","ai-append":"\u8FFD\u52A0","ai-replace":"\u66FF\u6362","ai-cancel":"\u820D\u5F03","ai-continuation":"AI \u7EED\u5199","ai-optimization":"AI \u4F18\u5316","ai-proofreading":"AI \u6821\u5BF9","ai-translation":"AI \u7FFB\u8BD1"},L4={default:"Default",delete:"Delete",confirm:"Confirm",cancel:"Cancel",undo:"Undo",redo:"Redo",brush:"Format Painter",container:"Highlight container",eraser:"clear format",heading:"Paragraph/Heading","font-family":"Font Family","font-size":"Font Size",bold:"Bold",italic:"Italics",underline:"Underline",strike:"Strikethrough",link:"Link","source-code":"Source code",code:"Inline code",subscript:"Subscript",superscript:"Superscript",hr:"Dividing line",todo:"Task list",emoji:"Emoji expression",highlight:"Highlight","font-color":"Font color",align:"Alignment","line-height":"Line height","bullet-list":"Unordered list","ordered-list":"Ordered list","indent-decrease":"Decrease indent","indent-increase":"Increase indent",break:"Force line break",image:"Image",video:"video",attachment:"Attachment",quote:"Quote","code-block":"Code block",table:"Table",printer:"Print",fullscreen:"Full screen",ai:"AI",paragraph:"Paragraph",h1:"H1",h2:"H2",h3:"H3",h4:"H4",h5:"H5",h6:"H6",standardColors:"Standard colors",historyColors:"Recently used colors",insertTable:"Insert Table",row:"Row",column:"Column","align-left":"Align left","align-right":"Align right","align-center":"Align center","align-justify":"Align justify","insert-column-left":"Insert column left","insert-column-right":"Insert column right","insert-row-top":"Insert row top","insert-row-bottom":"Insert row bottom","delete-column":"Delete column","delete-row":"Delete row","merge-cells-horizontal":"Merge cells","merge-cells-vertical":"Merge cells","split-cells-horizontal":"Split cells","split-cells-vertical":"Split cells","delete-table":"Delete table","edit-link":"Edit link",unlink:"Unlink","visit-link":"Visit link","link-address":"Link address","link-open-type":"Open type","link-open-blank":"Blank","default-font-size":"Size","default-font-family":"Default font","codeblock-ai-auto-comment":"auto comment","codeblock-ai-code-explain":"code explain","placeholder-tell-ai-what-to-do-next":"Tell AI what to do next? e.g., help me translate into English","tip-you-can-enter-text-above-or-select-the-operation-below":"Tip: You can enter text above or select the operation below","you-can-do-the-following":"You can do the following:","improve-writing":"Improve your writing","check-spelling-and-grammar":"Check spelling and grammar","make-shorter":"Make shorter","make-longer":"Make longer",translate:"Translate",summarize:"Summarize","ai-append":"Append","ai-replace":"Replace","ai-cancel":"Cancel","ai-continuation":"Continuation","ai-optimization":"Optimization","ai-proofreading":"Proofreading","ai-translation":"Translation"};dt("aie-header",Rv),dt("aie-footer",di);const M4={theme:"light",lang:"zh",contentRetentionKey:"ai-editor-content",editable:!0,draggable:!0,placeholder:""};class P4 extends eO{constructor(t,r={}){super(r),Ue(this,"aiEditor"),this.aiEditor=t}parseHtml(t){function r(i){return new window.DOMParser().parseFromString(`${i}`,"text/html").body}return Rt.fromSchema(this.schema).parse(r(t),{}).content}parseMarkdown(t){var r,i,a;const o=(a=(i=(r=this.storage.markdown)==null?void 0:r.parser)==null?void 0:i.parse)==null?void 0:a.call(i,t,{inline:!1});return this.parseHtml(o)}}class F4{constructor(t){Ue(this,"customLayout",!1),Ue(this,"innerEditor"),Ue(this,"container"),Ue(this,"header"),Ue(this,"mainEl"),Ue(this,"footer"),Ue(this,"options"),Ue(this,"eventComponents",[]),this.options=je(je({},M4),t),this.initI18nAndInnerEditor()}initI18nAndInnerEditor(){const t=this.options.i18n||{},r={en:{translation:je(je({},L4),t.en)},zh:{translation:je(je({},I4),t.zh)}};for(let i of Object.keys(t))i!="en"&&i!="zh"&&(r[i]={translation:je({},t[i])});oa.init({lng:this.options.lang,resources:r},(i,a)=>{this.initInnerEditor()})}initInnerEditor(){const t=typeof this.options.element=="string"?document.querySelector(this.options.element):this.options.element;t.classList.add(`aie-theme-${this.options.theme}`),this.container=t.querySelector(".aie-container"),this.container?this.customLayout=!0:(this.container=document.createElement("div"),this.container.classList.add("aie-container")),t.appendChild(this.container),this.mainEl=document.createElement("div"),this.mainEl.style.flexGrow="1",this.mainEl.style.overflow="auto",this.header=new Rv,this.footer=new di,this.footer.initDraggable(this.options.draggable),this.eventComponents.push(this.header),this.eventComponents.push(this.footer);let r=this.options.content;if(this.options.contentRetention&&this.options.contentRetentionKey){const a=localStorage.getItem(this.options.contentRetentionKey);a&&(r=JSON.parse(a))}let i=D4(this,this.options);if(this.options.onCreateBefore){const a=this.options.onCreateBefore(this,i);a||(i=a)}this.innerEditor=new P4(this,{element:this.mainEl,content:r,editable:this.options.editable,extensions:i,onCreate:a=>this.onCreate(a),onTransaction:a=>this.onTransaction(a),onFocus:()=>{var a,o;return(o=(a=this.options)==null?void 0:a.onFocus)==null?void 0:o.call(a,this)},onBlur:()=>{var a,o;return(o=(a=this.options)==null?void 0:a.onBlur)==null?void 0:o.call(a,this)},onDestroy:()=>{var a,o;return(o=(a=this.options)==null?void 0:a.onDestroy)==null?void 0:o.call(a,this)},editorProps:{attributes:{class:"aie-content"}}})}onCreate(t){this.innerEditor.view.dom.style.height="calc(100% - 20px)",this.eventComponents.forEach(r=>{r.onCreate&&r.onCreate(t,this.options)}),(this.container.querySelector(".aie-container-header")||this.container).appendChild(this.header),(this.container.querySelector(".aie-container-main")||this.container).appendChild(this.mainEl),(this.container.querySelector(".aie-container-footer")||this.container).appendChild(this.footer),this.options.ai&&Ts.init(this.innerEditor,this.options.ai),this.options.onCreated&&this.options.onCreated(this)}onTransaction(t){if(this.eventComponents.forEach(r=>{r.onTransaction&&r.onTransaction(t)}),!t.transaction.getMeta("ignoreChanged")&&(t.transaction.docChanged&&this.options.onChange&&this.options.onChange(this),t.transaction.docChanged&&this.options.contentRetention&&this.options.contentRetentionKey)){const r=this.innerEditor.getHTML();r==="

"||r===""?localStorage.removeItem(this.options.contentRetentionKey):localStorage.setItem(this.options.contentRetentionKey,JSON.stringify(this.innerEditor.getJSON()))}}getHtml(){return this.innerEditor.getHTML()}getJson(){return this.innerEditor.getJSON()}getText(){return this.innerEditor.getText()}getSelectedText(){const t=this.innerEditor.state.selection;return t.empty?"":Vd(this.innerEditor.state.doc,{from:t.from,to:t.to})}getMarkdown(){return this.innerEditor.storage.markdown.getMarkdown()}getOptions(){return this.options}getAttributes(t){return this.innerEditor.getAttributes(t)}getOutline(){const t=this.innerEditor.state.doc,r=[];return t.descendants((i,a)=>{if(i.type.name==="heading"){const o=`aie-heading-${r.length+1}`;if(i.attrs.id!==o){const{state:{tr:d},view:{dispatch:f}}=this.innerEditor;f(d.setNodeMarkup(a,void 0,_n(je({},i.attrs),{id:o})).setMeta("ignoreChanged",!0))}let u="";i.descendants(d=>{d.text&&(u+=d.text)}),r.push({id:o,text:u,level:i.attrs.level,pos:a,size:i.nodeSize})}}),r}focus(){return this.innerEditor.commands.focus(),this}focusPos(t){return this.innerEditor.commands.focus(t),this}focusStart(){return this.innerEditor.commands.focus("start"),this}focusEnd(){return this.innerEditor.commands.focus("end"),this}isFocused(){return this.innerEditor.isFocused}blur(){return this.innerEditor.commands.blur(),this}insert(t){return this.innerEditor.commands.insertContent(t),this}setEditable(t){return this.innerEditor.setEditable(t,!0),this}setContent(t){return this.focus().clear().insert(t),this}clear(){return this.innerEditor.commands.clearContent(!0),this}isEmpty(){return this.innerEditor.isEmpty}changeLang(t){return this.destroy(),this.options.lang=t,oa.changeLanguage(t),this.initInnerEditor(),this}removeRetention(){return this.options.contentRetentionKey&&localStorage.removeItem(this.options.contentRetentionKey),this}destroy(){var t,r;(r=(t=this.options).onDestroy)==null||r.call(t,this),this.innerEditor.destroy(),this.eventComponents=[],this.customLayout?(this.header.remove(),this.mainEl.remove(),this.footer.remove()):this.container.remove()}isDestroyed(){return this.innerEditor.isDestroyed}}},28699:function(ti,Gn,z){"use strict";z.d(Gn,{V:function(){return En}});const ue="\u037C",Me=typeof Symbol=="undefined"?"__"+ue:Symbol.for(ue),Ue=typeof Symbol=="undefined"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),lt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:{};class En{constructor(In,ft){this.rules=[];let{finish:Pt}=ft||{};function Hn(On){return/^@/.test(On)?[On]:On.split(/,\s*/)}function gt(On,st,Pn,Nt){let Kn=[],Nn=/^@(\w+)\b/.exec(On[0]),yn=Nn&&Nn[1]=="keyframes";if(Nn&&st==null)return Pn.push(On[0]+";");for(let Zn in st){let Mn=st[Zn];if(/&/.test(Zn))gt(Zn.split(/,\s*/).map(Tr=>On.map(Br=>Tr.replace(/&/,Br))).reduce((Tr,Br)=>Tr.concat(Br)),Mn,Pn);else if(Mn&&typeof Mn=="object"){if(!Nn)throw new RangeError("The value of a property ("+Zn+") should be a primitive value.");gt(Hn(Zn),Mn,Kn,yn)}else Mn!=null&&Kn.push(Zn.replace(/_.*/,"").replace(/[A-Z]/g,Tr=>"-"+Tr.toLowerCase())+": "+Mn+";")}(Kn.length||yn)&&Pn.push((Pt&&!Nn&&!Nt?On.map(Pt):On).join(", ")+" {"+Kn.join(" ")+"}")}for(let On in In)gt(Hn(On),In[On],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let In=lt[Me]||1;return lt[Me]=In+1,ue+In.toString(36)}static mount(In,ft,Pt){let Hn=In[Ue],gt=Pt&&Pt.nonce;Hn?gt&&Hn.setNonce(gt):Hn=new Ee(In,gt),Hn.mount(Array.isArray(ft)?ft:[ft],In)}}let De=new Map;class Ee{constructor(In,ft){let Pt=In.ownerDocument||In,Hn=Pt.defaultView;if(!In.head&&In.adoptedStyleSheets&&Hn.CSSStyleSheet){let gt=De.get(Pt);if(gt)return In[Ue]=gt;this.sheet=new Hn.CSSStyleSheet,De.set(Pt,this)}else this.styleTag=Pt.createElement("style"),ft&&this.styleTag.setAttribute("nonce",ft);this.modules=[],In[Ue]=this}mount(In,ft){let Pt=this.sheet,Hn=0,gt=0;for(let On=0;On-1&&(this.modules.splice(Pn,1),gt--,Pn=-1),Pn==-1){if(this.modules.splice(gt++,0,st),Pt)for(let Nt=0;Nt|{%\\s*(block|filter|for|if|macro|raw))",foldingStopMarker:"(|{%\\s*(endblock|endfilter|endfor|endif|endmacro|endraw)\\s*%})",name:"jinja-html",patterns:[{include:"source.jinja"},{include:"text.html.basic"}],scopeName:"text.html.jinja",embeddedLangs:["html"]});var i=[...n.default,t];const r=Object.freeze({displayName:"Jinja",foldingStartMarker:"({%\\s*(block|filter|for|if|macro|raw))",foldingStopMarker:"({%\\s*(endblock|endfilter|endfor|endif|endmacro|endraw)\\s*%})",name:"jinja",patterns:[{begin:"({%)\\s*(raw)\\s*(%})",captures:{1:{name:"entity.other.jinja.delimiter.tag"},2:{name:"keyword.control.jinja"},3:{name:"entity.other.jinja.delimiter.tag"}},end:"({%)\\s*(endraw)\\s*(%})",name:"comment.block.jinja.raw"},{include:"#comments"},{begin:"{{-?",captures:[{name:"variable.entity.other.jinja.delimiter"}],end:"-?}}",name:"variable.meta.scope.jinja",patterns:[{include:"#expression"}]},{begin:"{%-?",captures:[{name:"entity.other.jinja.delimiter.tag"}],end:"-?%}",name:"meta.scope.jinja.tag",patterns:[{include:"#expression"}]}],repository:{comments:{begin:"{#-?",captures:[{name:"entity.other.jinja.delimiter.comment"}],end:"-?#}",name:"comment.block.jinja",patterns:[{include:"#comments"}]},escaped_char:{match:"\\\\x[0-9A-F]{2}",name:"constant.character.escape.hex.jinja"},escaped_unicode_char:{captures:{1:{name:"constant.character.escape.unicode.16-bit-hex.jinja"},2:{name:"constant.character.escape.unicode.32-bit-hex.jinja"},3:{name:"constant.character.escape.unicode.name.jinja"}},match:"(\\\\U[0-9A-Fa-f]{8})|(\\\\u[0-9A-Fa-f]{4})|(\\\\N\\{[a-zA-Z ]+\\})"},expression:{patterns:[{captures:{1:{name:"keyword.control.jinja"},2:{name:"variable.other.jinja.block"}},match:"\\s*\\b(block)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"},{captures:{1:{name:"keyword.control.jinja"},2:{name:"variable.other.jinja.filter"}},match:"\\s*\\b(filter)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"},{captures:{1:{name:"keyword.control.jinja"},2:{name:"variable.other.jinja.test"}},match:"\\s*\\b(is)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"},{captures:{1:{name:"keyword.control.jinja"}},match:"(?<=\\{\\%-|\\{\\%)\\s*\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?!\\s*[,=])"},{match:"\\b(and|else|if|in|import|not|or|recursive|with(out)?\\s+context)\\b",name:"keyword.control.jinja"},{match:"\\b(true|false|none)\\b",name:"constant.language.jinja"},{match:"\\b(loop|super|self|varargs|kwargs)\\b",name:"variable.language.jinja"},{match:"[a-zA-Z_][a-zA-Z0-9_]*",name:"variable.other.jinja"},{match:"(\\+|\\-|\\*\\*|\\*|//|/|%)",name:"keyword.operator.arithmetic.jinja"},{captures:{1:{name:"punctuation.other.jinja"},2:{name:"variable.other.jinja.filter"}},match:"(\\|)([a-zA-Z_][a-zA-Z0-9_]*)"},{captures:{1:{name:"punctuation.other.jinja"},2:{name:"variable.other.jinja.attribute"}},match:"(\\.)([a-zA-Z_][a-zA-Z0-9_]*)"},{begin:"\\[",captures:[{name:"punctuation.other.jinja"}],end:"\\]",patterns:[{include:"#expression"}]},{begin:"\\(",captures:[{name:"punctuation.other.jinja"}],end:"\\)",patterns:[{include:"#expression"}]},{begin:"\\{",captures:[{name:"punctuation.other.jinja"}],end:"\\}",patterns:[{include:"#expression"}]},{match:"(\\.|:|\\||,)",name:"punctuation.other.jinja"},{match:"(==|<=|=>|<|>|!=)",name:"keyword.operator.comparison.jinja"},{match:"=",name:"keyword.operator.assignment.jinja"},{begin:'"',beginCaptures:[{name:"punctuation.definition.string.begin.jinja"}],end:'"',endCaptures:[{name:"punctuation.definition.string.end.jinja"}],name:"string.quoted.double.jinja",patterns:[{include:"#string"}]},{begin:"'",beginCaptures:[{name:"punctuation.definition.string.begin.jinja"}],end:"'",endCaptures:[{name:"punctuation.definition.string.end.jinja"}],name:"string.quoted.single.jinja",patterns:[{include:"#string"}]},{begin:"@/",beginCaptures:[{name:"punctuation.definition.regexp.begin.jinja"}],end:"/",endCaptures:[{name:"punctuation.definition.regexp.end.jinja"}],name:"string.regexp.jinja",patterns:[{include:"#simple_escapes"}]}]},simple_escapes:{captures:{1:{name:"constant.character.escape.newline.jinja"},2:{name:"constant.character.escape.backlash.jinja"},3:{name:"constant.character.escape.double-quote.jinja"},4:{name:"constant.character.escape.single-quote.jinja"},5:{name:"constant.character.escape.bell.jinja"},6:{name:"constant.character.escape.backspace.jinja"},7:{name:"constant.character.escape.formfeed.jinja"},8:{name:"constant.character.escape.linefeed.jinja"},9:{name:"constant.character.escape.return.jinja"},10:{name:"constant.character.escape.tab.jinja"},11:{name:"constant.character.escape.vertical-tab.jinja"}},match:`(\\\\\\n)|(\\\\\\\\)|(\\\\\\")|(\\\\')|(\\\\a)|(\\\\b)|(\\\\f)|(\\\\n)|(\\\\r)|(\\\\t)|(\\\\v)`},string:{patterns:[{include:"#simple_escapes"},{include:"#escaped_char"},{include:"#escaped_unicode_char"}]}},scopeName:"source.jinja",embeddedLangs:["jinja-html"]});var c=[...i,r]}}]); diff --git a/starter/src/main/resources/templates/admin/1578.4d8d388a.async.js b/starter/src/main/resources/templates/admin/1578.4d8d388a.async.js new file mode 100644 index 00000000..edd08c14 --- /dev/null +++ b/starter/src/main/resources/templates/admin/1578.4d8d388a.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1578],{81578:function(e,a,n){n.r(a),n.d(a,{default:function(){return r}});var t=n(96475);const i=Object.freeze({displayName:"jinja-html",firstLineMatch:"^{% extends [\"'][^\"']+[\"'] %}",foldingStartMarker:"(<(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\\b.*?>|{%\\s*(block|filter|for|if|macro|raw))",foldingStopMarker:"(|{%\\s*(endblock|endfilter|endfor|endif|endmacro|endraw)\\s*%})",name:"jinja-html",patterns:[{include:"source.jinja"},{include:"text.html.basic"}],scopeName:"text.html.jinja",embeddedLangs:["html"]});var r=[...[...t.default,i],Object.freeze({displayName:"Jinja",foldingStartMarker:"({%\\s*(block|filter|for|if|macro|raw))",foldingStopMarker:"({%\\s*(endblock|endfilter|endfor|endif|endmacro|endraw)\\s*%})",name:"jinja",patterns:[{begin:"({%)\\s*(raw)\\s*(%})",captures:{1:{name:"entity.other.jinja.delimiter.tag"},2:{name:"keyword.control.jinja"},3:{name:"entity.other.jinja.delimiter.tag"}},end:"({%)\\s*(endraw)\\s*(%})",name:"comment.block.jinja.raw"},{include:"#comments"},{begin:"{{-?",captures:[{name:"variable.entity.other.jinja.delimiter"}],end:"-?}}",name:"variable.meta.scope.jinja",patterns:[{include:"#expression"}]},{begin:"{%-?",captures:[{name:"entity.other.jinja.delimiter.tag"}],end:"-?%}",name:"meta.scope.jinja.tag",patterns:[{include:"#expression"}]}],repository:{comments:{begin:"{#-?",captures:[{name:"entity.other.jinja.delimiter.comment"}],end:"-?#}",name:"comment.block.jinja",patterns:[{include:"#comments"}]},escaped_char:{match:"\\\\x[0-9A-F]{2}",name:"constant.character.escape.hex.jinja"},escaped_unicode_char:{captures:{1:{name:"constant.character.escape.unicode.16-bit-hex.jinja"},2:{name:"constant.character.escape.unicode.32-bit-hex.jinja"},3:{name:"constant.character.escape.unicode.name.jinja"}},match:"(\\\\U[0-9A-Fa-f]{8})|(\\\\u[0-9A-Fa-f]{4})|(\\\\N\\{[a-zA-Z ]+\\})"},expression:{patterns:[{captures:{1:{name:"keyword.control.jinja"},2:{name:"variable.other.jinja.block"}},match:"\\s*\\b(block)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"},{captures:{1:{name:"keyword.control.jinja"},2:{name:"variable.other.jinja.filter"}},match:"\\s*\\b(filter)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"},{captures:{1:{name:"keyword.control.jinja"},2:{name:"variable.other.jinja.test"}},match:"\\s*\\b(is)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"},{captures:{1:{name:"keyword.control.jinja"}},match:"(?<=\\{\\%-|\\{\\%)\\s*\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?!\\s*[,=])"},{match:"\\b(and|else|if|in|import|not|or|recursive|with(out)?\\s+context)\\b",name:"keyword.control.jinja"},{match:"\\b(true|false|none)\\b",name:"constant.language.jinja"},{match:"\\b(loop|super|self|varargs|kwargs)\\b",name:"variable.language.jinja"},{match:"[a-zA-Z_][a-zA-Z0-9_]*",name:"variable.other.jinja"},{match:"(\\+|\\-|\\*\\*|\\*|//|/|%)",name:"keyword.operator.arithmetic.jinja"},{captures:{1:{name:"punctuation.other.jinja"},2:{name:"variable.other.jinja.filter"}},match:"(\\|)([a-zA-Z_][a-zA-Z0-9_]*)"},{captures:{1:{name:"punctuation.other.jinja"},2:{name:"variable.other.jinja.attribute"}},match:"(\\.)([a-zA-Z_][a-zA-Z0-9_]*)"},{begin:"\\[",captures:[{name:"punctuation.other.jinja"}],end:"\\]",patterns:[{include:"#expression"}]},{begin:"\\(",captures:[{name:"punctuation.other.jinja"}],end:"\\)",patterns:[{include:"#expression"}]},{begin:"\\{",captures:[{name:"punctuation.other.jinja"}],end:"\\}",patterns:[{include:"#expression"}]},{match:"(\\.|:|\\||,)",name:"punctuation.other.jinja"},{match:"(==|<=|=>|<|>|!=)",name:"keyword.operator.comparison.jinja"},{match:"=",name:"keyword.operator.assignment.jinja"},{begin:'"',beginCaptures:[{name:"punctuation.definition.string.begin.jinja"}],end:'"',endCaptures:[{name:"punctuation.definition.string.end.jinja"}],name:"string.quoted.double.jinja",patterns:[{include:"#string"}]},{begin:"'",beginCaptures:[{name:"punctuation.definition.string.begin.jinja"}],end:"'",endCaptures:[{name:"punctuation.definition.string.end.jinja"}],name:"string.quoted.single.jinja",patterns:[{include:"#string"}]},{begin:"@/",beginCaptures:[{name:"punctuation.definition.regexp.begin.jinja"}],end:"/",endCaptures:[{name:"punctuation.definition.regexp.end.jinja"}],name:"string.regexp.jinja",patterns:[{include:"#simple_escapes"}]}]},simple_escapes:{captures:{1:{name:"constant.character.escape.newline.jinja"},2:{name:"constant.character.escape.backlash.jinja"},3:{name:"constant.character.escape.double-quote.jinja"},4:{name:"constant.character.escape.single-quote.jinja"},5:{name:"constant.character.escape.bell.jinja"},6:{name:"constant.character.escape.backspace.jinja"},7:{name:"constant.character.escape.formfeed.jinja"},8:{name:"constant.character.escape.linefeed.jinja"},9:{name:"constant.character.escape.return.jinja"},10:{name:"constant.character.escape.tab.jinja"},11:{name:"constant.character.escape.vertical-tab.jinja"}},match:"(\\\\\\n)|(\\\\\\\\)|(\\\\\\\")|(\\\\')|(\\\\a)|(\\\\b)|(\\\\f)|(\\\\n)|(\\\\r)|(\\\\t)|(\\\\v)"},string:{patterns:[{include:"#simple_escapes"},{include:"#escaped_char"},{include:"#escaped_unicode_char"}]}},scopeName:"source.jinja",embeddedLangs:["jinja-html"]})]}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/16.5fe7de1c.async.js b/starter/src/main/resources/templates/admin/16.5fe7de1c.async.js deleted file mode 100644 index e5832305..00000000 --- a/starter/src/main/resources/templates/admin/16.5fe7de1c.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[16],{40016:function(r,e,t){t.r(e),t.d(e,{default:function(){return o}});var o=Object.freeze({colors:{"activityBar.background":"#E7E8E6","activityBar.foreground":"#2DAE58","activityBar.inactiveForeground":"#68696888","activityBarBadge.background":"#09A1ED","badge.background":"#09A1ED","badge.foreground":"#ffffff","button.background":"#2DAE58","debugExceptionWidget.background":"#FFAEAC33","debugExceptionWidget.border":"#FF5C57","debugToolBar.border":"#E9EAEB","diffEditor.insertedTextBackground":"#2DAE5824","diffEditor.removedTextBackground":"#FFAEAC44","dropdown.border":"#E9EAEB","editor.background":"#FAFBFC","editor.findMatchBackground":"#00E6E06A","editor.findMatchHighlightBackground":"#00E6E02A","editor.findRangeHighlightBackground":"#F5B90011","editor.focusedStackFrameHighlightBackground":"#2DAE5822","editor.foreground":"#565869","editor.hoverHighlightBackground":"#00E6E018","editor.rangeHighlightBackground":"#F5B90033","editor.selectionBackground":"#2DAE5822","editor.snippetTabstopHighlightBackground":"#ADB1C23A","editor.stackFrameHighlightBackground":"#F5B90033","editor.wordHighlightBackground":"#ADB1C23A","editorError.foreground":"#FF5C56","editorGroup.emptyBackground":"#F3F4F5","editorGutter.addedBackground":"#2DAE58","editorGutter.deletedBackground":"#FF5C57","editorGutter.modifiedBackground":"#00A39FAA","editorInlayHint.background":"#E9EAEB","editorInlayHint.foreground":"#565869","editorLineNumber.activeForeground":"#35CF68","editorLineNumber.foreground":"#9194A2aa","editorLink.activeForeground":"#35CF68","editorOverviewRuler.addedForeground":"#2DAE58","editorOverviewRuler.deletedForeground":"#FF5C57","editorOverviewRuler.errorForeground":"#FF5C56","editorOverviewRuler.findMatchForeground":"#13BBB7AA","editorOverviewRuler.modifiedForeground":"#00A39FAA","editorOverviewRuler.warningForeground":"#CF9C00","editorOverviewRuler.wordHighlightForeground":"#ADB1C288","editorOverviewRuler.wordHighlightStrongForeground":"#35CF68","editorWarning.foreground":"#CF9C00","editorWhitespace.foreground":"#ADB1C255","extensionButton.prominentBackground":"#2DAE58","extensionButton.prominentHoverBackground":"#238744",focusBorder:"#09A1ED",foreground:"#686968","gitDecoration.modifiedResourceForeground":"#00A39F","gitDecoration.untrackedResourceForeground":"#2DAE58","input.border":"#E9EAEB","list.activeSelectionBackground":"#09A1ED","list.activeSelectionForeground":"#ffffff","list.errorForeground":"#FF5C56","list.focusBackground":"#BCE7FC99","list.focusForeground":"#11658F","list.hoverBackground":"#E9EAEB","list.inactiveSelectionBackground":"#89B5CB33","list.warningForeground":"#B38700","menu.background":"#FAFBFC","menu.selectionBackground":"#E9EAEB","menu.selectionForeground":"#686968","menubar.selectionBackground":"#E9EAEB","menubar.selectionForeground":"#686968","merge.currentContentBackground":"#35CF6833","merge.currentHeaderBackground":"#35CF6866","merge.incomingContentBackground":"#14B1FF33","merge.incomingHeaderBackground":"#14B1FF77","peekView.border":"#09A1ED","peekViewEditor.background":"#14B1FF08","peekViewEditor.matchHighlightBackground":"#F5B90088","peekViewEditor.matchHighlightBorder":"#F5B900","peekViewEditorStickyScroll.background":"#EDF4FB","peekViewResult.matchHighlightBackground":"#F5B90088","peekViewResult.selectionBackground":"#09A1ED","peekViewResult.selectionForeground":"#FFFFFF","peekViewTitle.background":"#09A1ED11","selection.background":"#2DAE5844","settings.modifiedItemIndicator":"#13BBB7","sideBar.background":"#F3F4F5","sideBar.border":"#DEDFE0","sideBarSectionHeader.background":"#E9EAEB","sideBarSectionHeader.border":"#DEDFE0","statusBar.background":"#2DAE58","statusBar.debuggingBackground":"#13BBB7","statusBar.debuggingBorder":"#00A39F","statusBar.noFolderBackground":"#565869","statusBarItem.remoteBackground":"#238744","tab.activeBorderTop":"#2DAE58","terminal.ansiBlack":"#565869","terminal.ansiBlue":"#09A1ED","terminal.ansiBrightBlack":"#75798F","terminal.ansiBrightBlue":"#14B1FF","terminal.ansiBrightCyan":"#13BBB7","terminal.ansiBrightGreen":"#35CF68","terminal.ansiBrightMagenta":"#FF94D2","terminal.ansiBrightRed":"#FFAEAC","terminal.ansiBrightWhite":"#FFFFFF","terminal.ansiBrightYellow":"#F5B900","terminal.ansiCyan":"#13BBB7","terminal.ansiGreen":"#2DAE58","terminal.ansiMagenta":"#F767BB","terminal.ansiRed":"#FF5C57","terminal.ansiWhite":"#FAFBF9","terminal.ansiYellow":"#CF9C00","titleBar.activeBackground":"#F3F4F5"},displayName:"Snazzy Light",name:"snazzy-light",tokenColors:[{scope:"invalid.illegal",settings:{foreground:"#FF5C56"}},{scope:["meta.object-literal.key","meta.object-literal.key constant.character.escape","meta.object-literal string","meta.object-literal string constant.character.escape","support.type.property-name","support.type.property-name constant.character.escape"],settings:{foreground:"#11658F"}},{scope:["keyword","storage","meta.class storage.type","keyword.operator.expression.import","keyword.operator.new","keyword.operator.expression.delete"],settings:{foreground:"#F767BB"}},{scope:["support.type","meta.type.annotation entity.name.type","new.expr meta.type.parameters entity.name.type","storage.type.primitive","storage.type.built-in.primitive","meta.function.parameter storage.type"],settings:{foreground:"#2DAE58"}},{scope:["storage.type.annotation"],settings:{foreground:"#C25193"}},{scope:"keyword.other.unit",settings:{foreground:"#FF5C57CC"}},{scope:["constant.language","support.constant","variable.language"],settings:{foreground:"#2DAE58"}},{scope:["variable","support.variable"],settings:{foreground:"#565869"}},{scope:"variable.language.this",settings:{foreground:"#13BBB7"}},{scope:["entity.name.function","support.function"],settings:{foreground:"#09A1ED"}},{scope:["entity.name.function.decorator"],settings:{foreground:"#11658F"}},{scope:["meta.class entity.name.type","new.expr entity.name.type","entity.other.inherited-class","support.class"],settings:{foreground:"#13BBB7"}},{scope:["keyword.preprocessor.pragma","keyword.control.directive.include","keyword.other.preprocessor"],settings:{foreground:"#11658F"}},{scope:"entity.name.exception",settings:{foreground:"#FF5C56"}},{scope:"entity.name.section",settings:{}},{scope:["constant.numeric"],settings:{foreground:"#FF5C57"}},{scope:["constant","constant.character"],settings:{foreground:"#2DAE58"}},{scope:"string",settings:{foreground:"#CF9C00"}},{scope:"string",settings:{foreground:"#CF9C00"}},{scope:"constant.character.escape",settings:{foreground:"#F5B900"}},{scope:["string.regexp","string.regexp constant.character.escape"],settings:{foreground:"#13BBB7"}},{scope:["keyword.operator.quantifier.regexp","keyword.operator.negation.regexp","keyword.operator.or.regexp","string.regexp punctuation","string.regexp keyword","string.regexp keyword.control","string.regexp constant","variable.other.regexp"],settings:{foreground:"#00A39F"}},{scope:["string.regexp keyword.other"],settings:{foreground:"#00A39F88"}},{scope:"constant.other.symbol",settings:{foreground:"#CF9C00"}},{scope:["comment","punctuation.definition.comment"],settings:{foreground:"#ADB1C2"}},{scope:"comment.block.preprocessor",settings:{fontStyle:"",foreground:"#9194A2"}},{scope:"comment.block.documentation entity.name.type",settings:{foreground:"#2DAE58"}},{scope:["comment.block.documentation storage","comment.block.documentation keyword.other","meta.class comment.block.documentation storage.type"],settings:{foreground:"#9194A2"}},{scope:["comment.block.documentation variable"],settings:{foreground:"#C25193"}},{scope:["punctuation"],settings:{foreground:"#ADB1C2"}},{scope:["keyword.operator","keyword.other.arrow","keyword.control.@"],settings:{foreground:"#ADB1C2"}},{scope:["meta.tag.metadata.doctype.html entity.name.tag","meta.tag.metadata.doctype.html entity.other.attribute-name.html","meta.tag.sgml.doctype","meta.tag.sgml.doctype string","meta.tag.sgml.doctype entity.name.tag","meta.tag.sgml punctuation.definition.tag.html"],settings:{foreground:"#9194A2"}},{scope:["meta.tag","punctuation.definition.tag.html","punctuation.definition.tag.begin.html","punctuation.definition.tag.end.html"],settings:{foreground:"#ADB1C2"}},{scope:["entity.name.tag"],settings:{foreground:"#13BBB7"}},{scope:["meta.tag entity.other.attribute-name","entity.other.attribute-name.html"],settings:{foreground:"#FF8380"}},{scope:["constant.character.entity","punctuation.definition.entity"],settings:{foreground:"#CF9C00"}},{scope:["source.css"],settings:{foreground:"#ADB1C2"}},{scope:["meta.selector","meta.selector entity","meta.selector entity punctuation","source.css entity.name.tag"],settings:{foreground:"#F767BB"}},{scope:["keyword.control.at-rule","keyword.control.at-rule punctuation.definition.keyword"],settings:{foreground:"#C25193"}},{scope:"source.css variable",settings:{foreground:"#11658F"}},{scope:["source.css meta.property-name","source.css support.type.property-name"],settings:{foreground:"#565869"}},{scope:["source.css support.type.vendored.property-name"],settings:{foreground:"#565869AA"}},{scope:["meta.property-value","support.constant.property-value"],settings:{foreground:"#13BBB7"}},{scope:["source.css support.constant"],settings:{foreground:"#2DAE58"}},{scope:["punctuation.definition.entity.css","keyword.operator.combinator.css"],settings:{foreground:"#FF82CBBB"}},{scope:["source.css support.function"],settings:{foreground:"#09A1ED"}},{scope:"keyword.other.important",settings:{foreground:"#238744"}},{scope:["source.css.scss"],settings:{foreground:"#F767BB"}},{scope:["source.css.scss entity.other.attribute-name.class.css","source.css.scss entity.other.attribute-name.id.css"],settings:{foreground:"#F767BB"}},{scope:["entity.name.tag.reference.scss"],settings:{foreground:"#C25193"}},{scope:["source.css.scss meta.at-rule keyword","source.css.scss meta.at-rule keyword punctuation","source.css.scss meta.at-rule operator.logical","keyword.control.content.scss","keyword.control.return.scss","keyword.control.return.scss punctuation.definition.keyword"],settings:{foreground:"#C25193"}},{scope:["meta.at-rule.mixin.scss","meta.at-rule.include.scss","source.css.scss meta.at-rule.if","source.css.scss meta.at-rule.else","source.css.scss meta.at-rule.each","source.css.scss meta.at-rule variable.parameter"],settings:{foreground:"#ADB1C2"}},{scope:["source.css.less entity.other.attribute-name.class.css"],settings:{foreground:"#F767BB"}},{scope:"source.stylus meta.brace.curly.css",settings:{foreground:"#ADB1C2"}},{scope:["source.stylus entity.other.attribute-name.class","source.stylus entity.other.attribute-name.id","source.stylus entity.name.tag"],settings:{foreground:"#F767BB"}},{scope:["source.stylus support.type.property-name"],settings:{foreground:"#565869"}},{scope:["source.stylus variable"],settings:{foreground:"#11658F"}},{scope:"markup.changed",settings:{foreground:"#888888"}},{scope:"markup.deleted",settings:{foreground:"#888888"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.error",settings:{foreground:"#FF5C56"}},{scope:"markup.inserted",settings:{foreground:"#888888"}},{scope:"meta.link",settings:{foreground:"#CF9C00"}},{scope:"string.other.link.title.markdown",settings:{foreground:"#09A1ED"}},{scope:["markup.output","markup.raw"],settings:{foreground:"#999999"}},{scope:"markup.prompt",settings:{foreground:"#999999"}},{scope:"markup.heading",settings:{foreground:"#2DAE58"}},{scope:"markup.bold",settings:{fontStyle:"bold"}},{scope:"markup.traceback",settings:{foreground:"#FF5C56"}},{scope:"markup.underline",settings:{fontStyle:"underline"}},{scope:"markup.quote",settings:{foreground:"#777985"}},{scope:["markup.bold","markup.italic"],settings:{foreground:"#13BBB7"}},{scope:"markup.inline.raw",settings:{fontStyle:"",foreground:"#F767BB"}},{scope:["meta.brace.round","meta.brace.square","storage.type.function.arrow"],settings:{foreground:"#ADB1C2"}},{scope:["constant.language.import-export-all","meta.import keyword.control.default"],settings:{foreground:"#C25193"}},{scope:["support.function.js"],settings:{foreground:"#11658F"}},{scope:"string.regexp.js",settings:{foreground:"#13BBB7"}},{scope:["variable.language.super","support.type.object.module.js"],settings:{foreground:"#F767BB"}},{scope:"meta.jsx.children",settings:{foreground:"#686968"}},{scope:"entity.name.tag.yaml",settings:{foreground:"#11658F"}},{scope:"variable.other.alias.yaml",settings:{foreground:"#2DAE58"}},{scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:"#75798F"}},{scope:["meta.use.php entity.other.alias.php"],settings:{foreground:"#13BBB7"}},{scope:["source.php support.function.construct","source.php support.function.var"],settings:{foreground:"#11658F"}},{scope:["storage.modifier.extends.php","source.php keyword.other","storage.modifier.php"],settings:{foreground:"#F767BB"}},{scope:["meta.class.body.php storage.type.php"],settings:{foreground:"#F767BB"}},{scope:["storage.type.php","meta.class.body.php meta.function-call.php storage.type.php","meta.class.body.php meta.function.php storage.type.php"],settings:{foreground:"#2DAE58"}},{scope:["source.php keyword.other.DML"],settings:{foreground:"#D94E4A"}},{scope:["source.sql.embedded.php keyword.operator"],settings:{foreground:"#2DAE58"}},{scope:["source.ini keyword","source.toml keyword","source.env variable"],settings:{foreground:"#11658F"}},{scope:["source.ini entity.name.section","source.toml entity.other.attribute-name"],settings:{foreground:"#F767BB"}},{scope:["source.go storage.type"],settings:{foreground:"#2DAE58"}},{scope:["keyword.import.go","keyword.package.go"],settings:{foreground:"#FF5C56"}},{scope:["source.reason variable.language string"],settings:{foreground:"#565869"}},{scope:["source.reason support.type","source.reason constant.language","source.reason constant.language constant.numeric","source.reason support.type string.regexp"],settings:{foreground:"#2DAE58"}},{scope:["source.reason keyword.operator keyword.control","source.reason keyword.control.less","source.reason keyword.control.flow"],settings:{foreground:"#ADB1C2"}},{scope:["source.reason string.regexp"],settings:{foreground:"#CF9C00"}},{scope:["source.reason support.property-value"],settings:{foreground:"#11658F"}},{scope:["source.rust support.function.core.rust"],settings:{foreground:"#11658F"}},{scope:["source.rust storage.type.core.rust","source.rust storage.class.std"],settings:{foreground:"#2DAE58"}},{scope:["source.rust entity.name.type.rust"],settings:{foreground:"#13BBB7"}},{scope:["storage.type.function.coffee"],settings:{foreground:"#ADB1C2"}},{scope:["keyword.type.cs","storage.type.cs"],settings:{foreground:"#2DAE58"}},{scope:["entity.name.type.namespace.cs"],settings:{foreground:"#13BBB7"}},{scope:"meta.diff.header",settings:{foreground:"#11658F"}},{scope:["markup.inserted.diff"],settings:{foreground:"#2DAE58"}},{scope:["markup.deleted.diff"],settings:{foreground:"#FF5C56"}},{scope:["meta.diff.range","meta.diff.index","meta.separator"],settings:{foreground:"#09A1ED"}},{scope:"source.makefile variable",settings:{foreground:"#11658F"}},{scope:["keyword.control.protocol-specification.objc"],settings:{foreground:"#F767BB"}},{scope:["meta.parens storage.type.objc","meta.return-type.objc support.class","meta.return-type.objc storage.type.objc"],settings:{foreground:"#2DAE58"}},{scope:["source.sql keyword"],settings:{foreground:"#11658F"}},{scope:["keyword.other.special-method.dockerfile"],settings:{foreground:"#09A1ED"}},{scope:"constant.other.symbol.elixir",settings:{foreground:"#11658F"}},{scope:["storage.type.elm","support.module.elm"],settings:{foreground:"#13BBB7"}},{scope:["source.elm keyword.other"],settings:{foreground:"#ADB1C2"}},{scope:["source.erlang entity.name.type.class"],settings:{foreground:"#13BBB7"}},{scope:["variable.other.field.erlang"],settings:{foreground:"#11658F"}},{scope:["source.erlang constant.other.symbol"],settings:{foreground:"#2DAE58"}},{scope:["storage.type.haskell"],settings:{foreground:"#2DAE58"}},{scope:["meta.declaration.class.haskell storage.type.haskell","meta.declaration.instance.haskell storage.type.haskell"],settings:{foreground:"#13BBB7"}},{scope:["meta.preprocessor.haskell"],settings:{foreground:"#75798F"}},{scope:["source.haskell keyword.control"],settings:{foreground:"#F767BB"}},{scope:["tag.end.latte","tag.begin.latte"],settings:{foreground:"#ADB1C2"}},{scope:"source.po keyword.control",settings:{foreground:"#11658F"}},{scope:"source.po storage.type",settings:{foreground:"#9194A2"}},{scope:"constant.language.po",settings:{foreground:"#13BBB7"}},{scope:"meta.header.po string",settings:{foreground:"#FF8380"}},{scope:"source.po meta.header.po",settings:{foreground:"#ADB1C2"}},{scope:["source.ocaml markup.underline"],settings:{fontStyle:""}},{scope:["source.ocaml punctuation.definition.tag emphasis","source.ocaml entity.name.class constant.numeric","source.ocaml support.type"],settings:{foreground:"#F767BB"}},{scope:["source.ocaml constant.numeric entity.other.attribute-name"],settings:{foreground:"#13BBB7"}},{scope:["source.ocaml comment meta.separator"],settings:{foreground:"#ADB1C2"}},{scope:["source.ocaml support.type strong","source.ocaml keyword.control strong"],settings:{foreground:"#ADB1C2"}},{scope:["source.ocaml support.constant.property-value"],settings:{foreground:"#11658F"}},{scope:["source.scala entity.name.class"],settings:{foreground:"#13BBB7"}},{scope:["storage.type.scala"],settings:{foreground:"#2DAE58"}},{scope:["variable.parameter.scala"],settings:{foreground:"#11658F"}},{scope:["meta.bracket.scala","meta.colon.scala"],settings:{foreground:"#ADB1C2"}},{scope:["meta.metadata.simple.clojure"],settings:{foreground:"#ADB1C2"}},{scope:["meta.metadata.simple.clojure meta.symbol"],settings:{foreground:"#13BBB7"}},{scope:["source.r keyword.other"],settings:{foreground:"#ADB1C2"}},{scope:["source.svelte meta.block.ts entity.name.label"],settings:{foreground:"#11658F"}},{scope:["keyword.operator.word.applescript"],settings:{foreground:"#F767BB"}},{scope:["meta.function-call.livescript"],settings:{foreground:"#09A1ED"}},{scope:["variable.language.self.lua"],settings:{foreground:"#13BBB7"}},{scope:["entity.name.type.class.swift","meta.inheritance-clause.swift","meta.import.swift entity.name.type"],settings:{foreground:"#13BBB7"}},{scope:["source.swift punctuation.section.embedded"],settings:{foreground:"#B38700"}},{scope:["variable.parameter.function.swift entity.name.function.swift"],settings:{foreground:"#565869"}},{scope:"meta.function-call.twig",settings:{foreground:"#565869"}},{scope:"string.unquoted.tag-string.django",settings:{foreground:"#565869"}},{scope:["entity.tag.tagbraces.django","entity.tag.filter-pipe.django"],settings:{foreground:"#ADB1C2"}},{scope:["meta.section.attributes.haml constant.language","meta.section.attributes.plain.haml constant.other.symbol"],settings:{foreground:"#FF8380"}},{scope:["meta.prolog.haml"],settings:{foreground:"#9194A2"}},{scope:["support.constant.handlebars"],settings:{foreground:"#ADB1C2"}},{scope:"text.log log.constant",settings:{foreground:"#C25193"}},{scope:["source.c string constant.other.placeholder","source.cpp string constant.other.placeholder"],settings:{foreground:"#B38700"}},{scope:"constant.other.key.groovy",settings:{foreground:"#11658F"}},{scope:"storage.type.groovy",settings:{foreground:"#13BBB7"}},{scope:"meta.definition.variable.groovy storage.type.groovy",settings:{foreground:"#2DAE58"}},{scope:"storage.modifier.import.groovy",settings:{foreground:"#CF9C00"}},{scope:["entity.other.attribute-name.class.pug","entity.other.attribute-name.id.pug"],settings:{foreground:"#13BBB7"}},{scope:["constant.name.attribute.tag.pug"],settings:{foreground:"#ADB1C2"}},{scope:"entity.name.tag.style.html",settings:{foreground:"#13BBB7"}},{scope:"entity.name.type.wasm",settings:{foreground:"#2DAE58"}}],type:"light"})}}]); diff --git a/starter/src/main/resources/templates/admin/16.99517c56.async.js b/starter/src/main/resources/templates/admin/16.99517c56.async.js new file mode 100644 index 00000000..a58098f7 --- /dev/null +++ b/starter/src/main/resources/templates/admin/16.99517c56.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[16],{40016:function(e,t,o){o.r(t),o.d(t,{default:function(){return r}});var r=Object.freeze({colors:{"activityBar.background":"#E7E8E6","activityBar.foreground":"#2DAE58","activityBar.inactiveForeground":"#68696888","activityBarBadge.background":"#09A1ED","badge.background":"#09A1ED","badge.foreground":"#ffffff","button.background":"#2DAE58","debugExceptionWidget.background":"#FFAEAC33","debugExceptionWidget.border":"#FF5C57","debugToolBar.border":"#E9EAEB","diffEditor.insertedTextBackground":"#2DAE5824","diffEditor.removedTextBackground":"#FFAEAC44","dropdown.border":"#E9EAEB","editor.background":"#FAFBFC","editor.findMatchBackground":"#00E6E06A","editor.findMatchHighlightBackground":"#00E6E02A","editor.findRangeHighlightBackground":"#F5B90011","editor.focusedStackFrameHighlightBackground":"#2DAE5822","editor.foreground":"#565869","editor.hoverHighlightBackground":"#00E6E018","editor.rangeHighlightBackground":"#F5B90033","editor.selectionBackground":"#2DAE5822","editor.snippetTabstopHighlightBackground":"#ADB1C23A","editor.stackFrameHighlightBackground":"#F5B90033","editor.wordHighlightBackground":"#ADB1C23A","editorError.foreground":"#FF5C56","editorGroup.emptyBackground":"#F3F4F5","editorGutter.addedBackground":"#2DAE58","editorGutter.deletedBackground":"#FF5C57","editorGutter.modifiedBackground":"#00A39FAA","editorInlayHint.background":"#E9EAEB","editorInlayHint.foreground":"#565869","editorLineNumber.activeForeground":"#35CF68","editorLineNumber.foreground":"#9194A2aa","editorLink.activeForeground":"#35CF68","editorOverviewRuler.addedForeground":"#2DAE58","editorOverviewRuler.deletedForeground":"#FF5C57","editorOverviewRuler.errorForeground":"#FF5C56","editorOverviewRuler.findMatchForeground":"#13BBB7AA","editorOverviewRuler.modifiedForeground":"#00A39FAA","editorOverviewRuler.warningForeground":"#CF9C00","editorOverviewRuler.wordHighlightForeground":"#ADB1C288","editorOverviewRuler.wordHighlightStrongForeground":"#35CF68","editorWarning.foreground":"#CF9C00","editorWhitespace.foreground":"#ADB1C255","extensionButton.prominentBackground":"#2DAE58","extensionButton.prominentHoverBackground":"#238744",focusBorder:"#09A1ED",foreground:"#686968","gitDecoration.modifiedResourceForeground":"#00A39F","gitDecoration.untrackedResourceForeground":"#2DAE58","input.border":"#E9EAEB","list.activeSelectionBackground":"#09A1ED","list.activeSelectionForeground":"#ffffff","list.errorForeground":"#FF5C56","list.focusBackground":"#BCE7FC99","list.focusForeground":"#11658F","list.hoverBackground":"#E9EAEB","list.inactiveSelectionBackground":"#89B5CB33","list.warningForeground":"#B38700","menu.background":"#FAFBFC","menu.selectionBackground":"#E9EAEB","menu.selectionForeground":"#686968","menubar.selectionBackground":"#E9EAEB","menubar.selectionForeground":"#686968","merge.currentContentBackground":"#35CF6833","merge.currentHeaderBackground":"#35CF6866","merge.incomingContentBackground":"#14B1FF33","merge.incomingHeaderBackground":"#14B1FF77","peekView.border":"#09A1ED","peekViewEditor.background":"#14B1FF08","peekViewEditor.matchHighlightBackground":"#F5B90088","peekViewEditor.matchHighlightBorder":"#F5B900","peekViewEditorStickyScroll.background":"#EDF4FB","peekViewResult.matchHighlightBackground":"#F5B90088","peekViewResult.selectionBackground":"#09A1ED","peekViewResult.selectionForeground":"#FFFFFF","peekViewTitle.background":"#09A1ED11","selection.background":"#2DAE5844","settings.modifiedItemIndicator":"#13BBB7","sideBar.background":"#F3F4F5","sideBar.border":"#DEDFE0","sideBarSectionHeader.background":"#E9EAEB","sideBarSectionHeader.border":"#DEDFE0","statusBar.background":"#2DAE58","statusBar.debuggingBackground":"#13BBB7","statusBar.debuggingBorder":"#00A39F","statusBar.noFolderBackground":"#565869","statusBarItem.remoteBackground":"#238744","tab.activeBorderTop":"#2DAE58","terminal.ansiBlack":"#565869","terminal.ansiBlue":"#09A1ED","terminal.ansiBrightBlack":"#75798F","terminal.ansiBrightBlue":"#14B1FF","terminal.ansiBrightCyan":"#13BBB7","terminal.ansiBrightGreen":"#35CF68","terminal.ansiBrightMagenta":"#FF94D2","terminal.ansiBrightRed":"#FFAEAC","terminal.ansiBrightWhite":"#FFFFFF","terminal.ansiBrightYellow":"#F5B900","terminal.ansiCyan":"#13BBB7","terminal.ansiGreen":"#2DAE58","terminal.ansiMagenta":"#F767BB","terminal.ansiRed":"#FF5C57","terminal.ansiWhite":"#FAFBF9","terminal.ansiYellow":"#CF9C00","titleBar.activeBackground":"#F3F4F5"},displayName:"Snazzy Light",name:"snazzy-light",tokenColors:[{scope:"invalid.illegal",settings:{foreground:"#FF5C56"}},{scope:["meta.object-literal.key","meta.object-literal.key constant.character.escape","meta.object-literal string","meta.object-literal string constant.character.escape","support.type.property-name","support.type.property-name constant.character.escape"],settings:{foreground:"#11658F"}},{scope:["keyword","storage","meta.class storage.type","keyword.operator.expression.import","keyword.operator.new","keyword.operator.expression.delete"],settings:{foreground:"#F767BB"}},{scope:["support.type","meta.type.annotation entity.name.type","new.expr meta.type.parameters entity.name.type","storage.type.primitive","storage.type.built-in.primitive","meta.function.parameter storage.type"],settings:{foreground:"#2DAE58"}},{scope:["storage.type.annotation"],settings:{foreground:"#C25193"}},{scope:"keyword.other.unit",settings:{foreground:"#FF5C57CC"}},{scope:["constant.language","support.constant","variable.language"],settings:{foreground:"#2DAE58"}},{scope:["variable","support.variable"],settings:{foreground:"#565869"}},{scope:"variable.language.this",settings:{foreground:"#13BBB7"}},{scope:["entity.name.function","support.function"],settings:{foreground:"#09A1ED"}},{scope:["entity.name.function.decorator"],settings:{foreground:"#11658F"}},{scope:["meta.class entity.name.type","new.expr entity.name.type","entity.other.inherited-class","support.class"],settings:{foreground:"#13BBB7"}},{scope:["keyword.preprocessor.pragma","keyword.control.directive.include","keyword.other.preprocessor"],settings:{foreground:"#11658F"}},{scope:"entity.name.exception",settings:{foreground:"#FF5C56"}},{scope:"entity.name.section",settings:{}},{scope:["constant.numeric"],settings:{foreground:"#FF5C57"}},{scope:["constant","constant.character"],settings:{foreground:"#2DAE58"}},{scope:"string",settings:{foreground:"#CF9C00"}},{scope:"string",settings:{foreground:"#CF9C00"}},{scope:"constant.character.escape",settings:{foreground:"#F5B900"}},{scope:["string.regexp","string.regexp constant.character.escape"],settings:{foreground:"#13BBB7"}},{scope:["keyword.operator.quantifier.regexp","keyword.operator.negation.regexp","keyword.operator.or.regexp","string.regexp punctuation","string.regexp keyword","string.regexp keyword.control","string.regexp constant","variable.other.regexp"],settings:{foreground:"#00A39F"}},{scope:["string.regexp keyword.other"],settings:{foreground:"#00A39F88"}},{scope:"constant.other.symbol",settings:{foreground:"#CF9C00"}},{scope:["comment","punctuation.definition.comment"],settings:{foreground:"#ADB1C2"}},{scope:"comment.block.preprocessor",settings:{fontStyle:"",foreground:"#9194A2"}},{scope:"comment.block.documentation entity.name.type",settings:{foreground:"#2DAE58"}},{scope:["comment.block.documentation storage","comment.block.documentation keyword.other","meta.class comment.block.documentation storage.type"],settings:{foreground:"#9194A2"}},{scope:["comment.block.documentation variable"],settings:{foreground:"#C25193"}},{scope:["punctuation"],settings:{foreground:"#ADB1C2"}},{scope:["keyword.operator","keyword.other.arrow","keyword.control.@"],settings:{foreground:"#ADB1C2"}},{scope:["meta.tag.metadata.doctype.html entity.name.tag","meta.tag.metadata.doctype.html entity.other.attribute-name.html","meta.tag.sgml.doctype","meta.tag.sgml.doctype string","meta.tag.sgml.doctype entity.name.tag","meta.tag.sgml punctuation.definition.tag.html"],settings:{foreground:"#9194A2"}},{scope:["meta.tag","punctuation.definition.tag.html","punctuation.definition.tag.begin.html","punctuation.definition.tag.end.html"],settings:{foreground:"#ADB1C2"}},{scope:["entity.name.tag"],settings:{foreground:"#13BBB7"}},{scope:["meta.tag entity.other.attribute-name","entity.other.attribute-name.html"],settings:{foreground:"#FF8380"}},{scope:["constant.character.entity","punctuation.definition.entity"],settings:{foreground:"#CF9C00"}},{scope:["source.css"],settings:{foreground:"#ADB1C2"}},{scope:["meta.selector","meta.selector entity","meta.selector entity punctuation","source.css entity.name.tag"],settings:{foreground:"#F767BB"}},{scope:["keyword.control.at-rule","keyword.control.at-rule punctuation.definition.keyword"],settings:{foreground:"#C25193"}},{scope:"source.css variable",settings:{foreground:"#11658F"}},{scope:["source.css meta.property-name","source.css support.type.property-name"],settings:{foreground:"#565869"}},{scope:["source.css support.type.vendored.property-name"],settings:{foreground:"#565869AA"}},{scope:["meta.property-value","support.constant.property-value"],settings:{foreground:"#13BBB7"}},{scope:["source.css support.constant"],settings:{foreground:"#2DAE58"}},{scope:["punctuation.definition.entity.css","keyword.operator.combinator.css"],settings:{foreground:"#FF82CBBB"}},{scope:["source.css support.function"],settings:{foreground:"#09A1ED"}},{scope:"keyword.other.important",settings:{foreground:"#238744"}},{scope:["source.css.scss"],settings:{foreground:"#F767BB"}},{scope:["source.css.scss entity.other.attribute-name.class.css","source.css.scss entity.other.attribute-name.id.css"],settings:{foreground:"#F767BB"}},{scope:["entity.name.tag.reference.scss"],settings:{foreground:"#C25193"}},{scope:["source.css.scss meta.at-rule keyword","source.css.scss meta.at-rule keyword punctuation","source.css.scss meta.at-rule operator.logical","keyword.control.content.scss","keyword.control.return.scss","keyword.control.return.scss punctuation.definition.keyword"],settings:{foreground:"#C25193"}},{scope:["meta.at-rule.mixin.scss","meta.at-rule.include.scss","source.css.scss meta.at-rule.if","source.css.scss meta.at-rule.else","source.css.scss meta.at-rule.each","source.css.scss meta.at-rule variable.parameter"],settings:{foreground:"#ADB1C2"}},{scope:["source.css.less entity.other.attribute-name.class.css"],settings:{foreground:"#F767BB"}},{scope:"source.stylus meta.brace.curly.css",settings:{foreground:"#ADB1C2"}},{scope:["source.stylus entity.other.attribute-name.class","source.stylus entity.other.attribute-name.id","source.stylus entity.name.tag"],settings:{foreground:"#F767BB"}},{scope:["source.stylus support.type.property-name"],settings:{foreground:"#565869"}},{scope:["source.stylus variable"],settings:{foreground:"#11658F"}},{scope:"markup.changed",settings:{foreground:"#888888"}},{scope:"markup.deleted",settings:{foreground:"#888888"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.error",settings:{foreground:"#FF5C56"}},{scope:"markup.inserted",settings:{foreground:"#888888"}},{scope:"meta.link",settings:{foreground:"#CF9C00"}},{scope:"string.other.link.title.markdown",settings:{foreground:"#09A1ED"}},{scope:["markup.output","markup.raw"],settings:{foreground:"#999999"}},{scope:"markup.prompt",settings:{foreground:"#999999"}},{scope:"markup.heading",settings:{foreground:"#2DAE58"}},{scope:"markup.bold",settings:{fontStyle:"bold"}},{scope:"markup.traceback",settings:{foreground:"#FF5C56"}},{scope:"markup.underline",settings:{fontStyle:"underline"}},{scope:"markup.quote",settings:{foreground:"#777985"}},{scope:["markup.bold","markup.italic"],settings:{foreground:"#13BBB7"}},{scope:"markup.inline.raw",settings:{fontStyle:"",foreground:"#F767BB"}},{scope:["meta.brace.round","meta.brace.square","storage.type.function.arrow"],settings:{foreground:"#ADB1C2"}},{scope:["constant.language.import-export-all","meta.import keyword.control.default"],settings:{foreground:"#C25193"}},{scope:["support.function.js"],settings:{foreground:"#11658F"}},{scope:"string.regexp.js",settings:{foreground:"#13BBB7"}},{scope:["variable.language.super","support.type.object.module.js"],settings:{foreground:"#F767BB"}},{scope:"meta.jsx.children",settings:{foreground:"#686968"}},{scope:"entity.name.tag.yaml",settings:{foreground:"#11658F"}},{scope:"variable.other.alias.yaml",settings:{foreground:"#2DAE58"}},{scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:"#75798F"}},{scope:["meta.use.php entity.other.alias.php"],settings:{foreground:"#13BBB7"}},{scope:["source.php support.function.construct","source.php support.function.var"],settings:{foreground:"#11658F"}},{scope:["storage.modifier.extends.php","source.php keyword.other","storage.modifier.php"],settings:{foreground:"#F767BB"}},{scope:["meta.class.body.php storage.type.php"],settings:{foreground:"#F767BB"}},{scope:["storage.type.php","meta.class.body.php meta.function-call.php storage.type.php","meta.class.body.php meta.function.php storage.type.php"],settings:{foreground:"#2DAE58"}},{scope:["source.php keyword.other.DML"],settings:{foreground:"#D94E4A"}},{scope:["source.sql.embedded.php keyword.operator"],settings:{foreground:"#2DAE58"}},{scope:["source.ini keyword","source.toml keyword","source.env variable"],settings:{foreground:"#11658F"}},{scope:["source.ini entity.name.section","source.toml entity.other.attribute-name"],settings:{foreground:"#F767BB"}},{scope:["source.go storage.type"],settings:{foreground:"#2DAE58"}},{scope:["keyword.import.go","keyword.package.go"],settings:{foreground:"#FF5C56"}},{scope:["source.reason variable.language string"],settings:{foreground:"#565869"}},{scope:["source.reason support.type","source.reason constant.language","source.reason constant.language constant.numeric","source.reason support.type string.regexp"],settings:{foreground:"#2DAE58"}},{scope:["source.reason keyword.operator keyword.control","source.reason keyword.control.less","source.reason keyword.control.flow"],settings:{foreground:"#ADB1C2"}},{scope:["source.reason string.regexp"],settings:{foreground:"#CF9C00"}},{scope:["source.reason support.property-value"],settings:{foreground:"#11658F"}},{scope:["source.rust support.function.core.rust"],settings:{foreground:"#11658F"}},{scope:["source.rust storage.type.core.rust","source.rust storage.class.std"],settings:{foreground:"#2DAE58"}},{scope:["source.rust entity.name.type.rust"],settings:{foreground:"#13BBB7"}},{scope:["storage.type.function.coffee"],settings:{foreground:"#ADB1C2"}},{scope:["keyword.type.cs","storage.type.cs"],settings:{foreground:"#2DAE58"}},{scope:["entity.name.type.namespace.cs"],settings:{foreground:"#13BBB7"}},{scope:"meta.diff.header",settings:{foreground:"#11658F"}},{scope:["markup.inserted.diff"],settings:{foreground:"#2DAE58"}},{scope:["markup.deleted.diff"],settings:{foreground:"#FF5C56"}},{scope:["meta.diff.range","meta.diff.index","meta.separator"],settings:{foreground:"#09A1ED"}},{scope:"source.makefile variable",settings:{foreground:"#11658F"}},{scope:["keyword.control.protocol-specification.objc"],settings:{foreground:"#F767BB"}},{scope:["meta.parens storage.type.objc","meta.return-type.objc support.class","meta.return-type.objc storage.type.objc"],settings:{foreground:"#2DAE58"}},{scope:["source.sql keyword"],settings:{foreground:"#11658F"}},{scope:["keyword.other.special-method.dockerfile"],settings:{foreground:"#09A1ED"}},{scope:"constant.other.symbol.elixir",settings:{foreground:"#11658F"}},{scope:["storage.type.elm","support.module.elm"],settings:{foreground:"#13BBB7"}},{scope:["source.elm keyword.other"],settings:{foreground:"#ADB1C2"}},{scope:["source.erlang entity.name.type.class"],settings:{foreground:"#13BBB7"}},{scope:["variable.other.field.erlang"],settings:{foreground:"#11658F"}},{scope:["source.erlang constant.other.symbol"],settings:{foreground:"#2DAE58"}},{scope:["storage.type.haskell"],settings:{foreground:"#2DAE58"}},{scope:["meta.declaration.class.haskell storage.type.haskell","meta.declaration.instance.haskell storage.type.haskell"],settings:{foreground:"#13BBB7"}},{scope:["meta.preprocessor.haskell"],settings:{foreground:"#75798F"}},{scope:["source.haskell keyword.control"],settings:{foreground:"#F767BB"}},{scope:["tag.end.latte","tag.begin.latte"],settings:{foreground:"#ADB1C2"}},{scope:"source.po keyword.control",settings:{foreground:"#11658F"}},{scope:"source.po storage.type",settings:{foreground:"#9194A2"}},{scope:"constant.language.po",settings:{foreground:"#13BBB7"}},{scope:"meta.header.po string",settings:{foreground:"#FF8380"}},{scope:"source.po meta.header.po",settings:{foreground:"#ADB1C2"}},{scope:["source.ocaml markup.underline"],settings:{fontStyle:""}},{scope:["source.ocaml punctuation.definition.tag emphasis","source.ocaml entity.name.class constant.numeric","source.ocaml support.type"],settings:{foreground:"#F767BB"}},{scope:["source.ocaml constant.numeric entity.other.attribute-name"],settings:{foreground:"#13BBB7"}},{scope:["source.ocaml comment meta.separator"],settings:{foreground:"#ADB1C2"}},{scope:["source.ocaml support.type strong","source.ocaml keyword.control strong"],settings:{foreground:"#ADB1C2"}},{scope:["source.ocaml support.constant.property-value"],settings:{foreground:"#11658F"}},{scope:["source.scala entity.name.class"],settings:{foreground:"#13BBB7"}},{scope:["storage.type.scala"],settings:{foreground:"#2DAE58"}},{scope:["variable.parameter.scala"],settings:{foreground:"#11658F"}},{scope:["meta.bracket.scala","meta.colon.scala"],settings:{foreground:"#ADB1C2"}},{scope:["meta.metadata.simple.clojure"],settings:{foreground:"#ADB1C2"}},{scope:["meta.metadata.simple.clojure meta.symbol"],settings:{foreground:"#13BBB7"}},{scope:["source.r keyword.other"],settings:{foreground:"#ADB1C2"}},{scope:["source.svelte meta.block.ts entity.name.label"],settings:{foreground:"#11658F"}},{scope:["keyword.operator.word.applescript"],settings:{foreground:"#F767BB"}},{scope:["meta.function-call.livescript"],settings:{foreground:"#09A1ED"}},{scope:["variable.language.self.lua"],settings:{foreground:"#13BBB7"}},{scope:["entity.name.type.class.swift","meta.inheritance-clause.swift","meta.import.swift entity.name.type"],settings:{foreground:"#13BBB7"}},{scope:["source.swift punctuation.section.embedded"],settings:{foreground:"#B38700"}},{scope:["variable.parameter.function.swift entity.name.function.swift"],settings:{foreground:"#565869"}},{scope:"meta.function-call.twig",settings:{foreground:"#565869"}},{scope:"string.unquoted.tag-string.django",settings:{foreground:"#565869"}},{scope:["entity.tag.tagbraces.django","entity.tag.filter-pipe.django"],settings:{foreground:"#ADB1C2"}},{scope:["meta.section.attributes.haml constant.language","meta.section.attributes.plain.haml constant.other.symbol"],settings:{foreground:"#FF8380"}},{scope:["meta.prolog.haml"],settings:{foreground:"#9194A2"}},{scope:["support.constant.handlebars"],settings:{foreground:"#ADB1C2"}},{scope:"text.log log.constant",settings:{foreground:"#C25193"}},{scope:["source.c string constant.other.placeholder","source.cpp string constant.other.placeholder"],settings:{foreground:"#B38700"}},{scope:"constant.other.key.groovy",settings:{foreground:"#11658F"}},{scope:"storage.type.groovy",settings:{foreground:"#13BBB7"}},{scope:"meta.definition.variable.groovy storage.type.groovy",settings:{foreground:"#2DAE58"}},{scope:"storage.modifier.import.groovy",settings:{foreground:"#CF9C00"}},{scope:["entity.other.attribute-name.class.pug","entity.other.attribute-name.id.pug"],settings:{foreground:"#13BBB7"}},{scope:["constant.name.attribute.tag.pug"],settings:{foreground:"#ADB1C2"}},{scope:"entity.name.tag.style.html",settings:{foreground:"#13BBB7"}},{scope:"entity.name.type.wasm",settings:{foreground:"#2DAE58"}}],type:"light"})}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/1639.67d97a85.async.js b/starter/src/main/resources/templates/admin/1639.67d97a85.async.js new file mode 100644 index 00000000..6617df5b --- /dev/null +++ b/starter/src/main/resources/templates/admin/1639.67d97a85.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1639],{31639:function(O,Q,$){$.r(Q),$.d(Q,{cpp:function(){return W},cppLanguage:function(){return n}});var X=$(53105),e=$(35524);const i=new X.Jq((O=>{if(76==O.next||85==O.next?O.advance():117==O.next&&(O.advance(),56==O.next&&O.advance()),82!=O.next)return;if(O.advance(),34!=O.next)return;O.advance();let Q="";for(;40!=O.next;){if(32==O.next||O.next<=13||41==O.next)return;Q+=String.fromCharCode(O.next),O.advance()}for(O.advance();;){if(O.next<0)return O.acceptToken(1);if(41==O.next){let $=!0;for(let X=0;$&&X{if(62==O.next)62==O.peek(1)&&O.acceptToken(2,1);else{let Q=!1,$=0;for(;;$++){if(O.next>=65&&O.next<=90)Q=!0;else{if(O.next>=97&&O.next<=122)return;if(95!=O.next&&!(O.next>=48&&O.next<=57))break}O.advance()}Q&&$>1&&O.acceptToken(3)}}),{extend:!0}),r=(0,e.Gv)({"typedef struct union enum class typename decltype auto template operator friend noexcept namespace using requires concept import export module __attribute__ __declspec __based":e.pJ.definitionKeyword,"extern MsCallModifier MsPointerModifier extern static register thread_local inline const volatile restrict _Atomic mutable constexpr constinit consteval virtual explicit VirtualSpecifier Access":e.pJ.modifier,"if else switch for while do case default return break continue goto throw try catch":e.pJ.controlKeyword,"co_return co_yield co_await":e.pJ.controlKeyword,"new sizeof delete static_assert":e.pJ.operatorKeyword,"NULL nullptr":e.pJ.null,this:e.pJ.self,"True False":e.pJ.bool,"TypeSize PrimitiveType":e.pJ.standard(e.pJ.typeName),TypeIdentifier:e.pJ.typeName,FieldIdentifier:e.pJ.propertyName,"CallExpression/FieldExpression/FieldIdentifier":e.pJ.function(e.pJ.propertyName),"ModuleName/Identifier":e.pJ.namespace,PartitionName:e.pJ.labelName,StatementIdentifier:e.pJ.labelName,"Identifier DestructorName":e.pJ.variableName,"CallExpression/Identifier":e.pJ.function(e.pJ.variableName),"CallExpression/ScopedIdentifier/Identifier":e.pJ.function(e.pJ.variableName),"FunctionDeclarator/Identifier FunctionDeclarator/DestructorName":e.pJ.function(e.pJ.definition(e.pJ.variableName)),NamespaceIdentifier:e.pJ.namespace,OperatorName:e.pJ.operator,ArithOp:e.pJ.arithmeticOperator,LogicOp:e.pJ.logicOperator,BitOp:e.pJ.bitwiseOperator,CompareOp:e.pJ.compareOperator,AssignOp:e.pJ.definitionOperator,UpdateOp:e.pJ.updateOperator,LineComment:e.pJ.lineComment,BlockComment:e.pJ.blockComment,Number:e.pJ.number,String:e.pJ.string,"RawString SystemLibString":e.pJ.special(e.pJ.string),CharLiteral:e.pJ.character,EscapeSequence:e.pJ.escape,"UserDefinedLiteral/Identifier":e.pJ.literal,PreProcArg:e.pJ.meta,"PreprocDirectiveName #include #ifdef #ifndef #if #define #else #endif #elif":e.pJ.processingInstruction,MacroName:e.pJ.special(e.pJ.name),"( )":e.pJ.paren,"[ ]":e.pJ.squareBracket,"{ }":e.pJ.brace,"< >":e.pJ.angleBracket,". ->":e.pJ.derefOperator,", ;":e.pJ.separator}),P={__proto__:null,bool:34,char:34,int:34,float:34,double:34,void:34,size_t:34,ssize_t:34,intptr_t:34,uintptr_t:34,charptr_t:34,int8_t:34,int16_t:34,int32_t:34,int64_t:34,uint8_t:34,uint16_t:34,uint32_t:34,uint64_t:34,char8_t:34,char16_t:34,char32_t:34,char64_t:34,const:68,volatile:70,restrict:72,_Atomic:74,mutable:76,constexpr:78,constinit:80,consteval:82,struct:86,__declspec:90,final:148,override:148,public:152,private:152,protected:152,virtual:154,extern:160,static:162,register:164,inline:166,thread_local:168,__attribute__:172,__based:178,__restrict:180,__uptr:180,__sptr:180,_unaligned:180,__unaligned:180,noexcept:194,requires:198,TRUE:784,true:784,FALSE:786,false:786,typename:218,class:220,template:234,throw:248,__cdecl:256,__clrcall:256,__stdcall:256,__fastcall:256,__thiscall:256,__vectorcall:256,try:260,catch:264,export:282,import:286,case:296,default:298,if:308,else:314,switch:318,do:322,while:324,for:330,return:334,break:338,continue:342,goto:346,co_return:350,co_yield:354,using:362,typedef:366,namespace:380,new:398,delete:400,co_await:402,concept:406,enum:410,static_assert:414,friend:422,union:424,explicit:430,operator:444,module:456,signed:518,unsigned:518,long:518,short:518,decltype:528,auto:530,sizeof:566,NULL:572,nullptr:586,this:588},U={__proto__:null,"<":131},t={__proto__:null,">":135},Y={__proto__:null,operator:388,new:576,delete:582},S=X.WQ.deserialize({version:14,states:"$:|Q!QQVOOP'gOUOOO(XOWO'#CdO,RQUO'#CgO,]QUO'#FjO-sQbO'#CwO.UQUO'#CwO0TQUO'#KZO0[QUO'#CvO0gOpO'#DvO0oQ!dO'#D]OOQR'#JO'#JOO5XQVO'#GUO5fQUO'#JVOOQQ'#JV'#JVO8zQUO'#KmO{QVO'#E^O?]QUO'#E^OOQQ'#Ed'#EdOOQQ'#Ee'#EeO?bQVO'#EfO@XQVO'#EiOBUQUO'#FPOBvQUO'#FhOOQR'#Fj'#FjOB{QUO'#FjOOQR'#LQ'#LQOOQR'#LP'#LPOETQVO'#KQOFxQUO'#LVOGVQUO'#KqOGkQUO'#LVOH]QUO'#LXOOQR'#HU'#HUOOQR'#HV'#HVOOQR'#HW'#HWOOQR'#K|'#K|OOQR'#J_'#J_Q!QQVOOOHkQVO'#FOOIWQUO'#EhOI_QUOOOKZQVO'#HgOKkQUO'#HgONVQUO'#KqONaQUO'#KqOOQQ'#Kq'#KqO!!_QUO'#KqOOQQ'#Jq'#JqO!!lQUO'#HxOOQQ'#KZ'#KZO!&^QUO'#KZO!&zQUO'#KQO!(zQVO'#I]O!(zQVO'#I`OCQQUO'#KQOOQQ'#Ip'#IpOOQQ'#KQ'#KQO!,}QUO'#KZOOQR'#KY'#KYO!-UQUO'#DYO!/mQUO'#KnOOQQ'#Kn'#KnO!/tQUO'#KnO!/{QUO'#ETO!0QQUO'#EWO!0VQUO'#FRO8zQUO'#FPO!QQVO'#F^O!0[Q#vO'#F`O!0gQUO'#FkO!0oQUO'#FpO!0tQVO'#FrO!0oQUO'#FuO!3sQUO'#FvO!3xQVO'#FxO!4SQUO'#FzO!4XQUO'#F|O!4^QUO'#GOO!4cQVO'#GQO!(zQVO'#GSO!4jQUO'#GpO!4xQUO'#GYO!(zQVO'#FeO!6VQUO'#FeO!6[QVO'#G`O!6cQUO'#GaO!6nQUO'#GnO!6sQUO'#GrO!6xQUO'#GzO!7jQ&lO'#HiO!:mQUO'#GuO!:}QUO'#HXO!;YQUO'#HZO!;bQUO'#DWO!;bQUO'#HuO!;bQUO'#HvO!;yQUO'#HwO!<[QUO'#H|O!=PQUO'#H}O!>uQVO'#IbO!(zQVO'#IdO!?PQUO'#IgO!?WQVO'#IjP!@}{,UO'#CbP!6n{,UO'#CbP!AY{7[O'#CbP!6n{,UO'#CbP!A_{,UO'#CbP!AjOSO'#IzPOOO)CEn)CEnOOOO'#I|'#I|O!AtOWO,59OOOQR,59O,59OO!(zQVO,59UOOQQ,59W,59WO!(zQVO,5;ROOQR,5qOOQR'#IX'#IXOOQR'#IY'#IYOOQR'#IZ'#IZOOQR'#I['#I[O!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!DOQVO,5>zOOQQ,5?W,5?WO!EqQVO'#ChO!IjQUO'#CyOOQQ,59c,59cOOQQ,59b,59bOOQQ,5<},5<}O!IwQ&lO,5=mO!?PQUO,5?RO!LkQVO,5?UO!LrQbO,59cO!L}QVO'#FYOOQQ,5?P,5?PO!M_QVO,59VO!MfO`O,5:bO!MkQbO'#D^O!M|QbO'#K^O!N[QbO,59wO!NdQbO'#CwO!NuQUO'#CwO!NzQUO'#KZO# UQUO'#CvOOQR-E<|-E<|O# aQUO,5AoO# hQVO'#EfO@XQVO'#EiOBUQUO,5;kOOQR,5l,5>lO#3gQUO'#CgO#4]QUO,5>pO#6OQUO'#IeOOQR'#I}'#I}O#6WQUO,5:xO#6tQUO,5:xO#7eQUO,5:xO#8YQUO'#CtO!0QQUO'#ClOOQQ'#JW'#JWO#6tQUO,5:xO#8bQUO,5;QO!4xQUO'#C}O#9kQUO,5;QO#9pQUO,5>QO#:|QUO'#C}O#;dQUO,5>{O#;iQUO'#KwO#}QUO'#L[O#?UQUO,5>UO#?ZQbO'#CwO#?fQUO'#GcO#?kQUO'#E^O#@[QUO,5;kO#@sQUO'#K}O#@{QUO,5;rOKkQUO'#HfOBUQUO'#HgO#AQQUO'#KqO!6nQUO'#HjO#AxQUO'#CtO!0tQVO,5PO$(WQUO'#E[O$(eQUO,5>ROOQQ,5>S,5>SO$,RQVO'#C{OOQQ-E=o-E=oOOQQ,5>d,5>dOOQQ,59`,59`O$,]QUO,5>wO$.]QUO,5>zO!6nQUO,59tO$.pQUO,5;qO$.}QUO,5<{O!0QQUO,5:oOOQQ,5:r,5:rO$/YQUO,5;mO$/_QUO'#KmOBUQUO,5;kOOQR,5;x,5;xO$0OQUO'#FbO$0^QUO'#FbO$0cQUO,5;zO$3|QVO'#FmO!0tQVO,5eQUO,5pQUO,5=[O$>uQUO,5=[O!4xQUO,5}QUO,5uQUO,5<{O$DQQUO,5<{O$D]QUO,5=YO!(zQVO,5=^O!(zQVO,5=fO#NeQUO,5=mOOQQ,5>T,5>TO$FbQUO,5>TO$FlQUO,5>TO$FqQUO,5>TO$FvQUO,5>TO!6nQUO,5>TO$HtQUO'#KZO$H{QUO,5=oO$IWQUO,5=aOKkQUO,5=oO$JQQUO,5=sOOQR,5=s,5=sO$JYQUO,5=sO$LeQVO'#H[OOQQ,5=u,5=uO!;]QUO,5=uO%#`QUO'#KjO%#gQUO'#K[O%#{QUO'#KjO%$VQUO'#DyO%$hQUO'#D|O%'eQUO'#K[OOQQ'#K['#K[O%)WQUO'#K[O%#gQUO'#K[O%)]QUO'#K[OOQQ,59r,59rOOQQ,5>a,5>aOOQQ,5>b,5>bO%)eQUO'#HzO%)mQUO,5>cOOQQ,5>c,5>cO%-XQUO,5>cO%-dQUO,5>hO%1OQVO,5>iO%1VQUO,5>|O# hQVO'#EfO%4]QUO,5>|OOQQ,5>|,5>|O%4|QUO,5?OO%7QQUO,5?RO!<[QUO,5?RO%8|QUO,5?UO%sQUO1G0mOOQQ1G0m1G0mO%@PQUO'#CoO%B`QbO'#CwO%BkQUO'#CrO%BpQUO'#CrO%BuQUO1G.tO#AxQUO'#CqOOQQ1G.t1G.tO%DxQUO1G4]O%FOQUO1G4^O%GqQUO1G4^O%IdQUO1G4^O%KVQUO1G4^O%LxQUO1G4^O%NkQUO1G4^O&!^QUO1G4^O&$PQUO1G4^O&%rQUO1G4^O&'eQUO1G4^O&)WQUO1G4^O&*yQUO'#KPO&,SQUO'#KPO&,[QUO,59SOOQQ,5=P,5=PO&.dQUO,5=PO&.nQUO,5=PO&.sQUO,5=PO&.xQUO,5=PO!6nQUO,5=PO#NeQUO1G3XO&/SQUO1G4mO!<[QUO1G4mO&1OQUO1G4pO&2qQVO1G4pOOQQ1G.}1G.}OOQQ1G.|1G.|OOQQ1G2i1G2iO!IwQ&lO1G3XO&2xQUO'#LOO@XQVO'#EiO&4RQUO'#F]OOQQ'#Ja'#JaO&4WQUO'#FZO&4cQUO'#LOO&4kQUO,5;tO&4pQUO1G.qOOQQ1G.q1G.qOOQR1G/|1G/|O&6cQ!dO'#JPO&6hQbO,59xO&8yQ!eO'#D`O&9QQ!dO'#JRO&9VQbO,5@xO&9VQbO,5@xOOQR1G/c1G/cO&9bQbO1G/cO&9gQ&lO'#GeO&:eQbO,59cOOQR1G7Z1G7ZO#@[QUO1G1VO&:pQUO1G1^OBUQUO1G1VO&=RQUO'#CyO#*wQbO,59cO&@tQUO1G6sOOQR-E<{-E<{O&BWQUO1G0dO#6WQUO1G0dOOQQ-E=U-E=UO#6tQUO1G0dOOQQ1G0l1G0lO&B{QUO,59iOOQQ1G3l1G3lO&CcQUO,59iO&CyQUO,59iO!M_QVO1G4gO!(zQVO'#JYO&DeQUO,5AcOOQQ1G0o1G0oO!(zQVO1G0oO!6nQUO'#JnO&DmQUO,5AvOOQQ1G3p1G3pOOQR1G1V1G1VO&HjQVO'#FOO!M_QVO,5;sOOQQ,5;s,5;sOBUQUO'#JcO&JfQUO,5AiO&JnQVO'#E[OOQR1G1^1G1^O&M]QUO'#L[OOQR1G1n1G1nOOQR-E=f-E=fOOQR1G7]1G7]O#DhQUO1G7]OGVQUO1G7]O#DhQUO1G7_OOQR1G7_1G7_O&MeQUO'#G}O&MmQUO'#LWOOQQ,5=h,5=hO&M{QUO,5=jO&NQQUO,5=kOOQR1G7`1G7`O#EfQVO1G7`O&NVQUO1G7`O' ]QVO,5=kOOQR1G1U1G1UO$.vQUO'#E]O'!RQUO'#E]OOQQ'#Ky'#KyO'!lQUO'#KxO'!wQUO,5;UO'#PQUO'#ElO'#dQUO'#ElO'#wQUO'#EtOOQQ'#J['#J[O'#|QUO,5;cO'$sQUO,5;cO'%nQUO,5;dO'&tQVO,5;dOOQQ,5;d,5;dO''OQVO,5;dO'&tQVO,5;dO''VQUO,5;bO'(SQUO,5;eO'(_QUO'#KpO'(gQUO,5:vO'(lQUO,5;fOOQQ1G0n1G0nOOQQ'#J]'#J]O''VQUO,5;bO!4xQUO'#E}OOQQ,5;b,5;bO')gQUO'#E`O'+aQUO'#E{OHrQUO1G0nO'+fQUO'#EbOOQQ'#JX'#JXO'-OQUO'#KrOOQQ'#Kr'#KrO'-xQUO1G0eO'.pQUO1G3kO'/vQVO1G3kOOQQ1G3k1G3kO'0QQVO1G3kO'0XQUO'#L_O'1eQUO'#KXO'1sQUO'#KWO'2OQUO,59gO'2WQUO1G/`O'2]QUO'#FPOOQR1G1]1G1]OOQR1G2g1G2gO$>uQUO1G2gO'2gQUO1G2gO'2rQUO1G0ZOOQR'#J`'#J`O'2wQVO1G1XO'8pQUO'#FTO'8uQUO1G1VO!6nQUO'#JdO'9TQUO,5;|O$0^QUO,5;|OOQQ'#Fc'#FcOOQQ,5;|,5;|O'9cQUO1G1fOOQR1G1f1G1fO'9kQUO,5}QUO1G2`OOQQ'#Cu'#CuO'CzQUO'#G[O'DuQUO'#G[O'DzQUO'#LRO'EYQUO'#G_OOQQ'#LS'#LSO'EhQUO1G2`O'EmQVO1G1kO'HOQVO'#GUOBUQUO'#FWOOQR'#Je'#JeO'EmQVO1G1kO'HYQUO'#FvOOQR1G2f1G2fO'H_QUO1G2gO'HdQUO'#JgO'2gQUO1G2gO!(zQVO1G2tO'HlQUO1G2xO'IuQUO1G3QO'J{QUO1G3XOOQQ1G3o1G3oO'KaQUO1G3oOOQR1G3Z1G3ZO'KfQUO'#KZO'2]QUO'#LTOGkQUO'#LVOOQR'#Gy'#GyO#DhQUO'#LXOOQR'#HQ'#HQO'KpQUO'#GvO'#wQUO'#GuOOQR1G2{1G2{O'LmQUO1G2{O'MdQUO1G3ZO'MoQUO1G3_O'MtQUO1G3_OOQR1G3_1G3_O'M|QUO'#H]OOQR'#H]'#H]O( VQUO'#H]O!(zQVO'#H`O!(zQVO'#H_OOQR'#LZ'#LZO( [QUO'#LZOOQR'#Jk'#JkO( aQVO,5=vOOQQ,5=v,5=vO( hQUO'#H^O( pQUO'#HZOOQQ1G3a1G3aO( zQUO,5@vOOQQ,5@v,5@vO%)WQUO,5@vO%)]QUO,5@vO%$VQUO,5:eO(%iQUO'#KkO(%wQUO'#KkOOQQ,5:e,5:eOOQQ'#JS'#JSO(&SQUO'#D}O(&^QUO'#KqOGkQUO'#LVO('YQUO'#D}OOQQ'#Hp'#HpOOQQ'#Hr'#HrOOQQ'#Hs'#HsOOQQ'#Kl'#KlOOQQ'#JU'#JUO('dQUO,5:hOOQQ,5:h,5:hO((aQUO'#LVO((nQUO'#HtO()UQUO,5@vO()]QUO'#H{O()hQUO'#L^O()pQUO,5>fO()uQUO'#L]OOQQ1G3}1G3}O(-lQUO1G3}O(-sQUO1G3}O(-zQUO1G4TO(/QQUO1G4TO(/VQUO,5A|O!6nQUO1G4hO!(zQVO'#IiOOQQ1G4m1G4mO(/[QUO1G4mO(1_QVO1G4pPOOO1G.h1G.hP!A_{,UO1G.hP(3_QUO'#LeP(3j{,UO1G.hP(3o{7[O1G.hPO{O-E=s-E=sPOOO,5A},5A}P(3w{,UO,5A}POOO1G5Q1G5QO!(zQVO7+$[O(3|QUO'#CyOOQQ,59^,59^O(4XQbO,59cO(4dQbO,59^OOQQ,59],59]OOQQ7+)w7+)wO!M_QVO'#JtO(4oQUO,5@kOOQQ1G.n1G.nOOQQ1G2k1G2kO(4wQUO1G2kO(4|QUO7+(sOOQQ7+*X7+*XO(7bQUO7+*XO(7iQUO7+*XO(1_QVO7+*[O#NeQUO7+(sO(7vQVO'#JbO(8ZQUO,5AjO(8cQUO,5;vOOQQ'#Co'#CoOOQQ,5;w,5;wO!(zQVO'#F[OOQQ-E=_-E=_O!M_QVO,5;uOOQQ1G1`1G1`OOQQ,5?k,5?kOOQQ-E<}-E<}OOQR'#Dg'#DgOOQR'#Di'#DiOOQR'#Dl'#DlO(9lQ!eO'#K_O(9sQMkO'#K_O(9zQ!eO'#K_OOQR'#K_'#K_OOQR'#JQ'#JQO(:RQ!eO,59zOOQQ,59z,59zO(:YQbO,5?mOOQQ-E=P-E=PO(:hQbO1G6dOOQR7+$}7+$}OOQR7+&q7+&qOOQR7+&x7+&xO'8uQUO7+&qO(:sQUO7+&OO#6WQUO7+&OO(;hQUO1G/TO(]QUO,5?tOOQQ-E=W-E=WO(?fQUO7+&ZOOQQ,5@Y,5@YOOQQ-E=l-E=lO(?kQUO'#LOO@XQVO'#EiO(@wQUO1G1_OOQQ1G1_1G1_O(BQQUO,5?}OOQQ,5?},5?}OOQQ-E=a-E=aO(BfQUO'#KpOOQR7+,w7+,wO#DhQUO7+,wOOQR7+,y7+,yO(BsQUO,5=iO#DsQUO'#JjO(CUQUO,5ArOOQR1G3U1G3UOOQR1G3V1G3VO(CdQUO7+,zOOQR7+,z7+,zO(E[QUO,5:wO(FyQUO'#EwO!(zQVO,5;VO(GlQUO,5:wO(GvQUO'#EpO(HXQUO'#EzOOQQ,5;Z,5;ZO#K]QVO'#ExO(HoQUO,5:wO(HvQUO'#EyO#GgQUO'#JZO(J`QUO,5AdOOQQ1G0p1G0pO(JkQUO,5;WO!<[QUO,5;^O(KUQUO,5;_O(KdQUO,5;WO(MvQUO,5;`OOQQ-E=Y-E=YO(NOQUO1G0}OOQQ1G1O1G1OO(NyQUO1G1OO)!PQVO1G1OO)!WQVO1G1OO)!bQUO1G0|OOQQ1G0|1G0|OOQQ1G1P1G1PO)#_QUO'#JoO)#iQUO,5A[OOQQ1G0b1G0bOOQQ-E=Z-E=ZO)#qQUO,5;iO!<[QUO,5;iO)$nQVO,5:zO)$uQUO,5;gO$ mQUO7+&YOOQQ7+&Y7+&YO!(zQVO'#EfO)$|QUO,5:|OOQQ'#Ks'#KsOOQQ-E=V-E=VOOQQ,5A^,5A^OOQQ'#Jl'#JlO)(qQUO7+&PPOQQ7+&P7+&POOQQ7+)V7+)VO))iQUO7+)VO)*oQVO7+)VOOQQ,5>m,5>mO$)YQVO'#JsO)*vQUO,5@rOOQQ1G/R1G/ROOQQ7+$z7+$zO)+RQUO7+(RO)+WQUO7+(ROOQR7+(R7+(RO$>uQUO7+(ROOQQ7+%u7+%uOOQR-E=^-E=^O!0VQUO,5;oOOQQ,5@O,5@OOOQQ-E=b-E=bO$0^QUO1G1hOOQQ1G1h1G1hOOQR7+'Q7+'QOOQR1G1s1G1sOBUQUO,5;rO)+tQUO,5hQUO,5}QUO7+(dO)?SQVO7+(dOOQQ7+(l7+(lOOQQ7+)Z7+)ZO)?[QUO'#KjO)?fQUO'#KjOOQR,5=b,5=bO)?sQUO,5=bO!;bQUO,5=bO!;bQUO,5=bO!;bQUO,5=bOOQR7+(g7+(gOOQR7+(u7+(uOOQR7+(y7+(yOOQR,5=w,5=wO)?xQUO,5=zO)AOQUO,5=yOOQR,5Au,5AuOOQR-E=i-E=iOOQQ1G3b1G3bO)BUQUO,5=xO)BZQVO'#EfOOQQ1G6b1G6bO%)WQUO1G6bO%)]QUO1G6bOOQQ1G0P1G0POOQQ-E=Q-E=QO)DrQUO,5AVO(%iQUO'#JTO)D}QUO,5AVO)D}QUO,5AVO)EVQUO,5:iO8zQUO,5:iOOQQ,5>],5>]O)EaQUO,5AqO)EhQUO'#EVO)FrQUO'#EVO)G]QUO,5:iO)GgQUO'#HlO)GgQUO'#HmOOQQ'#Ko'#KoO)HUQUO'#KoO!(zQVO'#HnOOQQ,5:i,5:iO)HvQUO,5:iO!M_QVO,5:iOOQQ-E=S-E=SOOQQ1G0S1G0SOOQQ,5>`,5>`O)H{QUO1G6bO!(zQVO,5>gO)LjQUO'#JrO)LuQUO,5AxOOQQ1G4Q1G4QO)L}QUO,5AwOOQQ,5Aw,5AwOOQQ7+)i7+)iO*!lQUO7+)iOOQQ7+)o7+)oO*'kQVO1G7hO*)mQUO7+*SO*)rQUO,5?TO**xQUO7+*[POOO7+$S7+$SP*,kQUO'#LfP*,sQUO,5BPP*,x{,UO7+$SPOOO1G7i1G7iO*,}QUO<XQUO7+&jO*?_QVO7+&jOOQQ7+&h7+&hOOQQ,5@Z,5@ZOOQQ-E=m-E=mO*@ZQUO1G1TO*@eQUO1G1TO*AOQUO1G0fOOQQ1G0f1G0fO*BUQUO'#K{O*B^QUO1G1ROOQQ<uQUO<VO)GgQUO'#JpO*NQQUO1G0TO*NcQVO1G0TOOQQ1G3u1G3uO*NjQUO,5>WO*NuQUO,5>XO+ dQUO,5>YO+!jQUO1G0TO%)]QUO7++|O+#pQUO1G4ROOQQ,5@^,5@^OOQQ-E=p-E=pOOQQ<n,5>nO+/iQUOANAXOOQRANAXANAXO+/nQUO7+'`OOQRAN@cAN@cO+0zQVOAN@nO+1RQUOAN@nO!0tQVOAN@nO+2[QUOAN@nO+2aQUOAN@}O+2lQUOAN@}O+3rQUOAN@}OOQRAN@nAN@nO!M_QVOAN@}OOQRANAOANAOO+3wQUO7+'|O)7VQUO7+'|OOQQ7+(O7+(OO+4YQUO7+(OO+5`QVO7+(OO+5gQVO7+'hO+5nQUOANAjOOQR7+(h7+(hOOQR7+)P7+)PO+5sQUO7+)PO+5xQUO7+)POOQQ<= h<= hO+6QQUO7+,]O+6YQUO1G5ZOOQQ1G5Z1G5ZO+6eQUO7+%oOOQQ7+%o7+%oO+6vQUO7+%oO*NcQVO7+%oOOQQ7+)a7+)aO+6{QUO7+%oO+8RQUO7+%oO!M_QVO7+%oO+8]QUO1G0]O*LkQUO1G0]O)EhQUO1G0]OOQQ1G0a1G0aO+8zQUO1G3qO+:QQVO1G3qOOQQ1G3q1G3qO+:[QVO1G3qO+:cQUO,5@[OOQQ-E=n-E=nOOQQ1G3r1G3rO%)WQUO<= hOOQQ7+*Z7+*ZPOQQ,5@b,5@bPOQQ-E=t-E=tOOQQ1G/}1G/}OOQQ,5?x,5?xOOQQ-E=[-E=[OOQRG26sG26sO+:zQUOG26YO!0tQVOG26YO+QQUO<uAN>uO+BpQUOAN>uO+CvQUOAN>uO!M_QVOAN>uO+C{QUO<nQUO'#KZO,?OQUO'#CyO,?^QbO,59cO,6VQUO7+&OO,OP>i>{?aFXMX!&]!,sP!3m!4b!5VP!5qPPPPPPPP!6[P!7tPP!9V!:oP!:uPPPPPP!:xP!:xPP!:xPPPPPPPPP!;U!>lP!>oPP!?]!@QPPPPP!@UP>l!AgPP>l!Cn!Eo!E}!Gd!ITP!I`P!Io!Io!MP#!`##v#'S#*^!Eo#*hPP!Eo#*o#*u#*h#*h#*xP#*|#+k#+k#+k#+k!ITP#,U#,g#.|P#/bP#0}P#1R#1Z#2O#2Z#4i#4q#4q#1RP#1RP#4x#5OP#5YPP#5u#6d#7U#5uP#7v#8SP#5uP#5uPP#5u#5uP#5uP#5uP#5uP#5uP#5uP#5uP#8V#5Y#8sP#9YP#9o#9o#9o#9o#9|#1RP#:d#?`#?}PPPPPPPP#@uP#ATP#ATP#Aa#Dn#9OPP#@}#EQP#Ee#Ep#Ev#Ev#@}#FlP#1R#1R#1R#1R#1RP!Io#GW#G_#G_#G_#Gc!Ly#Gm!Ly#Gq!E}!E}!E}#Gt#L^!E}>l>l>l$#V!@Q!@Q!@Q!@Q!@Q!@Q!6[!6[!6[$#jP$%V$%e!6[$%kPP!6[$'y$'|#@l$(P:t7j$+V$-Q$.q$0a7jPP7j$2T7jP7j7jP7jP$5Z7jP7jPP7j$5gPPPPPPPPP*[P$8o$8u$;^$=d$=j$>Q$>[$>g$>v$>|$@[$AZ$Ab$Ai$Ao$Aw$BR$BX$Bd$Bj$Bs$B{$CW$C^$Ch$Cn$Cx$DP$D`$Df$DlP$Dr$Dz$ER$Ea$F}$GT$GZ$Gb$GkPPPPPPPP$Gq$GuPPPPP$Nw$'y$Nz%$S%&[P%&i%&lPPPPPPPPPP%&x%'{%(R%(V%)|%+Z%+|%,T%.d%.jPPP%.t%/P%/S%/Y%0a%0d%0n%0x%0|%2Q%2s%2y#@uP%3d%3t%3w%4X%4e%4i%4o%4u$'y$'|$'|%4x%4{P%5V%5YR#cP'`mO[aefwx{!W!X!g!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&S&W&b&f&x&y&|'O'P'b'i'j'y(`(b(i)l)r*h*i*l*q*r*v+W+Y+h+j+k,P,R,n,q,w-]-^-a-g.P.Q.U.}/Q/[/c/l/n/s/u0h0{1Q1a1b1l1p1z1|2c2f2i2u2z2}3i4O4R4W4a5Y5e5q6_6c6f6h6j6t6v6{7b7j7m8e8g8m8s8t9R9V9]9_9l9o9p9{:O:U:W:]:b:fU%om%p7QQ&m!`Q(j#]d0P)}/|/}0O0R4}5O5P5S8QR7Q3Tb}Oaewx{!g&S*q&v$i[!W!X!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&W&b&f&x&y&|'O'P'b'i'j'y(`(b(i)l)r*h*i*l*r*v+W+Y+h+j+k,P,R,n,q,w-]-^-a-g.P.Q.U.}/Q/[/c/l/n/s/u0{1a1b1l1p1z1|2c2f2i2u2z2}3i4O4R4W4a5Y5e5q6_6c6f6h6j6t6v6{7b7j7m8e8g8m8s8t9R9V9]9_9l9o9p9{:O:U:W:]:b:fS%`f0h#d%jgnp|#O$g$|$}%S%d%h%i%w&s't'u(Q*Y*`*b*t+],l,v-_-p-w.f.m.o0]0y0z1O1S2_2j5a6g;W;X;Y;`;a;b;o;p;q;r;v;w;x;y MacroName LineComment BlockComment PreprocDirective #include String EscapeSequence SystemLibString Identifier ArgumentList ( ConditionalExpression AssignmentExpression CallExpression PrimitiveType FieldExpression FieldIdentifier DestructorName TemplateMethod ScopedFieldIdentifier NamespaceIdentifier TemplateType TypeIdentifier ScopedTypeIdentifier ScopedNamespaceIdentifier :: NamespaceIdentifier TypeIdentifier TemplateArgumentList < TypeDescriptor const volatile restrict _Atomic mutable constexpr constinit consteval StructSpecifier struct MsDeclspecModifier __declspec ) Attribute AttributeName Identifier AttributeArgs { } [ ] UpdateOp ArithOp ArithOp ArithOp LogicOp BitOp BitOp BitOp CompareOp CompareOp CompareOp > CompareOp BitOp UpdateOp , Number CharLiteral AttributeArgs VirtualSpecifier BaseClassClause Access virtual FieldDeclarationList FieldDeclaration extern static register inline thread_local AttributeSpecifier __attribute__ PointerDeclarator MsBasedModifier __based MsPointerModifier FunctionDeclarator ParameterList ParameterDeclaration PointerDeclarator FunctionDeclarator Noexcept noexcept RequiresClause requires True False ParenthesizedExpression CommaExpression LambdaExpression LambdaCaptureSpecifier TemplateParameterList OptionalParameterDeclaration TypeParameterDeclaration typename class VariadicParameterDeclaration VariadicDeclarator ReferenceDeclarator OptionalTypeParameterDeclaration VariadicTypeParameterDeclaration TemplateTemplateParameterDeclaration template AbstractFunctionDeclarator AbstractPointerDeclarator AbstractArrayDeclarator AbstractParenthesizedDeclarator AbstractReferenceDeclarator ThrowSpecifier throw TrailingReturnType CompoundStatement FunctionDefinition MsCallModifier TryStatement try CatchClause catch LinkageSpecification Declaration InitDeclarator InitializerList InitializerPair SubscriptDesignator FieldDesignator ExportDeclaration export ImportDeclaration import ModuleName PartitionName HeaderName CaseStatement case default LabeledStatement StatementIdentifier ExpressionStatement IfStatement if ConditionClause Declaration else SwitchStatement switch DoStatement do while WhileStatement ForStatement for ReturnStatement return BreakStatement break ContinueStatement continue GotoStatement goto CoReturnStatement co_return CoYieldStatement co_yield AttributeStatement ForRangeLoop AliasDeclaration using TypeDefinition typedef PointerDeclarator FunctionDeclarator ArrayDeclarator ParenthesizedDeclarator ThrowStatement NamespaceDefinition namespace ScopedIdentifier Identifier OperatorName operator ArithOp BitOp CompareOp LogicOp new delete co_await ConceptDefinition concept UsingDeclaration enum StaticAssertDeclaration static_assert ConcatenatedString TemplateDeclaration FriendDeclaration friend union FunctionDefinition ExplicitFunctionSpecifier explicit FieldInitializerList FieldInitializer DefaultMethodClause DeleteMethodClause FunctionDefinition OperatorCast operator TemplateInstantiation FunctionDefinition FunctionDefinition Declaration ModuleDeclaration module RequiresExpression RequirementList SimpleRequirement TypeRequirement CompoundRequirement ReturnTypeRequirement ConstraintConjuction LogicOp ConstraintDisjunction LogicOp ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator TemplateFunction OperatorName StructuredBindingDeclarator ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator BitfieldClause FunctionDefinition FunctionDefinition Declaration FunctionDefinition Declaration AccessSpecifier UnionSpecifier ClassSpecifier EnumSpecifier SizedTypeSpecifier TypeSize EnumeratorList Enumerator DependentType Decltype decltype auto PlaceholderTypeSpecifier ParameterPackExpansion ParameterPackExpansion FieldIdentifier PointerExpression SubscriptExpression BinaryExpression ArithOp LogicOp LogicOp BitOp UnaryExpression LogicOp BitOp UpdateExpression CastExpression SizeofExpression sizeof CoAwaitExpression CompoundLiteralExpression NULL NewExpression new NewDeclarator DeleteExpression delete ParameterPackExpansion nullptr this UserDefinedLiteral ParamPack #define PreprocArg #if #ifdef #ifndef #else #endif #elif PreprocDirectiveName Macro Program",maxTerm:425,nodeProps:[["group",-35,1,8,11,14,15,16,18,71,72,100,101,102,104,191,208,229,242,243,270,271,272,277,280,281,282,284,285,286,287,290,292,293,294,295,296,"Expression",-13,17,24,25,26,42,255,256,257,258,262,263,265,266,"Type",-19,126,129,147,150,152,153,158,160,163,164,166,168,170,172,174,176,178,179,188,"Statement"],["isolate",-4,4,5,8,10,""]],propSources:[r],skippedNodes:[0,3,4,5,6,7,10,297,298,299,300,301,302,303,304,305,306,347,348],repeatNodeCount:41,tokenData:"&*r7ZR!UOX$eXY({YZ.gZ]$e]^+P^p$epq({qr.}rs0}st2ktu$euv!7dvw!9bwx!;exy!O{|!?R|}!AV}!O!BQ!O!P!DX!P!Q#+y!Q!R#Az!R![$(x![!]$Ag!]!^$Cc!^!_$D^!_!`%1W!`!a%2X!a!b%5_!b!c$e!c!n%6Y!n!o%7q!o!w%6Y!w!x%7q!x!}%6Y!}#O%:n#O#P%u#Y#]4Y#]#^NZ#^#o4Y#o;'S$e;'S;=`(u<%lO$e4e4eb)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#o4Y#o;'S$e;'S;=`(u<%lO$e4e5xd)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#X4Y#X#Y7W#Y#o4Y#o;'S$e;'S;=`(u<%lO$e4e7cd)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#Y4Y#Y#Z8q#Z#o4Y#o;'S$e;'S;=`(u<%lO$e4e8|d)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#]4Y#]#^:[#^#o4Y#o;'S$e;'S;=`(u<%lO$e4e:gd)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#b4Y#b#c;u#c#o4Y#o;'S$e;'S;=`(u<%lO$e4e][)S,g)ZW(pQ%Z!b'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!?`^)ZW(pQ%Z!b!Y,g'f&jOY$eZr$ers%^sw$ewx(Ox{$e{|!@[|!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!@gY)ZW!X-y(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!AbY!h,k)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!B__)ZW(pQ%Z!b!Y,g'f&jOY$eZr$ers%^sw$ewx(Ox}$e}!O!@[!O!_$e!_!`!8g!`!a!C^!a#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!CiY(x-y)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!Dd^)ZW(pQ'f&j(w,gOY$eZr$ers%^sw$ewx(Ox!O$e!O!P!E`!P!Q$e!Q![!GY![#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!Ei[)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox!O$e!O!P!F_!P#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!FjY)X,k)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2]!Gen)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx!Icx!Q$e!Q![!GY![!g$e!g!h#$w!h!i#*Y!i!n$e!n!o#*Y!o!r$e!r!s#$w!s!w$e!w!x#*Y!x#O$e#O#P&f#P#X$e#X#Y#$w#Y#Z#*Y#Z#`$e#`#a#*Y#a#d$e#d#e#$w#e#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2T!IjY(pQ'f&jOY(OZr(Ors%}s!Q(O!Q![!JY![#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O2T!Jcn(pQ!i,g'f&jOY(OZr(Ors%}sw(Owx!Icx!Q(O!Q![!JY![!g(O!g!h!La!h!i##`!i!n(O!n!o##`!o!r(O!r!s!La!s!w(O!w!x##`!x#O(O#O#P&f#P#X(O#X#Y!La#Y#Z##`#Z#`(O#`#a##`#a#d(O#d#e!La#e#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T!Ljl(pQ!i,g'f&jOY(OZr(Ors%}s{(O{|!Nb|}(O}!O!Nb!O!Q(O!Q![# e![!c(O!c!h# e!h!i# e!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#T(O#T#Y# e#Y#Z# e#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T!Ni^(pQ'f&jOY(OZr(Ors%}s!Q(O!Q![# e![!c(O!c!i# e!i#O(O#O#P&f#P#T(O#T#Z# e#Z;'S(O;'S;=`(o<%lO(O2T# nj(pQ!i,g'f&jOY(OZr(Ors%}sw(Owx!Nbx!Q(O!Q![# e![!c(O!c!h# e!h!i# e!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#T(O#T#Y# e#Y#Z# e#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T##id(pQ!i,g'f&jOY(OZr(Ors%}s!h(O!h!i##`!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#Y(O#Y#Z##`#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2]#%Sn)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx(Ox{$e{|#'Q|}$e}!O#'Q!O!Q$e!Q![#(]![!c$e!c!h#(]!h!i#(]!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#Y#(]#Y#Z#(]#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2]#'Z`)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![#(]![!c$e!c!i#(]!i#O$e#O#P&f#P#T$e#T#Z#(]#Z;'S$e;'S;=`(u<%lO$e2]#(hj)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx!Nbx!Q$e!Q![#(]![!c$e!c!h#(]!h!i#(]!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#Y#(]#Y#Z#(]#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2]#*ef)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx(Ox!h$e!h!i#*Y!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#Y$e#Y#Z#*Y#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e7Z#,W`)ZW(pQ%Z!b![,g'f&jOY$eZr$ers%^sw$ewx(Oxz$ez{#-Y{!P$e!P!Q#:s!Q!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z#-c])ZW(pQ'f&jOY#-YYZ#.[Zr#-Yrs#/csw#-Ywx#5wxz#-Yz{#8j{#O#-Y#O#P#2`#P;'S#-Y;'S;=`#:m<%lO#-Y1e#._TOz#.[z{#.n{;'S#.[;'S;=`#/]<%lO#.[1e#.qVOz#.[z{#.n{!P#.[!P!Q#/W!Q;'S#.[;'S;=`#/]<%lO#.[1e#/]OT1e1e#/`P;=`<%l#.[7X#/jZ)ZW'f&jOY#/cYZ#.[Zw#/cwx#0]xz#/cz{#4O{#O#/c#O#P#2`#P;'S#/c;'S;=`#5q<%lO#/c7P#0bX'f&jOY#0]YZ#.[Zz#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#1SZ'f&jOY#0]YZ#.[Zz#0]z{#0}{!P#0]!P!Q#1u!Q#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#1|UT1e'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}7P#2eZ'f&jOY#0]YZ#0]Z]#0]]^#3W^z#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#3]X'f&jOY#0]YZ#0]Zz#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#3{P;=`<%l#0]7X#4V])ZW'f&jOY#/cYZ#.[Zw#/cwx#0]xz#/cz{#4O{!P#/c!P!Q#5O!Q#O#/c#O#P#2`#P;'S#/c;'S;=`#5q<%lO#/c7X#5XW)ZWT1e'f&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^7X#5tP;=`<%l#/c7R#6OZ(pQ'f&jOY#5wYZ#.[Zr#5wrs#0]sz#5wz{#6q{#O#5w#O#P#2`#P;'S#5w;'S;=`#8d<%lO#5w7R#6x](pQ'f&jOY#5wYZ#.[Zr#5wrs#0]sz#5wz{#6q{!P#5w!P!Q#7q!Q#O#5w#O#P#2`#P;'S#5w;'S;=`#8d<%lO#5w7R#7zW(pQT1e'f&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O7R#8gP;=`<%l#5w7Z#8s_)ZW(pQ'f&jOY#-YYZ#.[Zr#-Yrs#/csw#-Ywx#5wxz#-Yz{#8j{!P#-Y!P!Q#9r!Q#O#-Y#O#P#2`#P;'S#-Y;'S;=`#:m<%lO#-Y7Z#9}Y)ZW(pQT1e'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z#:pP;=`<%l#-Y7Z#;OY)ZW(pQS1e'f&jOY#:sZr#:srs#;nsw#:swx#@{x#O#:s#O#P#[<%lO#b#P;'S#[<%lO#[<%lO#_P;=`<%l#i]S1e'f&jOY#b#P#b#[<%lO#[<%lO#b#P#b#[<%lO#t!R![$2V![!c$e!c!i$2V!i#O$e#O#P&f#P#T$e#T#Z$2V#Z;'S$e;'S;=`(u<%lO$e2]$?Pv)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx$4lx!O$e!O!P$ m!P!Q$e!Q![$2V![!c$e!c!g$2V!g!h$:p!h!i$2V!i!n$e!n!o#*Y!o!r$e!r!s#$w!s!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#U$2V#U#V$2V#V#X$2V#X#Y$:p#Y#Z$2V#Z#`$e#`#a#*Y#a#d$e#d#e#$w#e#i$e#i#j#*Y#j#l$e#l#m$0z#m;'S$e;'S;=`(u<%lO$e4e$Ar[(v-X)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox![$e![!]$Bh!]#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3s$BsYl-})ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2]$CnY)W,g)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7V$Dk_p,g%]!b)ZW(pQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!^$Ej!^!_%+w!_!`%.U!`!a%0]!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej*[$Es])ZW(pQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ejp$FoTO!`$Fl!`!a$GO!a;'S$Fl;'S;=`$GT<%lO$Flp$GTO$Wpp$GWP;=`<%l$Fl*Y$GbZ)ZW'f&jOY$GZYZ$FlZw$GZwx$HTx!`$GZ!`!a%(U!a#O$GZ#O#P$Ib#P;'S$GZ;'S;=`%(y<%lO$GZ*Q$HYX'f&jOY$HTYZ$FlZ!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT*Q$IOU$WpY#t'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}*Q$Ig['f&jOY$HTYZ$HTZ]$HT]^$J]^!`$HT!`!a$NO!a#O$HT#O#P%&n#P;'S$HT;'S;=`%'f;=`<%l%$z<%lO$HT*Q$JbX'f&jOY$HTYZ$J}Z!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT'[$KSX'f&jOY$J}YZ$FlZ!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$KvU$Wp'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}'[$L_Z'f&jOY$J}YZ$J}Z]$J}]^$MQ^!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$MVX'f&jOY$J}YZ$J}Z!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$MuP;=`<%l$J}*Q$M{P;=`<%l$HT*Q$NVW$Wp'f&jOY$NoZ!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`$NtW'f&jOY$NoZ!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`% eUY#t'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%})`% |Y'f&jOY$NoYZ$NoZ]$No]^%!l^#O$No#O#P%#d#P;'S$No;'S;=`%$[;=`<%l%$z<%lO$No)`%!qX'f&jOY$NoYZ%}Z!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`%#aP;=`<%l$No)`%#iZ'f&jOY$NoYZ%}Z]$No]^%!l^!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`%$_XOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l$No<%lO%$z#t%$}WOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h<%lO%$z#t%%lOY#t#t%%oRO;'S%$z;'S;=`%%x;=`O%$z#t%%{XOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l%$z<%lO%$z#t%&kP;=`<%l%$z*Q%&sZ'f&jOY$HTYZ$J}Z]$HT]^$J]^!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT*Q%'iXOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l$HT<%lO%$z*Y%(aW$WpY#t)ZW'f&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^*Y%(|P;=`<%l$GZ*S%)WZ(pQ'f&jOY%)PYZ$FlZr%)Prs$HTs!`%)P!`!a%)y!a#O%)P#O#P$Ib#P;'S%)P;'S;=`%*n<%lO%)P*S%*UW$WpY#t(pQ'f&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O*S%*qP;=`<%l%)P*[%+RY$WpY#t)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e*[%+tP;=`<%l$Ej7V%,U^)ZW(pQ%[!b!f,g'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!_$Ej!_!`%-Q!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%-]]!g-y)ZW(pQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%.c]%]!b!b,g)ZW(pQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%/[!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%/mY%]!b!b,g$WpY#t)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e)j%0hYY#t)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%1c[)j!c)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`0Q!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%2f]%]!b)ZW(pQ!d,g'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`%3_!`!a%4[!a#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%3lY%]!b!b,g)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%4i[)ZW(pQ%[!b!f,g'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e&u%5jY(uP)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z%6ib)ZW(yS(pQ!R,f(r%y'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e7Z%8Qb)ZW(yS(pQ!R,f(r%y'f&jOY$eZr$ers%9Ysw$ewx%9{x!Q$e!Q![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e5P%9cW)ZW(o/]'f&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^2T%:UW(pQ)Y,g'f&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O3o%:yZ!V-y)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox!}$e!}#O%;l#O#P&f#P;'S$e;'S;=`(u<%lO$e&u%;wY)PP)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e4e%[Z]%=q]^%?Z^!Q%=q!Q![%?w![!w%=q!w!x%AX!x#O%=q#O#P%H_#P#i%=q#i#j%Ds#j#l%=q#l#m%IR#m;'S%=q;'S;=`%Kt<%lO%=q&t%=xUXY'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}4e%>e[XY(n.o'f&jOX%}XY-OYZ*[Z]%}]^-O^p%}pq-Oq#O%}#O#P,^#P;'S%};'S;=`'r<%lO%}4e%?bVXY'f&jOY%}YZ-OZ#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%@OWXY'f&jOY%}Z!Q%}!Q![%@h![#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%@oWXY'f&jOY%}Z!Q%}!Q![%=q![#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%A^['f&jOY%}Z!Q%}!Q![%BS![!c%}!c!i%BS!i#O%}#O#P&f#P#T%}#T#Z%BS#Z;'S%};'S;=`'r<%lO%}&t%BX['f&jOY%}Z!Q%}!Q![%B}![!c%}!c!i%B}!i#O%}#O#P&f#P#T%}#T#Z%B}#Z;'S%};'S;=`'r<%lO%}&t%CS['f&jOY%}Z!Q%}!Q![%Cx![!c%}!c!i%Cx!i#O%}#O#P&f#P#T%}#T#Z%Cx#Z;'S%};'S;=`'r<%lO%}&t%C}['f&jOY%}Z!Q%}!Q![%Ds![!c%}!c!i%Ds!i#O%}#O#P&f#P#T%}#T#Z%Ds#Z;'S%};'S;=`'r<%lO%}&t%Dx['f&jOY%}Z!Q%}!Q![%En![!c%}!c!i%En!i#O%}#O#P&f#P#T%}#T#Z%En#Z;'S%};'S;=`'r<%lO%}&t%Es['f&jOY%}Z!Q%}!Q![%Fi![!c%}!c!i%Fi!i#O%}#O#P&f#P#T%}#T#Z%Fi#Z;'S%};'S;=`'r<%lO%}&t%Fn['f&jOY%}Z!Q%}!Q![%Gd![!c%}!c!i%Gd!i#O%}#O#P&f#P#T%}#T#Z%Gd#Z;'S%};'S;=`'r<%lO%}&t%Gi['f&jOY%}Z!Q%}!Q![%=q![!c%}!c!i%=q!i#O%}#O#P&f#P#T%}#T#Z%=q#Z;'S%};'S;=`'r<%lO%}&t%HfXXY'f&jOY%}YZ%}Z]%}]^'W^#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%IW['f&jOY%}Z!Q%}!Q![%I|![!c%}!c!i%I|!i#O%}#O#P&f#P#T%}#T#Z%I|#Z;'S%};'S;=`'r<%lO%}&t%JR['f&jOY%}Z!Q%}!Q![%Jw![!c%}!c!i%Jw!i#O%}#O#P&f#P#T%}#T#Z%Jw#Z;'S%};'S;=`'r<%lO%}&t%KO[XY'f&jOY%}Z!Q%}!Q![%Jw![!c%}!c!i%Jw!i#O%}#O#P&f#P#T%}#T#Z%Jw#Z;'S%};'S;=`'r<%lO%}&t%KwP;=`<%l%=q2a%LVZ!W,V)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P#Q%Lx#Q;'S$e;'S;=`(u<%lO$e'Y%MTY)]d)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%NQ[)ZW(pQ%[!b'f&j!_,gOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z& Vd)ZW(yS(pQ!R,f(r%y'f&jOY$eZr$ers%9Ysw$ewx%9{x!Q$e!Q!Y%6Y!Y!Z%7q!Z![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e2]&!pY!T,g)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o&#m^)ZW(pQ%[!b'f&j!^,gOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P#p$e#p#q&$i#q;'S$e;'S;=`(u<%lO$e3o&$vY)T,g%^!b)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e'V&%qY!Ua)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e(]&&nc)ZW(pQ%[!b'RP'f&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&(Sc)ZW(pQ'f&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&)jb)ZW(pQdT'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![&)_![!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e",tokenizers:[i,a,0,1,2,3,4,5,6,7,8,9],topRules:{Program:[0,307]},dynamicPrecedences:{87:1,94:1,119:1,184:1,187:-10,240:-10,241:1,244:-1,246:-10,247:1,262:-1,267:2,268:2,306:-10,365:3,417:1,418:3,419:1,420:1},specialized:[{term:356,get:O=>P[O]||-1},{term:32,get:O=>U[O]||-1},{term:66,get:O=>t[O]||-1},{term:363,get:O=>Y[O]||-1}],tokenPrec:24891});var l=$(59119);const n=l.qp.define({name:"cpp",parser:S.configure({props:[l.uj.add({IfStatement:(0,l.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,l.tC)({except:/^\s*({|catch)\b/}),LabeledStatement:l.ze,CaseStatement:O=>O.baseIndent+O.unit,BlockComment:()=>null,CompoundStatement:(0,l.vw)({closing:"}"}),Statement:(0,l.tC)({except:/^{/})}),l.x0.add({"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList":l.Dv,BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/,closeBrackets:{stringPrefixes:["L","u","U","u8","LR","UR","uR","u8R","R"]}}});function W(){return new l.ri(n)}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/1639.7a86a30e.async.js b/starter/src/main/resources/templates/admin/1639.7a86a30e.async.js deleted file mode 100644 index e7d24cda..00000000 --- a/starter/src/main/resources/templates/admin/1639.7a86a30e.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1639],{31639:function(R,U,i){i.r(U),i.d(U,{cpp:function(){return g},cppLanguage:function(){return n}});var r=i(53105),O=i(35524);const t=1,W=2,o=3,s=82,c=76,f=117,x=85,Z=97,u=122,p=65,V=90,w=95,P=48,Y=34,q=40,S=41,T=32,l=62,y=new r.Jq(Q=>{if(Q.next==c||Q.next==x?Q.advance():Q.next==f&&(Q.advance(),Q.next==P+8&&Q.advance()),Q.next!=s||(Q.advance(),Q.next!=Y))return;Q.advance();let e="";for(;Q.next!=q;){if(Q.next==T||Q.next<=13||Q.next==S)return;e+=String.fromCharCode(Q.next),Q.advance()}for(Q.advance();;){if(Q.next<0)return Q.acceptToken(t);if(Q.next==S){let X=!0;for(let a=0;X&&a{if(Q.next==l)Q.peek(1)==l&&Q.acceptToken(W,1);else{let e=!1,X=0;for(;;X++){if(Q.next>=p&&Q.next<=V)e=!0;else{if(Q.next>=Z&&Q.next<=u)return;if(Q.next!=w&&!(Q.next>=P&&Q.next<=P+9))break}Q.advance()}e&&X>1&&Q.acceptToken(o)}},{extend:!0}),b=(0,O.Gv)({"typedef struct union enum class typename decltype auto template operator friend noexcept namespace using requires concept import export module __attribute__ __declspec __based":O.pJ.definitionKeyword,"extern MsCallModifier MsPointerModifier extern static register thread_local inline const volatile restrict _Atomic mutable constexpr constinit consteval virtual explicit VirtualSpecifier Access":O.pJ.modifier,"if else switch for while do case default return break continue goto throw try catch":O.pJ.controlKeyword,"co_return co_yield co_await":O.pJ.controlKeyword,"new sizeof delete static_assert":O.pJ.operatorKeyword,"NULL nullptr":O.pJ.null,this:O.pJ.self,"True False":O.pJ.bool,"TypeSize PrimitiveType":O.pJ.standard(O.pJ.typeName),TypeIdentifier:O.pJ.typeName,FieldIdentifier:O.pJ.propertyName,"CallExpression/FieldExpression/FieldIdentifier":O.pJ.function(O.pJ.propertyName),"ModuleName/Identifier":O.pJ.namespace,PartitionName:O.pJ.labelName,StatementIdentifier:O.pJ.labelName,"Identifier DestructorName":O.pJ.variableName,"CallExpression/Identifier":O.pJ.function(O.pJ.variableName),"CallExpression/ScopedIdentifier/Identifier":O.pJ.function(O.pJ.variableName),"FunctionDeclarator/Identifier FunctionDeclarator/DestructorName":O.pJ.function(O.pJ.definition(O.pJ.variableName)),NamespaceIdentifier:O.pJ.namespace,OperatorName:O.pJ.operator,ArithOp:O.pJ.arithmeticOperator,LogicOp:O.pJ.logicOperator,BitOp:O.pJ.bitwiseOperator,CompareOp:O.pJ.compareOperator,AssignOp:O.pJ.definitionOperator,UpdateOp:O.pJ.updateOperator,LineComment:O.pJ.lineComment,BlockComment:O.pJ.blockComment,Number:O.pJ.number,String:O.pJ.string,"RawString SystemLibString":O.pJ.special(O.pJ.string),CharLiteral:O.pJ.character,EscapeSequence:O.pJ.escape,"UserDefinedLiteral/Identifier":O.pJ.literal,PreProcArg:O.pJ.meta,"PreprocDirectiveName #include #ifdef #ifndef #if #define #else #endif #elif":O.pJ.processingInstruction,MacroName:O.pJ.special(O.pJ.name),"( )":O.pJ.paren,"[ ]":O.pJ.squareBracket,"{ }":O.pJ.brace,"< >":O.pJ.angleBracket,". ->":O.pJ.derefOperator,", ;":O.pJ.separator}),j={__proto__:null,bool:34,char:34,int:34,float:34,double:34,void:34,size_t:34,ssize_t:34,intptr_t:34,uintptr_t:34,charptr_t:34,int8_t:34,int16_t:34,int32_t:34,int64_t:34,uint8_t:34,uint16_t:34,uint32_t:34,uint64_t:34,char8_t:34,char16_t:34,char32_t:34,char64_t:34,const:68,volatile:70,restrict:72,_Atomic:74,mutable:76,constexpr:78,constinit:80,consteval:82,struct:86,__declspec:90,final:148,override:148,public:152,private:152,protected:152,virtual:154,extern:160,static:162,register:164,inline:166,thread_local:168,__attribute__:172,__based:178,__restrict:180,__uptr:180,__sptr:180,_unaligned:180,__unaligned:180,noexcept:194,requires:198,TRUE:784,true:784,FALSE:786,false:786,typename:218,class:220,template:234,throw:248,__cdecl:256,__clrcall:256,__stdcall:256,__fastcall:256,__thiscall:256,__vectorcall:256,try:260,catch:264,export:282,import:286,case:296,default:298,if:308,else:314,switch:318,do:322,while:324,for:330,return:334,break:338,continue:342,goto:346,co_return:350,co_yield:354,using:362,typedef:366,namespace:380,new:398,delete:400,co_await:402,concept:406,enum:410,static_assert:414,friend:422,union:424,explicit:430,operator:444,module:456,signed:518,unsigned:518,long:518,short:518,decltype:528,auto:530,sizeof:566,NULL:572,nullptr:586,this:588},v={__proto__:null,"<":131},d={__proto__:null,">":135},_={__proto__:null,operator:388,new:576,delete:582},m=r.WQ.deserialize({version:14,states:"$:|Q!QQVOOP'gOUOOO(XOWO'#CdO,RQUO'#CgO,]QUO'#FjO-sQbO'#CwO.UQUO'#CwO0TQUO'#KZO0[QUO'#CvO0gOpO'#DvO0oQ!dO'#D]OOQR'#JO'#JOO5XQVO'#GUO5fQUO'#JVOOQQ'#JV'#JVO8zQUO'#KmO{QVO'#E^O?]QUO'#E^OOQQ'#Ed'#EdOOQQ'#Ee'#EeO?bQVO'#EfO@XQVO'#EiOBUQUO'#FPOBvQUO'#FhOOQR'#Fj'#FjOB{QUO'#FjOOQR'#LQ'#LQOOQR'#LP'#LPOETQVO'#KQOFxQUO'#LVOGVQUO'#KqOGkQUO'#LVOH]QUO'#LXOOQR'#HU'#HUOOQR'#HV'#HVOOQR'#HW'#HWOOQR'#K|'#K|OOQR'#J_'#J_Q!QQVOOOHkQVO'#FOOIWQUO'#EhOI_QUOOOKZQVO'#HgOKkQUO'#HgONVQUO'#KqONaQUO'#KqOOQQ'#Kq'#KqO!!_QUO'#KqOOQQ'#Jq'#JqO!!lQUO'#HxOOQQ'#KZ'#KZO!&^QUO'#KZO!&zQUO'#KQO!(zQVO'#I]O!(zQVO'#I`OCQQUO'#KQOOQQ'#Ip'#IpOOQQ'#KQ'#KQO!,}QUO'#KZOOQR'#KY'#KYO!-UQUO'#DYO!/mQUO'#KnOOQQ'#Kn'#KnO!/tQUO'#KnO!/{QUO'#ETO!0QQUO'#EWO!0VQUO'#FRO8zQUO'#FPO!QQVO'#F^O!0[Q#vO'#F`O!0gQUO'#FkO!0oQUO'#FpO!0tQVO'#FrO!0oQUO'#FuO!3sQUO'#FvO!3xQVO'#FxO!4SQUO'#FzO!4XQUO'#F|O!4^QUO'#GOO!4cQVO'#GQO!(zQVO'#GSO!4jQUO'#GpO!4xQUO'#GYO!(zQVO'#FeO!6VQUO'#FeO!6[QVO'#G`O!6cQUO'#GaO!6nQUO'#GnO!6sQUO'#GrO!6xQUO'#GzO!7jQ&lO'#HiO!:mQUO'#GuO!:}QUO'#HXO!;YQUO'#HZO!;bQUO'#DWO!;bQUO'#HuO!;bQUO'#HvO!;yQUO'#HwO!<[QUO'#H|O!=PQUO'#H}O!>uQVO'#IbO!(zQVO'#IdO!?PQUO'#IgO!?WQVO'#IjP!@}{,UO'#CbP!6n{,UO'#CbP!AY{7[O'#CbP!6n{,UO'#CbP!A_{,UO'#CbP!AjOSO'#IzPOOO)CEn)CEnOOOO'#I|'#I|O!AtOWO,59OOOQR,59O,59OO!(zQVO,59UOOQQ,59W,59WO!(zQVO,5;ROOQR,5qOOQR'#IX'#IXOOQR'#IY'#IYOOQR'#IZ'#IZOOQR'#I['#I[O!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!DOQVO,5>zOOQQ,5?W,5?WO!EqQVO'#ChO!IjQUO'#CyOOQQ,59c,59cOOQQ,59b,59bOOQQ,5<},5<}O!IwQ&lO,5=mO!?PQUO,5?RO!LkQVO,5?UO!LrQbO,59cO!L}QVO'#FYOOQQ,5?P,5?PO!M_QVO,59VO!MfO`O,5:bO!MkQbO'#D^O!M|QbO'#K^O!N[QbO,59wO!NdQbO'#CwO!NuQUO'#CwO!NzQUO'#KZO# UQUO'#CvOOQR-E<|-E<|O# aQUO,5AoO# hQVO'#EfO@XQVO'#EiOBUQUO,5;kOOQR,5l,5>lO#3gQUO'#CgO#4]QUO,5>pO#6OQUO'#IeOOQR'#I}'#I}O#6WQUO,5:xO#6tQUO,5:xO#7eQUO,5:xO#8YQUO'#CtO!0QQUO'#ClOOQQ'#JW'#JWO#6tQUO,5:xO#8bQUO,5;QO!4xQUO'#C}O#9kQUO,5;QO#9pQUO,5>QO#:|QUO'#C}O#;dQUO,5>{O#;iQUO'#KwO#}QUO'#L[O#?UQUO,5>UO#?ZQbO'#CwO#?fQUO'#GcO#?kQUO'#E^O#@[QUO,5;kO#@sQUO'#K}O#@{QUO,5;rOKkQUO'#HfOBUQUO'#HgO#AQQUO'#KqO!6nQUO'#HjO#AxQUO'#CtO!0tQVO,5PO$(WQUO'#E[O$(eQUO,5>ROOQQ,5>S,5>SO$,RQVO'#C{OOQQ-E=o-E=oOOQQ,5>d,5>dOOQQ,59`,59`O$,]QUO,5>wO$.]QUO,5>zO!6nQUO,59tO$.pQUO,5;qO$.}QUO,5<{O!0QQUO,5:oOOQQ,5:r,5:rO$/YQUO,5;mO$/_QUO'#KmOBUQUO,5;kOOQR,5;x,5;xO$0OQUO'#FbO$0^QUO'#FbO$0cQUO,5;zO$3|QVO'#FmO!0tQVO,5eQUO,5pQUO,5=[O$>uQUO,5=[O!4xQUO,5}QUO,5uQUO,5<{O$DQQUO,5<{O$D]QUO,5=YO!(zQVO,5=^O!(zQVO,5=fO#NeQUO,5=mOOQQ,5>T,5>TO$FbQUO,5>TO$FlQUO,5>TO$FqQUO,5>TO$FvQUO,5>TO!6nQUO,5>TO$HtQUO'#KZO$H{QUO,5=oO$IWQUO,5=aOKkQUO,5=oO$JQQUO,5=sOOQR,5=s,5=sO$JYQUO,5=sO$LeQVO'#H[OOQQ,5=u,5=uO!;]QUO,5=uO%#`QUO'#KjO%#gQUO'#K[O%#{QUO'#KjO%$VQUO'#DyO%$hQUO'#D|O%'eQUO'#K[OOQQ'#K['#K[O%)WQUO'#K[O%#gQUO'#K[O%)]QUO'#K[OOQQ,59r,59rOOQQ,5>a,5>aOOQQ,5>b,5>bO%)eQUO'#HzO%)mQUO,5>cOOQQ,5>c,5>cO%-XQUO,5>cO%-dQUO,5>hO%1OQVO,5>iO%1VQUO,5>|O# hQVO'#EfO%4]QUO,5>|OOQQ,5>|,5>|O%4|QUO,5?OO%7QQUO,5?RO!<[QUO,5?RO%8|QUO,5?UO%sQUO1G0mOOQQ1G0m1G0mO%@PQUO'#CoO%B`QbO'#CwO%BkQUO'#CrO%BpQUO'#CrO%BuQUO1G.tO#AxQUO'#CqOOQQ1G.t1G.tO%DxQUO1G4]O%FOQUO1G4^O%GqQUO1G4^O%IdQUO1G4^O%KVQUO1G4^O%LxQUO1G4^O%NkQUO1G4^O&!^QUO1G4^O&$PQUO1G4^O&%rQUO1G4^O&'eQUO1G4^O&)WQUO1G4^O&*yQUO'#KPO&,SQUO'#KPO&,[QUO,59SOOQQ,5=P,5=PO&.dQUO,5=PO&.nQUO,5=PO&.sQUO,5=PO&.xQUO,5=PO!6nQUO,5=PO#NeQUO1G3XO&/SQUO1G4mO!<[QUO1G4mO&1OQUO1G4pO&2qQVO1G4pOOQQ1G.}1G.}OOQQ1G.|1G.|OOQQ1G2i1G2iO!IwQ&lO1G3XO&2xQUO'#LOO@XQVO'#EiO&4RQUO'#F]OOQQ'#Ja'#JaO&4WQUO'#FZO&4cQUO'#LOO&4kQUO,5;tO&4pQUO1G.qOOQQ1G.q1G.qOOQR1G/|1G/|O&6cQ!dO'#JPO&6hQbO,59xO&8yQ!eO'#D`O&9QQ!dO'#JRO&9VQbO,5@xO&9VQbO,5@xOOQR1G/c1G/cO&9bQbO1G/cO&9gQ&lO'#GeO&:eQbO,59cOOQR1G7Z1G7ZO#@[QUO1G1VO&:pQUO1G1^OBUQUO1G1VO&=RQUO'#CyO#*wQbO,59cO&@tQUO1G6sOOQR-E<{-E<{O&BWQUO1G0dO#6WQUO1G0dOOQQ-E=U-E=UO#6tQUO1G0dOOQQ1G0l1G0lO&B{QUO,59iOOQQ1G3l1G3lO&CcQUO,59iO&CyQUO,59iO!M_QVO1G4gO!(zQVO'#JYO&DeQUO,5AcOOQQ1G0o1G0oO!(zQVO1G0oO!6nQUO'#JnO&DmQUO,5AvOOQQ1G3p1G3pOOQR1G1V1G1VO&HjQVO'#FOO!M_QVO,5;sOOQQ,5;s,5;sOBUQUO'#JcO&JfQUO,5AiO&JnQVO'#E[OOQR1G1^1G1^O&M]QUO'#L[OOQR1G1n1G1nOOQR-E=f-E=fOOQR1G7]1G7]O#DhQUO1G7]OGVQUO1G7]O#DhQUO1G7_OOQR1G7_1G7_O&MeQUO'#G}O&MmQUO'#LWOOQQ,5=h,5=hO&M{QUO,5=jO&NQQUO,5=kOOQR1G7`1G7`O#EfQVO1G7`O&NVQUO1G7`O' ]QVO,5=kOOQR1G1U1G1UO$.vQUO'#E]O'!RQUO'#E]OOQQ'#Ky'#KyO'!lQUO'#KxO'!wQUO,5;UO'#PQUO'#ElO'#dQUO'#ElO'#wQUO'#EtOOQQ'#J['#J[O'#|QUO,5;cO'$sQUO,5;cO'%nQUO,5;dO'&tQVO,5;dOOQQ,5;d,5;dO''OQVO,5;dO'&tQVO,5;dO''VQUO,5;bO'(SQUO,5;eO'(_QUO'#KpO'(gQUO,5:vO'(lQUO,5;fOOQQ1G0n1G0nOOQQ'#J]'#J]O''VQUO,5;bO!4xQUO'#E}OOQQ,5;b,5;bO')gQUO'#E`O'+aQUO'#E{OHrQUO1G0nO'+fQUO'#EbOOQQ'#JX'#JXO'-OQUO'#KrOOQQ'#Kr'#KrO'-xQUO1G0eO'.pQUO1G3kO'/vQVO1G3kOOQQ1G3k1G3kO'0QQVO1G3kO'0XQUO'#L_O'1eQUO'#KXO'1sQUO'#KWO'2OQUO,59gO'2WQUO1G/`O'2]QUO'#FPOOQR1G1]1G1]OOQR1G2g1G2gO$>uQUO1G2gO'2gQUO1G2gO'2rQUO1G0ZOOQR'#J`'#J`O'2wQVO1G1XO'8pQUO'#FTO'8uQUO1G1VO!6nQUO'#JdO'9TQUO,5;|O$0^QUO,5;|OOQQ'#Fc'#FcOOQQ,5;|,5;|O'9cQUO1G1fOOQR1G1f1G1fO'9kQUO,5}QUO1G2`OOQQ'#Cu'#CuO'CzQUO'#G[O'DuQUO'#G[O'DzQUO'#LRO'EYQUO'#G_OOQQ'#LS'#LSO'EhQUO1G2`O'EmQVO1G1kO'HOQVO'#GUOBUQUO'#FWOOQR'#Je'#JeO'EmQVO1G1kO'HYQUO'#FvOOQR1G2f1G2fO'H_QUO1G2gO'HdQUO'#JgO'2gQUO1G2gO!(zQVO1G2tO'HlQUO1G2xO'IuQUO1G3QO'J{QUO1G3XOOQQ1G3o1G3oO'KaQUO1G3oOOQR1G3Z1G3ZO'KfQUO'#KZO'2]QUO'#LTOGkQUO'#LVOOQR'#Gy'#GyO#DhQUO'#LXOOQR'#HQ'#HQO'KpQUO'#GvO'#wQUO'#GuOOQR1G2{1G2{O'LmQUO1G2{O'MdQUO1G3ZO'MoQUO1G3_O'MtQUO1G3_OOQR1G3_1G3_O'M|QUO'#H]OOQR'#H]'#H]O( VQUO'#H]O!(zQVO'#H`O!(zQVO'#H_OOQR'#LZ'#LZO( [QUO'#LZOOQR'#Jk'#JkO( aQVO,5=vOOQQ,5=v,5=vO( hQUO'#H^O( pQUO'#HZOOQQ1G3a1G3aO( zQUO,5@vOOQQ,5@v,5@vO%)WQUO,5@vO%)]QUO,5@vO%$VQUO,5:eO(%iQUO'#KkO(%wQUO'#KkOOQQ,5:e,5:eOOQQ'#JS'#JSO(&SQUO'#D}O(&^QUO'#KqOGkQUO'#LVO('YQUO'#D}OOQQ'#Hp'#HpOOQQ'#Hr'#HrOOQQ'#Hs'#HsOOQQ'#Kl'#KlOOQQ'#JU'#JUO('dQUO,5:hOOQQ,5:h,5:hO((aQUO'#LVO((nQUO'#HtO()UQUO,5@vO()]QUO'#H{O()hQUO'#L^O()pQUO,5>fO()uQUO'#L]OOQQ1G3}1G3}O(-lQUO1G3}O(-sQUO1G3}O(-zQUO1G4TO(/QQUO1G4TO(/VQUO,5A|O!6nQUO1G4hO!(zQVO'#IiOOQQ1G4m1G4mO(/[QUO1G4mO(1_QVO1G4pPOOO1G.h1G.hP!A_{,UO1G.hP(3_QUO'#LeP(3j{,UO1G.hP(3o{7[O1G.hPO{O-E=s-E=sPOOO,5A},5A}P(3w{,UO,5A}POOO1G5Q1G5QO!(zQVO7+$[O(3|QUO'#CyOOQQ,59^,59^O(4XQbO,59cO(4dQbO,59^OOQQ,59],59]OOQQ7+)w7+)wO!M_QVO'#JtO(4oQUO,5@kOOQQ1G.n1G.nOOQQ1G2k1G2kO(4wQUO1G2kO(4|QUO7+(sOOQQ7+*X7+*XO(7bQUO7+*XO(7iQUO7+*XO(1_QVO7+*[O#NeQUO7+(sO(7vQVO'#JbO(8ZQUO,5AjO(8cQUO,5;vOOQQ'#Co'#CoOOQQ,5;w,5;wO!(zQVO'#F[OOQQ-E=_-E=_O!M_QVO,5;uOOQQ1G1`1G1`OOQQ,5?k,5?kOOQQ-E<}-E<}OOQR'#Dg'#DgOOQR'#Di'#DiOOQR'#Dl'#DlO(9lQ!eO'#K_O(9sQMkO'#K_O(9zQ!eO'#K_OOQR'#K_'#K_OOQR'#JQ'#JQO(:RQ!eO,59zOOQQ,59z,59zO(:YQbO,5?mOOQQ-E=P-E=PO(:hQbO1G6dOOQR7+$}7+$}OOQR7+&q7+&qOOQR7+&x7+&xO'8uQUO7+&qO(:sQUO7+&OO#6WQUO7+&OO(;hQUO1G/TO(]QUO,5?tOOQQ-E=W-E=WO(?fQUO7+&ZOOQQ,5@Y,5@YOOQQ-E=l-E=lO(?kQUO'#LOO@XQVO'#EiO(@wQUO1G1_OOQQ1G1_1G1_O(BQQUO,5?}OOQQ,5?},5?}OOQQ-E=a-E=aO(BfQUO'#KpOOQR7+,w7+,wO#DhQUO7+,wOOQR7+,y7+,yO(BsQUO,5=iO#DsQUO'#JjO(CUQUO,5ArOOQR1G3U1G3UOOQR1G3V1G3VO(CdQUO7+,zOOQR7+,z7+,zO(E[QUO,5:wO(FyQUO'#EwO!(zQVO,5;VO(GlQUO,5:wO(GvQUO'#EpO(HXQUO'#EzOOQQ,5;Z,5;ZO#K]QVO'#ExO(HoQUO,5:wO(HvQUO'#EyO#GgQUO'#JZO(J`QUO,5AdOOQQ1G0p1G0pO(JkQUO,5;WO!<[QUO,5;^O(KUQUO,5;_O(KdQUO,5;WO(MvQUO,5;`OOQQ-E=Y-E=YO(NOQUO1G0}OOQQ1G1O1G1OO(NyQUO1G1OO)!PQVO1G1OO)!WQVO1G1OO)!bQUO1G0|OOQQ1G0|1G0|OOQQ1G1P1G1PO)#_QUO'#JoO)#iQUO,5A[OOQQ1G0b1G0bOOQQ-E=Z-E=ZO)#qQUO,5;iO!<[QUO,5;iO)$nQVO,5:zO)$uQUO,5;gO$ mQUO7+&YOOQQ7+&Y7+&YO!(zQVO'#EfO)$|QUO,5:|OOQQ'#Ks'#KsOOQQ-E=V-E=VOOQQ,5A^,5A^OOQQ'#Jl'#JlO)(qQUO7+&PPOQQ7+&P7+&POOQQ7+)V7+)VO))iQUO7+)VO)*oQVO7+)VOOQQ,5>m,5>mO$)YQVO'#JsO)*vQUO,5@rOOQQ1G/R1G/ROOQQ7+$z7+$zO)+RQUO7+(RO)+WQUO7+(ROOQR7+(R7+(RO$>uQUO7+(ROOQQ7+%u7+%uOOQR-E=^-E=^O!0VQUO,5;oOOQQ,5@O,5@OOOQQ-E=b-E=bO$0^QUO1G1hOOQQ1G1h1G1hOOQR7+'Q7+'QOOQR1G1s1G1sOBUQUO,5;rO)+tQUO,5hQUO,5}QUO7+(dO)?SQVO7+(dOOQQ7+(l7+(lOOQQ7+)Z7+)ZO)?[QUO'#KjO)?fQUO'#KjOOQR,5=b,5=bO)?sQUO,5=bO!;bQUO,5=bO!;bQUO,5=bO!;bQUO,5=bOOQR7+(g7+(gOOQR7+(u7+(uOOQR7+(y7+(yOOQR,5=w,5=wO)?xQUO,5=zO)AOQUO,5=yOOQR,5Au,5AuOOQR-E=i-E=iOOQQ1G3b1G3bO)BUQUO,5=xO)BZQVO'#EfOOQQ1G6b1G6bO%)WQUO1G6bO%)]QUO1G6bOOQQ1G0P1G0POOQQ-E=Q-E=QO)DrQUO,5AVO(%iQUO'#JTO)D}QUO,5AVO)D}QUO,5AVO)EVQUO,5:iO8zQUO,5:iOOQQ,5>],5>]O)EaQUO,5AqO)EhQUO'#EVO)FrQUO'#EVO)G]QUO,5:iO)GgQUO'#HlO)GgQUO'#HmOOQQ'#Ko'#KoO)HUQUO'#KoO!(zQVO'#HnOOQQ,5:i,5:iO)HvQUO,5:iO!M_QVO,5:iOOQQ-E=S-E=SOOQQ1G0S1G0SOOQQ,5>`,5>`O)H{QUO1G6bO!(zQVO,5>gO)LjQUO'#JrO)LuQUO,5AxOOQQ1G4Q1G4QO)L}QUO,5AwOOQQ,5Aw,5AwOOQQ7+)i7+)iO*!lQUO7+)iOOQQ7+)o7+)oO*'kQVO1G7hO*)mQUO7+*SO*)rQUO,5?TO**xQUO7+*[POOO7+$S7+$SP*,kQUO'#LfP*,sQUO,5BPP*,x{,UO7+$SPOOO1G7i1G7iO*,}QUO<XQUO7+&jO*?_QVO7+&jOOQQ7+&h7+&hOOQQ,5@Z,5@ZOOQQ-E=m-E=mO*@ZQUO1G1TO*@eQUO1G1TO*AOQUO1G0fOOQQ1G0f1G0fO*BUQUO'#K{O*B^QUO1G1ROOQQ<uQUO<VO)GgQUO'#JpO*NQQUO1G0TO*NcQVO1G0TOOQQ1G3u1G3uO*NjQUO,5>WO*NuQUO,5>XO+ dQUO,5>YO+!jQUO1G0TO%)]QUO7++|O+#pQUO1G4ROOQQ,5@^,5@^OOQQ-E=p-E=pOOQQ<n,5>nO+/iQUOANAXOOQRANAXANAXO+/nQUO7+'`OOQRAN@cAN@cO+0zQVOAN@nO+1RQUOAN@nO!0tQVOAN@nO+2[QUOAN@nO+2aQUOAN@}O+2lQUOAN@}O+3rQUOAN@}OOQRAN@nAN@nO!M_QVOAN@}OOQRANAOANAOO+3wQUO7+'|O)7VQUO7+'|OOQQ7+(O7+(OO+4YQUO7+(OO+5`QVO7+(OO+5gQVO7+'hO+5nQUOANAjOOQR7+(h7+(hOOQR7+)P7+)PO+5sQUO7+)PO+5xQUO7+)POOQQ<= h<= hO+6QQUO7+,]O+6YQUO1G5ZOOQQ1G5Z1G5ZO+6eQUO7+%oOOQQ7+%o7+%oO+6vQUO7+%oO*NcQVO7+%oOOQQ7+)a7+)aO+6{QUO7+%oO+8RQUO7+%oO!M_QVO7+%oO+8]QUO1G0]O*LkQUO1G0]O)EhQUO1G0]OOQQ1G0a1G0aO+8zQUO1G3qO+:QQVO1G3qOOQQ1G3q1G3qO+:[QVO1G3qO+:cQUO,5@[OOQQ-E=n-E=nOOQQ1G3r1G3rO%)WQUO<= hOOQQ7+*Z7+*ZPOQQ,5@b,5@bPOQQ-E=t-E=tOOQQ1G/}1G/}OOQQ,5?x,5?xOOQQ-E=[-E=[OOQRG26sG26sO+:zQUOG26YO!0tQVOG26YO+QQUO<uAN>uO+BpQUOAN>uO+CvQUOAN>uO!M_QVOAN>uO+C{QUO<nQUO'#KZO,?OQUO'#CyO,?^QbO,59cO,6VQUO7+&OO,OP>i>{?aFXMX!&]!,sP!3m!4b!5VP!5qPPPPPPPP!6[P!7tPP!9V!:oP!:uPPPPPP!:xP!:xPP!:xPPPPPPPPP!;U!>lP!>oPP!?]!@QPPPPP!@UP>l!AgPP>l!Cn!Eo!E}!Gd!ITP!I`P!Io!Io!MP#!`##v#'S#*^!Eo#*hPP!Eo#*o#*u#*h#*h#*xP#*|#+k#+k#+k#+k!ITP#,U#,g#.|P#/bP#0}P#1R#1Z#2O#2Z#4i#4q#4q#1RP#1RP#4x#5OP#5YPP#5u#6d#7U#5uP#7v#8SP#5uP#5uPP#5u#5uP#5uP#5uP#5uP#5uP#5uP#5uP#8V#5Y#8sP#9YP#9o#9o#9o#9o#9|#1RP#:d#?`#?}PPPPPPPP#@uP#ATP#ATP#Aa#Dn#9OPP#@}#EQP#Ee#Ep#Ev#Ev#@}#FlP#1R#1R#1R#1R#1RP!Io#GW#G_#G_#G_#Gc!Ly#Gm!Ly#Gq!E}!E}!E}#Gt#L^!E}>l>l>l$#V!@Q!@Q!@Q!@Q!@Q!@Q!6[!6[!6[$#jP$%V$%e!6[$%kPP!6[$'y$'|#@l$(P:t7j$+V$-Q$.q$0a7jPP7j$2T7jP7j7jP7jP$5Z7jP7jPP7j$5gPPPPPPPPP*[P$8o$8u$;^$=d$=j$>Q$>[$>g$>v$>|$@[$AZ$Ab$Ai$Ao$Aw$BR$BX$Bd$Bj$Bs$B{$CW$C^$Ch$Cn$Cx$DP$D`$Df$DlP$Dr$Dz$ER$Ea$F}$GT$GZ$Gb$GkPPPPPPPP$Gq$GuPPPPP$Nw$'y$Nz%$S%&[P%&i%&lPPPPPPPPPP%&x%'{%(R%(V%)|%+Z%+|%,T%.d%.jPPP%.t%/P%/S%/Y%0a%0d%0n%0x%0|%2Q%2s%2y#@uP%3d%3t%3w%4X%4e%4i%4o%4u$'y$'|$'|%4x%4{P%5V%5YR#cP'`mO[aefwx{!W!X!g!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&S&W&b&f&x&y&|'O'P'b'i'j'y(`(b(i)l)r*h*i*l*q*r*v+W+Y+h+j+k,P,R,n,q,w-]-^-a-g.P.Q.U.}/Q/[/c/l/n/s/u0h0{1Q1a1b1l1p1z1|2c2f2i2u2z2}3i4O4R4W4a5Y5e5q6_6c6f6h6j6t6v6{7b7j7m8e8g8m8s8t9R9V9]9_9l9o9p9{:O:U:W:]:b:fU%om%p7QQ&m!`Q(j#]d0P)}/|/}0O0R4}5O5P5S8QR7Q3Tb}Oaewx{!g&S*q&v$i[!W!X!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&W&b&f&x&y&|'O'P'b'i'j'y(`(b(i)l)r*h*i*l*r*v+W+Y+h+j+k,P,R,n,q,w-]-^-a-g.P.Q.U.}/Q/[/c/l/n/s/u0{1a1b1l1p1z1|2c2f2i2u2z2}3i4O4R4W4a5Y5e5q6_6c6f6h6j6t6v6{7b7j7m8e8g8m8s8t9R9V9]9_9l9o9p9{:O:U:W:]:b:fS%`f0h#d%jgnp|#O$g$|$}%S%d%h%i%w&s't'u(Q*Y*`*b*t+],l,v-_-p-w.f.m.o0]0y0z1O1S2_2j5a6g;W;X;Y;`;a;b;o;p;q;r;v;w;x;y MacroName LineComment BlockComment PreprocDirective #include String EscapeSequence SystemLibString Identifier ArgumentList ( ConditionalExpression AssignmentExpression CallExpression PrimitiveType FieldExpression FieldIdentifier DestructorName TemplateMethod ScopedFieldIdentifier NamespaceIdentifier TemplateType TypeIdentifier ScopedTypeIdentifier ScopedNamespaceIdentifier :: NamespaceIdentifier TypeIdentifier TemplateArgumentList < TypeDescriptor const volatile restrict _Atomic mutable constexpr constinit consteval StructSpecifier struct MsDeclspecModifier __declspec ) Attribute AttributeName Identifier AttributeArgs { } [ ] UpdateOp ArithOp ArithOp ArithOp LogicOp BitOp BitOp BitOp CompareOp CompareOp CompareOp > CompareOp BitOp UpdateOp , Number CharLiteral AttributeArgs VirtualSpecifier BaseClassClause Access virtual FieldDeclarationList FieldDeclaration extern static register inline thread_local AttributeSpecifier __attribute__ PointerDeclarator MsBasedModifier __based MsPointerModifier FunctionDeclarator ParameterList ParameterDeclaration PointerDeclarator FunctionDeclarator Noexcept noexcept RequiresClause requires True False ParenthesizedExpression CommaExpression LambdaExpression LambdaCaptureSpecifier TemplateParameterList OptionalParameterDeclaration TypeParameterDeclaration typename class VariadicParameterDeclaration VariadicDeclarator ReferenceDeclarator OptionalTypeParameterDeclaration VariadicTypeParameterDeclaration TemplateTemplateParameterDeclaration template AbstractFunctionDeclarator AbstractPointerDeclarator AbstractArrayDeclarator AbstractParenthesizedDeclarator AbstractReferenceDeclarator ThrowSpecifier throw TrailingReturnType CompoundStatement FunctionDefinition MsCallModifier TryStatement try CatchClause catch LinkageSpecification Declaration InitDeclarator InitializerList InitializerPair SubscriptDesignator FieldDesignator ExportDeclaration export ImportDeclaration import ModuleName PartitionName HeaderName CaseStatement case default LabeledStatement StatementIdentifier ExpressionStatement IfStatement if ConditionClause Declaration else SwitchStatement switch DoStatement do while WhileStatement ForStatement for ReturnStatement return BreakStatement break ContinueStatement continue GotoStatement goto CoReturnStatement co_return CoYieldStatement co_yield AttributeStatement ForRangeLoop AliasDeclaration using TypeDefinition typedef PointerDeclarator FunctionDeclarator ArrayDeclarator ParenthesizedDeclarator ThrowStatement NamespaceDefinition namespace ScopedIdentifier Identifier OperatorName operator ArithOp BitOp CompareOp LogicOp new delete co_await ConceptDefinition concept UsingDeclaration enum StaticAssertDeclaration static_assert ConcatenatedString TemplateDeclaration FriendDeclaration friend union FunctionDefinition ExplicitFunctionSpecifier explicit FieldInitializerList FieldInitializer DefaultMethodClause DeleteMethodClause FunctionDefinition OperatorCast operator TemplateInstantiation FunctionDefinition FunctionDefinition Declaration ModuleDeclaration module RequiresExpression RequirementList SimpleRequirement TypeRequirement CompoundRequirement ReturnTypeRequirement ConstraintConjuction LogicOp ConstraintDisjunction LogicOp ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator TemplateFunction OperatorName StructuredBindingDeclarator ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator BitfieldClause FunctionDefinition FunctionDefinition Declaration FunctionDefinition Declaration AccessSpecifier UnionSpecifier ClassSpecifier EnumSpecifier SizedTypeSpecifier TypeSize EnumeratorList Enumerator DependentType Decltype decltype auto PlaceholderTypeSpecifier ParameterPackExpansion ParameterPackExpansion FieldIdentifier PointerExpression SubscriptExpression BinaryExpression ArithOp LogicOp LogicOp BitOp UnaryExpression LogicOp BitOp UpdateExpression CastExpression SizeofExpression sizeof CoAwaitExpression CompoundLiteralExpression NULL NewExpression new NewDeclarator DeleteExpression delete ParameterPackExpansion nullptr this UserDefinedLiteral ParamPack #define PreprocArg #if #ifdef #ifndef #else #endif #elif PreprocDirectiveName Macro Program",maxTerm:425,nodeProps:[["group",-35,1,8,11,14,15,16,18,71,72,100,101,102,104,191,208,229,242,243,270,271,272,277,280,281,282,284,285,286,287,290,292,293,294,295,296,"Expression",-13,17,24,25,26,42,255,256,257,258,262,263,265,266,"Type",-19,126,129,147,150,152,153,158,160,163,164,166,168,170,172,174,176,178,179,188,"Statement"],["isolate",-4,4,5,8,10,""]],propSources:[b],skippedNodes:[0,3,4,5,6,7,10,297,298,299,300,301,302,303,304,305,306,347,348],repeatNodeCount:41,tokenData:"&*r7ZR!UOX$eXY({YZ.gZ]$e]^+P^p$epq({qr.}rs0}st2ktu$euv!7dvw!9bwx!;exy!O{|!?R|}!AV}!O!BQ!O!P!DX!P!Q#+y!Q!R#Az!R![$(x![!]$Ag!]!^$Cc!^!_$D^!_!`%1W!`!a%2X!a!b%5_!b!c$e!c!n%6Y!n!o%7q!o!w%6Y!w!x%7q!x!}%6Y!}#O%:n#O#P%u#Y#]4Y#]#^NZ#^#o4Y#o;'S$e;'S;=`(u<%lO$e4e4eb)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#o4Y#o;'S$e;'S;=`(u<%lO$e4e5xd)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#X4Y#X#Y7W#Y#o4Y#o;'S$e;'S;=`(u<%lO$e4e7cd)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#Y4Y#Y#Z8q#Z#o4Y#o;'S$e;'S;=`(u<%lO$e4e8|d)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#]4Y#]#^:[#^#o4Y#o;'S$e;'S;=`(u<%lO$e4e:gd)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#b4Y#b#c;u#c#o4Y#o;'S$e;'S;=`(u<%lO$e4e][)S,g)ZW(pQ%Z!b'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!?`^)ZW(pQ%Z!b!Y,g'f&jOY$eZr$ers%^sw$ewx(Ox{$e{|!@[|!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!@gY)ZW!X-y(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!AbY!h,k)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!B__)ZW(pQ%Z!b!Y,g'f&jOY$eZr$ers%^sw$ewx(Ox}$e}!O!@[!O!_$e!_!`!8g!`!a!C^!a#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!CiY(x-y)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!Dd^)ZW(pQ'f&j(w,gOY$eZr$ers%^sw$ewx(Ox!O$e!O!P!E`!P!Q$e!Q![!GY![#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!Ei[)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox!O$e!O!P!F_!P#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!FjY)X,k)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2]!Gen)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx!Icx!Q$e!Q![!GY![!g$e!g!h#$w!h!i#*Y!i!n$e!n!o#*Y!o!r$e!r!s#$w!s!w$e!w!x#*Y!x#O$e#O#P&f#P#X$e#X#Y#$w#Y#Z#*Y#Z#`$e#`#a#*Y#a#d$e#d#e#$w#e#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2T!IjY(pQ'f&jOY(OZr(Ors%}s!Q(O!Q![!JY![#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O2T!Jcn(pQ!i,g'f&jOY(OZr(Ors%}sw(Owx!Icx!Q(O!Q![!JY![!g(O!g!h!La!h!i##`!i!n(O!n!o##`!o!r(O!r!s!La!s!w(O!w!x##`!x#O(O#O#P&f#P#X(O#X#Y!La#Y#Z##`#Z#`(O#`#a##`#a#d(O#d#e!La#e#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T!Ljl(pQ!i,g'f&jOY(OZr(Ors%}s{(O{|!Nb|}(O}!O!Nb!O!Q(O!Q![# e![!c(O!c!h# e!h!i# e!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#T(O#T#Y# e#Y#Z# e#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T!Ni^(pQ'f&jOY(OZr(Ors%}s!Q(O!Q![# e![!c(O!c!i# e!i#O(O#O#P&f#P#T(O#T#Z# e#Z;'S(O;'S;=`(o<%lO(O2T# nj(pQ!i,g'f&jOY(OZr(Ors%}sw(Owx!Nbx!Q(O!Q![# e![!c(O!c!h# e!h!i# e!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#T(O#T#Y# e#Y#Z# e#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T##id(pQ!i,g'f&jOY(OZr(Ors%}s!h(O!h!i##`!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#Y(O#Y#Z##`#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2]#%Sn)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx(Ox{$e{|#'Q|}$e}!O#'Q!O!Q$e!Q![#(]![!c$e!c!h#(]!h!i#(]!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#Y#(]#Y#Z#(]#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2]#'Z`)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![#(]![!c$e!c!i#(]!i#O$e#O#P&f#P#T$e#T#Z#(]#Z;'S$e;'S;=`(u<%lO$e2]#(hj)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx!Nbx!Q$e!Q![#(]![!c$e!c!h#(]!h!i#(]!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#Y#(]#Y#Z#(]#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2]#*ef)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx(Ox!h$e!h!i#*Y!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#Y$e#Y#Z#*Y#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e7Z#,W`)ZW(pQ%Z!b![,g'f&jOY$eZr$ers%^sw$ewx(Oxz$ez{#-Y{!P$e!P!Q#:s!Q!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z#-c])ZW(pQ'f&jOY#-YYZ#.[Zr#-Yrs#/csw#-Ywx#5wxz#-Yz{#8j{#O#-Y#O#P#2`#P;'S#-Y;'S;=`#:m<%lO#-Y1e#._TOz#.[z{#.n{;'S#.[;'S;=`#/]<%lO#.[1e#.qVOz#.[z{#.n{!P#.[!P!Q#/W!Q;'S#.[;'S;=`#/]<%lO#.[1e#/]OT1e1e#/`P;=`<%l#.[7X#/jZ)ZW'f&jOY#/cYZ#.[Zw#/cwx#0]xz#/cz{#4O{#O#/c#O#P#2`#P;'S#/c;'S;=`#5q<%lO#/c7P#0bX'f&jOY#0]YZ#.[Zz#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#1SZ'f&jOY#0]YZ#.[Zz#0]z{#0}{!P#0]!P!Q#1u!Q#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#1|UT1e'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}7P#2eZ'f&jOY#0]YZ#0]Z]#0]]^#3W^z#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#3]X'f&jOY#0]YZ#0]Zz#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#3{P;=`<%l#0]7X#4V])ZW'f&jOY#/cYZ#.[Zw#/cwx#0]xz#/cz{#4O{!P#/c!P!Q#5O!Q#O#/c#O#P#2`#P;'S#/c;'S;=`#5q<%lO#/c7X#5XW)ZWT1e'f&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^7X#5tP;=`<%l#/c7R#6OZ(pQ'f&jOY#5wYZ#.[Zr#5wrs#0]sz#5wz{#6q{#O#5w#O#P#2`#P;'S#5w;'S;=`#8d<%lO#5w7R#6x](pQ'f&jOY#5wYZ#.[Zr#5wrs#0]sz#5wz{#6q{!P#5w!P!Q#7q!Q#O#5w#O#P#2`#P;'S#5w;'S;=`#8d<%lO#5w7R#7zW(pQT1e'f&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O7R#8gP;=`<%l#5w7Z#8s_)ZW(pQ'f&jOY#-YYZ#.[Zr#-Yrs#/csw#-Ywx#5wxz#-Yz{#8j{!P#-Y!P!Q#9r!Q#O#-Y#O#P#2`#P;'S#-Y;'S;=`#:m<%lO#-Y7Z#9}Y)ZW(pQT1e'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z#:pP;=`<%l#-Y7Z#;OY)ZW(pQS1e'f&jOY#:sZr#:srs#;nsw#:swx#@{x#O#:s#O#P#[<%lO#b#P;'S#[<%lO#[<%lO#_P;=`<%l#i]S1e'f&jOY#b#P#b#[<%lO#[<%lO#b#P#b#[<%lO#t!R![$2V![!c$e!c!i$2V!i#O$e#O#P&f#P#T$e#T#Z$2V#Z;'S$e;'S;=`(u<%lO$e2]$?Pv)ZW(pQ!i,g'f&jOY$eZr$ers%^sw$ewx$4lx!O$e!O!P$ m!P!Q$e!Q![$2V![!c$e!c!g$2V!g!h$:p!h!i$2V!i!n$e!n!o#*Y!o!r$e!r!s#$w!s!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#U$2V#U#V$2V#V#X$2V#X#Y$:p#Y#Z$2V#Z#`$e#`#a#*Y#a#d$e#d#e#$w#e#i$e#i#j#*Y#j#l$e#l#m$0z#m;'S$e;'S;=`(u<%lO$e4e$Ar[(v-X)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox![$e![!]$Bh!]#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3s$BsYl-})ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2]$CnY)W,g)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7V$Dk_p,g%]!b)ZW(pQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!^$Ej!^!_%+w!_!`%.U!`!a%0]!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej*[$Es])ZW(pQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ejp$FoTO!`$Fl!`!a$GO!a;'S$Fl;'S;=`$GT<%lO$Flp$GTO$Wpp$GWP;=`<%l$Fl*Y$GbZ)ZW'f&jOY$GZYZ$FlZw$GZwx$HTx!`$GZ!`!a%(U!a#O$GZ#O#P$Ib#P;'S$GZ;'S;=`%(y<%lO$GZ*Q$HYX'f&jOY$HTYZ$FlZ!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT*Q$IOU$WpY#t'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}*Q$Ig['f&jOY$HTYZ$HTZ]$HT]^$J]^!`$HT!`!a$NO!a#O$HT#O#P%&n#P;'S$HT;'S;=`%'f;=`<%l%$z<%lO$HT*Q$JbX'f&jOY$HTYZ$J}Z!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT'[$KSX'f&jOY$J}YZ$FlZ!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$KvU$Wp'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}'[$L_Z'f&jOY$J}YZ$J}Z]$J}]^$MQ^!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$MVX'f&jOY$J}YZ$J}Z!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$MuP;=`<%l$J}*Q$M{P;=`<%l$HT*Q$NVW$Wp'f&jOY$NoZ!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`$NtW'f&jOY$NoZ!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`% eUY#t'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%})`% |Y'f&jOY$NoYZ$NoZ]$No]^%!l^#O$No#O#P%#d#P;'S$No;'S;=`%$[;=`<%l%$z<%lO$No)`%!qX'f&jOY$NoYZ%}Z!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`%#aP;=`<%l$No)`%#iZ'f&jOY$NoYZ%}Z]$No]^%!l^!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`%$_XOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l$No<%lO%$z#t%$}WOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h<%lO%$z#t%%lOY#t#t%%oRO;'S%$z;'S;=`%%x;=`O%$z#t%%{XOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l%$z<%lO%$z#t%&kP;=`<%l%$z*Q%&sZ'f&jOY$HTYZ$J}Z]$HT]^$J]^!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT*Q%'iXOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l$HT<%lO%$z*Y%(aW$WpY#t)ZW'f&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^*Y%(|P;=`<%l$GZ*S%)WZ(pQ'f&jOY%)PYZ$FlZr%)Prs$HTs!`%)P!`!a%)y!a#O%)P#O#P$Ib#P;'S%)P;'S;=`%*n<%lO%)P*S%*UW$WpY#t(pQ'f&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O*S%*qP;=`<%l%)P*[%+RY$WpY#t)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e*[%+tP;=`<%l$Ej7V%,U^)ZW(pQ%[!b!f,g'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!_$Ej!_!`%-Q!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%-]]!g-y)ZW(pQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%.c]%]!b!b,g)ZW(pQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%/[!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%/mY%]!b!b,g$WpY#t)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e)j%0hYY#t)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%1c[)j!c)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`0Q!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%2f]%]!b)ZW(pQ!d,g'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`%3_!`!a%4[!a#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%3lY%]!b!b,g)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%4i[)ZW(pQ%[!b!f,g'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e&u%5jY(uP)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z%6ib)ZW(yS(pQ!R,f(r%y'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e7Z%8Qb)ZW(yS(pQ!R,f(r%y'f&jOY$eZr$ers%9Ysw$ewx%9{x!Q$e!Q![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e5P%9cW)ZW(o/]'f&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^2T%:UW(pQ)Y,g'f&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O3o%:yZ!V-y)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox!}$e!}#O%;l#O#P&f#P;'S$e;'S;=`(u<%lO$e&u%;wY)PP)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e4e%[Z]%=q]^%?Z^!Q%=q!Q![%?w![!w%=q!w!x%AX!x#O%=q#O#P%H_#P#i%=q#i#j%Ds#j#l%=q#l#m%IR#m;'S%=q;'S;=`%Kt<%lO%=q&t%=xUXY'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}4e%>e[XY(n.o'f&jOX%}XY-OYZ*[Z]%}]^-O^p%}pq-Oq#O%}#O#P,^#P;'S%};'S;=`'r<%lO%}4e%?bVXY'f&jOY%}YZ-OZ#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%@OWXY'f&jOY%}Z!Q%}!Q![%@h![#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%@oWXY'f&jOY%}Z!Q%}!Q![%=q![#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%A^['f&jOY%}Z!Q%}!Q![%BS![!c%}!c!i%BS!i#O%}#O#P&f#P#T%}#T#Z%BS#Z;'S%};'S;=`'r<%lO%}&t%BX['f&jOY%}Z!Q%}!Q![%B}![!c%}!c!i%B}!i#O%}#O#P&f#P#T%}#T#Z%B}#Z;'S%};'S;=`'r<%lO%}&t%CS['f&jOY%}Z!Q%}!Q![%Cx![!c%}!c!i%Cx!i#O%}#O#P&f#P#T%}#T#Z%Cx#Z;'S%};'S;=`'r<%lO%}&t%C}['f&jOY%}Z!Q%}!Q![%Ds![!c%}!c!i%Ds!i#O%}#O#P&f#P#T%}#T#Z%Ds#Z;'S%};'S;=`'r<%lO%}&t%Dx['f&jOY%}Z!Q%}!Q![%En![!c%}!c!i%En!i#O%}#O#P&f#P#T%}#T#Z%En#Z;'S%};'S;=`'r<%lO%}&t%Es['f&jOY%}Z!Q%}!Q![%Fi![!c%}!c!i%Fi!i#O%}#O#P&f#P#T%}#T#Z%Fi#Z;'S%};'S;=`'r<%lO%}&t%Fn['f&jOY%}Z!Q%}!Q![%Gd![!c%}!c!i%Gd!i#O%}#O#P&f#P#T%}#T#Z%Gd#Z;'S%};'S;=`'r<%lO%}&t%Gi['f&jOY%}Z!Q%}!Q![%=q![!c%}!c!i%=q!i#O%}#O#P&f#P#T%}#T#Z%=q#Z;'S%};'S;=`'r<%lO%}&t%HfXXY'f&jOY%}YZ%}Z]%}]^'W^#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%IW['f&jOY%}Z!Q%}!Q![%I|![!c%}!c!i%I|!i#O%}#O#P&f#P#T%}#T#Z%I|#Z;'S%};'S;=`'r<%lO%}&t%JR['f&jOY%}Z!Q%}!Q![%Jw![!c%}!c!i%Jw!i#O%}#O#P&f#P#T%}#T#Z%Jw#Z;'S%};'S;=`'r<%lO%}&t%KO[XY'f&jOY%}Z!Q%}!Q![%Jw![!c%}!c!i%Jw!i#O%}#O#P&f#P#T%}#T#Z%Jw#Z;'S%};'S;=`'r<%lO%}&t%KwP;=`<%l%=q2a%LVZ!W,V)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P#Q%Lx#Q;'S$e;'S;=`(u<%lO$e'Y%MTY)]d)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%NQ[)ZW(pQ%[!b'f&j!_,gOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z& Vd)ZW(yS(pQ!R,f(r%y'f&jOY$eZr$ers%9Ysw$ewx%9{x!Q$e!Q!Y%6Y!Y!Z%7q!Z![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e2]&!pY!T,g)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o&#m^)ZW(pQ%[!b'f&j!^,gOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P#p$e#p#q&$i#q;'S$e;'S;=`(u<%lO$e3o&$vY)T,g%^!b)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e'V&%qY!Ua)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e(]&&nc)ZW(pQ%[!b'RP'f&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&(Sc)ZW(pQ'f&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&)jb)ZW(pQdT'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![&)_![!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e",tokenizers:[y,z,0,1,2,3,4,5,6,7,8,9],topRules:{Program:[0,307]},dynamicPrecedences:{87:1,94:1,119:1,184:1,187:-10,240:-10,241:1,244:-1,246:-10,247:1,262:-1,267:2,268:2,306:-10,365:3,417:1,418:3,419:1,420:1},specialized:[{term:356,get:Q=>j[Q]||-1},{term:32,get:Q=>v[Q]||-1},{term:66,get:Q=>d[Q]||-1},{term:363,get:Q=>_[Q]||-1}],tokenPrec:24891});var $=i(59119);const n=$.qp.define({name:"cpp",parser:m.configure({props:[$.uj.add({IfStatement:(0,$.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,$.tC)({except:/^\s*({|catch)\b/}),LabeledStatement:$.ze,CaseStatement:Q=>Q.baseIndent+Q.unit,BlockComment:()=>null,CompoundStatement:(0,$.vw)({closing:"}"}),Statement:(0,$.tC)({except:/^{/})}),$.x0.add({"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList":$.Dv,BlockComment(Q){return{from:Q.from+2,to:Q.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/,closeBrackets:{stringPrefixes:["L","u","U","u8","LR","UR","uR","u8R","R"]}}});function g(){return new $.ri(n)}}}]); diff --git a/starter/src/main/resources/templates/admin/1649.5e0c3ceb.async.js b/starter/src/main/resources/templates/admin/1649.5e0c3ceb.async.js new file mode 100644 index 00000000..d91f7ff7 --- /dev/null +++ b/starter/src/main/resources/templates/admin/1649.5e0c3ceb.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1649],{31649:function(n,e,t){t.r(e),t.d(e,{default:function(){return a}});var a=[Object.freeze({displayName:"JSON Lines",name:"jsonl",patterns:[{include:"#value"}],repository:{array:{begin:"\\[",beginCaptures:{0:{name:"punctuation.definition.array.begin.json.lines"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.array.end.json.lines"}},name:"meta.structure.array.json.lines",patterns:[{include:"#value"},{match:",",name:"punctuation.separator.array.json.lines"},{match:"[^\\s\\]]",name:"invalid.illegal.expected-array-separator.json.lines"}]},comments:{patterns:[{begin:"/\\*\\*(?!/)",captures:{0:{name:"punctuation.definition.comment.json.lines"}},end:"\\*/",name:"comment.block.documentation.json.lines"},{begin:"/\\*",captures:{0:{name:"punctuation.definition.comment.json.lines"}},end:"\\*/",name:"comment.block.json.lines"},{captures:{1:{name:"punctuation.definition.comment.json.lines"}},match:"(//).*$\\n?",name:"comment.line.double-slash.js"}]},constant:{match:"\\b(?:true|false|null)\\b",name:"constant.language.json.lines"},number:{match:"(?x)\n-?\n(?:\n0\n|\n[1-9]\n\\d*\n)\n(?:\n(?:\n\\.\n\\d+\n)?\n(?:\n[eE]\n[+-]?\n\\d+\n)?\n)?",name:"constant.numeric.json.lines"},object:{begin:"\\{",beginCaptures:{0:{name:"punctuation.definition.dictionary.begin.json.lines"}},end:"\\}",endCaptures:{0:{name:"punctuation.definition.dictionary.end.json.lines"}},name:"meta.structure.dictionary.json.lines",patterns:[{comment:"the JSON object key",include:"#objectkey"},{include:"#comments"},{begin:":",beginCaptures:{0:{name:"punctuation.separator.dictionary.key-value.json.lines"}},end:"(,)|(?=\\})",endCaptures:{1:{name:"punctuation.separator.dictionary.pair.json.lines"}},name:"meta.structure.dictionary.value.json.lines",patterns:[{comment:"the JSON object value",include:"#value"},{match:"[^\\s,]",name:"invalid.illegal.expected-dictionary-separator.json.lines"}]},{match:"[^\\s\\}]",name:"invalid.illegal.expected-dictionary-separator.json.lines"}]},objectkey:{begin:'"',beginCaptures:{0:{name:"punctuation.support.type.property-name.begin.json.lines"}},end:'"',endCaptures:{0:{name:"punctuation.support.type.property-name.end.json.lines"}},name:"string.json.lines support.type.property-name.json.lines",patterns:[{include:"#stringcontent"}]},string:{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.json.lines"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.json.lines"}},name:"string.quoted.double.json.lines",patterns:[{include:"#stringcontent"}]},stringcontent:{patterns:[{match:'(?x)\n\\\\\n(?:\n["\\\\/bfnrt]\n|\nu\n[0-9a-fA-F]{4})',name:"constant.character.escape.json.lines"},{match:"\\\\.",name:"invalid.illegal.unrecognized-string-escape.json.lines"}]},value:{patterns:[{include:"#constant"},{include:"#number"},{include:"#string"},{include:"#array"},{include:"#object"},{include:"#comments"}]}},scopeName:"source.json.lines"})]}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/1649.9543e693.async.js b/starter/src/main/resources/templates/admin/1649.9543e693.async.js deleted file mode 100644 index 407e8ca6..00000000 --- a/starter/src/main/resources/templates/admin/1649.9543e693.async.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1649],{31649:function(a,n,e){e.r(n),e.d(n,{default:function(){return t}});var t=[Object.freeze({displayName:"JSON Lines",name:"jsonl",patterns:[{include:"#value"}],repository:{array:{begin:"\\[",beginCaptures:{0:{name:"punctuation.definition.array.begin.json.lines"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.array.end.json.lines"}},name:"meta.structure.array.json.lines",patterns:[{include:"#value"},{match:",",name:"punctuation.separator.array.json.lines"},{match:"[^\\s\\]]",name:"invalid.illegal.expected-array-separator.json.lines"}]},comments:{patterns:[{begin:"/\\*\\*(?!/)",captures:{0:{name:"punctuation.definition.comment.json.lines"}},end:"\\*/",name:"comment.block.documentation.json.lines"},{begin:"/\\*",captures:{0:{name:"punctuation.definition.comment.json.lines"}},end:"\\*/",name:"comment.block.json.lines"},{captures:{1:{name:"punctuation.definition.comment.json.lines"}},match:"(//).*$\\n?",name:"comment.line.double-slash.js"}]},constant:{match:"\\b(?:true|false|null)\\b",name:"constant.language.json.lines"},number:{match:`(?x) --? -(?: -0 -| -[1-9] -\\d* -) -(?: -(?: -\\. -\\d+ -)? -(?: -[eE] -[+-]? -\\d+ -)? -)?`,name:"constant.numeric.json.lines"},object:{begin:"\\{",beginCaptures:{0:{name:"punctuation.definition.dictionary.begin.json.lines"}},end:"\\}",endCaptures:{0:{name:"punctuation.definition.dictionary.end.json.lines"}},name:"meta.structure.dictionary.json.lines",patterns:[{comment:"the JSON object key",include:"#objectkey"},{include:"#comments"},{begin:":",beginCaptures:{0:{name:"punctuation.separator.dictionary.key-value.json.lines"}},end:"(,)|(?=\\})",endCaptures:{1:{name:"punctuation.separator.dictionary.pair.json.lines"}},name:"meta.structure.dictionary.value.json.lines",patterns:[{comment:"the JSON object value",include:"#value"},{match:"[^\\s,]",name:"invalid.illegal.expected-dictionary-separator.json.lines"}]},{match:"[^\\s\\}]",name:"invalid.illegal.expected-dictionary-separator.json.lines"}]},objectkey:{begin:'"',beginCaptures:{0:{name:"punctuation.support.type.property-name.begin.json.lines"}},end:'"',endCaptures:{0:{name:"punctuation.support.type.property-name.end.json.lines"}},name:"string.json.lines support.type.property-name.json.lines",patterns:[{include:"#stringcontent"}]},string:{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.json.lines"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.json.lines"}},name:"string.quoted.double.json.lines",patterns:[{include:"#stringcontent"}]},stringcontent:{patterns:[{match:`(?x) -\\\\ -(?: -["\\\\/bfnrt] -| -u -[0-9a-fA-F]{4})`,name:"constant.character.escape.json.lines"},{match:"\\\\.",name:"invalid.illegal.unrecognized-string-escape.json.lines"}]},value:{patterns:[{include:"#constant"},{include:"#number"},{include:"#string"},{include:"#array"},{include:"#object"},{include:"#comments"}]}},scopeName:"source.json.lines"})]}}]); diff --git a/starter/src/main/resources/templates/admin/1650.63c75555.async.js b/starter/src/main/resources/templates/admin/1650.63c75555.async.js deleted file mode 100644 index 316ec330..00000000 --- a/starter/src/main/resources/templates/admin/1650.63c75555.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1650],{31650:function(Q,b,v){v.r(b),v.d(b,{vbScript:function(){return m},vbScriptASP:function(){return g}});function d(k){var s="error";function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var w=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),x=new RegExp("^((<>)|(<=)|(>=))"),C=new RegExp("^[\\.,]"),S=new RegExp("^[\\(\\)]"),I=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),O=["class","sub","select","while","if","function","property","with","for"],D=["else","elseif","case"],R=["next","loop","wend"],E=i(["and","or","not","xor","is","mod","eqv","imp"]),L=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],T=["true","false","nothing","empty","null"],j=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"],F=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"],a=["WScript","err","debug","RegExp"],A=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],B=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],W=["server","response","request","session","application"],z=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],K=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],c=B.concat(A);a=a.concat(F),k.isASP&&(a=a.concat(W),c=c.concat(K,z));var N=i(L),P=i(T),M=i(j),q=i(a),V=i(c),Y='"',H=i(O),f=i(D),p=i(R),h=i(["end"]),J=i(["do"]),U=i(["on error resume next","exit"]),_=i(["rem"]);function y(e,n){n.currentIndent++}function u(e,n){n.currentIndent--}function l(e,n){if(e.eatSpace())return null;var r=e.peek();if(r==="'"||e.match(_))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var t=!1;if((e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)||e.match(/^\.\d+/))&&(t=!0),t)return e.eat(/J/i),"number";var o=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?o=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),o=!0):e.match(/^0(?![\dx])/i)&&(o=!0),o)return e.eat(/L/i),"number"}return e.match(Y)?(n.tokenize=G(e.current()),n.tokenize(e,n)):e.match(x)||e.match(w)||e.match(E)?"operator":e.match(C)?null:e.match(S)?"bracket":e.match(U)?(n.doInCurrentLine=!0,"keyword"):e.match(J)?(y(e,n),n.doInCurrentLine=!0,"keyword"):e.match(H)?(n.doInCurrentLine?n.doInCurrentLine=!1:y(e,n),"keyword"):e.match(f)?"keyword":e.match(h)?(u(e,n),u(e,n),"keyword"):e.match(p)?(n.doInCurrentLine?n.doInCurrentLine=!1:u(e,n),"keyword"):e.match(N)?"keyword":e.match(P)?"atom":e.match(V)?"variableName.special":e.match(M)||e.match(q)?"builtin":e.match(I)?"variable":(e.next(),s)}function G(e){var n=e.length==1,r="string";return function(t,o){for(;!t.eol();){if(t.eatWhile(/[^'"]/),t.match(e))return o.tokenize=l,r;t.eat(/['"]/)}return n&&(o.tokenize=l),r}}function Z(e,n){var r=n.tokenize(e,n),t=e.current();return t==="."?(r=n.tokenize(e,n),t=e.current(),r&&(r.substr(0,8)==="variable"||r==="builtin"||r==="keyword")?((r==="builtin"||r==="keyword")&&(r="variable"),c.indexOf(t.substr(1))>-1&&(r="keyword"),r):s):r}return{name:"vbscript",startState:function(){return{tokenize:l,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,n){e.sol()&&(n.currentIndent+=n.nextLineIndent,n.nextLineIndent=0,n.doInCurrentLine=0);var r=Z(e,n);return n.lastToken={style:r,content:e.current()},r===null&&(r=null),r},indent:function(e,n,r){var t=n.replace(/^\s+|\s+$/g,"");return t.match(p)||t.match(h)||t.match(f)?r.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*r.unit}}}const m=d({}),g=d({isASP:!0})}}]); diff --git a/starter/src/main/resources/templates/admin/1650.97a12833.async.js b/starter/src/main/resources/templates/admin/1650.97a12833.async.js new file mode 100644 index 00000000..7837f4dd --- /dev/null +++ b/starter/src/main/resources/templates/admin/1650.97a12833.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1650],{31650:function(e,t,n){function r(e){var t="error";function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var r=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),a=new RegExp("^((<>)|(<=)|(>=))"),i=new RegExp("^[\\.,]"),o=new RegExp("^[\\(\\)]"),c=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),b=n(["and","or","not","xor","is","mod","eqv","imp"]),u=["WScript","err","debug","RegExp"],l=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"].concat(["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"]);u=u.concat(["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"]),e.isASP&&(u=u.concat(["server","response","request","session","application"]),l=l.concat(["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"]));var s=n(["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"]),v=n(["true","false","nothing","empty","null"]),d=n(["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"]),m=n(u),p=n(l),h=n(["class","sub","select","while","if","function","property","with","for"]),f=n(["else","elseif","case"]),y=n(["next","loop","wend"]),g=n(["end"]),k=n(["do"]),x=n(["on error resume next","exit"]),w=n(["rem"]);function C(e,t){t.currentIndent++}function I(e,t){t.currentIndent--}function L(e,n){if(e.eatSpace())return null;var u,l,S;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(w))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var D=!1;if((e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)||e.match(/^\.\d+/))&&(D=!0),D)return e.eat(/J/i),"number";var E=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?E=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),E=!0):e.match(/^0(?![\dx])/i)&&(E=!0),E)return e.eat(/L/i),"number"}return e.match('"')?(n.tokenize=(u=e.current(),l=1==u.length,S="string",function(e,t){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(u))return t.tokenize=L,S;e.eat(/['"]/)}return l&&(t.tokenize=L),S}),n.tokenize(e,n)):e.match(a)||e.match(r)||e.match(b)?"operator":e.match(i)?null:e.match(o)?"bracket":e.match(x)?(n.doInCurrentLine=!0,"keyword"):e.match(k)?(C(0,n),n.doInCurrentLine=!0,"keyword"):e.match(h)?(n.doInCurrentLine?n.doInCurrentLine=!1:C(0,n),"keyword"):e.match(f)?"keyword":e.match(g)?(I(0,n),I(0,n),"keyword"):e.match(y)?(n.doInCurrentLine?n.doInCurrentLine=!1:I(0,n),"keyword"):e.match(s)?"keyword":e.match(v)?"atom":e.match(p)?"variableName.special":e.match(d)||e.match(m)?"builtin":e.match(c)?"variable":(e.next(),t)}return{name:"vbscript",startState:function(){return{tokenize:L,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,n){e.sol()&&(n.currentIndent+=n.nextLineIndent,n.nextLineIndent=0,n.doInCurrentLine=0);var r=function(e,n){var r=n.tokenize(e,n),a=e.current();return"."===a?(r=n.tokenize(e,n),a=e.current(),!r||"variable"!==r.substr(0,8)&&"builtin"!==r&&"keyword"!==r?t:("builtin"!==r&&"keyword"!==r||(r="variable"),l.indexOf(a.substr(1))>-1&&(r="keyword"),r)):r}(e,n);return n.lastToken={style:r,content:e.current()},null===r&&(r=null),r},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(y)||r.match(g)||r.match(f)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit}}}n.r(t),n.d(t,{vbScript:function(){return a},vbScriptASP:function(){return i}});const a=r({}),i=r({isASP:!0})}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/1660.0da738b6.async.js b/starter/src/main/resources/templates/admin/1660.0da738b6.async.js deleted file mode 100644 index c15fc21d..00000000 --- a/starter/src/main/resources/templates/admin/1660.0da738b6.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1660],{11660:function(L,d,s){s.r(d),s.d(d,{d:function(){return I}});function c(e){for(var n={},t=e.split(" "),i=0;i!?|\/]/,o;function k(e,n){var t=e.next();if(m[t]){var i=m[t](e,n);if(i!==!1)return i}if(t=='"'||t=="'"||t=="`")return n.tokenize=E(t),n.tokenize(e,n);if(/[\[\]{}\(\),;\:\.]/.test(t))return o=t,null;if(/\d/.test(t))return e.eatWhile(/[\w\.]/),"number";if(t=="/"){if(e.eat("+"))return n.tokenize=w,w(e,n);if(e.eat("*"))return n.tokenize=b,b(e,n);if(e.eat("/"))return e.skipToEnd(),"comment"}if(y.test(t))return e.eatWhile(y),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var r=e.current();return x.propertyIsEnumerable(r)?(h.propertyIsEnumerable(r)&&(o="newstatement"),"keyword"):_.propertyIsEnumerable(r)?(h.propertyIsEnumerable(r)&&(o="newstatement"),"builtin"):z.propertyIsEnumerable(r)?"atom":"variable"}function E(e){return function(n,t){for(var i=!1,r,a=!1;(r=n.next())!=null;){if(r==e&&!i){a=!0;break}i=!i&&r=="\\"}return(a||!(i||C))&&(t.tokenize=null),"string"}}function b(e,n){for(var t=!1,i;i=e.next();){if(i=="/"&&t){n.tokenize=null;break}t=i=="*"}return"comment"}function w(e,n){for(var t=!1,i;i=e.next();){if(i=="/"&&t){n.tokenize=null;break}t=i=="+"}return"comment"}function v(e,n,t,i,r){this.indented=e,this.column=n,this.type=t,this.align=i,this.prev=r}function f(e,n,t){var i=e.indented;return e.context&&e.context.type=="statement"&&(i=e.context.indented),e.context=new v(i,n,t,null,e.context)}function u(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}const I={name:"d",startState:function(e){return{tokenize:null,context:new v(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;o=null;var i=(n.tokenize||k)(e,n);if(i=="comment"||i=="meta")return i;if(t.align==null&&(t.align=!0),(o==";"||o==":"||o==",")&&t.type=="statement")u(n);else if(o=="{")f(n,e.column(),"}");else if(o=="[")f(n,e.column(),"]");else if(o=="(")f(n,e.column(),")");else if(o=="}"){for(;t.type=="statement";)t=u(n);for(t.type=="}"&&(t=u(n));t.type=="statement";)t=u(n)}else o==t.type?u(n):((t.type=="}"||t.type=="top")&&o!=";"||t.type=="statement"&&o=="newstatement")&&f(n,e.column(),"statement");return n.startOfLine=!1,i},indent:function(e,n,t){if(e.tokenize!=k&&e.tokenize!=null)return null;var i=e.context,r=n&&n.charAt(0);i.type=="statement"&&r=="}"&&(i=i.prev);var a=r==i.type;return i.type=="statement"?i.indented+(r=="{"?0:g||t.unit):i.align?i.column+(a?0:1):i.indented+(a?0:t.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}}]); diff --git a/starter/src/main/resources/templates/admin/1660.3079c5fa.async.js b/starter/src/main/resources/templates/admin/1660.3079c5fa.async.js new file mode 100644 index 00000000..a5c204ee --- /dev/null +++ b/starter/src/main/resources/templates/admin/1660.3079c5fa.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1660],{11660:function(e,t,n){function r(e){for(var t={},n=e.split(" "),r=0;r!?|\/]/;function h(e,t){var n,r=e.next();if(d[r]){var i=d[r](e,t);if(!1!==i)return i}if('"'==r||"'"==r||"`"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!m)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return a=r,null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r){if(e.eat("+"))return t.tokenize=k,k(e,t);if(e.eat("*"))return t.tokenize=y,y(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(p.test(r))return e.eatWhile(p),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var o=e.current();return l.propertyIsEnumerable(o)?(c.propertyIsEnumerable(o)&&(a="newstatement"),"keyword"):s.propertyIsEnumerable(o)?(c.propertyIsEnumerable(o)&&(a="newstatement"),"builtin"):f.propertyIsEnumerable(o)?"atom":"variable"}function y(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function k(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="+"==n}return"comment"}function b(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function v(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new b(r,t,n,null,e.context)}function w(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const g={name:"d",startState:function(e){return{tokenize:null,context:new b(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;a=null;var r=(t.tokenize||h)(e,t);if("comment"==r||"meta"==r)return r;if(null==n.align&&(n.align=!0),";"!=a&&":"!=a&&","!=a||"statement"!=n.type)if("{"==a)v(t,e.column(),"}");else if("["==a)v(t,e.column(),"]");else if("("==a)v(t,e.column(),")");else if("}"==a){for(;"statement"==n.type;)n=w(t);for("}"==n.type&&(n=w(t));"statement"==n.type;)n=w(t)}else a==n.type?w(t):(("}"==n.type||"top"==n.type)&&";"!=a||"statement"==n.type&&"newstatement"==a)&&v(t,e.column(),"statement");else w(t);return t.startOfLine=!1,r},indent:function(e,t,n){if(e.tokenize!=h&&null!=e.tokenize)return null;var r=e.context,i=t&&t.charAt(0);"statement"==r.type&&"}"==i&&(r=r.prev);var o=i==r.type;return"statement"==r.type?r.indented+("{"==i?0:u||n.unit):r.align?r.column+(o?0:1):r.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/1688.10daed71.async.js b/starter/src/main/resources/templates/admin/1688.10daed71.async.js deleted file mode 100644 index 7ed16a62..00000000 --- a/starter/src/main/resources/templates/admin/1688.10daed71.async.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1688],{21094:function(a,e,n){n.r(e),n.d(e,{default:function(){return t}});var t=[Object.freeze({displayName:"Sass",fileTypes:["sass"],foldingStartMarker:"/\\*|^#|^\\*|^\\b|*#?region|^\\.",foldingStopMarker:"\\*/|*#?endregion|^\\s*$",name:"sass",patterns:[{begin:"^(\\s*)(/\\*)",end:"(\\*/)|^(?!\\s\\1)",name:"comment.block.sass",patterns:[{include:"#comment-tag"},{include:"#comment-param"}]},{match:"^[\\t ]*/?//[\\t ]*[SRI][\\t ]*$",name:"keyword.other.sass.formatter.action"},{begin:"^[\\t ]*//[\\t ]*(import)[\\t ]*(css-variables)[\\t ]*(from)",captures:{1:{name:"keyword.control"},2:{name:"variable"},3:{name:"keyword.control"}},end:"$\\n?",name:"comment.import.css.variables",patterns:[{include:"#import-quotes"}]},{include:"#double-slash"},{include:"#double-quoted"},{include:"#single-quoted"},{include:"#interpolation"},{include:"#curly-brackets"},{include:"#placeholder-selector"},{begin:"\\$[a-zA-Z0-9_-]+(?=:)",captures:{0:{name:"variable.other.name"}},end:"$\\n?|(?=\\)\\s\\)|\\)\\n)",name:"sass.script.maps",patterns:[{include:"#double-slash"},{include:"#double-quoted"},{include:"#single-quoted"},{include:"#interpolation"},{include:"#variable"},{include:"#rgb-value"},{include:"#numeric"},{include:"#unit"},{include:"#flag"},{include:"#comma"},{include:"#function"},{include:"#function-content"},{include:"#operator"},{include:"#reserved-words"},{include:"#parent-selector"},{include:"#property-value"},{include:"#semicolon"},{include:"#dotdotdot"}]},{include:"#variable-root"},{include:"#numeric"},{include:"#unit"},{include:"#flag"},{include:"#comma"},{include:"#semicolon"},{include:"#dotdotdot"},{begin:"@include|\\+(?!\\W|\\d)",captures:{0:{name:"keyword.control.at-rule.css.sass"}},end:"(?=\\n|\\()",name:"support.function.name.sass.library"},{begin:"^(@use)",captures:{0:{name:"keyword.control.at-rule.css.sass.use"}},end:"(?=\\n)",name:"sass.use",patterns:[{match:"as|with",name:"support.type.css.sass"},{include:"#numeric"},{include:"#unit"},{include:"#variable-root"},{include:"#rgb-value"},{include:"#comma"},{include:"#parenthesis-open"},{include:"#parenthesis-close"},{include:"#colon"},{include:"#import-quotes"}]},{begin:"^@import(.*?)( as.*)?$",captures:{1:{name:"constant.character.css.sass"},2:{name:"invalid"}},end:"(?=\\n)",name:"keyword.control.at-rule.use"},{begin:"@mixin|^[\\t ]*=|@function",captures:{0:{name:"keyword.control.at-rule.css.sass"}},end:"$\\n?|(?=\\()",name:"support.function.name.sass",patterns:[{match:"[\\w-]+",name:"entity.name.function"}]},{begin:"@",end:"$\\n?|\\s(?!(all|braille|embossed|handheld|print|projection|screen|speech|tty|tv|if|only|not)(\\s|,))",name:"keyword.control.at-rule.css.sass"},{begin:"(?|-|_)",name:"entity.name.tag.css.sass.symbol",patterns:[{include:"#interpolation"},{include:"#pseudo-class"}]},{begin:"#",end:"$\\n?|(?=\\s|,|\\(|\\)|\\.|\\[|>)",name:"entity.other.attribute-name.id.css.sass",patterns:[{include:"#interpolation"},{include:"#pseudo-class"}]},{begin:"\\.|(?<=&)(-|_)",end:"$\\n?|(?=\\s|,|\\(|\\)|\\[|>)",name:"entity.other.attribute-name.class.css.sass",patterns:[{include:"#interpolation"},{include:"#pseudo-class"}]},{begin:"\\[",end:"\\]",name:"entity.other.attribute-selector.sass",patterns:[{include:"#double-quoted"},{include:"#single-quoted"},{match:"\\^|\\$|\\*|~",name:"keyword.other.regex.sass"}]},{match:`^((?<=\\]|\\)|not\\(|\\*|>|>\\s)| -*):[a-z:-]+|(::|:-)[a-z:-]+`,name:"entity.other.attribute-name.pseudo-class.css.sass"},{include:"#module"},{match:"[\\w-]*\\(",name:"entity.name.function"},{match:"\\)",name:"entity.name.function.close"},{begin:":",end:"$\\n?|(?=\\s\\(|and\\(|\\),)",name:"meta.property-list.css.sass.prop",patterns:[{match:"(?<=:)[a-z-]+\\s",name:"support.type.property-name.css.sass.prop.name"},{include:"#double-slash"},{include:"#double-quoted"},{include:"#single-quoted"},{include:"#interpolation"},{include:"#curly-brackets"},{include:"#variable"},{include:"#rgb-value"},{include:"#numeric"},{include:"#unit"},{include:"#module"},{match:"--.+?(?=\\))",name:"variable.css"},{match:"[\\w-]*\\(",name:"entity.name.function"},{match:"\\)",name:"entity.name.function.close"},{include:"#flag"},{include:"#comma"},{include:"#semicolon"},{include:"#function"},{include:"#function-content"},{include:"#operator"},{include:"#parent-selector"},{include:"#property-value"}]},{include:"#rgb-value"},{include:"#function"},{include:"#function-content"},{begin:"(?<=})(?!\\n|\\(|\\)|[a-zA-Z0-9_-]+:)",end:"\\s|(?=,|\\.|\\[|\\)|\\n)",name:"entity.name.tag.css.sass",patterns:[{include:"#interpolation"},{include:"#pseudo-class"}]},{include:"#operator"},{match:"[a-z-]+((?=:|#{))",name:"support.type.property-name.css.sass.prop.name"},{include:"#reserved-words"},{include:"#property-value"}],repository:{colon:{match:":",name:"meta.property-list.css.sass.colon"},comma:{match:"\\band\\b|\\bor\\b|,",name:"comment.punctuation.comma.sass"},"comment-param":{match:"\\@(\\w+)",name:"storage.type.class.jsdoc"},"comment-tag":{begin:"(?<={{)",end:"(?=}})",name:"comment.tag.sass"},"curly-brackets":{match:"{|}",name:"invalid"},dotdotdot:{match:"\\.\\.\\.",name:"variable.other"},"double-quoted":{begin:'"',end:'"',name:"string.quoted.double.css.sass",patterns:[{include:"#quoted-interpolation"}]},"double-slash":{begin:"//",end:"$\\n?",name:"comment.line.sass",patterns:[{include:"#comment-tag"}]},flag:{match:"!(important|default|optional|global)",name:"keyword.other.important.css.sass"},function:{match:"(?<=[\\s|\\(|,|:])(?!url|format|attr)[a-zA-Z0-9_-][\\w-]*(?=\\()",name:"support.function.name.sass"},"function-content":{begin:"(?<=url\\(|format\\(|attr\\()",end:".(?=\\))",name:"string.quoted.double.css.sass"},"import-quotes":{match:`["']?\\.{0,2}[\\w/]+["']?`,name:"constant.character.css.sass"},interpolation:{begin:"#{",end:"}",name:"support.function.interpolation.sass",patterns:[{include:"#variable"},{include:"#numeric"},{include:"#operator"},{include:"#unit"},{include:"#comma"},{include:"#double-quoted"},{include:"#single-quoted"}]},module:{captures:{1:{name:"constant.character.module.name"},2:{name:"constant.numeric.module.dot"}},match:"([\\w-]+?)(\\.)",name:"constant.character.module"},numeric:{match:"(-|\\.)?[0-9]+(\\.[0-9]+)?",name:"constant.numeric.css.sass"},operator:{match:"\\+|\\s-\\s|\\s-(?=\\$)|(?<=\\()-(?=\\$)|\\s-(?=\\()|\\*|/|%|=|!|<|>|~",name:"keyword.operator.sass"},"parent-selector":{match:"&",name:"entity.name.tag.css.sass"},"parenthesis-close":{match:"\\)",name:"entity.name.function.parenthesis.close"},"parenthesis-open":{match:"\\(",name:"entity.name.function.parenthesis.open"},"placeholder-selector":{begin:"(?|-|_)",name:"entity.name.tag.css.sass.symbol",patterns:[{include:"#interpolation"},{include:"#pseudo-class"}]},{begin:"#",end:"$\\n?|(?=\\s|,|\\(|\\)|\\.|\\[|>)",name:"entity.other.attribute-name.id.css.sass",patterns:[{include:"#interpolation"},{include:"#pseudo-class"}]},{begin:"\\.|(?<=&)(-|_)",end:"$\\n?|(?=\\s|,|\\(|\\)|\\[|>)",name:"entity.other.attribute-name.class.css.sass",patterns:[{include:"#interpolation"},{include:"#pseudo-class"}]},{begin:"\\[",end:"\\]",name:"entity.other.attribute-selector.sass",patterns:[{include:"#double-quoted"},{include:"#single-quoted"},{match:"\\^|\\$|\\*|~",name:"keyword.other.regex.sass"}]},{match:"^((?<=\\]|\\)|not\\(|\\*|>|>\\s)|\n*):[a-z:-]+|(::|:-)[a-z:-]+",name:"entity.other.attribute-name.pseudo-class.css.sass"},{include:"#module"},{match:"[\\w-]*\\(",name:"entity.name.function"},{match:"\\)",name:"entity.name.function.close"},{begin:":",end:"$\\n?|(?=\\s\\(|and\\(|\\),)",name:"meta.property-list.css.sass.prop",patterns:[{match:"(?<=:)[a-z-]+\\s",name:"support.type.property-name.css.sass.prop.name"},{include:"#double-slash"},{include:"#double-quoted"},{include:"#single-quoted"},{include:"#interpolation"},{include:"#curly-brackets"},{include:"#variable"},{include:"#rgb-value"},{include:"#numeric"},{include:"#unit"},{include:"#module"},{match:"--.+?(?=\\))",name:"variable.css"},{match:"[\\w-]*\\(",name:"entity.name.function"},{match:"\\)",name:"entity.name.function.close"},{include:"#flag"},{include:"#comma"},{include:"#semicolon"},{include:"#function"},{include:"#function-content"},{include:"#operator"},{include:"#parent-selector"},{include:"#property-value"}]},{include:"#rgb-value"},{include:"#function"},{include:"#function-content"},{begin:"(?<=})(?!\\n|\\(|\\)|[a-zA-Z0-9_-]+:)",end:"\\s|(?=,|\\.|\\[|\\)|\\n)",name:"entity.name.tag.css.sass",patterns:[{include:"#interpolation"},{include:"#pseudo-class"}]},{include:"#operator"},{match:"[a-z-]+((?=:|#{))",name:"support.type.property-name.css.sass.prop.name"},{include:"#reserved-words"},{include:"#property-value"}],repository:{colon:{match:":",name:"meta.property-list.css.sass.colon"},comma:{match:"\\band\\b|\\bor\\b|,",name:"comment.punctuation.comma.sass"},"comment-param":{match:"\\@(\\w+)",name:"storage.type.class.jsdoc"},"comment-tag":{begin:"(?<={{)",end:"(?=}})",name:"comment.tag.sass"},"curly-brackets":{match:"{|}",name:"invalid"},dotdotdot:{match:"\\.\\.\\.",name:"variable.other"},"double-quoted":{begin:'"',end:'"',name:"string.quoted.double.css.sass",patterns:[{include:"#quoted-interpolation"}]},"double-slash":{begin:"//",end:"$\\n?",name:"comment.line.sass",patterns:[{include:"#comment-tag"}]},flag:{match:"!(important|default|optional|global)",name:"keyword.other.important.css.sass"},function:{match:"(?<=[\\s|\\(|,|:])(?!url|format|attr)[a-zA-Z0-9_-][\\w-]*(?=\\()",name:"support.function.name.sass"},"function-content":{begin:"(?<=url\\(|format\\(|attr\\()",end:".(?=\\))",name:"string.quoted.double.css.sass"},"import-quotes":{match:"[\"']?\\.{0,2}[\\w/]+[\"']?",name:"constant.character.css.sass"},interpolation:{begin:"#{",end:"}",name:"support.function.interpolation.sass",patterns:[{include:"#variable"},{include:"#numeric"},{include:"#operator"},{include:"#unit"},{include:"#comma"},{include:"#double-quoted"},{include:"#single-quoted"}]},module:{captures:{1:{name:"constant.character.module.name"},2:{name:"constant.numeric.module.dot"}},match:"([\\w-]+?)(\\.)",name:"constant.character.module"},numeric:{match:"(-|\\.)?[0-9]+(\\.[0-9]+)?",name:"constant.numeric.css.sass"},operator:{match:"\\+|\\s-\\s|\\s-(?=\\$)|(?<=\\()-(?=\\$)|\\s-(?=\\()|\\*|/|%|=|!|<|>|~",name:"keyword.operator.sass"},"parent-selector":{match:"&",name:"entity.name.tag.css.sass"},"parenthesis-close":{match:"\\)",name:"entity.name.function.parenthesis.close"},"parenthesis-open":{match:"\\(",name:"entity.name.function.parenthesis.open"},"placeholder-selector":{begin:"(?{let t=O.pos;for(;;){if(O.next==10){O.advance();break}else if(O.next==123&&O.peek(1)==123||O.next<0)break;O.advance()}O.pos>t&&O.acceptToken(R)});function l(O,t,n){return new i.Jq(e=>{let y=e.pos;for(;e.next!=O&&e.next>=0&&(n||e.next!=38&&(e.next!=123||e.peek(1)!=123));)e.advance();e.pos>y&&e.acceptToken(t)})}const d=l(39,$,!1),C=l(34,m,!1),E=l(39,v,!0),T=l(34,b,!0),_=i.WQ.deserialize({version:14,states:"(jOVOqOOOeQpOOOvO!bO'#CaOOOP'#Cx'#CxQVOqOOO!OQpO'#CfO!WQpO'#ClO!]QpO'#CrO!bQpO'#CsOOQO'#Cv'#CvQ!gQpOOQ!lQpOOQ!qQpOOOOOV,58{,58{O!vOpO,58{OOOP-E6v-E6vO!{QpO,59QO#TQpO,59QOOQO,59W,59WO#YQpO,59^OOQO,59_,59_O#_QpOOO#_QpOOO#gQpOOOOOV1G.g1G.gO#oQpO'#CyO#tQpO1G.lOOQO1G.l1G.lO#|QpO1G.lOOQO1G.x1G.xO$UO`O'#DUO$ZOWO'#DUOOQO'#Co'#CoQOQpOOOOQO'#Cu'#CuO$`OtO'#CwO$qOrO'#CwOOQO,59e,59eOOQO-E6w-E6wOOQO7+$W7+$WO%SQpO7+$WO%[QpO7+$WOOOO'#Cp'#CpO%aOpO,59pOOOO'#Cq'#CqO%fOpO,59pOOOS'#Cz'#CzO%kOtO,59cOOQO,59c,59cOOOQ'#C{'#C{O%|OrO,59cO&_QpO<O.name=="InterpolationContent"?s:null)}),U=P.configure({wrap:(0,o.FE)((O,t)=>{var n;return O.name=="InterpolationContent"?s:O.name!="AttributeInterpolation"?null:((n=O.node.parent)===null||n===void 0?void 0:n.name)=="StatementAttributeValue"?x:s}),top:"Attribute"}),V={parser:A},I={parser:U},p=(0,q.html)();function g(O){return O.configure({wrap:(0,o.FE)(D)},"angular")}const c=g(p.language);function D(O,t){switch(O.name){case"Attribute":return/^[*#(\[]|\{\{/.test(t.read(O.from,O.to))?I:null;case"Text":return V}return null}function w(O={}){let t=p;if(O.base){if(O.base.language.name!="html"||!(O.base.language instanceof u.qp))throw new RangeError("The base option must be the result of calling html(...)");t=O.base}return new u.ri(t.language==p.language?c:g(t.language),[t.support,t.language.data.of({closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/})])}}}]); diff --git a/starter/src/main/resources/templates/admin/1706.f677b611.async.js b/starter/src/main/resources/templates/admin/1706.f677b611.async.js new file mode 100644 index 00000000..95df3d92 --- /dev/null +++ b/starter/src/main/resources/templates/admin/1706.f677b611.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1706],{91706:function(O,r,e){e.r(r),e.d(r,{angular:function(){return C},angularLanguage:function(){return W}});var t=e(59119),n=e(82261),a=e(122),p=e(35524),i=e(41113),o=e(53105);const l=new o.Jq((O=>{let r=O.pos;for(;;){if(10==O.next){O.advance();break}if(123==O.next&&123==O.peek(1)||O.next<0)break;O.advance()}O.pos>r&&O.acceptToken(1)}));function Q(O,r,e){return new o.Jq((t=>{let n=t.pos;for(;t.next!=O&&t.next>=0&&(e||38!=t.next&&(123!=t.next||123!=t.peek(1)));)t.advance();t.pos>n&&t.acceptToken(r)}))}const u=Q(39,33,!1),S=Q(34,34,!1),q=Q(39,35,!0),s=Q(34,36,!0),P=o.WQ.deserialize({version:14,states:"(jOVOqOOOeQpOOOvO!bO'#CaOOOP'#Cx'#CxQVOqOOO!OQpO'#CfO!WQpO'#ClO!]QpO'#CrO!bQpO'#CsOOQO'#Cv'#CvQ!gQpOOQ!lQpOOQ!qQpOOOOOV,58{,58{O!vOpO,58{OOOP-E6v-E6vO!{QpO,59QO#TQpO,59QOOQO,59W,59WO#YQpO,59^OOQO,59_,59_O#_QpOOO#_QpOOO#gQpOOOOOV1G.g1G.gO#oQpO'#CyO#tQpO1G.lOOQO1G.l1G.lO#|QpO1G.lOOQO1G.x1G.xO$UO`O'#DUO$ZOWO'#DUOOQO'#Co'#CoQOQpOOOOQO'#Cu'#CuO$`OtO'#CwO$qOrO'#CwOOQO,59e,59eOOQO-E6w-E6wOOQO7+$W7+$WO%SQpO7+$WO%[QpO7+$WOOOO'#Cp'#CpO%aOpO,59pOOOO'#Cq'#CqO%fOpO,59pOOOS'#Cz'#CzO%kOtO,59cOOQO,59c,59cOOOQ'#C{'#C{O%|OrO,59cO&_QpO<"InterpolationContent"==O.name?R:null))})},b={parser:c.configure({wrap:(0,i.FE)(((O,r)=>{var e;return"InterpolationContent"==O.name?R:"AttributeInterpolation"!=O.name?null:"StatementAttributeValue"==(null===(e=O.node.parent)||void 0===e?void 0:e.name)?$:R})),top:"Attribute"})},m=(0,n.html)();function d(O){return O.configure({wrap:(0,i.FE)(f)},"angular")}const W=d(m.language);function f(O,r){switch(O.name){case"Attribute":return/^[*#(\[]|\{\{/.test(r.read(O.from,O.to))?b:null;case"Text":return v}return null}function C(O={}){let r=m;if(O.base){if("html"!=O.base.language.name||!(O.base.language instanceof t.qp))throw new RangeError("The base option must be the result of calling html(...)");r=O.base}return new t.ri(r.language==m.language?W:d(r.language),[r.support,r.language.data.of({closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/})])}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/177.1e133a1c.async.js b/starter/src/main/resources/templates/admin/177.1e133a1c.async.js deleted file mode 100644 index 49f38782..00000000 --- a/starter/src/main/resources/templates/admin/177.1e133a1c.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[177],{90177:function(L,s,b){b.r(s),b.d(s,{textile:function(){return T}});var a={addition:"inserted",attributes:"propertyName",bold:"strong",cite:"keyword",code:"monospace",definitionList:"list",deletion:"deleted",div:"punctuation",em:"emphasis",footnote:"variable",footCite:"qualifier",header:"heading",html:"comment",image:"atom",italic:"emphasis",link:"link",linkDefinition:"link",list1:"list",list2:"list.special",list3:"list",notextile:"string.special",pre:"operator",p:"content",quote:"bracket",span:"quote",specialChar:"character",strong:"strong",sub:"content.special",sup:"content.special",table:"variableName.special",tableHeading:"operator"};function g(i,e){e.mode=r.newLayout,e.tableHeading=!1,e.layoutType==="definitionList"&&e.spanningLayout&&i.match(l("definitionListEnd"),!1)&&(e.spanningLayout=!1)}function y(i,e,n){if(n==="_")return i.eat("_")?f(i,e,"italic",/__/,2):f(i,e,"em",/_/,1);if(n==="*")return i.eat("*")?f(i,e,"bold",/\*\*/,2):f(i,e,"strong",/\*/,1);if(n==="[")return i.match(/\d+\]/)&&(e.footCite=!0),o(e);if(n==="("){var u=i.match(/^(r|tm|c)\)/);if(u)return a.specialChar}if(n==="<"&&i.match(/(\w+)[^>]+>[^<]+<\/\1>/))return a.html;if(n==="?"&&i.eat("?"))return f(i,e,"cite",/\?\?/,2);if(n==="="&&i.eat("="))return f(i,e,"notextile",/==/,2);if(n==="-"&&!i.eat("-"))return f(i,e,"deletion",/-/,1);if(n==="+")return f(i,e,"addition",/\+/,1);if(n==="~")return f(i,e,"sub",/~/,1);if(n==="^")return f(i,e,"sup",/\^/,1);if(n==="%")return f(i,e,"span",/%/,1);if(n==="@")return f(i,e,"code",/@/,1);if(n==="!"){var c=f(i,e,"image",/(?:\([^\)]+\))?!/,1);return i.match(/^:\S+/),c}return o(e)}function f(i,e,n,u,c){var d=i.pos>c?i.string.charAt(i.pos-c-1):null,p=i.peek();if(e[n]){if((!p||/\W/.test(p))&&d&&/\S/.test(d)){var v=o(e);return e[n]=!1,v}}else(!d||/\W/.test(d))&&p&&/\S/.test(p)&&i.match(new RegExp("^.*\\S"+u.source+"(?:\\W|$)"),!1)&&(e[n]=!0,e.mode=r.attributes);return o(e)}function o(i){var e=h(i);if(e)return e;var n=[];return i.layoutType&&n.push(a[i.layoutType]),n=n.concat(m(i,"addition","bold","cite","code","deletion","em","footCite","image","italic","link","span","strong","sub","sup","table","tableHeading")),i.layoutType==="header"&&n.push(a.header+"-"+i.header),n.length?n.join(" "):null}function h(i){var e=i.layoutType;switch(e){case"notextile":case"code":case"pre":return a[e];default:return i.notextile?a.notextile+(e?" "+a[e]:""):null}}function m(i){for(var e=[],n=1;n]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(i){switch(i){case"drawTable":return t.makeRe("^",t.single.drawTable,"$");case"html":return t.makeRe("^",t.single.html,"(?:",t.single.html,")*","$");case"linkDefinition":return t.makeRe("^",t.single.linkDefinition,"$");case"listLayout":return t.makeRe("^",t.single.list,l("allAttributes"),"*\\s+");case"tableCellAttributes":return t.makeRe("^",t.choiceRe(t.single.tableCellAttributes,l("allAttributes")),"+\\.");case"type":return t.makeRe("^",l("allTypes"));case"typeLayout":return t.makeRe("^",l("allTypes"),l("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return t.makeRe("^",l("allAttributes"),"+");case"allTypes":return t.choiceRe(t.single.div,t.single.foot,t.single.header,t.single.bc,t.single.bq,t.single.notextile,t.single.pre,t.single.table,t.single.para);case"allAttributes":return t.choiceRe(t.attributes.selector,t.attributes.css,t.attributes.lang,t.attributes.align,t.attributes.pad);default:return t.makeRe("^",t.single[i])}},makeRe:function(){for(var i="",e=0;e]+>[^<]+<\/\1>/))return i.html;if("?"===n&&t.eat("?"))return r(t,e,"cite",/\?\?/,2);if("="===n&&t.eat("="))return r(t,e,"notextile",/==/,2);if("-"===n&&!t.eat("-"))return r(t,e,"deletion",/-/,1);if("+"===n)return r(t,e,"addition",/\+/,1);if("~"===n)return r(t,e,"sub",/~/,1);if("^"===n)return r(t,e,"sup",/\^/,1);if("%"===n)return r(t,e,"span",/%/,1);if("@"===n)return r(t,e,"code",/@/,1);if("!"===n){var a=r(t,e,"image",/(?:\([^\)]+\))?!/,1);return t.match(/^:\S+/),a}return l(e)}function r(t,e,n,i,a){var r=t.pos>a?t.string.charAt(t.pos-a-1):null,o=t.peek();if(e[n]){if((!o||/\W/.test(o))&&r&&/\S/.test(r)){var u=l(e);return e[n]=!1,u}}else(!r||/\W/.test(r))&&o&&/\S/.test(o)&&t.match(new RegExp("^.*\\S"+i.source+"(?:\\W|$)"),!1)&&(e[n]=!0,e.mode=c.attributes);return l(e)}function l(t){var e=o(t);if(e)return e;var n=[];return t.layoutType&&n.push(i[t.layoutType]),n=n.concat(function(t){for(var e=[],n=1;n]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(t){switch(t){case"drawTable":return u.makeRe("^",u.single.drawTable,"$");case"html":return u.makeRe("^",u.single.html,"(?:",u.single.html,")*","$");case"linkDefinition":return u.makeRe("^",u.single.linkDefinition,"$");case"listLayout":return u.makeRe("^",u.single.list,s("allAttributes"),"*\\s+");case"tableCellAttributes":return u.makeRe("^",u.choiceRe(u.single.tableCellAttributes,s("allAttributes")),"+\\.");case"type":return u.makeRe("^",s("allTypes"));case"typeLayout":return u.makeRe("^",s("allTypes"),s("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return u.makeRe("^",s("allAttributes"),"+");case"allTypes":return u.choiceRe(u.single.div,u.single.foot,u.single.header,u.single.bc,u.single.bq,u.single.notextile,u.single.pre,u.single.table,u.single.para);case"allAttributes":return u.choiceRe(u.attributes.selector,u.attributes.css,u.attributes.lang,u.attributes.align,u.attributes.pad);default:return u.makeRe("^",u.single[t])}},makeRe:function(){for(var t="",e=0;e=|!=|<>)/,f=/[=\(:\),{}.*<>+\-\/^\[\]]/;function o(e,r,s){if(s)for(var i=r.split(" "),n=0;n=|!=|<>)/,o=/[=\(:\),{}.*<>+\-\/^\[\]]/;function i(e,t,n){if(n)for(var s=t.split(" "),a=0;a=@%|&?!.,:;^]/,i=/true|false|nil|self|super|thisContext/,r=function(e,t){this.next=e,this.parent=t},s=function(e,t,n){this.name=e,this.context=t,this.eos=n},o=function(){this.context=new r(u,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};o.prototype.userIndent=function(e,t){this.userIndentationDelta=e>0?e/t-this.indentation:0};var u=function(e,t,n){var o=new s(null,t,!1),u=e.next();return'"'===u?o=l(e,new r(l,t)):"'"===u?o=c(e,new r(c,t)):"#"===u?"'"===e.peek()?(e.next(),o=h(e,new r(h,t))):e.eatWhile(/[^\s.{}\[\]()]/)?o.name="string.special":o.name="meta":"$"===u?("<"===e.next()&&(e.eatWhile(/[^\s>]/),e.next()),o.name="string.special"):"|"===u&&n.expectVariable?o.context=new r(x,t):/[\[\]{}()]/.test(u)?(o.name="bracket",o.eos=/[\[{(]/.test(u),"["===u?n.indentation++:"]"===u&&(n.indentation=Math.max(0,n.indentation-1))):a.test(u)?(e.eatWhile(a),o.name="operator",o.eos=";"!==u):/\d/.test(u)?(e.eatWhile(/[\w\d]/),o.name="number"):/[\w_]/.test(u)?(e.eatWhile(/[\w\d_]/),o.name=n.expectVariable?i.test(e.current())?"keyword":"variable":null):o.eos=n.expectVariable,o},l=function(e,t){return e.eatWhile(/[^"]/),new s("comment",e.eat('"')?t.parent:t,!0)},c=function(e,t){return e.eatWhile(/[^']/),new s("string",e.eat("'")?t.parent:t,!1)},h=function(e,t){return e.eatWhile(/[^']/),new s("string.special",e.eat("'")?t.parent:t,!1)},x=function(e,t){var n=new s(null,t,!1);return"|"===e.next()?(n.context=t.parent,n.eos=!0):(e.eatWhile(/[^|]/),n.name="variable"),n};const d={name:"smalltalk",startState:function(){return new o},token:function(e,t){if(t.userIndent(e.indentation(),e.indentUnit),e.eatSpace())return null;var n=t.context.next(e,t.context,t);return t.context=n.context,t.expectVariable=n.eos,n.name},blankLine:function(e,t){e.userIndent(0,t)},indent:function(e,t,n){var a=e.context.next===u&&t&&"]"===t.charAt(0)?-1:e.userIndentationDelta;return(e.indentation+a)*n.unit},languageData:{indentOnInput:/^\s*\]$/}}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/1873.a751b5b1.async.js b/starter/src/main/resources/templates/admin/1873.a751b5b1.async.js deleted file mode 100644 index 4335297e..00000000 --- a/starter/src/main/resources/templates/admin/1873.a751b5b1.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1873],{11873:function(k,u,o){o.r(u),o.d(u,{smalltalk:function(){return w}});var s=/[+\-\/\\*~<>=@%|&?!.,:;^]/,x=/true|false|nil|self|super|thisContext/,l=function(e,n){this.next=e,this.parent=n},r=function(e,n,t){this.name=e,this.context=n,this.eos=t},f=function(){this.context=new l(c,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};f.prototype.userIndent=function(e,n){this.userIndentationDelta=e>0?e/n-this.indentation:0};var c=function(e,n,t){var i=new r(null,n,!1),a=e.next();return a==='"'?i=h(e,new l(h,n)):a==="'"?i=d(e,new l(d,n)):a==="#"?e.peek()==="'"?(e.next(),i=p(e,new l(p,n))):e.eatWhile(/[^\s.{}\[\]()]/)?i.name="string.special":i.name="meta":a==="$"?(e.next()==="<"&&(e.eatWhile(/[^\s>]/),e.next()),i.name="string.special"):a==="|"&&t.expectVariable?i.context=new l(v,n):/[\[\]{}()]/.test(a)?(i.name="bracket",i.eos=/[\[{(]/.test(a),a==="["?t.indentation++:a==="]"&&(t.indentation=Math.max(0,t.indentation-1))):s.test(a)?(e.eatWhile(s),i.name="operator",i.eos=a!==";"):/\d/.test(a)?(e.eatWhile(/[\w\d]/),i.name="number"):/[\w_]/.test(a)?(e.eatWhile(/[\w\d_]/),i.name=t.expectVariable?x.test(e.current())?"keyword":"variable":null):i.eos=t.expectVariable,i},h=function(e,n){return e.eatWhile(/[^"]/),new r("comment",e.eat('"')?n.parent:n,!0)},d=function(e,n){return e.eatWhile(/[^']/),new r("string",e.eat("'")?n.parent:n,!1)},p=function(e,n){return e.eatWhile(/[^']/),new r("string.special",e.eat("'")?n.parent:n,!1)},v=function(e,n){var t=new r(null,n,!1),i=e.next();return i==="|"?(t.context=n.parent,t.eos=!0):(e.eatWhile(/[^|]/),t.name="variable"),t};const w={name:"smalltalk",startState:function(){return new f},token:function(e,n){if(n.userIndent(e.indentation(),e.indentUnit),e.eatSpace())return null;var t=n.context.next(e,n.context,n);return n.context=t.context,n.expectVariable=t.eos,t.name},blankLine:function(e,n){e.userIndent(0,n)},indent:function(e,n,t){var i=e.context.next===c&&n&&n.charAt(0)==="]"?-1:e.userIndentationDelta;return(e.indentation+i)*t.unit},languageData:{indentOnInput:/^\s*\]$/}}}}]); diff --git a/starter/src/main/resources/templates/admin/1920.6e1a924e.async.js b/starter/src/main/resources/templates/admin/1920.6e1a924e.async.js deleted file mode 100644 index 69a438b6..00000000 --- a/starter/src/main/resources/templates/admin/1920.6e1a924e.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1920],{71920:function(l,u,i){i.r(u),i.d(u,{troff:function(){return k}});var h={};function o(n){if(n.eatSpace())return null;var t=n.sol(),c=n.next();if(c==="\\")return n.match("fB")||n.match("fR")||n.match("fI")||n.match("u")||n.match("d")||n.match("%")||n.match("&")?"string":n.match("m[")?(n.skipTo("]"),n.next(),"string"):n.match("s+")||n.match("s-")?(n.eatWhile(/[\d-]/),"string"):((n.match("(")||n.match("*("))&&n.eatWhile(/[\w-]/),"string");if(t&&(c==="."||c==="'")&&n.eat("\\")&&n.eat('"'))return n.skipToEnd(),"comment";if(t&&c==="."){if(n.match("B ")||n.match("I ")||n.match("R "))return"attribute";if(n.match("TH ")||n.match("SH ")||n.match("SS ")||n.match("HP "))return n.skipToEnd(),"quote";if(n.match(/[A-Z]/)&&n.match(/[A-Z]/)||n.match(/[a-z]/)&&n.match(/[a-z]/))return"attribute"}n.eatWhile(/[\w-]/);var f=n.current();return h.hasOwnProperty(f)?h[f]:null}function r(n,t){return(t.tokens[0]||o)(n,t)}const k={name:"troff",startState:function(){return{tokens:[]}},token:function(n,t){return r(n,t)}}}}]); diff --git a/starter/src/main/resources/templates/admin/1920.da60ad91.async.js b/starter/src/main/resources/templates/admin/1920.da60ad91.async.js new file mode 100644 index 00000000..a64838ff --- /dev/null +++ b/starter/src/main/resources/templates/admin/1920.da60ad91.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1920],{71920:function(t,n,a){a.r(n),a.d(n,{troff:function(){return h}});var r={};function e(t){if(t.eatSpace())return null;var n=t.sol(),a=t.next();if("\\"===a)return t.match("fB")||t.match("fR")||t.match("fI")||t.match("u")||t.match("d")||t.match("%")||t.match("&")?"string":t.match("m[")?(t.skipTo("]"),t.next(),"string"):t.match("s+")||t.match("s-")?(t.eatWhile(/[\d-]/),"string"):t.match("(")||t.match("*(")?(t.eatWhile(/[\w-]/),"string"):"string";if(n&&("."===a||"'"===a)&&t.eat("\\")&&t.eat('"'))return t.skipToEnd(),"comment";if(n&&"."===a){if(t.match("B ")||t.match("I ")||t.match("R "))return"attribute";if(t.match("TH ")||t.match("SH ")||t.match("SS ")||t.match("HP "))return t.skipToEnd(),"quote";if(t.match(/[A-Z]/)&&t.match(/[A-Z]/)||t.match(/[a-z]/)&&t.match(/[a-z]/))return"attribute"}t.eatWhile(/[\w-]/);var e=t.current();return r.hasOwnProperty(e)?r[e]:null}function c(t,n){return(n.tokens[0]||e)(t,n)}const h={name:"troff",startState:function(){return{tokens:[]}},token:function(t,n){return c(t,n)}}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/1941.47191307.async.js b/starter/src/main/resources/templates/admin/1941.47191307.async.js new file mode 100644 index 00000000..4426a65e --- /dev/null +++ b/starter/src/main/resources/templates/admin/1941.47191307.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1941],{11941:function(e,t,n){n.d(t,{Z:function(){return Ie}});var a=n(67294),o=n(84481),r=n(35872),i=n(83963),l=n(42110),c=n(82828),d=function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:l.Z}))};var s=a.forwardRef(d),u=n(93967),v=n.n(u),f=n(87462),b=n(4942),p=n(1413),m=n(97685),h=n(71002),g=n(91),$=n(21770),y=n(31131),k=(0,a.createContext)(null),x=n(74902),S=n(9220),_=n(66680),w=n(42550),C=n(75164),E=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,r=e.indicator,i=void 0===r?{}:r,l=i.size,c=i.align,d=void 0===c?"center":c,s=(0,a.useState)(),u=(0,m.Z)(s,2),v=u[0],f=u[1],b=(0,a.useRef)(),p=a.useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function h(){C.Z.cancel(b.current)}return(0,a.useEffect)((function(){var e={};if(t)if(n){e.width=p(t.width);var a=o?"right":"left";"start"===d&&(e[a]=t[a]),"center"===d&&(e[a]=t[a]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===d&&(e[a]=t[a]+t.width,e.transform="translateX(-100%)")}else e.height=p(t.height),"start"===d&&(e.top=t.top),"center"===d&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===d&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return h(),b.current=(0,C.Z)((function(){f(e)})),h}),[t,n,o,d,p]),{style:v}},Z={width:0,height:0,left:0,top:0};function P(e,t){var n=a.useRef(e),o=a.useState({}),r=(0,m.Z)(o,2)[1];return[n.current,function(e){var a="function"==typeof e?e(n.current):e;a!==n.current&&t(a,n.current),n.current=a,r({})}]}var R=Math.pow(.995,20);var I=n(8410);function T(e){var t=(0,a.useState)(0),n=(0,m.Z)(t,2),o=n[0],r=n[1],i=(0,a.useRef)(0),l=(0,a.useRef)();return l.current=e,(0,I.o)((function(){var e;null===(e=l.current)||void 0===e||e.call(l)}),[o]),function(){i.current===o&&(i.current+=1,r(i.current))}}var L={width:0,height:0,left:0,top:0,right:0};function M(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function z(e){return String(e).replace(/"/g,"TABS_DQ")}function N(e,t,n,a){return!(!n||a||!1===e||void 0===e&&(!1===t||null===t))}var B=a.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,r=e.locale,i=e.style;return o&&!1!==o.showAdd?a.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null})),O=B;var D=a.forwardRef((function(e,t){var n,o=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var l={};return"object"!==(0,h.Z)(i)||a.isValidElement(i)?l.right=i:l=i,"right"===o&&(n=l.right),"left"===o&&(n=l.left),n?a.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},n):null})),j=n(29171),G=n(72512),A=n(15105),H=a.forwardRef((function(e,t){var n=e.prefixCls,o=e.id,r=e.tabs,i=e.locale,l=e.mobile,c=e.more,d=void 0===c?{}:c,s=e.style,u=e.className,p=e.editable,h=e.tabBarGutter,g=e.rtl,$=e.removeAriaLabel,y=e.onTabClick,k=e.getPopupContainer,x=e.popupClassName,S=(0,a.useState)(!1),_=(0,m.Z)(S,2),w=_[0],C=_[1],E=(0,a.useState)(null),Z=(0,m.Z)(E,2),P=Z[0],R=Z[1],I=d.icon,T=void 0===I?"More":I,L="".concat(o,"-more-popup"),M="".concat(n,"-dropdown"),z=null!==P?"".concat(L,"-").concat(P):null,B=null==i?void 0:i.dropdownAriaLabel;var D=a.createElement(G.ZP,{onClick:function(e){var t=e.key,n=e.domEvent;y(t,n),C(!1)},prefixCls:"".concat(M,"-menu"),id:L,tabIndex:-1,role:"listbox","aria-activedescendant":z,selectedKeys:[P],"aria-label":void 0!==B?B:"expanded dropdown"},r.map((function(e){var t=e.closable,n=e.disabled,r=e.closeIcon,i=e.key,l=e.label,c=N(t,r,p,n);return a.createElement(G.sN,{key:i,id:"".concat(L,"-").concat(i),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(i),disabled:n},a.createElement("span",null,l),c&&a.createElement("button",{type:"button","aria-label":$||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),p.onEdit("remove",{key:t,event:e})}(e,i)}},r||p.removeIcon||"×"))})));function H(e){for(var t=r.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===P}))||0,a=t.length,o=0;ot?"left":"right"})})),ee=(0,m.Z)(U,2),te=ee[0],ne=ee[1],ae=P(0,(function(e,t){!J&&C&&C({direction:e>t?"top":"bottom"})})),oe=(0,m.Z)(ae,2),re=oe[0],ie=oe[1],le=(0,a.useState)([0,0]),ce=(0,m.Z)(le,2),de=ce[0],se=ce[1],ue=(0,a.useState)([0,0]),ve=(0,m.Z)(ue,2),fe=ve[0],be=ve[1],pe=(0,a.useState)([0,0]),me=(0,m.Z)(pe,2),he=me[0],ge=me[1],$e=(0,a.useState)([0,0]),ye=(0,m.Z)($e,2),ke=ye[0],xe=ye[1],Se=function(e){var t=(0,a.useRef)([]),n=(0,a.useState)({}),o=(0,m.Z)(n,2)[1],r=(0,a.useRef)("function"==typeof e?e():e),i=T((function(){var e=r.current;t.current.forEach((function(t){e=t(e)})),t.current=[],r.current=e,o({})}));return[r.current,function(e){t.current.push(e),i()}]}(new Map),_e=(0,m.Z)(Se,2),we=_e[0],Ce=_e[1],Ee=function(e,t,n){return(0,a.useMemo)((function(){for(var n,a=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Z,r=o.left+o.width,i=0;iNe?Ne:e}J&&c?(ze=0,Ne=Math.max(0,Pe-Le)):(ze=Math.min(0,Le-Pe),Ne=0);var Oe=(0,a.useRef)(null),De=(0,a.useState)(),je=(0,m.Z)(De,2),Ge=je[0],Ae=je[1];function He(){Ae(Date.now())}function We(){Oe.current&&clearTimeout(Oe.current)}!function(e,t){var n=(0,a.useState)(),o=(0,m.Z)(n,2),r=o[0],i=o[1],l=(0,a.useState)(0),c=(0,m.Z)(l,2),d=c[0],s=c[1],u=(0,a.useState)(0),v=(0,m.Z)(u,2),f=v[0],b=v[1],p=(0,a.useState)(),h=(0,m.Z)(p,2),g=h[0],$=h[1],y=(0,a.useRef)(),k=(0,a.useRef)(),x=(0,a.useRef)(null);x.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,a=t.screenY;i({x:n,y:a}),window.clearInterval(y.current)},onTouchMove:function(e){if(r){e.preventDefault();var n=e.touches[0],a=n.screenX,o=n.screenY;i({x:a,y:o});var l=a-r.x,c=o-r.y;t(l,c);var u=Date.now();s(u),b(u-d),$({x:l,y:c})}},onTouchEnd:function(){if(r&&(i(null),$(null),g)){var e=g.x/f,n=g.y/f,a=Math.abs(e),o=Math.abs(n);if(Math.max(a,o)<.1)return;var l=e,c=n;y.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(y.current):t(20*(l*=R),20*(c*=R))}),20)}},onWheel:function(e){var n=e.deltaX,a=e.deltaY,o=0,r=Math.abs(n),i=Math.abs(a);r===i?o="x"===k.current?n:a:r>i?(o=n,k.current="x"):(o=a,k.current="y"),t(-o,-o)&&e.preventDefault()}},a.useEffect((function(){function t(e){x.current.onTouchMove(e)}function n(e){x.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){x.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){x.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(V,(function(e,t){function n(e,t){e((function(e){return Be(e+t)}))}return!!Te&&(J?n(ne,e):n(ie,t),We(),He(),!0)})),(0,a.useEffect)((function(){return We(),Ge&&(Oe.current=setTimeout((function(){Ae(0)}),100)),We}),[Ge]);var Xe=function(e,t,n,o,r,i,l){var c,d,s,u=l.tabs,v=l.tabPosition,f=l.rtl;return["top","bottom"].includes(v)?(c="width",d=f?"right":"left",s=Math.abs(n)):(c="height",d="top",s=-n),(0,a.useMemo)((function(){if(!u.length)return[0,0];for(var n=u.length,a=n,o=0;os+t){a=o-1;break}}for(var i=0,l=n-1;l>=0;l-=1)if((e.get(u[l].key)||L)[d]=a?[0,0]:[i,a]}),[e,t,o,r,i,s,v,u.map((function(e){return e.key})).join("_"),f])}(Ee,Le,J?te:re,Pe,Re,Ie,(0,p.Z)((0,p.Z)({},e),{},{tabs:j})),Ke=(0,m.Z)(Xe,2),Fe=Ke[0],Ve=Ke[1],qe=(0,_.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=Ee.get(e)||{width:0,height:0,left:0,right:0,top:0};if(J){var n=te;c?t.rightte+Le&&(n=t.right+t.width-Le):t.left<-te?n=-t.left:t.left+t.width>-te+Le&&(n=-(t.left+t.width-Le)),ie(0),ne(Be(n))}else{var a=re;t.top<-re?a=-t.top:t.top+t.height>-re+Le&&(a=-(t.top+t.height-Le)),ne(0),ie(Be(a))}})),Ye={};"top"===h||"bottom"===h?Ye[c?"marginRight":"marginLeft"]=g:Ye.marginTop=g;var Qe=j.map((function(e,t){var n=e.key;return a.createElement(X,{id:r,prefixCls:B,key:n,tab:e,style:0===t?void 0:Ye,closable:e.closable,editable:s,active:n===l,renderWrapper:$,removeAriaLabel:null==u?void 0:u.removeAriaLabel,onClick:function(e){y(n,e)},onFocus:function(){qe(n),He(),V.current&&(c||(V.current.scrollLeft=0),V.current.scrollTop=0)}})})),Je=function(){return Ce((function(){var e,t=new Map,n=null===(e=q.current)||void 0===e?void 0:e.getBoundingClientRect();return j.forEach((function(e){var a,o=e.key,r=null===(a=q.current)||void 0===a?void 0:a.querySelector('[data-node-key="'.concat(z(o),'"]'));if(r){var i=function(e,t){var n=e.offsetWidth,a=e.offsetHeight,o=e.offsetTop,r=e.offsetLeft,i=e.getBoundingClientRect(),l=i.width,c=i.height,d=i.x,s=i.y;return Math.abs(l-n)<1?[l,c,d-t.x,s-t.y]:[n,a,r,o]}(r,n),l=(0,m.Z)(i,4),c=l[0],d=l[1],s=l[2],u=l[3];t.set(o,{width:c,height:d,left:s,top:u})}})),t}))};(0,a.useEffect)((function(){Je()}),[j.map((function(e){return e.key})).join("_")]);var Ue=T((function(){var e=K(G),t=K(A),n=K(H);se([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var a=K(Q);ge(a);var o=K(Y);xe(o);var r=K(q);be([r[0]-a[0],r[1]-a[1]]),Je()})),et=j.slice(0,Fe),tt=j.slice(Ve+1),nt=[].concat((0,x.Z)(et),(0,x.Z)(tt)),at=Ee.get(l),ot=E({activeTabOffset:at,horizontal:J,indicator:I,rtl:c}).style;(0,a.useEffect)((function(){qe()}),[l,ze,Ne,M(at),M(Ee),J]),(0,a.useEffect)((function(){Ue()}),[c]);var rt,it,lt,ct,dt=!!nt.length,st="".concat(B,"-nav-wrap");return J?c?(it=te>0,rt=te!==Ne):(rt=te<0,it=te!==ze):(lt=re<0,ct=re!==ze),a.createElement(S.Z,{onResize:Ue},a.createElement("div",{ref:(0,w.x1)(t,G),role:"tablist",className:v()("".concat(B,"-nav"),n),style:o,onKeyDown:function(){He()}},a.createElement(D,{ref:A,position:"left",extra:d,prefixCls:B}),a.createElement(S.Z,{onResize:Ue},a.createElement("div",{className:v()(st,(0,b.Z)((0,b.Z)((0,b.Z)((0,b.Z)({},"".concat(st,"-ping-left"),rt),"".concat(st,"-ping-right"),it),"".concat(st,"-ping-top"),lt),"".concat(st,"-ping-bottom"),ct)),ref:V},a.createElement(S.Z,{onResize:Ue},a.createElement("div",{ref:q,className:"".concat(B,"-nav-list"),style:{transform:"translate(".concat(te,"px, ").concat(re,"px)"),transition:Ge?"none":void 0}},Qe,a.createElement(O,{ref:Q,prefixCls:B,locale:u,editable:s,style:(0,p.Z)((0,p.Z)({},0===Qe.length?void 0:Ye),{},{visibility:dt?"hidden":null})}),a.createElement("div",{className:v()("".concat(B,"-ink-bar"),(0,b.Z)({},"".concat(B,"-ink-bar-animated"),i.inkBar)),style:ot}))))),a.createElement(W,(0,f.Z)({},e,{removeAriaLabel:null==u?void 0:u.removeAriaLabel,ref:Y,prefixCls:B,tabs:nt,className:!dt&&Me,tabMoving:!!Ge})),a.createElement(D,{ref:H,position:"right",extra:d,prefixCls:B})))})),q=V,Y=a.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,r=e.style,i=e.id,l=e.active,c=e.tabKey,d=e.children;return a.createElement("div",{id:i&&"".concat(i,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(c),"aria-hidden":!l,style:r,className:v()(n,l&&"".concat(n,"-active"),o),ref:t},d)}));var Q=Y,J=["renderTabBar"],U=["label","key"];var ee=function(e){var t=e.renderTabBar,n=(0,g.Z)(e,J),o=a.useContext(k).tabs;return t?t((0,p.Z)((0,p.Z)({},n),{},{panes:o.map((function(e){var t=e.label,n=e.key,o=(0,g.Z)(e,U);return a.createElement(Q,(0,f.Z)({tab:t,key:n,tabKey:n},o))}))}),q):a.createElement(q,n)},te=n(29372),ne=["key","forceRender","style","className","destroyInactiveTabPane"],ae=function(e){var t=e.id,n=e.activeKey,o=e.animated,r=e.tabPosition,i=e.destroyInactiveTabPane,l=a.useContext(k),c=l.prefixCls,d=l.tabs,s=o.tabPane,u="".concat(c,"-tabpane");return a.createElement("div",{className:v()("".concat(c,"-content-holder"))},a.createElement("div",{className:v()("".concat(c,"-content"),"".concat(c,"-content-").concat(r),(0,b.Z)({},"".concat(c,"-content-animated"),s))},d.map((function(e){var r=e.key,l=e.forceRender,c=e.style,d=e.className,b=e.destroyInactiveTabPane,m=(0,g.Z)(e,ne),h=r===n;return a.createElement(te.ZP,(0,f.Z)({key:r,visible:h,forceRender:l,removeOnLeave:!(!i&&!b),leavedClassName:"".concat(u,"-hidden")},o.tabPaneMotion),(function(e,n){var o=e.style,i=e.className;return a.createElement(Q,(0,f.Z)({},m,{prefixCls:u,id:t,tabKey:r,animated:s,active:h,style:(0,p.Z)((0,p.Z)({},c),o),className:v()(d,i),ref:n}))}))}))))};n(80334);var oe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],re=0,ie=a.forwardRef((function(e,t){var n=e.id,o=e.prefixCls,r=void 0===o?"rc-tabs":o,i=e.className,l=e.items,c=e.direction,d=e.activeKey,s=e.defaultActiveKey,u=e.editable,x=e.animated,S=e.tabPosition,_=void 0===S?"top":S,w=e.tabBarGutter,C=e.tabBarStyle,E=e.tabBarExtraContent,Z=e.locale,P=e.more,R=e.destroyInactiveTabPane,I=e.renderTabBar,T=e.onChange,L=e.onTabClick,M=e.onTabScroll,z=e.getPopupContainer,N=e.popupClassName,B=e.indicator,O=(0,g.Z)(e,oe),D=a.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===(0,h.Z)(e)&&"key"in e}))}),[l]),j="rtl"===c,G=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,p.Z)({inkBar:!0},"object"===(0,h.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(x),A=(0,a.useState)(!1),H=(0,m.Z)(A,2),W=H[0],X=H[1];(0,a.useEffect)((function(){X((0,y.Z)())}),[]);var K=(0,$.Z)((function(){var e;return null===(e=D[0])||void 0===e?void 0:e.key}),{value:d,defaultValue:s}),F=(0,m.Z)(K,2),V=F[0],q=F[1],Y=(0,a.useState)((function(){return D.findIndex((function(e){return e.key===V}))})),Q=(0,m.Z)(Y,2),J=Q[0],U=Q[1];(0,a.useEffect)((function(){var e,t=D.findIndex((function(e){return e.key===V}));-1===t&&(t=Math.max(0,Math.min(J,D.length-1)),q(null===(e=D[t])||void 0===e?void 0:e.key));U(t)}),[D.map((function(e){return e.key})).join("_"),V,J]);var te=(0,$.Z)(null,{value:n}),ne=(0,m.Z)(te,2),ie=ne[0],le=ne[1];(0,a.useEffect)((function(){n||(le("rc-tabs-".concat(re)),re+=1)}),[]);var ce={id:ie,activeKey:V,animated:G,tabPosition:_,rtl:j,mobile:W},de=(0,p.Z)((0,p.Z)({},ce),{},{editable:u,locale:Z,more:P,tabBarGutter:w,onTabClick:function(e,t){null==L||L(e,t);var n=e!==V;q(e),n&&(null==T||T(e))},onTabScroll:M,extra:E,style:C,panes:null,getPopupContainer:z,popupClassName:N,indicator:B});return a.createElement(k.Provider,{value:{tabs:D,prefixCls:r}},a.createElement("div",(0,f.Z)({ref:t,id:n,className:v()(r,"".concat(r,"-").concat(_),(0,b.Z)((0,b.Z)((0,b.Z)({},"".concat(r,"-mobile"),W),"".concat(r,"-editable"),u),"".concat(r,"-rtl"),j),i)},O),a.createElement(ee,(0,f.Z)({},de,{renderTabBar:I})),a.createElement(ae,(0,f.Z)({destroyInactiveTabPane:R},ce,{animated:G}))))}));var le=ie,ce=n(53124),de=n(35792),se=n(98675),ue=n(33603);const ve={motionAppear:!1,motionEnter:!0,motionLeave:!0};var fe=n(50344),be=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o{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,$e.oN)(e,"slide-up"),(0,$e.oN)(e,"slide-down")]]};const ke=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:a,cardGutter:o,colorBorderSecondary:r,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:a,border:`${(0,pe.bf)(e.lineWidth)} ${e.lineType} ${r}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,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,pe.bf)(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,pe.bf)(e.borderRadiusLG)} ${(0,pe.bf)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,pe.bf)(e.borderRadiusLG)} ${(0,pe.bf)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,pe.bf)(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,pe.bf)(e.borderRadiusLG)} 0 0 ${(0,pe.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,pe.bf)(e.borderRadiusLG)} ${(0,pe.bf)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},xe=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:a}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,me.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,pe.bf)(a)} 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({},me.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,pe.bf)(e.paddingXXS)} ${(0,pe.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"}}})}})}},Se=e=>{const{componentCls:t,margin:n,colorBorderSecondary:a,horizontalMargin:o,verticalItemPadding:r,verticalItemMargin:i,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,pe.bf)(e.lineWidth)} ${e.lineType} ${a}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n 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,\n > 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:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:r,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${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,pe.bf)(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,pe.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:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,pe.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},_e=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:r}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,pe.bf)(e.borderRadius)} ${(0,pe.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,pe.bf)(e.borderRadius)} ${(0,pe.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,pe.bf)(e.borderRadius)} ${(0,pe.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,pe.bf)(e.borderRadius)} 0 0 ${(0,pe.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a}}}}}},we=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:a,iconCls:o,tabsHorizontalItemMargin:r,horizontalItemPadding:i,itemSelectedColor:l,itemColor:c}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,me.Qy)(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${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:a},[`&${d}-active ${d}-btn`]:{color:l,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 ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:r}}}},Ce=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:a,cardGutter:o,calc:r}=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}},[a]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,pe.bf)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,pe.bf)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,pe.bf)(r(e.marginXXS).mul(-1).equal())},[a]:{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:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ee=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:a,cardGutter:o,itemHoverColor:r,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,me.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:a,minHeight:a,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${(0,pe.bf)(e.paddingXS)}`,background:"transparent",border:`${(0,pe.bf)(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${(0,pe.bf)(e.borderRadiusLG)} ${(0,pe.bf)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:r},"&:active, &:focus:not(:focus-visible)":{color:i}},(0,me.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),we(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"}}}}}};var Ze=(0,he.I$)("Tabs",(e=>{const t=(0,ge.IX)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,pe.bf)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,pe.bf)(e.horizontalItemGutter)}`});return[_e(t),Ce(t),Se(t),xe(t),ke(t),Ee(t),ye(t)]}),(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:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}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 Pe=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o{var t,n,i,l,c,d,u,f,b,p,m;const{type:h,className:g,rootClassName:$,size:y,onEdit:k,hideAdd:x,centered:S,addIcon:_,removeIcon:w,moreIcon:C,more:E,popupClassName:Z,children:P,items:R,animated:I,style:T,indicatorSize:L,indicator:M}=e,z=Pe(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:N}=z,{direction:B,tabs:O,getPrefixCls:D,getPopupContainer:j}=a.useContext(ce.E_),G=D("tabs",N),A=(0,de.Z)(G),[H,W,X]=Ze(G,A);let K;"editable-card"===h&&(K={onEdit:(e,t)=>{let{key:n,event:a}=t;null==k||k("add"===e?a:n,e)},removeIcon:null!==(t=null!=w?w:null==O?void 0:O.removeIcon)&&void 0!==t?t:a.createElement(o.Z,null),addIcon:(null!=_?_:null==O?void 0:O.addIcon)||a.createElement(s,null),showAdd:!0!==x});const F=D();const V=(0,se.Z)(y),q=function(e,t){return e||function(e){return e.filter((e=>e))}((0,fe.Z)(t).map((e=>{if(a.isValidElement(e)){const{key:t,props:n}=e,a=n||{},{tab:o}=a,r=be(a,["tab"]);return Object.assign(Object.assign({key:String(t)},r),{label:o})}return null})))}(R,P),Y=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},ve),{motionName:(0,ue.m)(e,"switch")})),t}(G,I),Q=Object.assign(Object.assign({},null==O?void 0:O.style),T),J={align:null!==(n=null==M?void 0:M.align)&&void 0!==n?n:null===(i=null==O?void 0:O.indicator)||void 0===i?void 0:i.align,size:null!==(u=null!==(c=null!==(l=null==M?void 0:M.size)&&void 0!==l?l:L)&&void 0!==c?c:null===(d=null==O?void 0:O.indicator)||void 0===d?void 0:d.size)&&void 0!==u?u:null==O?void 0:O.indicatorSize};return H(a.createElement(le,Object.assign({direction:B,getPopupContainer:j},z,{items:q,className:v()({[`${G}-${V}`]:V,[`${G}-card`]:["card","editable-card"].includes(h),[`${G}-editable-card`]:"editable-card"===h,[`${G}-centered`]:S},null==O?void 0:O.className,g,$,W,X,A),popupClassName:v()(Z,W,X,A),style:Q,editable:K,more:Object.assign({icon:null!==(m=null!==(p=null!==(b=null===(f=null==O?void 0:O.more)||void 0===f?void 0:f.icon)&&void 0!==b?b:null==O?void 0:O.moreIcon)&&void 0!==p?p:C)&&void 0!==m?m:a.createElement(r.Z,null),transitionName:`${F}-slide-up`},E),prefixCls:G,animated:Y,indicator:J})))};Re.TabPane=()=>null;var Ie=Re}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/1941.faf190bf.async.js b/starter/src/main/resources/templates/admin/1941.faf190bf.async.js deleted file mode 100644 index 1f05f55c..00000000 --- a/starter/src/main/resources/templates/admin/1941.faf190bf.async.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1941],{11941:function(qa,xt,b){b.d(xt,{Z:function(){return Oa}});var n=b(67294),Ct=b(84481),Tt=b(35872),ne=b(87462),Pt=b(42110),Et=b(93771),Rt=function(t,a){return n.createElement(Et.Z,(0,ne.Z)({},t,{ref:a,icon:Pt.Z}))},It=n.forwardRef(Rt),wt=It,Lt=b(93967),K=b.n(Lt),V=b(4942),J=b(1413),N=b(97685),Ze=b(71002),ye=b(91),Ge=b(21770),Zt=b(31131),xe=(0,n.createContext)(null),He=b(74902),Ne=b(9220),Nt=b(66680),zt=b(42550),je=b(75164),Mt=function(t){var a=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,v=(0,n.useState)(),f=(0,N.Z)(v,2),x=f[0],w=f[1],B=(0,n.useRef)(),R=n.useCallback(function(m){return typeof o=="function"?o(m):typeof o=="number"?o:m},[o]);function z(){je.Z.cancel(B.current)}return(0,n.useEffect)(function(){var m={};if(a)if(r){m.width=R(a.width);var u=i?"right":"left";d==="start"&&(m[u]=a[u]),d==="center"&&(m[u]=a[u]+a.width/2,m.transform=i?"translateX(50%)":"translateX(-50%)"),d==="end"&&(m[u]=a[u]+a.width,m.transform="translateX(-100%)")}else m.height=R(a.height),d==="start"&&(m.top=a.top),d==="center"&&(m.top=a.top+a.height/2,m.transform="translateY(-50%)"),d==="end"&&(m.top=a.top+a.height,m.transform="translateY(-100%)");return z(),B.current=(0,je.Z)(function(){w(m)}),z},[a,r,i,d,R]),{style:x}},Bt=Mt,Xe={width:0,height:0,left:0,top:0};function Ot(e,t,a){return(0,n.useMemo)(function(){for(var r,i=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Xe,c=l.left+l.width,o=0;oP?(T=L,G.current="x"):(T=S,G.current="y"),t(-T,-T)&&$.preventDefault()}var C=(0,n.useRef)(null);C.current={onTouchStart:I,onTouchMove:M,onTouchEnd:A,onWheel:D},n.useEffect(function(){function $(h){C.current.onTouchStart(h)}function L(h){C.current.onTouchMove(h)}function S(h){C.current.onTouchEnd(h)}function T(h){C.current.onWheel(h)}return document.addEventListener("touchmove",L,{passive:!1}),document.addEventListener("touchend",S,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",T,{passive:!1}),function(){document.removeEventListener("touchmove",L),document.removeEventListener("touchend",S)}},[])}var Dt=b(8410);function Fe(e){var t=(0,n.useState)(0),a=(0,N.Z)(t,2),r=a[0],i=a[1],l=(0,n.useRef)(0),c=(0,n.useRef)();return c.current=e,(0,Dt.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 Wt(e){var t=(0,n.useRef)([]),a=(0,n.useState)({}),r=(0,N.Z)(a,2),i=r[1],l=(0,n.useRef)(typeof e=="function"?e():e),c=Fe(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 Ue={width:0,height:0,left:0,top:0,right:0};function Gt(e,t,a,r,i,l,c){var o=c.tabs,s=c.tabPosition,d=c.rtl,v,f,x;return["top","bottom"].includes(s)?(v="width",f=d?"right":"left",x=Math.abs(a)):(v="height",f="top",x=-a),(0,n.useMemo)(function(){if(!o.length)return[0,0];for(var w=o.length,B=w,R=0;Rx+t){B=R-1;break}}for(var m=0,u=w-1;u>=0;u-=1){var I=e.get(o[u].key)||Ue;if(I[f]=B?[0,0]:[m,B]},[e,t,r,i,l,x,s,o.map(function(w){return w.key}).join("_"),d])}function Ye(e){var t;return e instanceof Map?(t={},e.forEach(function(a,r){t[r]=a})):t=e,JSON.stringify(t)}var Ht="TABS_DQ";function Qe(e){return String(e).replace(/"/g,Ht)}function Je(e,t,a,r){return!(!a||r||e===!1||e===void 0&&(t===!1||t===null))}var jt=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.editable,i=e.locale,l=e.style;return!r||r.showAdd===!1?null:n.createElement("button",{ref:t,type:"button",className:"".concat(a,"-nav-add"),style:l,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(o){r.onEdit("add",{event:o})}},r.addIcon||"+")}),qe=jt,Xt=n.forwardRef(function(e,t){var a=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var l,c={};return(0,Ze.Z)(i)==="object"&&!n.isValidElement(i)?c=i:c.right=i,a==="right"&&(l=c.right),a==="left"&&(l=c.left),l?n.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},l):null}),et=Xt,kt=b(29171),tt=b(72512),te=b(15105),Kt=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.id,i=e.tabs,l=e.locale,c=e.mobile,o=e.more,s=o===void 0?{}:o,d=e.style,v=e.className,f=e.editable,x=e.tabBarGutter,w=e.rtl,B=e.removeAriaLabel,R=e.onTabClick,z=e.getPopupContainer,m=e.popupClassName,u=(0,n.useState)(!1),I=(0,N.Z)(u,2),M=I[0],A=I[1],G=(0,n.useState)(null),D=(0,N.Z)(G,2),C=D[0],$=D[1],L=s.icon,S=L===void 0?"More":L,T="".concat(r,"-more-popup"),h="".concat(a,"-dropdown"),P=C!==null?"".concat(T,"-").concat(C):null,Y=l==null?void 0:l.dropdownAriaLabel;function oe(E,_){E.preventDefault(),E.stopPropagation(),f.onEdit("remove",{key:_,event:E})}var p=n.createElement(tt.ZP,{onClick:function(_){var j=_.key,k=_.domEvent;R(j,k),A(!1)},prefixCls:"".concat(h,"-menu"),id:T,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[C],"aria-label":Y!==void 0?Y:"expanded dropdown"},i.map(function(E){var _=E.closable,j=E.disabled,k=E.closeIcon,U=E.key,ee=E.label,q=Je(_,k,f,j);return n.createElement(tt.sN,{key:U,id:"".concat(T,"-").concat(U),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(U),disabled:j},n.createElement("span",null,ee),q&&n.createElement("button",{type:"button","aria-label":B||"remove",tabIndex:0,className:"".concat(h,"-menu-item-remove"),onClick:function(ce){ce.stopPropagation(),oe(ce,U)}},k||f.removeIcon||"\xD7"))}));function X(E){for(var _=i.filter(function(q){return!q.disabled}),j=_.findIndex(function(q){return q.key===C})||0,k=_.length,U=0;Uy?"left":"right"})}),h=(0,N.Z)(T,2),P=h[0],Y=h[1],oe=ke(0,function(O,y){!S&&R&&R({direction:O>y?"top":"bottom"})}),p=(0,N.Z)(oe,2),X=p[0],re=p[1],H=(0,n.useState)([0,0]),F=(0,N.Z)(H,2),le=F[0],E=F[1],_=(0,n.useState)([0,0]),j=(0,N.Z)(_,2),k=j[0],U=j[1],ee=(0,n.useState)([0,0]),q=(0,N.Z)(ee,2),me=q[0],ce=q[1],ue=(0,n.useState)([0,0]),ge=(0,N.Z)(ue,2),Z=ge[0],ie=ge[1],pe=Wt(new Map),lt=(0,N.Z)(pe,2),_a=lt[0],Aa=lt[1],Pe=Ot(I,_a,k[0]),ze=Te(le,S),$e=Te(k,S),Me=Te(me,S),ct=Te(Z,S),st=ze<$e+Me,ae=st?ze-ct:ze-Me,Da="".concat(u,"-nav-operations-hidden"),se=0,ve=0;S&&o?(se=0,ve=Math.max(0,$e-ae)):(se=Math.min(0,ae-$e),ve=0);function Be(O){return Ove?ve:O}var Oe=(0,n.useRef)(null),Wa=(0,n.useState)(),dt=(0,N.Z)(Wa,2),Ee=dt[0],ut=dt[1];function _e(){ut(Date.now())}function Ae(){Oe.current&&clearTimeout(Oe.current)}At(D,function(O,y){function W(Q,fe){Q(function(de){var we=Be(de+fe);return we})}return st?(S?W(Y,O):W(re,y),Ae(),_e(),!0):!1}),(0,n.useEffect)(function(){return Ae(),Ee&&(Oe.current=setTimeout(function(){ut(0)},100)),Ae},[Ee]);var Ga=Gt(Pe,ae,S?P:X,$e,Me,ct,(0,J.Z)((0,J.Z)({},e),{},{tabs:I})),vt=(0,N.Z)(Ga,2),Ha=vt[0],ja=vt[1],ft=(0,Nt.Z)(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,y=Pe.get(O)||{width:0,height:0,left:0,right:0,top:0};if(S){var W=P;o?y.rightP+ae&&(W=y.right+y.width-ae):y.left<-P?W=-y.left:y.left+y.width>-P+ae&&(W=-(y.left+y.width-ae)),re(0),Y(Be(W))}else{var Q=X;y.top<-X?Q=-y.top:y.top+y.height>-X+ae&&(Q=-(y.top+y.height-ae)),Y(0),re(Be(Q))}}),Re={};f==="top"||f==="bottom"?Re[o?"marginRight":"marginLeft"]=x:Re.marginTop=x;var bt=I.map(function(O,y){var W=O.key;return n.createElement(Ut,{id:i,prefixCls:u,key:W,tab:O,style:y===0?void 0:Re,closable:O.closable,editable:d,active:W===c,renderWrapper:w,removeAriaLabel:v==null?void 0:v.removeAriaLabel,onClick:function(fe){B(W,fe)},onFocus:function(){ft(W),_e(),D.current&&(o||(D.current.scrollLeft=0),D.current.scrollTop=0)}})}),mt=function(){return Aa(function(){var y,W=new Map,Q=(y=C.current)===null||y===void 0?void 0:y.getBoundingClientRect();return I.forEach(function(fe){var de,we=fe.key,yt=(de=C.current)===null||de===void 0?void 0:de.querySelector('[data-node-key="'.concat(Qe(we),'"]'));if(yt){var Fa=Yt(yt,Q),Le=(0,N.Z)(Fa,4),Ua=Le[0],Ya=Le[1],Qa=Le[2],Ja=Le[3];W.set(we,{width:Ua,height:Ya,left:Qa,top:Ja})}}),W})};(0,n.useEffect)(function(){mt()},[I.map(function(O){return O.key}).join("_")]);var Ie=Fe(function(){var O=be(M),y=be(A),W=be(G);E([O[0]-y[0]-W[0],O[1]-y[1]-W[1]]);var Q=be(L);ce(Q);var fe=be($);ie(fe);var de=be(C);U([de[0]-Q[0],de[1]-Q[1]]),mt()}),Xa=I.slice(0,Ha),ka=I.slice(ja+1),gt=[].concat((0,He.Z)(Xa),(0,He.Z)(ka)),ht=Pe.get(c),Ka=Bt({activeTabOffset:ht,horizontal:S,indicator:z,rtl:o}),Va=Ka.style;(0,n.useEffect)(function(){ft()},[c,se,ve,Ye(ht),Ye(Pe),S]),(0,n.useEffect)(function(){Ie()},[o]);var pt=!!gt.length,Se="".concat(u,"-nav-wrap"),De,We,$t,St;return S?o?(We=P>0,De=P!==ve):(De=P<0,We=P!==se):($t=X<0,St=X!==se),n.createElement(Ne.Z,{onResize:Ie},n.createElement("div",{ref:(0,zt.x1)(t,M),role:"tablist",className:K()("".concat(u,"-nav"),a),style:r,onKeyDown:function(){_e()}},n.createElement(et,{ref:A,position:"left",extra:s,prefixCls:u}),n.createElement(Ne.Z,{onResize:Ie},n.createElement("div",{className:K()(Se,(0,V.Z)((0,V.Z)((0,V.Z)((0,V.Z)({},"".concat(Se,"-ping-left"),De),"".concat(Se,"-ping-right"),We),"".concat(Se,"-ping-top"),$t),"".concat(Se,"-ping-bottom"),St)),ref:D},n.createElement(Ne.Z,{onResize:Ie},n.createElement("div",{ref:C,className:"".concat(u,"-nav-list"),style:{transform:"translate(".concat(P,"px, ").concat(X,"px)"),transition:Ee?"none":void 0}},bt,n.createElement(qe,{ref:L,prefixCls:u,locale:v,editable:d,style:(0,J.Z)((0,J.Z)({},bt.length===0?void 0:Re),{},{visibility:pt?"hidden":null})}),n.createElement("div",{className:K()("".concat(u,"-ink-bar"),(0,V.Z)({},"".concat(u,"-ink-bar-animated"),l.inkBar)),style:Va}))))),n.createElement(Vt,(0,ne.Z)({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:$,prefixCls:u,tabs:gt,className:!pt&&Da,tabMoving:!!Ee})),n.createElement(et,{ref:G,position:"right",extra:s,prefixCls:u})))}),at=Qt,Jt=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.className,i=e.style,l=e.id,c=e.active,o=e.tabKey,s=e.children;return n.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:K()(a,c&&"".concat(a,"-active"),r),ref:t},s)}),nt=Jt,qt=["renderTabBar"],ea=["label","key"],ta=function(t){var a=t.renderTabBar,r=(0,ye.Z)(t,qt),i=n.useContext(xe),l=i.tabs;if(a){var c=(0,J.Z)((0,J.Z)({},r),{},{panes:l.map(function(o){var s=o.label,d=o.key,v=(0,ye.Z)(o,ea);return n.createElement(nt,(0,ne.Z)({tab:s,key:d,tabKey:d},v))})});return a(c,at)}return n.createElement(at,r)},aa=ta,na=b(29372),ra=["key","forceRender","style","className","destroyInactiveTabPane"],ia=function(t){var a=t.id,r=t.activeKey,i=t.animated,l=t.tabPosition,c=t.destroyInactiveTabPane,o=n.useContext(xe),s=o.prefixCls,d=o.tabs,v=i.tabPane,f="".concat(s,"-tabpane");return n.createElement("div",{className:K()("".concat(s,"-content-holder"))},n.createElement("div",{className:K()("".concat(s,"-content"),"".concat(s,"-content-").concat(l),(0,V.Z)({},"".concat(s,"-content-animated"),v))},d.map(function(x){var w=x.key,B=x.forceRender,R=x.style,z=x.className,m=x.destroyInactiveTabPane,u=(0,ye.Z)(x,ra),I=w===r;return n.createElement(na.ZP,(0,ne.Z)({key:w,visible:I,forceRender:B,removeOnLeave:!!(c||m),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(M,A){var G=M.style,D=M.className;return n.createElement(nt,(0,ne.Z)({},u,{prefixCls:f,id:a,tabKey:w,animated:v,active:I,style:(0,J.Z)((0,J.Z)({},R),G),className:K()(z,D),ref:A}))})})))},oa=ia,en=b(80334);function la(){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,J.Z)({inkBar:!0},(0,Ze.Z)(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var ca=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],rt=0,sa=n.forwardRef(function(e,t){var a=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,v=e.editable,f=e.animated,x=e.tabPosition,w=x===void 0?"top":x,B=e.tabBarGutter,R=e.tabBarStyle,z=e.tabBarExtraContent,m=e.locale,u=e.more,I=e.destroyInactiveTabPane,M=e.renderTabBar,A=e.onChange,G=e.onTabClick,D=e.onTabScroll,C=e.getPopupContainer,$=e.popupClassName,L=e.indicator,S=(0,ye.Z)(e,ca),T=n.useMemo(function(){return(c||[]).filter(function(Z){return Z&&(0,Ze.Z)(Z)==="object"&&"key"in Z})},[c]),h=o==="rtl",P=la(f),Y=(0,n.useState)(!1),oe=(0,N.Z)(Y,2),p=oe[0],X=oe[1];(0,n.useEffect)(function(){X((0,Zt.Z)())},[]);var re=(0,Ge.Z)(function(){var Z;return(Z=T[0])===null||Z===void 0?void 0:Z.key},{value:s,defaultValue:d}),H=(0,N.Z)(re,2),F=H[0],le=H[1],E=(0,n.useState)(function(){return T.findIndex(function(Z){return Z.key===F})}),_=(0,N.Z)(E,2),j=_[0],k=_[1];(0,n.useEffect)(function(){var Z=T.findIndex(function(pe){return pe.key===F});if(Z===-1){var ie;Z=Math.max(0,Math.min(j,T.length-1)),le((ie=T[Z])===null||ie===void 0?void 0:ie.key)}k(Z)},[T.map(function(Z){return Z.key}).join("_"),F,j]);var U=(0,Ge.Z)(null,{value:a}),ee=(0,N.Z)(U,2),q=ee[0],me=ee[1];(0,n.useEffect)(function(){a||(me("rc-tabs-".concat(rt)),rt+=1)},[]);function ce(Z,ie){G==null||G(Z,ie);var pe=Z!==F;le(Z),pe&&(A==null||A(Z))}var ue={id:q,activeKey:F,animated:P,tabPosition:w,rtl:h,mobile:p},ge=(0,J.Z)((0,J.Z)({},ue),{},{editable:v,locale:m,more:u,tabBarGutter:B,onTabClick:ce,onTabScroll:D,extra:z,style:R,panes:null,getPopupContainer:C,popupClassName:$,indicator:L});return n.createElement(xe.Provider,{value:{tabs:T,prefixCls:i}},n.createElement("div",(0,ne.Z)({ref:t,id:a,className:K()(i,"".concat(i,"-").concat(w),(0,V.Z)((0,V.Z)((0,V.Z)({},"".concat(i,"-mobile"),p),"".concat(i,"-editable"),v),"".concat(i,"-rtl"),h),l)},S),n.createElement(aa,(0,ne.Z)({},ge,{renderTabBar:M})),n.createElement(oa,(0,ne.Z)({destroyInactiveTabPane:I},ue,{animated:P}))))}),da=sa,ua=da,va=b(53124),fa=b(35792),ba=b(98675),ma=b(33603);const ga={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ha(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},a;return t===!1?a={inkBar:!1,tabPane:!1}:t===!0?a={inkBar:!0,tabPane:!0}:a=Object.assign({inkBar:!0},typeof t=="object"?t:{}),a.tabPane&&(a.tabPaneMotion=Object.assign(Object.assign({},ga),{motionName:(0,ma.m)(e,"switch")})),a}var pa=b(50344),$a=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 i=0,r=Object.getOwnPropertySymbols(e);it)}function ya(e,t){if(e)return e;const a=(0,pa.Z)(t).map(r=>{if(n.isValidElement(r)){const{key:i,props:l}=r,c=l||{},{tab:o}=c,s=$a(c,["tab"]);return Object.assign(Object.assign({key:String(i)},s),{label:o})}return null});return Sa(a)}var g=b(85982),he=b(14747),xa=b(27036),Ca=b(45503),it=b(67771),Ta=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[(0,it.oN)(e,"slide-up"),(0,it.oN)(e,"slide-down")]]};const Pa=e=>{const{componentCls:t,tabsCardPadding:a,cardBg:r,cardGutter:i,colorBorderSecondary:l,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:r,border:`${(0,g.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,g.bf)(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,g.bf)(e.borderRadiusLG)} ${(0,g.bf)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,g.bf)(e.borderRadiusLG)} ${(0,g.bf)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,g.bf)(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,g.bf)(e.borderRadiusLG)} 0 0 ${(0,g.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,g.bf)(e.borderRadiusLG)} ${(0,g.bf)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Ea=e=>{const{componentCls:t,itemHoverColor:a,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,he.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,g.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({},he.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,g.bf)(e.paddingXXS)} ${(0,g.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:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Ra=e=>{const{componentCls:t,margin:a,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,g.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:a,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,g.bf)(o(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,g.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,g.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ia=e=>{const{componentCls:t,cardPaddingSM:a,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:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,g.bf)(e.borderRadius)} ${(0,g.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,g.bf)(e.borderRadius)} ${(0,g.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,g.bf)(e.borderRadius)} ${(0,g.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,g.bf)(e.borderRadius)} 0 0 ${(0,g.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},wa=e=>{const{componentCls:t,itemActiveColor:a,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:a}},(0,he.Qy)(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${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}}}},La=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:a,iconCls:r,cardGutter:i,calc:l}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:a},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,g.bf)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,g.bf)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,g.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"}}}}},Za=e=>{const{componentCls:t,tabsCardPadding:a,cardHeight:r,cardGutter:i,itemHoverColor:l,itemActiveColor:c,colorBorderSecondary:o}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,he.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:a,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,g.bf)(e.paddingXS)}`,background:"transparent",border:`${(0,g.bf)(e.lineWidth)} ${e.lineType} ${o}`,borderRadius:`${(0,g.bf)(e.borderRadiusLG)} ${(0,g.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,he.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),wa(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"}}}}}},Na=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 za=(0,xa.I$)("Tabs",e=>{const t=(0,Ca.TS)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,g.bf)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,g.bf)(e.horizontalItemGutter)}`});return[Ia(t),La(t),Ra(t),Ea(t),Pa(t),Za(t),Ta(t)]},Na),Ma=()=>null,Ba=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 i=0,r=Object.getOwnPropertySymbols(e);i{var t,a,r,i,l,c,o,s,d,v,f;const{type:x,className:w,rootClassName:B,size:R,onEdit:z,hideAdd:m,centered:u,addIcon:I,removeIcon:M,moreIcon:A,more:G,popupClassName:D,children:C,items:$,animated:L,style:S,indicatorSize:T,indicator:h}=e,P=Ba(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:Y}=P,{direction:oe,tabs:p,getPrefixCls:X,getPopupContainer:re}=n.useContext(va.E_),H=X("tabs",Y),F=(0,fa.Z)(H),[le,E,_]=za(H,F);let j;x==="editable-card"&&(j={onEdit:(ue,ge)=>{let{key:Z,event:ie}=ge;z==null||z(ue==="add"?ie:Z,ue)},removeIcon:(t=M!=null?M:p==null?void 0:p.removeIcon)!==null&&t!==void 0?t:n.createElement(Ct.Z,null),addIcon:(I!=null?I:p==null?void 0:p.addIcon)||n.createElement(wt,null),showAdd:m!==!0});const k=X(),U=(0,ba.Z)(R),ee=ya($,C),q=ha(H,L),me=Object.assign(Object.assign({},p==null?void 0:p.style),S),ce={align:(a=h==null?void 0:h.align)!==null&&a!==void 0?a:(r=p==null?void 0:p.indicator)===null||r===void 0?void 0:r.align,size:(o=(l=(i=h==null?void 0:h.size)!==null&&i!==void 0?i:T)!==null&&l!==void 0?l:(c=p==null?void 0:p.indicator)===null||c===void 0?void 0:c.size)!==null&&o!==void 0?o:p==null?void 0:p.indicatorSize};return le(n.createElement(ua,Object.assign({direction:oe,getPopupContainer:re},P,{items:ee,className:K()({[`${H}-${U}`]:U,[`${H}-card`]:["card","editable-card"].includes(x),[`${H}-editable-card`]:x==="editable-card",[`${H}-centered`]:u},p==null?void 0:p.className,w,B,E,_,F),popupClassName:K()(D,E,_,F),style:me,editable:j,more:Object.assign({icon:(f=(v=(d=(s=p==null?void 0:p.more)===null||s===void 0?void 0:s.icon)!==null&&d!==void 0?d:p==null?void 0:p.moreIcon)!==null&&v!==void 0?v:A)!==null&&f!==void 0?f:n.createElement(Tt.Z,null),transitionName:`${k}-slide-up`},G),prefixCls:H,animated:q,indicator:ce})))};ot.TabPane=Ma;var Oa=ot}}]); diff --git a/starter/src/main/resources/templates/admin/1966.65395dca.async.js b/starter/src/main/resources/templates/admin/1966.65395dca.async.js new file mode 100644 index 00000000..03e75a4a --- /dev/null +++ b/starter/src/main/resources/templates/admin/1966.65395dca.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1966],{91966:function(e,t,r){r.r(t),r.d(t,{default:function(){return o}});var o=Object.freeze({colors:{"activityBar.background":"#003847","badge.background":"#047aa6","button.background":"#2AA19899","debugExceptionWidget.background":"#00212B","debugExceptionWidget.border":"#AB395B","debugToolBar.background":"#00212B","dropdown.background":"#00212B","dropdown.border":"#2AA19899","editor.background":"#002B36","editor.foreground":"#839496","editor.lineHighlightBackground":"#073642","editor.selectionBackground":"#274642","editor.selectionHighlightBackground":"#005A6FAA","editor.wordHighlightBackground":"#004454AA","editor.wordHighlightStrongBackground":"#005A6FAA","editorBracketHighlight.foreground1":"#cdcdcdff","editorBracketHighlight.foreground2":"#b58900ff","editorBracketHighlight.foreground3":"#d33682ff","editorCursor.foreground":"#D30102","editorGroup.border":"#00212B","editorGroup.dropBackground":"#2AA19844","editorGroupHeader.tabsBackground":"#004052","editorHoverWidget.background":"#004052","editorIndentGuide.activeBackground":"#C3E1E180","editorIndentGuide.background":"#93A1A180","editorLineNumber.activeForeground":"#949494","editorMarkerNavigationError.background":"#AB395B","editorMarkerNavigationWarning.background":"#5B7E7A","editorWhitespace.foreground":"#93A1A180","editorWidget.background":"#00212B",errorForeground:"#ffeaea",focusBorder:"#2AA19899","input.background":"#003847","input.foreground":"#93A1A1","input.placeholderForeground":"#93A1A1AA","inputOption.activeBorder":"#2AA19899","inputValidation.errorBackground":"#571b26","inputValidation.errorBorder":"#a92049","inputValidation.infoBackground":"#052730","inputValidation.infoBorder":"#363b5f","inputValidation.warningBackground":"#5d5938","inputValidation.warningBorder":"#9d8a5e","list.activeSelectionBackground":"#005A6F","list.dropBackground":"#00445488","list.highlightForeground":"#1ebcc5","list.hoverBackground":"#004454AA","list.inactiveSelectionBackground":"#00445488","minimap.selectionHighlight":"#274642","panel.border":"#2b2b4a","peekView.border":"#2b2b4a","peekViewEditor.background":"#10192c","peekViewEditor.matchHighlightBackground":"#7744AA40","peekViewResult.background":"#00212B","peekViewTitle.background":"#00212B","pickerGroup.border":"#2AA19899","pickerGroup.foreground":"#2AA19899","ports.iconRunningProcessForeground":"#369432","progressBar.background":"#047aa6","quickInputList.focusBackground":"#005A6F","selection.background":"#2AA19899","sideBar.background":"#00212B","sideBarTitle.foreground":"#93A1A1","statusBar.background":"#00212B","statusBar.debuggingBackground":"#00212B","statusBar.foreground":"#93A1A1","statusBar.noFolderBackground":"#00212B","statusBarItem.prominentBackground":"#003847","statusBarItem.prominentHoverBackground":"#003847","statusBarItem.remoteBackground":"#2AA19899","tab.activeBackground":"#002B37","tab.activeForeground":"#d6dbdb","tab.border":"#003847","tab.inactiveBackground":"#004052","tab.inactiveForeground":"#93A1A1","tab.lastPinnedBorder":"#2AA19844","terminal.ansiBlack":"#073642","terminal.ansiBlue":"#268bd2","terminal.ansiBrightBlack":"#002b36","terminal.ansiBrightBlue":"#839496","terminal.ansiBrightCyan":"#93a1a1","terminal.ansiBrightGreen":"#586e75","terminal.ansiBrightMagenta":"#6c71c4","terminal.ansiBrightRed":"#cb4b16","terminal.ansiBrightWhite":"#fdf6e3","terminal.ansiBrightYellow":"#657b83","terminal.ansiCyan":"#2aa198","terminal.ansiGreen":"#859900","terminal.ansiMagenta":"#d33682","terminal.ansiRed":"#dc322f","terminal.ansiWhite":"#eee8d5","terminal.ansiYellow":"#b58900","titleBar.activeBackground":"#002C39"},displayName:"Solarized Dark",name:"solarized-dark",semanticHighlighting:!0,tokenColors:[{settings:{foreground:"#839496"}},{scope:["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],settings:{foreground:"#839496"}},{scope:"comment",settings:{fontStyle:"italic",foreground:"#586E75"}},{scope:"string",settings:{foreground:"#2AA198"}},{scope:"string.regexp",settings:{foreground:"#DC322F"}},{scope:"constant.numeric",settings:{foreground:"#D33682"}},{scope:["variable.language","variable.other"],settings:{foreground:"#268BD2"}},{scope:"keyword",settings:{foreground:"#859900"}},{scope:"storage",settings:{fontStyle:"bold",foreground:"#93A1A1"}},{scope:["entity.name.class","entity.name.type","entity.name.namespace","entity.name.scope-resolution"],settings:{fontStyle:"",foreground:"#CB4B16"}},{scope:"entity.name.function",settings:{foreground:"#268BD2"}},{scope:"punctuation.definition.variable",settings:{foreground:"#859900"}},{scope:["punctuation.section.embedded.begin","punctuation.section.embedded.end"],settings:{foreground:"#DC322F"}},{scope:["constant.language","meta.preprocessor"],settings:{foreground:"#B58900"}},{scope:["support.function.construct","keyword.other.new"],settings:{foreground:"#CB4B16"}},{scope:["constant.character","constant.other"],settings:{foreground:"#CB4B16"}},{scope:"entity.other.inherited-class",settings:{foreground:"#6C71C4"}},{scope:"variable.parameter",settings:{}},{scope:"entity.name.tag",settings:{foreground:"#268BD2"}},{scope:"punctuation.definition.tag",settings:{foreground:"#586E75"}},{scope:"entity.other.attribute-name",settings:{foreground:"#93A1A1"}},{scope:"support.function",settings:{foreground:"#268BD2"}},{scope:"punctuation.separator.continuation",settings:{foreground:"#DC322F"}},{scope:["support.constant","support.variable"],settings:{}},{scope:["support.type","support.class"],settings:{foreground:"#859900"}},{scope:"support.type.exception",settings:{foreground:"#CB4B16"}},{scope:"support.other.variable",settings:{}},{scope:"invalid",settings:{foreground:"#DC322F"}},{scope:["meta.diff","meta.diff.header"],settings:{fontStyle:"italic",foreground:"#268BD2"}},{scope:"markup.deleted",settings:{fontStyle:"",foreground:"#DC322F"}},{scope:"markup.changed",settings:{fontStyle:"",foreground:"#CB4B16"}},{scope:"markup.inserted",settings:{foreground:"#859900"}},{scope:"markup.quote",settings:{foreground:"#859900"}},{scope:"markup.list",settings:{foreground:"#B58900"}},{scope:["markup.bold","markup.italic"],settings:{foreground:"#D33682"}},{scope:"markup.bold",settings:{fontStyle:"bold"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.strikethrough",settings:{fontStyle:"strikethrough"}},{scope:"markup.inline.raw",settings:{fontStyle:"",foreground:"#2AA198"}},{scope:"markup.heading",settings:{fontStyle:"bold",foreground:"#268BD2"}},{scope:"markup.heading.setext",settings:{fontStyle:"",foreground:"#268BD2"}}],type:"dark"})}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/1966.797b02cf.async.js b/starter/src/main/resources/templates/admin/1966.797b02cf.async.js deleted file mode 100644 index 7466ff22..00000000 --- a/starter/src/main/resources/templates/admin/1966.797b02cf.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1966],{91966:function(o,e,t){t.r(e),t.d(e,{default:function(){return r}});var r=Object.freeze({colors:{"activityBar.background":"#003847","badge.background":"#047aa6","button.background":"#2AA19899","debugExceptionWidget.background":"#00212B","debugExceptionWidget.border":"#AB395B","debugToolBar.background":"#00212B","dropdown.background":"#00212B","dropdown.border":"#2AA19899","editor.background":"#002B36","editor.foreground":"#839496","editor.lineHighlightBackground":"#073642","editor.selectionBackground":"#274642","editor.selectionHighlightBackground":"#005A6FAA","editor.wordHighlightBackground":"#004454AA","editor.wordHighlightStrongBackground":"#005A6FAA","editorBracketHighlight.foreground1":"#cdcdcdff","editorBracketHighlight.foreground2":"#b58900ff","editorBracketHighlight.foreground3":"#d33682ff","editorCursor.foreground":"#D30102","editorGroup.border":"#00212B","editorGroup.dropBackground":"#2AA19844","editorGroupHeader.tabsBackground":"#004052","editorHoverWidget.background":"#004052","editorIndentGuide.activeBackground":"#C3E1E180","editorIndentGuide.background":"#93A1A180","editorLineNumber.activeForeground":"#949494","editorMarkerNavigationError.background":"#AB395B","editorMarkerNavigationWarning.background":"#5B7E7A","editorWhitespace.foreground":"#93A1A180","editorWidget.background":"#00212B",errorForeground:"#ffeaea",focusBorder:"#2AA19899","input.background":"#003847","input.foreground":"#93A1A1","input.placeholderForeground":"#93A1A1AA","inputOption.activeBorder":"#2AA19899","inputValidation.errorBackground":"#571b26","inputValidation.errorBorder":"#a92049","inputValidation.infoBackground":"#052730","inputValidation.infoBorder":"#363b5f","inputValidation.warningBackground":"#5d5938","inputValidation.warningBorder":"#9d8a5e","list.activeSelectionBackground":"#005A6F","list.dropBackground":"#00445488","list.highlightForeground":"#1ebcc5","list.hoverBackground":"#004454AA","list.inactiveSelectionBackground":"#00445488","minimap.selectionHighlight":"#274642","panel.border":"#2b2b4a","peekView.border":"#2b2b4a","peekViewEditor.background":"#10192c","peekViewEditor.matchHighlightBackground":"#7744AA40","peekViewResult.background":"#00212B","peekViewTitle.background":"#00212B","pickerGroup.border":"#2AA19899","pickerGroup.foreground":"#2AA19899","ports.iconRunningProcessForeground":"#369432","progressBar.background":"#047aa6","quickInputList.focusBackground":"#005A6F","selection.background":"#2AA19899","sideBar.background":"#00212B","sideBarTitle.foreground":"#93A1A1","statusBar.background":"#00212B","statusBar.debuggingBackground":"#00212B","statusBar.foreground":"#93A1A1","statusBar.noFolderBackground":"#00212B","statusBarItem.prominentBackground":"#003847","statusBarItem.prominentHoverBackground":"#003847","statusBarItem.remoteBackground":"#2AA19899","tab.activeBackground":"#002B37","tab.activeForeground":"#d6dbdb","tab.border":"#003847","tab.inactiveBackground":"#004052","tab.inactiveForeground":"#93A1A1","tab.lastPinnedBorder":"#2AA19844","terminal.ansiBlack":"#073642","terminal.ansiBlue":"#268bd2","terminal.ansiBrightBlack":"#002b36","terminal.ansiBrightBlue":"#839496","terminal.ansiBrightCyan":"#93a1a1","terminal.ansiBrightGreen":"#586e75","terminal.ansiBrightMagenta":"#6c71c4","terminal.ansiBrightRed":"#cb4b16","terminal.ansiBrightWhite":"#fdf6e3","terminal.ansiBrightYellow":"#657b83","terminal.ansiCyan":"#2aa198","terminal.ansiGreen":"#859900","terminal.ansiMagenta":"#d33682","terminal.ansiRed":"#dc322f","terminal.ansiWhite":"#eee8d5","terminal.ansiYellow":"#b58900","titleBar.activeBackground":"#002C39"},displayName:"Solarized Dark",name:"solarized-dark",semanticHighlighting:!0,tokenColors:[{settings:{foreground:"#839496"}},{scope:["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],settings:{foreground:"#839496"}},{scope:"comment",settings:{fontStyle:"italic",foreground:"#586E75"}},{scope:"string",settings:{foreground:"#2AA198"}},{scope:"string.regexp",settings:{foreground:"#DC322F"}},{scope:"constant.numeric",settings:{foreground:"#D33682"}},{scope:["variable.language","variable.other"],settings:{foreground:"#268BD2"}},{scope:"keyword",settings:{foreground:"#859900"}},{scope:"storage",settings:{fontStyle:"bold",foreground:"#93A1A1"}},{scope:["entity.name.class","entity.name.type","entity.name.namespace","entity.name.scope-resolution"],settings:{fontStyle:"",foreground:"#CB4B16"}},{scope:"entity.name.function",settings:{foreground:"#268BD2"}},{scope:"punctuation.definition.variable",settings:{foreground:"#859900"}},{scope:["punctuation.section.embedded.begin","punctuation.section.embedded.end"],settings:{foreground:"#DC322F"}},{scope:["constant.language","meta.preprocessor"],settings:{foreground:"#B58900"}},{scope:["support.function.construct","keyword.other.new"],settings:{foreground:"#CB4B16"}},{scope:["constant.character","constant.other"],settings:{foreground:"#CB4B16"}},{scope:"entity.other.inherited-class",settings:{foreground:"#6C71C4"}},{scope:"variable.parameter",settings:{}},{scope:"entity.name.tag",settings:{foreground:"#268BD2"}},{scope:"punctuation.definition.tag",settings:{foreground:"#586E75"}},{scope:"entity.other.attribute-name",settings:{foreground:"#93A1A1"}},{scope:"support.function",settings:{foreground:"#268BD2"}},{scope:"punctuation.separator.continuation",settings:{foreground:"#DC322F"}},{scope:["support.constant","support.variable"],settings:{}},{scope:["support.type","support.class"],settings:{foreground:"#859900"}},{scope:"support.type.exception",settings:{foreground:"#CB4B16"}},{scope:"support.other.variable",settings:{}},{scope:"invalid",settings:{foreground:"#DC322F"}},{scope:["meta.diff","meta.diff.header"],settings:{fontStyle:"italic",foreground:"#268BD2"}},{scope:"markup.deleted",settings:{fontStyle:"",foreground:"#DC322F"}},{scope:"markup.changed",settings:{fontStyle:"",foreground:"#CB4B16"}},{scope:"markup.inserted",settings:{foreground:"#859900"}},{scope:"markup.quote",settings:{foreground:"#859900"}},{scope:"markup.list",settings:{foreground:"#B58900"}},{scope:["markup.bold","markup.italic"],settings:{foreground:"#D33682"}},{scope:"markup.bold",settings:{fontStyle:"bold"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.strikethrough",settings:{fontStyle:"strikethrough"}},{scope:"markup.inline.raw",settings:{fontStyle:"",foreground:"#2AA198"}},{scope:"markup.heading",settings:{fontStyle:"bold",foreground:"#268BD2"}},{scope:"markup.heading.setext",settings:{fontStyle:"",foreground:"#268BD2"}}],type:"dark"})}}]); diff --git a/starter/src/main/resources/templates/admin/2040.0f47a00b.async.js b/starter/src/main/resources/templates/admin/2040.0f47a00b.async.js deleted file mode 100644 index 6a4616eb..00000000 --- a/starter/src/main/resources/templates/admin/2040.0f47a00b.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2040],{82040:function(r,t,l){l.r(t),l.d(t,{ebnf:function(){return a}});var i={slash:0,parenthesis:1},c={comment:0,_string:1,characterClass:2};const a={name:"ebnf",startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(e,n){if(e){switch(n.stack.length===0&&(e.peek()=='"'||e.peek()=="'"?(n.stringType=e.peek(),e.next(),n.stack.unshift(c._string)):e.match("/*")?(n.stack.unshift(c.comment),n.commentType=i.slash):e.match("(*")&&(n.stack.unshift(c.comment),n.commentType=i.parenthesis)),n.stack[0]){case c._string:for(;n.stack[0]===c._string&&!e.eol();)e.peek()===n.stringType?(e.next(),n.stack.shift()):e.peek()==="\\"?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return n.lhs?"property":"string";case c.comment:for(;n.stack[0]===c.comment&&!e.eol();)n.commentType===i.slash&&e.match("*/")||n.commentType===i.parenthesis&&e.match("*)")?(n.stack.shift(),n.commentType=null):e.match(/^.[^\*]*/);return"comment";case c.characterClass:for(;n.stack[0]===c.characterClass&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(".")||n.stack.shift();return"operator"}var h=e.peek();switch(h){case"[":return e.next(),n.stack.unshift(c.characterClass),"bracket";case":":case"|":case";":return e.next(),"operator";case"%":if(e.match("%%"))return"header";if(e.match(/[%][A-Za-z]+/))return"keyword";if(e.match(/[%][}]/))return"bracket";break;case"/":if(e.match(/[\/][A-Za-z]+/))return"keyword";case"\\":if(e.match(/[\][a-z]+/))return"string.special";case".":if(e.match("."))return"atom";case"*":case"-":case"+":case"^":if(e.match(h))return"atom";case"$":if(e.match("$$"))return"builtin";if(e.match(/[$][0-9]+/))return"variableName.special";case"<":if(e.match(/<<[a-zA-Z_]+>>/))return"builtin"}return e.match("//")?(e.skipToEnd(),"comment"):e.match("return")?"operator":e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?e.match(/(?=[\(.])/)?"variable":e.match(/(?=[\s\n]*[:=])/)?"def":"variableName.special":["[","]","(",")"].indexOf(e.peek())!=-1?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}}}]); diff --git a/starter/src/main/resources/templates/admin/2040.67a922b2.async.js b/starter/src/main/resources/templates/admin/2040.67a922b2.async.js new file mode 100644 index 00000000..c31d7e27 --- /dev/null +++ b/starter/src/main/resources/templates/admin/2040.67a922b2.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2040],{82040:function(e,t,a){a.r(t),a.d(t,{ebnf:function(){return m}});var c=0,n=1,r=0,s=1,i=2;const m={name:"ebnf",startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'==e.peek()||"'"==e.peek()?(t.stringType=e.peek(),e.next(),t.stack.unshift(s)):e.match("/*")?(t.stack.unshift(r),t.commentType=c):e.match("(*")&&(t.stack.unshift(r),t.commentType=n)),t.stack[0]){case s:for(;t.stack[0]===s&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property":"string";case r:for(;t.stack[0]===r&&!e.eol();)t.commentType===c&&e.match("*/")||t.commentType===n&&e.match("*)")?(t.stack.shift(),t.commentType=null):e.match(/^.[^\*]*/);return"comment";case i:for(;t.stack[0]===i&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(".")||t.stack.shift();return"operator"}var a=e.peek();switch(a){case"[":return e.next(),t.stack.unshift(i),"bracket";case":":case"|":case";":return e.next(),"operator";case"%":if(e.match("%%"))return"header";if(e.match(/[%][A-Za-z]+/))return"keyword";if(e.match(/[%][}]/))return"bracket";break;case"/":if(e.match(/[\/][A-Za-z]+/))return"keyword";case"\\":if(e.match(/[\][a-z]+/))return"string.special";case".":if(e.match("."))return"atom";case"*":case"-":case"+":case"^":if(e.match(a))return"atom";case"$":if(e.match("$$"))return"builtin";if(e.match(/[$][0-9]+/))return"variableName.special";case"<":if(e.match(/<<[a-zA-Z_]+>>/))return"builtin"}return e.match("//")?(e.skipToEnd(),"comment"):e.match("return")?"operator":e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?e.match(/(?=[\(.])/)?"variable":e.match(/(?=[\s\n]*[:=])/)?"def":"variableName.special":-1!=["[","]","(",")"].indexOf(e.peek())?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/2062.4400ebfb.async.js b/starter/src/main/resources/templates/admin/2062.4400ebfb.async.js deleted file mode 100644 index 45c5e081..00000000 --- a/starter/src/main/resources/templates/admin/2062.4400ebfb.async.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2062],{87603:function(Ue,G,e){e.d(G,{Z:function(){return A}});var L=e(1413),o=e(67294),K={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"},n=K,l=e(89099),p=function(T,w){return o.createElement(l.Z,(0,L.Z)((0,L.Z)({},T),{},{ref:w,icon:n}))},W=o.forwardRef(p),A=W},64789:function(Ue,G,e){e.d(G,{Z:function(){return A}});var L=e(1413),o=e(67294),K={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=K,l=e(89099),p=function(T,w){return o.createElement(l.Z,(0,L.Z)((0,L.Z)({},T),{},{ref:w,icon:n}))},W=o.forwardRef(p),A=W},88484:function(Ue,G,e){e.d(G,{Z:function(){return A}});var L=e(1413),o=e(67294),K={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"},n=K,l=e(89099),p=function(T,w){return o.createElement(l.Z,(0,L.Z)((0,L.Z)({},T),{},{ref:w,icon:n}))},W=o.forwardRef(p),A=W},63434:function(Ue,G,e){var L=e(1413),o=e(91),K=e(22270),n=e(84567),l=e(67294),p=e(90789),W=e(24809),A=e(85893),t=["options","fieldProps","proFieldProps","valueEnum"],T=l.forwardRef(function(j,D){var y=j.options,O=j.fieldProps,$=j.proFieldProps,x=j.valueEnum,f=(0,o.Z)(j,t);return(0,A.jsx)(W.Z,(0,L.Z)({ref:D,valueType:"checkbox",valueEnum:(0,K.h)(x,void 0),fieldProps:(0,L.Z)({options:y},O),lightProps:(0,L.Z)({labelFormatter:function(){return(0,A.jsx)(W.Z,(0,L.Z)({ref:D,valueType:"checkbox",mode:"read",valueEnum:(0,K.h)(x,void 0),filedConfig:{customLightMode:!0},fieldProps:(0,L.Z)({options:y},O),proFieldProps:$},f))}},f.lightProps),proFieldProps:$},f))}),w=l.forwardRef(function(j,D){var y=j.fieldProps,O=j.children;return(0,A.jsx)(n.Z,(0,L.Z)((0,L.Z)({ref:D},y),{},{children:O}))}),d=(0,p.G)(w,{valuePropName:"checked"}),F=d;F.Group=T,G.Z=F},31199:function(Ue,G,e){var L=e(1413),o=e(91),K=e(67294),n=e(24809),l=e(85893),p=["fieldProps","min","proFieldProps","max"],W=function(T,w){var d=T.fieldProps,F=T.min,j=T.proFieldProps,D=T.max,y=(0,o.Z)(T,p);return(0,l.jsx)(n.Z,(0,L.Z)({valueType:"digit",fieldProps:(0,L.Z)({min:F,max:D},d),ref:w,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:j},y))},A=K.forwardRef(W);G.Z=A},3418:function(Ue,G,e){e.d(G,{Lr:function(){return O},_t:function(){return t},sE:function(){return D},x_:function(){return F}});var L=e(15009),o=e.n(L),K=e(97857),n=e.n(K),l=e(99289),p=e.n(l),W=e(85615),A=e(86745);function t(X){return T.apply(this,arguments)}function T(){return T=p()(o()().mark(function X(de){return o()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,A.request)("/api/v1/agent/query/org",{method:"GET",params:n()(n()({},de),{},{client:W.bVn})}));case 1:case"end":return V.stop()}},X)})),T.apply(this,arguments)}function w(){return d.apply(this,arguments)}function d(){return d=_asyncToGenerator(_regeneratorRuntime().mark(function X(){return _regeneratorRuntime().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.abrupt("return",request("/api/v1/agent/query",{method:"GET",params:{client:HTTP_CLIENT}}));case 1:case"end":return Ce.stop()}},X)})),d.apply(this,arguments)}function F(X){return j.apply(this,arguments)}function j(){return j=p()(o()().mark(function X(de){return o()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,A.request)("/api/v1/agent/create",{method:"POST",data:n()(n()({},de),{},{client:W.bVn})}));case 1:case"end":return V.stop()}},X)})),j.apply(this,arguments)}function D(X){return y.apply(this,arguments)}function y(){return y=p()(o()().mark(function X(de){return o()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,A.request)("/api/v1/agent/update",{method:"POST",data:n()(n()({},de),{},{client:W.bVn})}));case 1:case"end":return V.stop()}},X)})),y.apply(this,arguments)}function O(X){return $.apply(this,arguments)}function $(){return $=p()(o()().mark(function X(de){return o()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,A.request)("/api/v1/agent/delete",{method:"POST",data:n()(n()({},de),{},{client:W.bVn})}));case 1:case"end":return V.stop()}},X)})),$.apply(this,arguments)}function x(X){return f.apply(this,arguments)}function f(){return f=_asyncToGenerator(_regeneratorRuntime().mark(function X(de){return _regeneratorRuntime().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",request("/api/v1/agent/filter",{method:"GET",params:_objectSpread(_objectSpread({},de),{},{client:HTTP_CLIENT})}));case 1:case"end":return V.stop()}},X)})),f.apply(this,arguments)}},40401:function(Ue,G,e){e.d(G,{Yg:function(){return D},kh:function(){return w},pf:function(){return t},y:function(){return F}});var L=e(15009),o=e.n(L),K=e(97857),n=e.n(K),l=e(99289),p=e.n(l),W=e(85615),A=e(86745);function t(O){return T.apply(this,arguments)}function T(){return T=p()(o()().mark(function O($){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,A.request)("/api/v1/faq/query/org",{method:"GET",params:n()(n()({},$),{},{client:W.bVn})}));case 1:case"end":return f.stop()}},O)})),T.apply(this,arguments)}function w(O){return d.apply(this,arguments)}function d(){return d=p()(o()().mark(function O($){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,A.request)("/api/v1/faq/create",{method:"POST",data:n()(n()({},$),{},{client:W.bVn})}));case 1:case"end":return f.stop()}},O)})),d.apply(this,arguments)}function F(O){return j.apply(this,arguments)}function j(){return j=p()(o()().mark(function O($){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,A.request)("/api/v1/faq/update",{method:"POST",data:n()(n()({},$),{},{client:W.bVn})}));case 1:case"end":return f.stop()}},O)})),j.apply(this,arguments)}function D(O){return y.apply(this,arguments)}function y(){return y=p()(o()().mark(function O($){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,A.request)("/api/v1/faq/delete",{method:"POST",data:n()(n()({},$),{},{client:W.bVn})}));case 1:case"end":return f.stop()}},O)})),y.apply(this,arguments)}},76545:function(Ue,G,e){e.d(G,{$l:function(){return F},gf:function(){return D},lg:function(){return w},p0:function(){return t}});var L=e(15009),o=e.n(L),K=e(97857),n=e.n(K),l=e(99289),p=e.n(l),W=e(85615),A=e(86745);function t(O){return T.apply(this,arguments)}function T(){return T=p()(o()().mark(function O($){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,A.request)("/api/v1/robot/query/org",{method:"GET",params:n()(n()({},$),{},{client:W.bVn})}));case 1:case"end":return f.stop()}},O)})),T.apply(this,arguments)}function w(O){return d.apply(this,arguments)}function d(){return d=p()(o()().mark(function O($){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,A.request)("/api/v1/robot/create",{method:"POST",data:n()(n()({},$),{},{client:W.bVn})}));case 1:case"end":return f.stop()}},O)})),d.apply(this,arguments)}function F(O){return j.apply(this,arguments)}function j(){return j=p()(o()().mark(function O($){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,A.request)("/api/v1/robot/update",{method:"POST",data:n()(n()({},$),{},{client:W.bVn})}));case 1:case"end":return f.stop()}},O)})),j.apply(this,arguments)}function D(O){return y.apply(this,arguments)}function y(){return y=p()(o()().mark(function O($){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,A.request)("/api/v1/robot/delete",{method:"POST",data:n()(n()({},$),{},{client:W.bVn})}));case 1:case"end":return f.stop()}},O)})),y.apply(this,arguments)}},21317:function(Ue,G,e){e.d(G,{W5:function(){return F},p0:function(){return w},u7:function(){return t},zl:function(){return D}});var L=e(15009),o=e.n(L),K=e(97857),n=e.n(K),l=e(99289),p=e.n(l),W=e(85615),A=e(86745);function t(O){return T.apply(this,arguments)}function T(){return T=p()(o()().mark(function O($){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,A.request)("/api/v1/workgroup/query/org",{method:"GET",params:n()(n()({},$),{},{client:W.bVn})}));case 1:case"end":return f.stop()}},O)})),T.apply(this,arguments)}function w(O){return d.apply(this,arguments)}function d(){return d=p()(o()().mark(function O($){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,A.request)("/api/v1/workgroup/create",{method:"POST",data:n()(n()({},$),{},{client:W.bVn})}));case 1:case"end":return f.stop()}},O)})),d.apply(this,arguments)}function F(O){return j.apply(this,arguments)}function j(){return j=p()(o()().mark(function O($){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,A.request)("/api/v1/workgroup/update",{method:"POST",data:n()(n()({},$),{},{client:W.bVn})}));case 1:case"end":return f.stop()}},O)})),j.apply(this,arguments)}function D(O){return y.apply(this,arguments)}function y(){return y=p()(o()().mark(function O($){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,A.request)("/api/v1/workgroup/delete",{method:"POST",data:n()(n()({},$),{},{client:W.bVn})}));case 1:case"end":return f.stop()}},O)})),y.apply(this,arguments)}},54050:function(Ue,G,e){var L=e(85615),o=e(86745),K=e(85893),n=function(p){var W=p.type,A=(0,o.useAccess)();return A.canDebug&&console.log("TabBlack canDebug"),(0,K.jsx)("div",{children:(0,K.jsx)("p",{children:(0,K.jsx)(o.Access,{accessible:A.canDebug(),fallback:(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(o.FormattedMessage,{id:L.h5w})}),children:"\u9ED1\u540D\u5355\u8BBF\u5BA2\u3001\u9ED1\u540D\u5355ip/ip\u6BB5"})})})};G.Z=n},23035:function(Ue,G,e){var L=e(15009),o=e.n(L),K=e(97857),n=e.n(K),l=e(99289),p=e.n(l),W=e(5574),A=e.n(W),t=e(80049),T=e(3418),w=e(76545),d=e(21317),F=e(30694),j=e(37326),D=e(18678),y=e(85615),O=e(34994),$=e(52688),x=e(86745),f=e(67294),X=e(85893),de=function(V){var ae=V.type,Fe=(0,x.useIntl)(),ee=O.A.useForm(),Ae=A()(ee,1),Oe=Ae[0],I=(0,j.V)(function(g){return{currentRobot:g.currentRobot,setCurrentRobot:g.setCurrentRobot}}),P=I.currentRobot,Se=I.setCurrentRobot,be=(0,F.E)(function(g){return{currentAgent:g.currentAgent,setCurrentAgent:g.setCurrentAgent}}),r=be.currentAgent,se=be.setCurrentAgent,Re=(0,D.$)(function(g){return{currentWorkgroup:g.currentWorkgroup,setCurrentWorkgroup:g.setCurrentWorkgroup}}),U=Re.currentWorkgroup,oe=Re.setCurrentWorkgroup;(0,f.useEffect)(function(){if(ae===y._X4){var g;Oe.setFieldsValue({showCaptcha:P==null||(g=P.serviceSettings)===null||g===void 0?void 0:g.showCaptcha})}else if(ae===y.Njn){var k;Oe.setFieldsValue({showCaptcha:r==null||(k=r.serviceSettings)===null||k===void 0?void 0:k.showCaptcha})}else if(ae===y.aZD){var q;Oe.setFieldsValue({showCaptcha:U==null||(q=U.serviceSettings)===null||q===void 0?void 0:q.showCaptcha})}},[P,r,U]);var H=function(){var g=p()(o()().mark(function k(q){var M,te,Y,S,ue,Q,a,ve,N,s,R,ne,_,ie,De,le,_e,u,h,c,v,b,E,B,J;return o()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(console.log("handleCaptchaSubmit:",q),ae!==y._X4){C.next=11;break}return Q=n()(n()({},P),{},{serviceSettings:n()(n()({},P.serviceSettings),{},{showCaptcha:q.showCaptcha,faqUids:r==null||(M=r.serviceSettings)===null||M===void 0||(M=M.faqs)===null||M===void 0?void 0:M.map(function(i){return i.uid}),quickFaqUids:P==null||(te=P.serviceSettings)===null||te===void 0||(te=te.quickFaqs)===null||te===void 0?void 0:te.map(function(i){return i.uid}),guessFaqUids:P==null||(Y=P.serviceSettings)===null||Y===void 0||(Y=Y.guessFaqs)===null||Y===void 0?void 0:Y.map(function(i){return i.uid}),hotFaqUids:P==null||(S=P.serviceSettings)===null||S===void 0||(S=S.hotFaqs)===null||S===void 0?void 0:S.map(function(i){return i.uid}),shortcutFaqUids:P==null||(ue=P.serviceSettings)===null||ue===void 0||(ue=ue.shortcutFaqs)===null||ue===void 0?void 0:ue.map(function(i){return i.uid})})}),console.log("robotObject:",Q),C.next=6,(0,w.$l)(Q);case 6:a=C.sent,console.log("updateRobot response:",a),a.code===200?(t.yw.destroy(),t.yw.success(Fe.formatMessage({id:"update.success"})),Se(a.data)):(t.yw.destroy(),t.yw.error(a.message)),C.next=29;break;case 11:if(ae!==y.Njn){C.next=21;break}return De=n()(n()({},r),{},{serviceSettings:n()(n()({},r==null?void 0:r.serviceSettings),{},{showCaptcha:q.showCaptcha,faqUids:r==null||(ve=r.serviceSettings)===null||ve===void 0||(ve=ve.faqs)===null||ve===void 0?void 0:ve.map(function(i){return i.uid}),robotUid:r==null||(N=r.serviceSettings)===null||N===void 0||(N=N.robot)===null||N===void 0?void 0:N.uid,quickFaqUids:r==null||(s=r.serviceSettings)===null||s===void 0||(s=s.quickFaqs)===null||s===void 0?void 0:s.map(function(i){return i.uid}),guessFaqUids:r==null||(R=r.serviceSettings)===null||R===void 0||(R=R.guessFaqs)===null||R===void 0?void 0:R.map(function(i){return i.uid}),hotFaqUids:r==null||(ne=r.serviceSettings)===null||ne===void 0||(ne=ne.hotFaqs)===null||ne===void 0?void 0:ne.map(function(i){return i.uid}),shortcutFaqUids:r==null||(_=r.serviceSettings)===null||_===void 0||(_=_.shortcutFaqs)===null||_===void 0?void 0:_.map(function(i){return i.uid}),worktimeUids:r==null||(ie=r.serviceSettings)===null||ie===void 0||(ie=ie.worktimes)===null||ie===void 0?void 0:ie.map(function(i){return i.uid})}),autoReplySettings:n()({},r.autoReplySettings)}),console.log("agentObject:",De),C.next=16,(0,T.sE)(De);case 16:le=C.sent,console.log("updateAgent response:",le),le.code===200?(t.yw.destroy(),t.yw.success(Fe.formatMessage({id:"update.success"})),se(le.data)):(t.yw.destroy(),t.yw.error(le.message)),C.next=29;break;case 21:if(ae!==y.aZD){C.next=29;break}return B=n()(n()({},U),{},{serviceSettings:n()(n()({},U.serviceSettings),{},{showCaptcha:q.showCaptcha,faqUids:r==null||(_e=r.serviceSettings)===null||_e===void 0||(_e=_e.faqs)===null||_e===void 0?void 0:_e.map(function(i){return i.uid}),robotUid:(u=U.serviceSettings)===null||u===void 0||(u=u.robot)===null||u===void 0?void 0:u.uid,quickFaqUids:(h=U.serviceSettings)===null||h===void 0||(h=h.quickFaqs)===null||h===void 0?void 0:h.map(function(i){return i.uid}),guessFaqUids:U==null||(c=U.serviceSettings)===null||c===void 0||(c=c.guessFaqs)===null||c===void 0?void 0:c.map(function(i){return i.uid}),hotFaqUids:U==null||(v=U.serviceSettings)===null||v===void 0||(v=v.hotFaqs)===null||v===void 0?void 0:v.map(function(i){return i.uid}),shortcutFaqUids:U==null||(b=U.serviceSettings)===null||b===void 0||(b=b.shortcutFaqs)===null||b===void 0?void 0:b.map(function(i){return i.uid}),worktimeUids:(E=U.serviceSettings)===null||E===void 0||(E=E.worktimes)===null||E===void 0?void 0:E.map(function(i){return i.uid})}),agentUids:U.agents.map(function(i){return i.uid})}),console.log("workgroupObject:",B),C.next=26,(0,d.W5)(B);case 26:J=C.sent,console.log("updateWorkGroup response:",J),J.code===200?(t.yw.destroy(),t.yw.success(Fe.formatMessage({id:"update.success"})),oe(J.data)):(t.yw.destroy(),t.yw.error(J.message));case 29:case"end":return C.stop()}},k)}));return function(q){return g.apply(this,arguments)}}();return(0,X.jsx)("div",{children:(0,X.jsx)(O.A,{form:Oe,onFinish:H,children:(0,X.jsx)($.Z,{width:"md",name:"showCaptcha",label:Fe.formatMessage({id:"showCaptcha",defaultMessage:"Show Captcha"})})})})};G.Z=de},79964:function(Ue,G,e){var L=e(97857),o=e.n(L),K=e(15009),n=e.n(K),l=e(99289),p=e.n(l),W=e(5574),A=e.n(W),t=e(80049),T=e(40401),w=e(76545),d=e(73803),F=e(37326),j=e(87676),D=e(48489),y=e(87603),O=e(34994),$=e(52688),x=e(64317),f=e(86745),X=e(40056),de=e(14726),Ce=e(96074),V=e(67294),ae=e(30694),Fe=e(18678),ee=e(85615),Ae=e(3418),Oe=e(21317),I=e(85893),P=function(be){var r,se=be.type,Re=O.A.useForm(),U=A()(Re,1),oe=U[0],H=(0,f.useIntl)(),g=(0,f.useNavigate)(),k=(0,d.Z)(),q=k.translateString,M=(0,j.u)(function(u){return u.currentOrg}),te=(0,V.useState)(),Y=A()(te,2),S=Y[0],ue=Y[1],Q=(0,F.V)(function(u){return{currentRobot:u.currentRobot,setCurrentRobot:u.setCurrentRobot}}),a=Q.currentRobot,ve=Q.setCurrentRobot,N=(0,ae.E)(function(u){return{currentAgent:u.currentAgent,setCurrentAgent:u.setCurrentAgent}}),s=N.currentAgent,R=N.setCurrentAgent,ne=(0,Fe.$)(function(u){return{currentWorkgroup:u.currentWorkgroup,setCurrentWorkgroup:u.setCurrentWorkgroup}}),_=ne.currentWorkgroup,ie=ne.setCurrentWorkgroup,De=function(){var u=p()(n()().mark(function h(){var c,v;return n()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return t.yw.loading(H.formatMessage({id:"loading",defaultMessage:"Loading"})),c={pageNumber:0,pageSize:50,orgUid:M.uid},E.next=4,(0,T.pf)(c);case 4:v=E.sent,console.log("getAllFaqs response:",c,v),t.yw.destroy(),v.code===200?ue(v):t.yw.error(v.message);case 8:case"end":return E.stop()}},h)}));return function(){return u.apply(this,arguments)}}();(0,V.useEffect)(function(){De()},[M]),(0,V.useEffect)(function(){if(se===ee._X4){var u,h;oe.setFieldsValue({showFaqs:a==null||(u=a.serviceSettings)===null||u===void 0?void 0:u.showFaqs,faqUids:a==null||(h=a.serviceSettings)===null||h===void 0||(h=h.faqs)===null||h===void 0?void 0:h.map(function(B){return B.uid})})}else if(se===ee.Njn){var c,v;oe.setFieldsValue({showFaqs:s==null||(c=s.serviceSettings)===null||c===void 0?void 0:c.showFaqs,faqUids:s==null||(v=s.serviceSettings)===null||v===void 0||(v=v.faqs)===null||v===void 0?void 0:v.map(function(B){return B.uid})})}else if(se===ee.aZD){var b,E;oe.setFieldsValue({showFaqs:_==null||(b=_.serviceSettings)===null||b===void 0?void 0:b.showFaqs,faqUids:_==null||(E=_.serviceSettings)===null||E===void 0||(E=E.faqs)===null||E===void 0?void 0:E.map(function(B){return B.uid})})}},[a,s,_]);var le=function(){var u=p()(n()().mark(function h(c){var v,b,E,B,J,ce,C,i,ge,pe,me,Ee,We,Pe,fe,he,Me,re,Z,je,Be,Te;return n()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(console.log("onFinish",c),se!==ee._X4){z.next=11;break}return J=o()(o()({},a),{},{serviceSettings:o()(o()({},a.serviceSettings),{},{showFaqs:c.showFaqs,faqUids:c.faqUids,quickFaqUids:a==null||(v=a.serviceSettings)===null||v===void 0||(v=v.quickFaqs)===null||v===void 0?void 0:v.map(function(m){return m.uid}),guessFaqUids:a==null||(b=a.serviceSettings)===null||b===void 0||(b=b.guessFaqs)===null||b===void 0?void 0:b.map(function(m){return m.uid}),hotFaqUids:a==null||(E=a.serviceSettings)===null||E===void 0||(E=E.hotFaqs)===null||E===void 0?void 0:E.map(function(m){return m.uid}),shortcutFaqUids:a==null||(B=a.serviceSettings)===null||B===void 0||(B=B.shortcutFaqs)===null||B===void 0?void 0:B.map(function(m){return m.uid})})}),console.log("robotObject:",J),z.next=6,(0,w.$l)(J);case 6:ce=z.sent,console.log("updateRobot response:",ce),ce.code===200?(t.yw.destroy(),t.yw.success(H.formatMessage({id:"update.success"})),ve(ce.data)):(t.yw.destroy(),t.yw.error(ce.message)),z.next=29;break;case 11:if(se!==ee.Njn){z.next=21;break}return We=o()(o()({},s),{},{serviceSettings:o()(o()({},s==null?void 0:s.serviceSettings),{},{showFaqs:c.showFaqs,faqUids:c.faqUids,robotUid:s==null||(C=s.serviceSettings)===null||C===void 0||(C=C.robot)===null||C===void 0?void 0:C.uid,quickFaqUids:s==null||(i=s.serviceSettings)===null||i===void 0||(i=i.quickFaqs)===null||i===void 0?void 0:i.map(function(m){return m.uid}),guessFaqUids:s==null||(ge=s.serviceSettings)===null||ge===void 0||(ge=ge.guessFaqs)===null||ge===void 0?void 0:ge.map(function(m){return m.uid}),hotFaqUids:s==null||(pe=s.serviceSettings)===null||pe===void 0||(pe=pe.hotFaqs)===null||pe===void 0?void 0:pe.map(function(m){return m.uid}),shortcutFaqUids:s==null||(me=s.serviceSettings)===null||me===void 0||(me=me.shortcutFaqs)===null||me===void 0?void 0:me.map(function(m){return m.uid}),worktimeUids:s==null||(Ee=s.serviceSettings)===null||Ee===void 0||(Ee=Ee.worktimes)===null||Ee===void 0?void 0:Ee.map(function(m){return m.uid})}),autoReplySettings:o()({},s.autoReplySettings)}),console.log("agentObject:",We),z.next=16,(0,Ae.sE)(We);case 16:Pe=z.sent,console.log("updateAgent response:",Pe),Pe.code===200?(t.yw.destroy(),t.yw.success(H.formatMessage({id:"update.success"})),R(Pe.data)):(t.yw.destroy(),t.yw.error(Pe.message)),z.next=29;break;case 21:if(se!==ee.aZD){z.next=29;break}return Be=o()(o()({},_),{},{serviceSettings:o()(o()({},_.serviceSettings),{},{showFaqs:c.showFaqs,faqUids:c.faqUids,robotUid:(fe=_.serviceSettings)===null||fe===void 0||(fe=fe.robot)===null||fe===void 0?void 0:fe.uid,quickFaqUids:(he=_.serviceSettings)===null||he===void 0||(he=he.quickFaqs)===null||he===void 0?void 0:he.map(function(m){return m.uid}),guessFaqUids:_==null||(Me=_.serviceSettings)===null||Me===void 0||(Me=Me.guessFaqs)===null||Me===void 0?void 0:Me.map(function(m){return m.uid}),hotFaqUids:_==null||(re=_.serviceSettings)===null||re===void 0||(re=re.hotFaqs)===null||re===void 0?void 0:re.map(function(m){return m.uid}),shortcutFaqUids:_==null||(Z=_.serviceSettings)===null||Z===void 0||(Z=Z.shortcutFaqs)===null||Z===void 0?void 0:Z.map(function(m){return m.uid}),worktimeUids:(je=_.serviceSettings)===null||je===void 0||(je=je.worktimes)===null||je===void 0?void 0:je.map(function(m){return m.uid})}),agentUids:_.agents.map(function(m){return m.uid})}),console.log("workgroupObject:",Be),z.next=26,(0,Oe.W5)(Be);case 26:Te=z.sent,console.log("updateWorkGroup response:",Te),Te.code===200?(t.yw.destroy(),t.yw.success(H.formatMessage({id:"update.success"})),ie(Te.data)):(t.yw.destroy(),t.yw.error(Te.message));case 29:case"end":return z.stop()}},h)}));return function(c){return u.apply(this,arguments)}}(),_e=function(){var u=p()(n()().mark(function h(c){return n()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:console.log("TabFaqs handleChange",c);case 1:case"end":return b.stop()}},h)}));return function(c){return u.apply(this,arguments)}}();return(0,I.jsxs)("div",{children:[(0,I.jsx)(X.Z,{message:"\u8BF7\u5148\u5230 \u77E5\u8BC6\u5E93 -> \u5E38\u89C1\u95EE\u9898 -> \u65B0\u5EFA\uFF0C\u521B\u5EFA\u5E38\u89C1\u95EE\u9898\u4E4B\u540E\uFF0C\u518D\u6765\u6DFB\u52A0",type:"success",action:(0,I.jsx)(de.ZP,{type:"link",icon:(0,I.jsx)(D.Z,{}),onClick:function(){return window.open(ee.rVq)},children:H.formatMessage({id:"setting.helpdoc"})})}),(0,I.jsx)(Ce.Z,{}),(0,I.jsxs)(O.A,{form:oe,layout:"vertical",onFinish:le,children:[(0,I.jsx)($.Z,{label:"\u662F\u5426\u663E\u793A\u5E38\u89C1\u95EE\u9898",name:"showFaqs",fieldProps:{onChange:_e}}),(0,I.jsx)(O.A.Item,{children:(0,I.jsx)(de.ZP,{icon:(0,I.jsx)(y.Z,{}),onClick:function(){g("/kb/faq/data")},children:"\u6DFB\u52A0\u5E38\u89C1\u95EE\u9898"},"github")}),(0,I.jsx)(x.Z,{name:"faqUids",width:"md",label:H.formatMessage({id:"menu.knowledge.faq"}),options:S==null||(r=S.data)===null||r===void 0||(r=r.content)===null||r===void 0?void 0:r.map(function(u){return{label:q(u.title),value:u.uid}}),fieldProps:{mode:"multiple",allowClear:!0,placeholder:(0,I.jsx)(f.FormattedMessage,{id:"choose",defaultMessage:"Choose"})}})]})]})};G.Z=P},64423:function(Ue,G,e){var L=e(97857),o=e.n(L),K=e(15009),n=e.n(K),l=e(99289),p=e.n(l),W=e(5574),A=e.n(W),t=e(80049),T=e(40401),w=e(76545),d=e(73803),F=e(37326),j=e(87676),D=e(48489),y=e(87603),O=e(34994),$=e(52688),x=e(64317),f=e(86745),X=e(40056),de=e(14726),Ce=e(96074),V=e(67294),ae=e(30694),Fe=e(18678),ee=e(85615),Ae=e(3418),Oe=e(21317),I=e(85893),P=function(be){var r,se=be.type,Re=O.A.useForm(),U=A()(Re,1),oe=U[0],H=(0,f.useIntl)(),g=(0,f.useNavigate)(),k=(0,d.Z)(),q=k.translateString,M=(0,j.u)(function(u){return u.currentOrg}),te=(0,V.useState)(),Y=A()(te,2),S=Y[0],ue=Y[1],Q=(0,F.V)(function(u){return{currentRobot:u.currentRobot,setCurrentRobot:u.setCurrentRobot}}),a=Q.currentRobot,ve=Q.setCurrentRobot,N=(0,ae.E)(function(u){return{currentAgent:u.currentAgent,setCurrentAgent:u.setCurrentAgent}}),s=N.currentAgent,R=N.setCurrentAgent,ne=(0,Fe.$)(function(u){return{currentWorkgroup:u.currentWorkgroup,setCurrentWorkgroup:u.setCurrentWorkgroup}}),_=ne.currentWorkgroup,ie=ne.setCurrentWorkgroup,De=function(){var u=p()(n()().mark(function h(){var c,v;return n()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return t.yw.loading(H.formatMessage({id:"loading",defaultMessage:"Loading"})),c={pageNumber:0,pageSize:50,orgUid:M.uid},E.next=4,(0,T.pf)(c);case 4:v=E.sent,console.log("getAllFaqs response:",c,v),t.yw.destroy(),v.code===200?ue(v):t.yw.error(v.message);case 8:case"end":return E.stop()}},h)}));return function(){return u.apply(this,arguments)}}();(0,V.useEffect)(function(){De()},[M]),(0,V.useEffect)(function(){if(se===ee._X4){var u,h;oe.setFieldsValue({showGuessFaqs:a==null||(u=a.serviceSettings)===null||u===void 0?void 0:u.showGuessFaqs,guessFaqUids:a==null||(h=a.serviceSettings)===null||h===void 0||(h=h.guessFaqs)===null||h===void 0?void 0:h.map(function(B){return B.uid})})}else if(se===ee.Njn){var c,v;oe.setFieldsValue({showGuessFaqs:s==null||(c=s.serviceSettings)===null||c===void 0?void 0:c.showGuessFaqs,guessFaqUids:s==null||(v=s.serviceSettings)===null||v===void 0||(v=v.guessFaqs)===null||v===void 0?void 0:v.map(function(B){return B.uid})})}else if(se===ee.aZD){var b,E;oe.setFieldsValue({showGuessFaqs:_==null||(b=_.serviceSettings)===null||b===void 0?void 0:b.showGuessFaqs,guessFaqUids:_==null||(E=_.serviceSettings)===null||E===void 0||(E=E.guessFaqs)===null||E===void 0?void 0:E.map(function(B){return B.uid})})}},[a,s,_]);var le=function(){var u=p()(n()().mark(function h(c){var v,b,E,B,J,ce,C,i,ge,pe,me,Ee,We,Pe,fe,he,Me,re,Z,je,Be,Te,ke;return n()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(console.log("onFinish",c),se!==ee._X4){m.next=11;break}return J=o()(o()({},a),{},{serviceSettings:o()(o()({},a.serviceSettings),{},{showGuessFaqs:c.showGuessFaqs,guessFaqUids:c.guessFaqUids,quickFaqUids:a==null||(v=a.serviceSettings)===null||v===void 0||(v=v.quickFaqs)===null||v===void 0?void 0:v.map(function(ye){return ye.uid}),faqUids:a==null||(b=a.serviceSettings)===null||b===void 0||(b=b.faqs)===null||b===void 0?void 0:b.map(function(ye){return ye.uid}),hotFaqUids:a==null||(E=a.serviceSettings)===null||E===void 0||(E=E.hotFaqs)===null||E===void 0?void 0:E.map(function(ye){return ye.uid}),shortcutFaqUids:a==null||(B=a.serviceSettings)===null||B===void 0||(B=B.shortcutFaqs)===null||B===void 0?void 0:B.map(function(ye){return ye.uid})})}),console.log("robotObject:",J),m.next=6,(0,w.$l)(J);case 6:ce=m.sent,console.log("updateRobot response:",ce),ce.code===200?(t.yw.destroy(),t.yw.success(H.formatMessage({id:"update.success"})),ve(ce.data)):(t.yw.destroy(),t.yw.error(ce.message)),m.next=29;break;case 11:if(se!==ee.Njn){m.next=21;break}return We=o()(o()({},s),{},{serviceSettings:o()(o()({},s==null?void 0:s.serviceSettings),{},{showGuessFaqs:c.showGuessFaqs,guessFaqUids:c.guessFaqUids,robotUid:s==null||(C=s.serviceSettings)===null||C===void 0||(C=C.robot)===null||C===void 0?void 0:C.uid,quickFaqUids:s==null||(i=s.serviceSettings)===null||i===void 0||(i=i.quickFaqs)===null||i===void 0?void 0:i.map(function(ye){return ye.uid}),faqUids:s==null||(ge=s.serviceSettings)===null||ge===void 0||(ge=ge.faqs)===null||ge===void 0?void 0:ge.map(function(ye){return ye.uid}),hotFaqUids:s==null||(pe=s.serviceSettings)===null||pe===void 0||(pe=pe.hotFaqs)===null||pe===void 0?void 0:pe.map(function(ye){return ye.uid}),shortcutFaqUids:s==null||(me=s.serviceSettings)===null||me===void 0||(me=me.shortcutFaqs)===null||me===void 0?void 0:me.map(function(ye){return ye.uid}),worktimeUids:s==null||(Ee=s.serviceSettings)===null||Ee===void 0||(Ee=Ee.worktimes)===null||Ee===void 0?void 0:Ee.map(function(ye){return ye.uid})}),autoReplySettings:o()({},s.autoReplySettings)}),console.log("agentObject:",We),m.next=16,(0,Ae.sE)(We);case 16:Pe=m.sent,console.log("updateAgent response:",Pe),Pe.code===200?(t.yw.destroy(),t.yw.success(H.formatMessage({id:"update.success"})),R(Pe.data)):(t.yw.destroy(),t.yw.error(Pe.message)),m.next=29;break;case 21:if(se!==ee.aZD){m.next=29;break}return Te=o()(o()({},_),{},{serviceSettings:o()(o()({},_.serviceSettings),{},{showGuessFaqs:c.showGuessFaqs,guessFaqUids:c.guessFaqUids,robotUid:(fe=_.serviceSettings)===null||fe===void 0||(fe=fe.robot)===null||fe===void 0?void 0:fe.uid,quickFaqUids:(he=_.serviceSettings)===null||he===void 0||(he=he.quickFaqs)===null||he===void 0?void 0:he.map(function(ye){return ye.uid}),faqUids:_==null||(Me=_.serviceSettings)===null||Me===void 0||(Me=Me.faqs)===null||Me===void 0?void 0:Me.map(function(ye){return ye.uid}),hotFaqUids:_==null||(re=_.serviceSettings)===null||re===void 0||(re=re.hotFaqs)===null||re===void 0?void 0:re.map(function(ye){return ye.uid}),shortcutFaqUids:_==null||(Z=_.serviceSettings)===null||Z===void 0||(Z=Z.shortcutFaqs)===null||Z===void 0?void 0:Z.map(function(ye){return ye.uid}),worktimeUids:(je=_.serviceSettings)===null||je===void 0||(je=je.worktimes)===null||je===void 0?void 0:je.map(function(ye){return ye.uid})}),agentUids:(Be=_.agents)===null||Be===void 0?void 0:Be.map(function(ye){return ye.uid})}),console.log("workgroupObject:",Te),m.next=26,(0,Oe.W5)(Te);case 26:ke=m.sent,console.log("updateWorkGroup response:",ke),ke.code===200?(t.yw.destroy(),t.yw.success(H.formatMessage({id:"update.success"})),ie(ke.data)):(t.yw.destroy(),t.yw.error(ke.message));case 29:case"end":return m.stop()}},h)}));return function(c){return u.apply(this,arguments)}}(),_e=function(){var u=p()(n()().mark(function h(c){return n()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:console.log("TabFaqGuess handleChange",c);case 1:case"end":return b.stop()}},h)}));return function(c){return u.apply(this,arguments)}}();return(0,I.jsxs)("div",{children:[(0,I.jsx)(X.Z,{message:"\u8BF7\u5148\u5230 \u77E5\u8BC6\u5E93 -> \u5E38\u89C1\u95EE\u9898 -> \u65B0\u5EFA\uFF0C\u521B\u5EFA\u5E38\u89C1\u95EE\u9898\u4E4B\u540E\uFF0C\u518D\u6765\u6DFB\u52A0",type:"success",action:(0,I.jsx)(de.ZP,{type:"link",icon:(0,I.jsx)(D.Z,{}),onClick:function(){return window.open(ee.rVq)},children:H.formatMessage({id:"setting.helpdoc"})})}),(0,I.jsx)(Ce.Z,{}),(0,I.jsxs)(O.A,{form:oe,layout:"vertical",onFinish:le,children:[(0,I.jsx)($.Z,{label:"\u662F\u5426\u663E\u793A\u731C\u4F60\u60F3\u95EE",name:"showGuessFaqs",fieldProps:{onChange:_e}}),(0,I.jsx)(O.A.Item,{children:(0,I.jsx)(de.ZP,{icon:(0,I.jsx)(y.Z,{}),onClick:function(){g("/kb/faq/data")},children:"\u6DFB\u52A0\u5E38\u89C1\u95EE\u9898"},"github")}),(0,I.jsx)(x.Z,{name:"guessFaqUids",width:"md",label:H.formatMessage({id:"menu.knowledge.faqGuess"}),options:S==null||(r=S.data)===null||r===void 0||(r=r.content)===null||r===void 0?void 0:r.map(function(u){return{label:q(u.title),value:u.uid}}),fieldProps:{mode:"multiple",allowClear:!0,placeholder:(0,I.jsx)(f.FormattedMessage,{id:"choose",defaultMessage:"Choose"})}})]})]})};G.Z=P},50748:function(Ue,G,e){var L=e(97857),o=e.n(L),K=e(15009),n=e.n(K),l=e(99289),p=e.n(l),W=e(5574),A=e.n(W),t=e(80049),T=e(40401),w=e(76545),d=e(73803),F=e(37326),j=e(87676),D=e(48489),y=e(87603),O=e(34994),$=e(52688),x=e(64317),f=e(86745),X=e(40056),de=e(14726),Ce=e(96074),V=e(67294),ae=e(30694),Fe=e(18678),ee=e(85615),Ae=e(3418),Oe=e(21317),I=e(85893),P=function(be){var r,se=be.type,Re=O.A.useForm(),U=A()(Re,1),oe=U[0],H=(0,f.useIntl)(),g=(0,f.useNavigate)(),k=(0,d.Z)(),q=k.translateString,M=(0,j.u)(function(u){return u.currentOrg}),te=(0,V.useState)(),Y=A()(te,2),S=Y[0],ue=Y[1],Q=(0,F.V)(function(u){return{currentRobot:u.currentRobot,setCurrentRobot:u.setCurrentRobot}}),a=Q.currentRobot,ve=Q.setCurrentRobot,N=(0,ae.E)(function(u){return{currentAgent:u.currentAgent,setCurrentAgent:u.setCurrentAgent}}),s=N.currentAgent,R=N.setCurrentAgent,ne=(0,Fe.$)(function(u){return{currentWorkgroup:u.currentWorkgroup,setCurrentWorkgroup:u.setCurrentWorkgroup}}),_=ne.currentWorkgroup,ie=ne.setCurrentWorkgroup,De=function(){var u=p()(n()().mark(function h(){var c,v;return n()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return t.yw.loading(H.formatMessage({id:"loading",defaultMessage:"Loading"})),c={pageNumber:0,pageSize:50,orgUid:M.uid},E.next=4,(0,T.pf)(c);case 4:v=E.sent,console.log("getAllFaqs response:",c,v),t.yw.destroy(),v.code===200?ue(v):t.yw.error(v.message);case 8:case"end":return E.stop()}},h)}));return function(){return u.apply(this,arguments)}}();(0,V.useEffect)(function(){De()},[M]),(0,V.useEffect)(function(){if(se===ee._X4){var u;oe.setFieldsValue({showHotFaqs:a==null?void 0:a.serviceSettings.showHotFaqs,hotFaqUids:(a==null||(u=a.serviceSettings)===null||u===void 0||(u=u.hotFaqs)===null||u===void 0?void 0:u.map(function(v){return v.uid}))||[]})}else if(se===ee.Njn){var h;oe.setFieldsValue({showHotFaqs:s==null?void 0:s.serviceSettings.showHotFaqs,hotFaqUids:(s==null||(h=s.serviceSettings)===null||h===void 0||(h=h.hotFaqs)===null||h===void 0?void 0:h.map(function(v){return v.uid}))||[]})}else if(se===ee.aZD){var c;oe.setFieldsValue({showHotFaqs:_==null?void 0:_.serviceSettings.showHotFaqs,hotFaqUids:(_==null||(c=_.serviceSettings)===null||c===void 0||(c=c.hotFaqs)===null||c===void 0?void 0:c.map(function(v){return v.uid}))||[]})}},[a,s,_]);var le=function(){var u=p()(n()().mark(function h(c){var v,b,E,B,J,ce,C,i,ge,pe,me,Ee,We,Pe,fe,he,Me,re,Z,je,Be,Te;return n()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(console.log("onFinish",c),se!==ee._X4){z.next=11;break}return J=o()(o()({},a),{},{serviceSettings:o()(o()({},a.serviceSettings),{},{showHotFaqs:c.showHotFaqs,hotFaqUids:c.hotFaqUids,quickFaqUids:a==null||(v=a.serviceSettings)===null||v===void 0||(v=v.quickFaqs)===null||v===void 0?void 0:v.map(function(m){return m.uid}),faqUids:a==null||(b=a.serviceSettings)===null||b===void 0||(b=b.faqs)===null||b===void 0?void 0:b.map(function(m){return m.uid}),guessFaqUids:a==null||(E=a.serviceSettings)===null||E===void 0||(E=E.guessFaqs)===null||E===void 0?void 0:E.map(function(m){return m.uid}),shortcutFaqUids:a==null||(B=a.serviceSettings)===null||B===void 0||(B=B.shortcutFaqs)===null||B===void 0?void 0:B.map(function(m){return m.uid})})}),console.log("robotObject:",J),z.next=6,(0,w.$l)(J);case 6:ce=z.sent,console.log("updateRobot response:",ce),ce.code===200?(t.yw.destroy(),t.yw.success(H.formatMessage({id:"update.success"})),ve(ce.data)):(t.yw.destroy(),t.yw.error(ce.message)),z.next=29;break;case 11:if(se!==ee.Njn){z.next=21;break}return We=o()(o()({},s),{},{serviceSettings:o()(o()({},s==null?void 0:s.serviceSettings),{},{showHotFaqs:c.showHotFaqs,hotFaqUids:c.hotFaqUids,robotUid:s==null||(C=s.serviceSettings)===null||C===void 0||(C=C.robot)===null||C===void 0?void 0:C.uid,quickFaqUids:s==null||(i=s.serviceSettings)===null||i===void 0||(i=i.quickFaqs)===null||i===void 0?void 0:i.map(function(m){return m.uid}),guessFaqUids:s==null||(ge=s.serviceSettings)===null||ge===void 0||(ge=ge.guessFaqs)===null||ge===void 0?void 0:ge.map(function(m){return m.uid}),faqUids:s==null||(pe=s.serviceSettings)===null||pe===void 0||(pe=pe.faqs)===null||pe===void 0?void 0:pe.map(function(m){return m.uid}),shortcutFaqUids:s==null||(me=s.serviceSettings)===null||me===void 0||(me=me.shortcutFaqs)===null||me===void 0?void 0:me.map(function(m){return m.uid}),worktimeUids:s==null||(Ee=s.serviceSettings)===null||Ee===void 0||(Ee=Ee.worktimes)===null||Ee===void 0?void 0:Ee.map(function(m){return m.uid})}),autoReplySettings:o()({},s.autoReplySettings)}),console.log("agentObject:",We),z.next=16,(0,Ae.sE)(We);case 16:Pe=z.sent,console.log("updateAgent response:",Pe),Pe.code===200?(t.yw.destroy(),t.yw.success(H.formatMessage({id:"update.success"})),R(Pe.data)):(t.yw.destroy(),t.yw.error(Pe.message)),z.next=29;break;case 21:if(se!==ee.aZD){z.next=29;break}return Be=o()(o()({},_),{},{serviceSettings:o()(o()({},_.serviceSettings),{},{showHotFaqs:c.showHotFaqs,hotFaqUids:c.hotFaqUids,robotUid:(fe=_.serviceSettings)===null||fe===void 0||(fe=fe.robot)===null||fe===void 0?void 0:fe.uid,quickFaqUids:(he=_.serviceSettings)===null||he===void 0||(he=he.quickFaqs)===null||he===void 0?void 0:he.map(function(m){return m.uid}),faqUids:_==null||(Me=_.serviceSettings)===null||Me===void 0||(Me=Me.faqs)===null||Me===void 0?void 0:Me.map(function(m){return m.uid}),guessFaqUids:_==null||(re=_.serviceSettings)===null||re===void 0||(re=re.guessFaqs)===null||re===void 0?void 0:re.map(function(m){return m.uid}),shortcutFaqUids:_==null||(Z=_.serviceSettings)===null||Z===void 0||(Z=Z.shortcutFaqs)===null||Z===void 0?void 0:Z.map(function(m){return m.uid}),worktimeUids:(je=_.serviceSettings)===null||je===void 0||(je=je.worktimes)===null||je===void 0?void 0:je.map(function(m){return m.uid})}),agentUids:_.agents.map(function(m){return m.uid})}),console.log("workgroupObject:",Be),z.next=26,(0,Oe.W5)(Be);case 26:Te=z.sent,console.log("updateWorkGroup response:",Te),Te.code===200?(t.yw.destroy(),t.yw.success(H.formatMessage({id:"update.success"})),ie(Te.data)):(t.yw.destroy(),t.yw.error(Te.message));case 29:case"end":return z.stop()}},h)}));return function(c){return u.apply(this,arguments)}}(),_e=function(){var u=p()(n()().mark(function h(c){return n()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:console.log("TabFaqHots handleChange",c);case 1:case"end":return b.stop()}},h)}));return function(c){return u.apply(this,arguments)}}();return(0,I.jsxs)("div",{children:[(0,I.jsx)(X.Z,{message:"\u8BF7\u5148\u5230 \u77E5\u8BC6\u5E93 -> \u5E38\u89C1\u95EE\u9898 -> \u65B0\u5EFA\uFF0C\u521B\u5EFA\u5E38\u89C1\u95EE\u9898\u4E4B\u540E\uFF0C\u518D\u6765\u6DFB\u52A0",type:"success",action:(0,I.jsx)(de.ZP,{type:"link",icon:(0,I.jsx)(D.Z,{}),onClick:function(){return window.open(ee.rVq)},children:H.formatMessage({id:"setting.helpdoc"})})}),(0,I.jsx)(Ce.Z,{}),(0,I.jsxs)(O.A,{form:oe,layout:"vertical",onFinish:le,children:[(0,I.jsx)($.Z,{label:"\u662F\u5426\u663E\u793A\u70ED\u95E8\u95EE\u9898",name:"showHotFaqs",fieldProps:{onChange:_e}}),(0,I.jsx)(O.A.Item,{children:(0,I.jsx)(de.ZP,{icon:(0,I.jsx)(y.Z,{}),onClick:function(){g("/kb/faq/data")},children:"\u6DFB\u52A0\u5E38\u89C1\u95EE\u9898"},"github")}),(0,I.jsx)(x.Z,{name:"hotFaqUids",width:"md",label:H.formatMessage({id:"menu.knowledge.faqHot"}),options:S==null||(r=S.data)===null||r===void 0?void 0:r.content.map(function(u){return{label:q(u.title),value:u.uid}}),fieldProps:{mode:"multiple",allowClear:!0,placeholder:(0,I.jsx)(f.FormattedMessage,{id:"choose",defaultMessage:"Choose"})}})]})]})};G.Z=P},51364:function(Ue,G,e){var L=e(97857),o=e.n(L),K=e(15009),n=e.n(K),l=e(99289),p=e.n(l),W=e(5574),A=e.n(W),t=e(80049),T=e(40401),w=e(76545),d=e(73803),F=e(37326),j=e(87676),D=e(48489),y=e(87603),O=e(34994),$=e(52688),x=e(64317),f=e(86745),X=e(40056),de=e(14726),Ce=e(96074),V=e(67294),ae=e(30694),Fe=e(18678),ee=e(85615),Ae=e(3418),Oe=e(21317),I=e(85893),P=function(be){var r,se=be.type,Re=O.A.useForm(),U=A()(Re,1),oe=U[0],H=(0,f.useIntl)(),g=(0,f.useNavigate)(),k=(0,d.Z)(),q=k.translateString,M=(0,j.u)(function(u){return u.currentOrg}),te=(0,V.useState)(),Y=A()(te,2),S=Y[0],ue=Y[1],Q=(0,F.V)(function(u){return{currentRobot:u.currentRobot,setCurrentRobot:u.setCurrentRobot}}),a=Q.currentRobot,ve=Q.setCurrentRobot,N=(0,ae.E)(function(u){return{currentAgent:u.currentAgent,setCurrentAgent:u.setCurrentAgent}}),s=N.currentAgent,R=N.setCurrentAgent,ne=(0,Fe.$)(function(u){return{currentWorkgroup:u.currentWorkgroup,setCurrentWorkgroup:u.setCurrentWorkgroup}}),_=ne.currentWorkgroup,ie=ne.setCurrentWorkgroup,De=function(){var u=p()(n()().mark(function h(){var c,v;return n()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return t.yw.loading(H.formatMessage({id:"loading",defaultMessage:"Loading"})),c={pageNumber:0,pageSize:50,orgUid:M.uid},E.next=4,(0,T.pf)(c);case 4:v=E.sent,console.log("getAllFaqs response:",c,v),t.yw.destroy(),v.code===200?ue(v):t.yw.error(v.message);case 8:case"end":return E.stop()}},h)}));return function(){return u.apply(this,arguments)}}();(0,V.useEffect)(function(){De()},[M]),(0,V.useEffect)(function(){if(se===ee._X4){var u,h;oe.setFieldsValue({showQuickFaqs:a==null||(u=a.serviceSettings)===null||u===void 0?void 0:u.showQuickFaqs,quickFaqUids:a==null||(h=a.serviceSettings)===null||h===void 0||(h=h.quickFaqs)===null||h===void 0?void 0:h.map(function(B){return B.uid})})}else if(se===ee.Njn){var c,v;oe.setFieldsValue({showQuickFaqs:s==null||(c=s.serviceSettings)===null||c===void 0?void 0:c.showQuickFaqs,quickFaqUids:s==null||(v=s.serviceSettings)===null||v===void 0||(v=v.quickFaqs)===null||v===void 0?void 0:v.map(function(B){return B.uid})})}else if(se===ee.aZD){var b,E;oe.setFieldsValue({showQuickFaqs:_==null||(b=_.serviceSettings)===null||b===void 0?void 0:b.showQuickFaqs,quickFaqUids:_==null||(E=_.serviceSettings)===null||E===void 0||(E=E.quickFaqs)===null||E===void 0?void 0:E.map(function(B){return B.uid})})}},[a,s,_]);var le=function(){var u=p()(n()().mark(function h(c){var v,b,E,B,J,ce,C,i,ge,pe,me,Ee,We,Pe,fe,he,Me,re,Z,je,Be,Te;return n()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(console.log("onFinish",c),se!==ee._X4){z.next=11;break}return J=o()(o()({},a),{},{serviceSettings:o()(o()({},a.serviceSettings),{},{showQuickFaqs:c.showQuickFaqs,quickFaqUids:c.quickFaqUids,faqUids:a==null||(v=a.serviceSettings)===null||v===void 0||(v=v.faqs)===null||v===void 0?void 0:v.map(function(m){return m.uid}),guessFaqUids:a==null||(b=a.serviceSettings)===null||b===void 0||(b=b.guessFaqs)===null||b===void 0?void 0:b.map(function(m){return m.uid}),hotFaqUids:a==null||(E=a.serviceSettings)===null||E===void 0||(E=E.hotFaqs)===null||E===void 0?void 0:E.map(function(m){return m.uid}),shortcutFaqUids:a==null||(B=a.serviceSettings)===null||B===void 0||(B=B.shortcutFaqs)===null||B===void 0?void 0:B.map(function(m){return m.uid})})}),console.log("robotObject:",J),z.next=6,(0,w.$l)(J);case 6:ce=z.sent,console.log("updateRobot response:",ce),ce.code===200?(t.yw.destroy(),t.yw.success(H.formatMessage({id:"update.success"})),ve(ce.data)):(t.yw.destroy(),t.yw.error(ce.message)),z.next=29;break;case 11:if(se!==ee.Njn){z.next=21;break}return We=o()(o()({},s),{},{serviceSettings:o()(o()({},s==null?void 0:s.serviceSettings),{},{showQuickFaqs:c.showQuickFaqs,quickFaqUids:c.quickFaqUids,robotUid:s==null||(C=s.serviceSettings)===null||C===void 0||(C=C.robot)===null||C===void 0?void 0:C.uid,faqUids:s==null||(i=s.serviceSettings)===null||i===void 0||(i=i.faqs)===null||i===void 0?void 0:i.map(function(m){return m.uid}),guessFaqUids:s==null||(ge=s.serviceSettings)===null||ge===void 0||(ge=ge.guessFaqs)===null||ge===void 0?void 0:ge.map(function(m){return m.uid}),hotFaqUids:s==null||(pe=s.serviceSettings)===null||pe===void 0||(pe=pe.hotFaqs)===null||pe===void 0?void 0:pe.map(function(m){return m.uid}),shortcutFaqUids:s==null||(me=s.serviceSettings)===null||me===void 0||(me=me.shortcutFaqs)===null||me===void 0?void 0:me.map(function(m){return m.uid}),worktimeUids:s==null||(Ee=s.serviceSettings)===null||Ee===void 0||(Ee=Ee.worktimes)===null||Ee===void 0?void 0:Ee.map(function(m){return m.uid})}),autoReplySettings:o()({},s.autoReplySettings)}),console.log("agentObject:",We),z.next=16,(0,Ae.sE)(We);case 16:Pe=z.sent,console.log("updateAgent response:",Pe),Pe.code===200?(t.yw.destroy(),t.yw.success(H.formatMessage({id:"update.success"})),R(Pe.data)):(t.yw.destroy(),t.yw.error(Pe.message)),z.next=29;break;case 21:if(se!==ee.aZD){z.next=29;break}return Be=o()(o()({},_),{},{serviceSettings:o()(o()({},_.serviceSettings),{},{showQuickFaqs:c.showQuickFaqs,quickFaqUids:c.quickFaqUids,robotUid:(fe=_.serviceSettings)===null||fe===void 0||(fe=fe.robot)===null||fe===void 0?void 0:fe.uid,faqUids:(he=_.serviceSettings)===null||he===void 0||(he=he.faqs)===null||he===void 0?void 0:he.map(function(m){return m.uid}),guessFaqUids:_==null||(Me=_.serviceSettings)===null||Me===void 0||(Me=Me.guessFaqs)===null||Me===void 0?void 0:Me.map(function(m){return m.uid}),hotFaqUids:_==null||(re=_.serviceSettings)===null||re===void 0||(re=re.hotFaqs)===null||re===void 0?void 0:re.map(function(m){return m.uid}),shortcutFaqUids:_==null||(Z=_.serviceSettings)===null||Z===void 0||(Z=Z.shortcutFaqs)===null||Z===void 0?void 0:Z.map(function(m){return m.uid}),worktimeUids:(je=_.serviceSettings)===null||je===void 0||(je=je.worktimes)===null||je===void 0?void 0:je.map(function(m){return m.uid})}),agentUids:_.agents.map(function(m){return m.uid})}),console.log("workgroupObject:",Be),z.next=26,(0,Oe.W5)(Be);case 26:Te=z.sent,console.log("updateWorkGroup response:",Te),Te.code===200?(t.yw.destroy(),t.yw.success(H.formatMessage({id:"update.success"})),ie(Te.data)):(t.yw.destroy(),t.yw.error(Te.message));case 29:case"end":return z.stop()}},h)}));return function(c){return u.apply(this,arguments)}}(),_e=function(){var u=p()(n()().mark(function h(c){return n()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:console.log("TabFaqs handleChange",c);case 1:case"end":return b.stop()}},h)}));return function(c){return u.apply(this,arguments)}}();return(0,I.jsxs)("div",{children:[(0,I.jsx)(X.Z,{message:"\u8BF7\u5148\u5230 \u77E5\u8BC6\u5E93 -> \u5E38\u89C1\u95EE\u9898 -> \u65B0\u5EFA\uFF0C\u521B\u5EFA\u5E38\u89C1\u95EE\u9898\u4E4B\u540E\uFF0C\u518D\u6765\u6DFB\u52A0",type:"success",action:(0,I.jsx)(de.ZP,{type:"link",icon:(0,I.jsx)(D.Z,{}),onClick:function(){return window.open(ee.rVq)},children:H.formatMessage({id:"setting.helpdoc"})})}),(0,I.jsx)(Ce.Z,{}),(0,I.jsxs)(O.A,{form:oe,layout:"vertical",onFinish:le,children:[(0,I.jsx)($.Z,{label:"\u662F\u5426\u663E\u793A\u5FEB\u6377\u6309\u94AE",name:"showQuickFaqs",fieldProps:{onChange:_e}}),(0,I.jsx)(O.A.Item,{children:(0,I.jsx)(de.ZP,{icon:(0,I.jsx)(y.Z,{}),onClick:function(){g("/kb/faq/data")},children:"\u6DFB\u52A0\u5E38\u89C1\u95EE\u9898"},"github")}),(0,I.jsx)(x.Z,{name:"quickFaqUids",width:"md",label:H.formatMessage({id:"menu.knowledge.quickbutton"}),options:S==null||(r=S.data)===null||r===void 0?void 0:r.content.map(function(u){return{label:q(u.title),value:u.uid}}),fieldProps:{mode:"multiple",allowClear:!0,placeholder:(0,I.jsx)(f.FormattedMessage,{id:"choose",defaultMessage:"Choose"})}})]})]})};G.Z=P},99072:function(Ue,G,e){var L=e(97857),o=e.n(L),K=e(15009),n=e.n(K),l=e(99289),p=e.n(l),W=e(5574),A=e.n(W),t=e(80049),T=e(40401),w=e(76545),d=e(73803),F=e(37326),j=e(87676),D=e(48489),y=e(87603),O=e(34994),$=e(52688),x=e(64317),f=e(86745),X=e(40056),de=e(14726),Ce=e(96074),V=e(67294),ae=e(30694),Fe=e(18678),ee=e(85615),Ae=e(3418),Oe=e(21317),I=e(85893),P=function(be){var r,se=be.type,Re=O.A.useForm(),U=A()(Re,1),oe=U[0],H=(0,f.useIntl)(),g=(0,f.useNavigate)(),k=(0,d.Z)(),q=k.translateString,M=(0,j.u)(function(u){return u.currentOrg}),te=(0,V.useState)(),Y=A()(te,2),S=Y[0],ue=Y[1],Q=(0,F.V)(function(u){return{currentRobot:u.currentRobot,setCurrentRobot:u.setCurrentRobot}}),a=Q.currentRobot,ve=Q.setCurrentRobot,N=(0,ae.E)(function(u){return{currentAgent:u.currentAgent,setCurrentAgent:u.setCurrentAgent}}),s=N.currentAgent,R=N.setCurrentAgent,ne=(0,Fe.$)(function(u){return{currentWorkgroup:u.currentWorkgroup,setCurrentWorkgroup:u.setCurrentWorkgroup}}),_=ne.currentWorkgroup,ie=ne.setCurrentWorkgroup,De=function(){var u=p()(n()().mark(function h(){var c,v;return n()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return t.yw.loading(H.formatMessage({id:"loading",defaultMessage:"Loading"})),c={pageNumber:0,pageSize:50,orgUid:M.uid},E.next=4,(0,T.pf)(c);case 4:v=E.sent,console.log("getAllFaqs response:",c,v),t.yw.destroy(),v.code===200?ue(v):t.yw.error(v.message);case 8:case"end":return E.stop()}},h)}));return function(){return u.apply(this,arguments)}}();(0,V.useEffect)(function(){De()},[M]),(0,V.useEffect)(function(){if(se===ee._X4){var u,h;oe.setFieldsValue({showshortcutFaqs:a==null||(u=a.serviceSettings)===null||u===void 0?void 0:u.showshortcutFaqs,shortcutFaqUids:(a==null||(h=a.serviceSettings)===null||h===void 0||(h=h.shortcutFaqs)===null||h===void 0?void 0:h.map(function(B){return B.uid}))||[]})}else if(se===ee.Njn){var c,v;oe.setFieldsValue({showshortcutFaqs:s==null||(c=s.serviceSettings)===null||c===void 0?void 0:c.showshortcutFaqs,shortcutFaqUids:(s==null||(v=s.serviceSettings)===null||v===void 0||(v=v.shortcutFaqs)===null||v===void 0?void 0:v.map(function(B){return B.uid}))||[]})}else if(se===ee.aZD){var b,E;oe.setFieldsValue({showshortcutFaqs:_==null||(b=_.serviceSettings)===null||b===void 0?void 0:b.showshortcutFaqs,shortcutFaqUids:(_==null||(E=_.serviceSettings)===null||E===void 0||(E=E.shortcutFaqs)===null||E===void 0?void 0:E.map(function(B){return B.uid}))||[]})}},[a,s,_]);var le=function(){var u=p()(n()().mark(function h(c){var v,b,E,B,J,ce,C,i,ge,pe,me,Ee,We,Pe,fe,he,Me,re,Z,je,Be,Te;return n()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(console.log("onFinish",c,se),se!==ee._X4){z.next=11;break}return J=o()(o()({},a),{},{serviceSettings:o()(o()({},a.serviceSettings),{},{showshortcutFaqs:c.showshortcutFaqs,shortcutFaqUids:c.shortcutFaqUids,quickFaqUids:a==null||(v=a.serviceSettings)===null||v===void 0||(v=v.quickFaqs)===null||v===void 0?void 0:v.map(function(m){return m.uid}),faqUids:a==null||(b=a.serviceSettings)===null||b===void 0||(b=b.faqs)===null||b===void 0?void 0:b.map(function(m){return m.uid}),guessFaqUids:a==null||(E=a.serviceSettings)===null||E===void 0||(E=E.guessFaqs)===null||E===void 0?void 0:E.map(function(m){return m.uid}),hotFaqUids:a==null||(B=a.serviceSettings)===null||B===void 0||(B=B.hotFaqs)===null||B===void 0?void 0:B.map(function(m){return m.uid})})}),console.log("robotObject:",J),z.next=6,(0,w.$l)(J);case 6:ce=z.sent,console.log("updateRobot response:",ce),ce.code===200?(t.yw.destroy(),t.yw.success(H.formatMessage({id:"update.success"})),ve(ce.data)):(t.yw.destroy(),t.yw.error(ce.message)),z.next=29;break;case 11:if(se!==ee.Njn){z.next=21;break}return We=o()(o()({},s),{},{serviceSettings:o()(o()({},s==null?void 0:s.serviceSettings),{},{showshortcutFaqs:c.showshortcutFaqs,shortcutFaqUids:c.shortcutFaqUids,robotUid:s==null||(C=s.serviceSettings)===null||C===void 0||(C=C.robot)===null||C===void 0?void 0:C.uid,quickFaqUids:s==null||(i=s.serviceSettings)===null||i===void 0||(i=i.quickFaqs)===null||i===void 0?void 0:i.map(function(m){return m.uid}),guessFaqUids:s==null||(ge=s.serviceSettings)===null||ge===void 0||(ge=ge.guessFaqs)===null||ge===void 0?void 0:ge.map(function(m){return m.uid}),hotFaqUids:s==null||(pe=s.serviceSettings)===null||pe===void 0||(pe=pe.hotFaqs)===null||pe===void 0?void 0:pe.map(function(m){return m.uid}),faqUids:s==null||(me=s.serviceSettings)===null||me===void 0||(me=me.faqs)===null||me===void 0?void 0:me.map(function(m){return m.uid}),worktimeUids:s==null||(Ee=s.serviceSettings)===null||Ee===void 0||(Ee=Ee.worktimes)===null||Ee===void 0?void 0:Ee.map(function(m){return m.uid})}),autoReplySettings:o()({},s.autoReplySettings)}),console.log("agentObject:",We),z.next=16,(0,Ae.sE)(We);case 16:Pe=z.sent,console.log("updateAgent response:",Pe),Pe.code===200?(t.yw.destroy(),t.yw.success(H.formatMessage({id:"update.success"})),R(Pe.data)):(t.yw.destroy(),t.yw.error(Pe.message)),z.next=29;break;case 21:if(se!==ee.aZD){z.next=29;break}return Be=o()(o()({},_),{},{serviceSettings:o()(o()({},_.serviceSettings),{},{showshortcutFaqs:c.showshortcutFaqs,shortcutFaqUids:c.shortcutFaqUids,robotUid:(fe=_.serviceSettings)===null||fe===void 0||(fe=fe.robot)===null||fe===void 0?void 0:fe.uid,quickFaqUids:(he=_.serviceSettings)===null||he===void 0||(he=he.quickFaqs)===null||he===void 0?void 0:he.map(function(m){return m.uid}),faqUids:_==null||(Me=_.serviceSettings)===null||Me===void 0||(Me=Me.faqs)===null||Me===void 0?void 0:Me.map(function(m){return m.uid}),hotFaqUids:_==null||(re=_.serviceSettings)===null||re===void 0||(re=re.hotFaqs)===null||re===void 0?void 0:re.map(function(m){return m.uid}),guessFaqUids:_==null||(Z=_.serviceSettings)===null||Z===void 0||(Z=Z.guessFaqs)===null||Z===void 0?void 0:Z.map(function(m){return m.uid}),worktimeUids:(je=_.serviceSettings)===null||je===void 0||(je=je.worktimes)===null||je===void 0?void 0:je.map(function(m){return m.uid})}),agentUids:_.agents.map(function(m){return m.uid})}),console.log("workgroupObject:",Be),z.next=26,(0,Oe.W5)(Be);case 26:Te=z.sent,console.log("updateWorkGroup response:",Te),Te.code===200?(t.yw.destroy(),t.yw.success(H.formatMessage({id:"update.success"})),ie(Te.data)):(t.yw.destroy(),t.yw.error(Te.message));case 29:case"end":return z.stop()}},h)}));return function(c){return u.apply(this,arguments)}}(),_e=function(){var u=p()(n()().mark(function h(c){return n()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:console.log("TabFaqShortcut handleChange",c);case 1:case"end":return b.stop()}},h)}));return function(c){return u.apply(this,arguments)}}();return(0,I.jsxs)("div",{children:[(0,I.jsx)(X.Z,{message:"\u8BF7\u5148\u5230 \u77E5\u8BC6\u5E93 -> \u5E38\u89C1\u95EE\u9898 -> \u65B0\u5EFA\uFF0C\u521B\u5EFA\u5E38\u89C1\u95EE\u9898\u4E4B\u540E\uFF0C\u518D\u6765\u6DFB\u52A0",type:"success",action:(0,I.jsx)(de.ZP,{type:"link",icon:(0,I.jsx)(D.Z,{}),onClick:function(){return window.open(ee.rVq)},children:H.formatMessage({id:"setting.helpdoc"})})}),(0,I.jsx)(Ce.Z,{}),(0,I.jsxs)(O.A,{form:oe,layout:"vertical",onFinish:le,children:[(0,I.jsx)($.Z,{label:"\u662F\u5426\u663E\u793A\u5FEB\u6377\u8DEF\u5F84",name:"showshortcutFaqs",fieldProps:{onChange:_e}}),(0,I.jsx)(O.A.Item,{children:(0,I.jsx)(de.ZP,{icon:(0,I.jsx)(y.Z,{}),onClick:function(){g("/kb/faq/data")},children:"\u6DFB\u52A0\u5E38\u89C1\u95EE\u9898"},"github")}),(0,I.jsx)(x.Z,{name:"shortcutFaqUids",width:"md",label:H.formatMessage({id:"menu.knowledge.faqShortcut"}),options:S==null||(r=S.data)===null||r===void 0?void 0:r.content.map(function(u){return{label:q(u.title),value:u.uid}}),fieldProps:{mode:"multiple",allowClear:!0,placeholder:(0,I.jsx)(f.FormattedMessage,{id:"choose",defaultMessage:"Choose"})}})]})]})};G.Z=P},73453:function(Ue,G,e){var L=e(15009),o=e.n(L),K=e(97857),n=e.n(K),l=e(99289),p=e.n(l),W=e(5574),A=e.n(W),t=e(80049),T=e(3418),w=e(76545),d=e(21317),F=e(30694),j=e(37326),D=e(18678),y=e(85615),O=e(34994),$=e(52688),x=e(86745),f=e(67294),X=e(85893),de=function(V){var ae=V.type,Fe=(0,x.useIntl)(),ee=O.A.useForm(),Ae=A()(ee,1),Oe=Ae[0],I=(0,j.V)(function(g){return{currentRobot:g.currentRobot,setCurrentRobot:g.setCurrentRobot}}),P=I.currentRobot,Se=I.setCurrentRobot,be=(0,F.E)(function(g){return{currentAgent:g.currentAgent,setCurrentAgent:g.setCurrentAgent}}),r=be.currentAgent,se=be.setCurrentAgent,Re=(0,D.$)(function(g){return{currentWorkgroup:g.currentWorkgroup,setCurrentWorkgroup:g.setCurrentWorkgroup}}),U=Re.currentWorkgroup,oe=Re.setCurrentWorkgroup;(0,f.useEffect)(function(){if(ae===y._X4){var g;Oe.setFieldsValue({showHistory:P==null||(g=P.serviceSettings)===null||g===void 0?void 0:g.showHistory})}else if(ae===y.Njn){var k;Oe.setFieldsValue({showHistory:r==null||(k=r.serviceSettings)===null||k===void 0?void 0:k.showHistory})}else if(ae===y.aZD){var q;Oe.setFieldsValue({showHistory:U==null||(q=U.serviceSettings)===null||q===void 0?void 0:q.showHistory})}},[P,r,U]);var H=function(){var g=p()(o()().mark(function k(q){var M,te,Y,S,ue,Q,a,ve,N,s,R,ne,_,ie,De,le,_e,u,h,c,v,b,E,B,J;return o()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(console.log("handleHistorySubmit:",q),console.log("onFinish",q),ae!==y._X4){C.next=12;break}return Q=n()(n()({},P),{},{serviceSettings:n()(n()({},P.serviceSettings),{},{showHistory:q.showHistory,faqUids:r==null||(M=r.serviceSettings)===null||M===void 0||(M=M.faqs)===null||M===void 0?void 0:M.map(function(i){return i.uid}),quickFaqUids:P==null||(te=P.serviceSettings)===null||te===void 0||(te=te.quickFaqs)===null||te===void 0?void 0:te.map(function(i){return i.uid}),guessFaqUids:P==null||(Y=P.serviceSettings)===null||Y===void 0||(Y=Y.guessFaqs)===null||Y===void 0?void 0:Y.map(function(i){return i.uid}),hotFaqUids:P==null||(S=P.serviceSettings)===null||S===void 0||(S=S.hotFaqs)===null||S===void 0?void 0:S.map(function(i){return i.uid}),shortcutFaqUids:P==null||(ue=P.serviceSettings)===null||ue===void 0||(ue=ue.shortcutFaqs)===null||ue===void 0?void 0:ue.map(function(i){return i.uid})})}),console.log("robotObject:",Q),C.next=7,(0,w.$l)(Q);case 7:a=C.sent,console.log("updateRobot response:",a),a.code===200?(t.yw.destroy(),t.yw.success(Fe.formatMessage({id:"update.success"})),Se(a.data)):(t.yw.destroy(),t.yw.error(a.message)),C.next=30;break;case 12:if(ae!==y.Njn){C.next=22;break}return De=n()(n()({},r),{},{serviceSettings:n()(n()({},r==null?void 0:r.serviceSettings),{},{showHistory:q.showHistory,faqUids:r==null||(ve=r.serviceSettings)===null||ve===void 0||(ve=ve.faqs)===null||ve===void 0?void 0:ve.map(function(i){return i.uid}),robotUid:r==null||(N=r.serviceSettings)===null||N===void 0||(N=N.robot)===null||N===void 0?void 0:N.uid,quickFaqUids:r==null||(s=r.serviceSettings)===null||s===void 0||(s=s.quickFaqs)===null||s===void 0?void 0:s.map(function(i){return i.uid}),guessFaqUids:r==null||(R=r.serviceSettings)===null||R===void 0||(R=R.guessFaqs)===null||R===void 0?void 0:R.map(function(i){return i.uid}),hotFaqUids:r==null||(ne=r.serviceSettings)===null||ne===void 0||(ne=ne.hotFaqs)===null||ne===void 0?void 0:ne.map(function(i){return i.uid}),shortcutFaqUids:r==null||(_=r.serviceSettings)===null||_===void 0||(_=_.shortcutFaqs)===null||_===void 0?void 0:_.map(function(i){return i.uid}),worktimeUids:r==null||(ie=r.serviceSettings)===null||ie===void 0||(ie=ie.worktimes)===null||ie===void 0?void 0:ie.map(function(i){return i.uid})}),autoReplySettings:n()({},r.autoReplySettings)}),console.log("agentObject:",De),C.next=17,(0,T.sE)(De);case 17:le=C.sent,console.log("updateAgent response:",le),le.code===200?(t.yw.destroy(),t.yw.success(Fe.formatMessage({id:"update.success"})),se(le.data)):(t.yw.destroy(),t.yw.error(le.message)),C.next=30;break;case 22:if(ae!==y.aZD){C.next=30;break}return B=n()(n()({},U),{},{serviceSettings:n()(n()({},U.serviceSettings),{},{showHistory:q.showHistory,faqUids:r==null||(_e=r.serviceSettings)===null||_e===void 0||(_e=_e.faqs)===null||_e===void 0?void 0:_e.map(function(i){return i.uid}),robotUid:(u=U.serviceSettings)===null||u===void 0||(u=u.robot)===null||u===void 0?void 0:u.uid,quickFaqUids:(h=U.serviceSettings)===null||h===void 0||(h=h.quickFaqs)===null||h===void 0?void 0:h.map(function(i){return i.uid}),guessFaqUids:U==null||(c=U.serviceSettings)===null||c===void 0||(c=c.guessFaqs)===null||c===void 0?void 0:c.map(function(i){return i.uid}),hotFaqUids:U==null||(v=U.serviceSettings)===null||v===void 0||(v=v.hotFaqs)===null||v===void 0?void 0:v.map(function(i){return i.uid}),shortcutFaqUids:U==null||(b=U.serviceSettings)===null||b===void 0||(b=b.shortcutFaqs)===null||b===void 0?void 0:b.map(function(i){return i.uid}),worktimeUids:(E=U.serviceSettings)===null||E===void 0||(E=E.worktimes)===null||E===void 0?void 0:E.map(function(i){return i.uid})}),agentUids:U.agents.map(function(i){return i.uid})}),console.log("workgroupObject:",B),C.next=27,(0,d.W5)(B);case 27:J=C.sent,console.log("updateWorkGroup response:",J),J.code===200?(t.yw.destroy(),t.yw.success(Fe.formatMessage({id:"update.success"})),oe(J.data)):(t.yw.destroy(),t.yw.error(J.message));case 30:case"end":return C.stop()}},k)}));return function(q){return g.apply(this,arguments)}}();return(0,X.jsx)("div",{children:(0,X.jsx)(O.A,{form:Oe,onFinish:H,children:(0,X.jsx)($.Z,{width:"md",name:"showHistory",label:Fe.formatMessage({id:"showHistory",defaultMessage:"Show History"})})})})};G.Z=de},91116:function(Ue,G,e){var L=e(15009),o=e.n(L),K=e(97857),n=e.n(K),l=e(99289),p=e.n(l),W=e(5574),A=e.n(W),t=e(80049),T=e(3418),w=e(76545),d=e(21317),F=e(30694),j=e(37326),D=e(18678),y=e(85615),O=e(34994),$=e(52688),x=e(86745),f=e(67294),X=e(85893),de=function(V){var ae=V.type,Fe=(0,x.useIntl)(),ee=O.A.useForm(),Ae=A()(ee,1),Oe=Ae[0],I=(0,j.V)(function(g){return{currentRobot:g.currentRobot,setCurrentRobot:g.setCurrentRobot}}),P=I.currentRobot,Se=I.setCurrentRobot,be=(0,F.E)(function(g){return{currentAgent:g.currentAgent,setCurrentAgent:g.setCurrentAgent}}),r=be.currentAgent,se=be.setCurrentAgent,Re=(0,D.$)(function(g){return{currentWorkgroup:g.currentWorkgroup,setCurrentWorkgroup:g.setCurrentWorkgroup}}),U=Re.currentWorkgroup,oe=Re.setCurrentWorkgroup;(0,f.useEffect)(function(){if(ae===y._X4){var g;Oe.setFieldsValue({showInputAssociation:P==null||(g=P.serviceSettings)===null||g===void 0?void 0:g.showInputAssociation})}else if(ae===y.Njn){var k;Oe.setFieldsValue({showInputAssociation:r==null||(k=r.serviceSettings)===null||k===void 0?void 0:k.showInputAssociation})}else if(ae===y.aZD){var q;Oe.setFieldsValue({showInputAssociation:U==null||(q=U.serviceSettings)===null||q===void 0?void 0:q.showInputAssociation})}},[P,r,U]);var H=function(){var g=p()(o()().mark(function k(q){var M,te,Y,S,ue,Q,a,ve,N,s,R,ne,_,ie,De,le,_e,u,h,c,v,b,E,B,J;return o()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(console.log("handleInputAssociationSubmit:",q),ae!==y._X4){C.next=11;break}return Q=n()(n()({},P),{},{serviceSettings:n()(n()({},P.serviceSettings),{},{showInputAssociation:q.showInputAssociation,faqUids:r==null||(M=r.serviceSettings)===null||M===void 0||(M=M.faqs)===null||M===void 0?void 0:M.map(function(i){return i.uid}),quickFaqUids:P==null||(te=P.serviceSettings)===null||te===void 0||(te=te.quickFaqs)===null||te===void 0?void 0:te.map(function(i){return i.uid}),guessFaqUids:P==null||(Y=P.serviceSettings)===null||Y===void 0||(Y=Y.guessFaqs)===null||Y===void 0?void 0:Y.map(function(i){return i.uid}),hotFaqUids:P==null||(S=P.serviceSettings)===null||S===void 0||(S=S.hotFaqs)===null||S===void 0?void 0:S.map(function(i){return i.uid}),shortcutFaqUids:P==null||(ue=P.serviceSettings)===null||ue===void 0||(ue=ue.shortcutFaqs)===null||ue===void 0?void 0:ue.map(function(i){return i.uid})})}),console.log("robotObject:",Q),C.next=6,(0,w.$l)(Q);case 6:a=C.sent,console.log("updateRobot response:",a),a.code===200?(t.yw.destroy(),t.yw.success(Fe.formatMessage({id:"update.success"})),Se(a.data)):(t.yw.destroy(),t.yw.error(a.message)),C.next=29;break;case 11:if(ae!==y.Njn){C.next=21;break}return De=n()(n()({},r),{},{serviceSettings:n()(n()({},r==null?void 0:r.serviceSettings),{},{showInputAssociation:q.showInputAssociation,faqUids:r==null||(ve=r.serviceSettings)===null||ve===void 0||(ve=ve.faqs)===null||ve===void 0?void 0:ve.map(function(i){return i.uid}),robotUid:r==null||(N=r.serviceSettings)===null||N===void 0||(N=N.robot)===null||N===void 0?void 0:N.uid,quickFaqUids:r==null||(s=r.serviceSettings)===null||s===void 0||(s=s.quickFaqs)===null||s===void 0?void 0:s.map(function(i){return i.uid}),guessFaqUids:r==null||(R=r.serviceSettings)===null||R===void 0||(R=R.guessFaqs)===null||R===void 0?void 0:R.map(function(i){return i.uid}),hotFaqUids:r==null||(ne=r.serviceSettings)===null||ne===void 0||(ne=ne.hotFaqs)===null||ne===void 0?void 0:ne.map(function(i){return i.uid}),shortcutFaqUids:r==null||(_=r.serviceSettings)===null||_===void 0||(_=_.shortcutFaqs)===null||_===void 0?void 0:_.map(function(i){return i.uid}),worktimeUids:r==null||(ie=r.serviceSettings)===null||ie===void 0||(ie=ie.worktimes)===null||ie===void 0?void 0:ie.map(function(i){return i.uid})}),autoReplySettings:n()({},r.autoReplySettings)}),console.log("agentObject:",De),C.next=16,(0,T.sE)(De);case 16:le=C.sent,console.log("updateAgent response:",le),le.code===200?(t.yw.destroy(),t.yw.success(Fe.formatMessage({id:"update.success"})),se(le.data)):(t.yw.destroy(),t.yw.error(le.message)),C.next=29;break;case 21:if(ae!==y.aZD){C.next=29;break}return B=n()(n()({},U),{},{serviceSettings:n()(n()({},U.serviceSettings),{},{showInputAssociation:q.showInputAssociation,faqUids:r==null||(_e=r.serviceSettings)===null||_e===void 0||(_e=_e.faqs)===null||_e===void 0?void 0:_e.map(function(i){return i.uid}),robotUid:(u=U.serviceSettings)===null||u===void 0||(u=u.robot)===null||u===void 0?void 0:u.uid,quickFaqUids:(h=U.serviceSettings)===null||h===void 0||(h=h.quickFaqs)===null||h===void 0?void 0:h.map(function(i){return i.uid}),guessFaqUids:U==null||(c=U.serviceSettings)===null||c===void 0||(c=c.guessFaqs)===null||c===void 0?void 0:c.map(function(i){return i.uid}),hotFaqUids:U==null||(v=U.serviceSettings)===null||v===void 0||(v=v.hotFaqs)===null||v===void 0?void 0:v.map(function(i){return i.uid}),shortcutFaqUids:U==null||(b=U.serviceSettings)===null||b===void 0||(b=b.shortcutFaqs)===null||b===void 0?void 0:b.map(function(i){return i.uid}),worktimeUids:(E=U.serviceSettings)===null||E===void 0||(E=E.worktimes)===null||E===void 0?void 0:E.map(function(i){return i.uid})}),agentUids:U.agents.map(function(i){return i.uid})}),console.log("workgroupObject:",B),C.next=26,(0,d.W5)(B);case 26:J=C.sent,console.log("updateWorkGroup response:",J),J.code===200?(t.yw.destroy(),t.yw.success(Fe.formatMessage({id:"update.success"})),oe(J.data)):(t.yw.destroy(),t.yw.error(J.message));case 29:case"end":return C.stop()}},k)}));return function(q){return g.apply(this,arguments)}}();return(0,X.jsx)("div",{children:(0,X.jsx)(O.A,{form:Oe,onFinish:H,children:(0,X.jsx)($.Z,{width:"md",name:"showInputAssociation",label:Fe.formatMessage({id:"showInputAssociation",defaultMessage:"Show Input Association"})})})})};G.Z=de},35791:function(Ue,G,e){var L=e(15009),o=e.n(L),K=e(97857),n=e.n(K),l=e(99289),p=e.n(l),W=e(5574),A=e.n(W),t=e(80049),T=e(3418),w=e(76545),d=e(21317),F=e(30694),j=e(37326),D=e(18678),y=e(85615),O=e(34994),$=e(52688),x=e(86745),f=e(67294),X=e(85893),de=function(V){var ae=V.type,Fe=(0,x.useIntl)(),ee=O.A.useForm(),Ae=A()(ee,1),Oe=Ae[0],I=(0,j.V)(function(g){return{currentRobot:g.currentRobot,setCurrentRobot:g.setCurrentRobot}}),P=I.currentRobot,Se=I.setCurrentRobot,be=(0,F.E)(function(g){return{currentAgent:g.currentAgent,setCurrentAgent:g.setCurrentAgent}}),r=be.currentAgent,se=be.setCurrentAgent,Re=(0,D.$)(function(g){return{currentWorkgroup:g.currentWorkgroup,setCurrentWorkgroup:g.setCurrentWorkgroup}}),U=Re.currentWorkgroup,oe=Re.setCurrentWorkgroup;(0,f.useEffect)(function(){if(ae===y._X4){var g;Oe.setFieldsValue({showPreForm:P==null||(g=P.serviceSettings)===null||g===void 0?void 0:g.showPreForm})}else if(ae===y.Njn){var k;Oe.setFieldsValue({showPreForm:r==null||(k=r.serviceSettings)===null||k===void 0?void 0:k.showPreForm})}else if(ae===y.aZD){var q;Oe.setFieldsValue({showPreForm:U==null||(q=U.serviceSettings)===null||q===void 0?void 0:q.showPreForm})}},[P,r,U]);var H=function(){var g=p()(o()().mark(function k(q){var M,te,Y,S,ue,Q,a,ve,N,s,R,ne,_,ie,De,le,_e,u,h,c,v,b,E,B,J;return o()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(console.log("handlePreFormSubmit:",q),ae!==y._X4){C.next=11;break}return Q=n()(n()({},P),{},{serviceSettings:n()(n()({},P.serviceSettings),{},{showPreForm:q.showPreForm,faqUids:r==null||(M=r.serviceSettings)===null||M===void 0||(M=M.faqs)===null||M===void 0?void 0:M.map(function(i){return i.uid}),quickFaqUids:P==null||(te=P.serviceSettings)===null||te===void 0||(te=te.quickFaqs)===null||te===void 0?void 0:te.map(function(i){return i.uid}),guessFaqUids:P==null||(Y=P.serviceSettings)===null||Y===void 0||(Y=Y.guessFaqs)===null||Y===void 0?void 0:Y.map(function(i){return i.uid}),hotFaqUids:P==null||(S=P.serviceSettings)===null||S===void 0||(S=S.hotFaqs)===null||S===void 0?void 0:S.map(function(i){return i.uid}),shortcutFaqUids:P==null||(ue=P.serviceSettings)===null||ue===void 0||(ue=ue.shortcutFaqs)===null||ue===void 0?void 0:ue.map(function(i){return i.uid})})}),console.log("robotObject:",Q),C.next=6,(0,w.$l)(Q);case 6:a=C.sent,console.log("updateRobot response:",a),a.code===200?(t.yw.destroy(),t.yw.success(Fe.formatMessage({id:"update.success"})),Se(a.data)):(t.yw.destroy(),t.yw.error(a.message)),C.next=29;break;case 11:if(ae!==y.Njn){C.next=21;break}return De=n()(n()({},r),{},{serviceSettings:n()(n()({},r==null?void 0:r.serviceSettings),{},{showPreForm:q.showPreForm,faqUids:r==null||(ve=r.serviceSettings)===null||ve===void 0||(ve=ve.faqs)===null||ve===void 0?void 0:ve.map(function(i){return i.uid}),robotUid:r==null||(N=r.serviceSettings)===null||N===void 0||(N=N.robot)===null||N===void 0?void 0:N.uid,quickFaqUids:r==null||(s=r.serviceSettings)===null||s===void 0||(s=s.quickFaqs)===null||s===void 0?void 0:s.map(function(i){return i.uid}),guessFaqUids:r==null||(R=r.serviceSettings)===null||R===void 0||(R=R.guessFaqs)===null||R===void 0?void 0:R.map(function(i){return i.uid}),hotFaqUids:r==null||(ne=r.serviceSettings)===null||ne===void 0||(ne=ne.hotFaqs)===null||ne===void 0?void 0:ne.map(function(i){return i.uid}),shortcutFaqUids:r==null||(_=r.serviceSettings)===null||_===void 0||(_=_.shortcutFaqs)===null||_===void 0?void 0:_.map(function(i){return i.uid}),worktimeUids:r==null||(ie=r.serviceSettings)===null||ie===void 0||(ie=ie.worktimes)===null||ie===void 0?void 0:ie.map(function(i){return i.uid})}),autoReplySettings:n()({},r.autoReplySettings)}),console.log("agentObject:",De),C.next=16,(0,T.sE)(De);case 16:le=C.sent,console.log("updateAgent response:",le),le.code===200?(t.yw.destroy(),t.yw.success(Fe.formatMessage({id:"update.success"})),se(le.data)):(t.yw.destroy(),t.yw.error(le.message)),C.next=29;break;case 21:if(ae!==y.aZD){C.next=29;break}return B=n()(n()({},U),{},{serviceSettings:n()(n()({},U.serviceSettings),{},{showPreForm:q.showPreForm,faqUids:r==null||(_e=r.serviceSettings)===null||_e===void 0||(_e=_e.faqs)===null||_e===void 0?void 0:_e.map(function(i){return i.uid}),robotUid:(u=U.serviceSettings)===null||u===void 0||(u=u.robot)===null||u===void 0?void 0:u.uid,quickFaqUids:(h=U.serviceSettings)===null||h===void 0||(h=h.quickFaqs)===null||h===void 0?void 0:h.map(function(i){return i.uid}),guessFaqUids:U==null||(c=U.serviceSettings)===null||c===void 0||(c=c.guessFaqs)===null||c===void 0?void 0:c.map(function(i){return i.uid}),hotFaqUids:U==null||(v=U.serviceSettings)===null||v===void 0||(v=v.hotFaqs)===null||v===void 0?void 0:v.map(function(i){return i.uid}),shortcutFaqUids:U==null||(b=U.serviceSettings)===null||b===void 0||(b=b.shortcutFaqs)===null||b===void 0?void 0:b.map(function(i){return i.uid}),worktimeUids:(E=U.serviceSettings)===null||E===void 0||(E=E.worktimes)===null||E===void 0?void 0:E.map(function(i){return i.uid})}),agentUids:U.agents.map(function(i){return i.uid})}),console.log("workgroupObject:",B),C.next=26,(0,d.W5)(B);case 26:J=C.sent,console.log("updateWorkGroup response:",J),J.code===200?(t.yw.destroy(),t.yw.success(Fe.formatMessage({id:"update.success"})),oe(J.data)):(t.yw.destroy(),t.yw.error(J.message));case 29:case"end":return C.stop()}},k)}));return function(q){return g.apply(this,arguments)}}();return(0,X.jsx)("div",{children:(0,X.jsx)(O.A,{form:Oe,onFinish:H,children:(0,X.jsx)($.Z,{width:"md",name:"showPreForm",label:Fe.formatMessage({id:"showPreForm",defaultMessage:"Show PreForm"})})})})};G.Z=de},59518:function(Ue,G,e){var L=e(15009),o=e.n(L),K=e(97857),n=e.n(K),l=e(99289),p=e.n(l),W=e(5574),A=e.n(W),t=e(80049),T=e(3418),w=e(76545),d=e(21317),F=e(73803),j=e(30694),D=e(37326),y=e(18678),O=e(85615),$=e(34994),x=e(63434),f=e(90672),X=e(31199),de=e(86745),Ce=e(67294),V=e(85893),ae=function(ee){var Ae=ee.type,Oe=$.A.useForm(),I=A()(Oe,1),P=I[0],Se=(0,de.useIntl)(),be=(0,F.Z)(),r=be.translateString,se=(0,Ce.useState)(!1),Re=A()(se,2),U=Re[0],oe=Re[1],H=(0,D.V)(function(N){return{currentRobot:N.currentRobot,setCurrentRobot:N.setCurrentRobot}}),g=H.currentRobot,k=H.setCurrentRobot,q=(0,j.E)(function(N){return{currentAgent:N.currentAgent,setCurrentAgent:N.setCurrentAgent}}),M=q.currentAgent,te=q.setCurrentAgent,Y=(0,y.$)(function(N){return{currentWorkgroup:N.currentWorkgroup,setCurrentWorkgroup:N.setCurrentWorkgroup}}),S=Y.currentWorkgroup,ue=Y.setCurrentWorkgroup;(0,Ce.useEffect)(function(){if(Ae===O._X4){var N,s,R,ne,_,ie;P.setFieldValue("welcomeTip",r(g==null||(N=g.serviceSettings)===null||N===void 0?void 0:N.welcomeTip)),P.setFieldValue("topTip",r(g==null||(s=g.serviceSettings)===null||s===void 0?void 0:s.topTip)),P.setFieldValue("showTopTip",g==null||(R=g.serviceSettings)===null||R===void 0?void 0:R.showTopTip),P.setFieldValue("leavemsgTip",r(g==null||(ne=g.serviceSettings)===null||ne===void 0?void 0:ne.leavemsgTip)),P.setFieldValue("autoCloseMin",g==null||(_=g.serviceSettings)===null||_===void 0?void 0:_.autoCloseMin),P.setFieldValue("showLogo",g==null||(ie=g.serviceSettings)===null||ie===void 0?void 0:ie.showLogo)}else if(Ae===O.Njn){var De,le,_e,u,h,c;P.setFieldValue("welcomeTip",r(M==null||(De=M.serviceSettings)===null||De===void 0?void 0:De.welcomeTip)),P.setFieldValue("topTip",r(M==null||(le=M.serviceSettings)===null||le===void 0?void 0:le.topTip)),P.setFieldValue("showTopTip",M==null||(_e=M.serviceSettings)===null||_e===void 0?void 0:_e.showTopTip),P.setFieldValue("leavemsgTip",r(M==null||(u=M.serviceSettings)===null||u===void 0?void 0:u.leavemsgTip)),P.setFieldValue("autoCloseMin",M==null||(h=M.serviceSettings)===null||h===void 0?void 0:h.autoCloseMin),P.setFieldValue("showLogo",M==null||(c=M.serviceSettings)===null||c===void 0?void 0:c.showLogo),P.setFieldValue("maxThreadCount",M==null?void 0:M.maxThreadCount)}else if(Ae===O.aZD){var v,b,E,B,J,ce;P.setFieldValue("welcomeTip",r(S==null||(v=S.serviceSettings)===null||v===void 0?void 0:v.welcomeTip)),P.setFieldValue("topTip",r(S==null||(b=S.serviceSettings)===null||b===void 0?void 0:b.topTip)),P.setFieldValue("showTopTip",S==null||(E=S.serviceSettings)===null||E===void 0?void 0:E.showTopTip),P.setFieldValue("leavemsgTip",r(S==null||(B=S.serviceSettings)===null||B===void 0?void 0:B.leavemsgTip)),P.setFieldValue("autoCloseMin",S==null||(J=S.serviceSettings)===null||J===void 0?void 0:J.autoCloseMin),P.setFieldValue("showLogo",S==null||(ce=S.serviceSettings)===null||ce===void 0?void 0:ce.showLogo)}},[g,M,S]),(0,Ce.useEffect)(function(){var N;oe(M==null||(N=M.serviceSettings)===null||N===void 0?void 0:N.showTopTip)},[M]);var Q=function(s){var R;console.log("checked = ".concat(s.target.checked,", showTopTip:").concat(M==null||(R=M.serviceSettings)===null||R===void 0?void 0:R.showTopTip)),oe(s.target.checked)},a=function(s){console.log("onShowLogoChange = ".concat(s.target.checked))},ve=function(){var N=p()(o()().mark(function s(R){var ne,_,ie,De,le,_e,u,h,c,v,b,E,B,J,ce,C,i,ge,pe,me,Ee,We,Pe,fe,he;return o()().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(console.log("onFinish:",R," showTopTip:",U),t.yw.loading(Se.formatMessage({id:"updating"})),Ae!==O._X4){re.next=12;break}return _e=n()(n()({},g),{},{serviceSettings:n()(n()({},g.serviceSettings),{},{topTip:(R==null?void 0:R.topTip)||"",showTopTip:U,welcomeTip:(R==null?void 0:R.welcomeTip)||"",leavemsgTip:(R==null?void 0:R.leavemsgTip)||"",autoCloseMin:(R==null?void 0:R.autoCloseMin)||25,showLogo:(R==null?void 0:R.showLogo)||!0,quickFaqUids:(ne=M.serviceSettings)===null||ne===void 0||(ne=ne.quickFaqs)===null||ne===void 0?void 0:ne.map(function(Z){return Z.uid}),faqUids:g==null||(_=g.serviceSettings)===null||_===void 0||(_=_.faqs)===null||_===void 0?void 0:_.map(function(Z){return Z.uid}),guessFaqUids:g==null||(ie=g.serviceSettings)===null||ie===void 0||(ie=ie.guessFaqs)===null||ie===void 0?void 0:ie.map(function(Z){return Z.uid}),hotFaqUids:g==null||(De=g.serviceSettings)===null||De===void 0||(De=De.hotFaqs)===null||De===void 0?void 0:De.map(function(Z){return Z.uid}),shortcutFaqUids:g==null||(le=g.serviceSettings)===null||le===void 0||(le=le.shortcutFaqs)===null||le===void 0?void 0:le.map(function(Z){return Z.uid})})}),console.log("robotObject:",_e),re.next=7,(0,w.$l)(_e);case 7:u=re.sent,console.log("updateRobot response:",u),u.code===200?(t.yw.destroy(),t.yw.success(Se.formatMessage({id:"update.success"})),k(u.data)):(t.yw.destroy(),t.yw.error(u.message)),re.next=30;break;case 12:if(Ae!==O.Njn){re.next=22;break}return ce=n()(n()({},M),{},{serviceSettings:n()(n()({},M.serviceSettings),{},{topTip:(R==null?void 0:R.topTip)||"",showTopTip:U,welcomeTip:(R==null?void 0:R.welcomeTip)||"",leavemsgTip:(R==null?void 0:R.leavemsgTip)||"",autoCloseMin:(R==null?void 0:R.autoCloseMin)||25,showLogo:(R==null?void 0:R.showLogo)||!0,robotUid:(h=M.serviceSettings)===null||h===void 0||(h=h.robot)===null||h===void 0?void 0:h.uid,quickFaqUids:(c=M.serviceSettings)===null||c===void 0||(c=c.quickFaqs)===null||c===void 0?void 0:c.map(function(Z){return Z.uid}),faqUids:(v=M.serviceSettings)===null||v===void 0||(v=v.faqs)===null||v===void 0?void 0:v.map(function(Z){return Z.uid}),guessFaqUids:M==null||(b=M.serviceSettings)===null||b===void 0||(b=b.guessFaqs)===null||b===void 0?void 0:b.map(function(Z){return Z.uid}),hotFaqUids:M==null||(E=M.serviceSettings)===null||E===void 0||(E=E.hotFaqs)===null||E===void 0?void 0:E.map(function(Z){return Z.uid}),shortcutFaqUids:M==null||(B=M.serviceSettings)===null||B===void 0||(B=B.shortcutFaqs)===null||B===void 0?void 0:B.map(function(Z){return Z.uid}),worktimeUids:(J=M.serviceSettings)===null||J===void 0||(J=J.worktimes)===null||J===void 0?void 0:J.map(function(Z){return Z.uid})}),autoReplySettings:n()({},M.autoReplySettings),maxThreadCount:(R==null?void 0:R.maxThreadCount)||10}),console.log("agentObject:",ce),re.next=17,(0,T.sE)(ce);case 17:C=re.sent,console.log("updateAgent response:",C),C.code===200?(t.yw.destroy(),t.yw.success(Se.formatMessage({id:"update.success"})),te(C.data)):(t.yw.destroy(),t.yw.error(C.message)),re.next=30;break;case 22:if(Ae!==O.aZD){re.next=30;break}return fe=n()(n()({},S),{},{serviceSettings:n()(n()({},S.serviceSettings),{},{topTip:(R==null?void 0:R.topTip)||"",showTopTip:U,welcomeTip:(R==null?void 0:R.welcomeTip)||"",leavemsgTip:(R==null?void 0:R.leavemsgTip)||"",autoCloseMin:(R==null?void 0:R.autoCloseMin)||25,showLogo:(R==null?void 0:R.showLogo)||!0,robotUid:(i=S.serviceSettings)===null||i===void 0||(i=i.robot)===null||i===void 0?void 0:i.uid,quickFaqUids:(ge=S.serviceSettings)===null||ge===void 0||(ge=ge.quickFaqs)===null||ge===void 0?void 0:ge.map(function(Z){return Z.uid}),faqUids:(pe=S.serviceSettings)===null||pe===void 0||(pe=pe.faqs)===null||pe===void 0?void 0:pe.map(function(Z){return Z.uid}),guessFaqUids:S==null||(me=S.serviceSettings)===null||me===void 0||(me=me.guessFaqs)===null||me===void 0?void 0:me.map(function(Z){return Z.uid}),hotFaqUids:S==null||(Ee=S.serviceSettings)===null||Ee===void 0||(Ee=Ee.hotFaqs)===null||Ee===void 0?void 0:Ee.map(function(Z){return Z.uid}),shortcutFaqUids:S==null||(We=S.serviceSettings)===null||We===void 0||(We=We.shortcutFaqs)===null||We===void 0?void 0:We.map(function(Z){return Z.uid}),worktimeUids:(Pe=S.serviceSettings)===null||Pe===void 0||(Pe=Pe.worktimes)===null||Pe===void 0?void 0:Pe.map(function(Z){return Z.uid})}),agentUids:S.agents.map(function(Z){return Z.uid})}),console.log("workgroupObject:",fe),re.next=27,(0,d.W5)(fe);case 27:he=re.sent,console.log("updateWorkGroup response:",he),he.code===200?(t.yw.destroy(),t.yw.success(Se.formatMessage({id:"update.success"})),ue(he.data)):(t.yw.destroy(),t.yw.error(he.message));case 30:case"end":return re.stop()}},s)}));return function(R){return N.apply(this,arguments)}}();return(0,V.jsxs)($.A,{form:P,onFinish:ve,style:{marginLeft:"100px"},children:[(0,V.jsx)(x.Z,{name:"showTopTip",width:"md",label:"\u663E\u793A\u7F6E\u9876\u8BED",fieldProps:{onChange:Q}}),U&&(0,V.jsx)(f.Z,{width:"md",name:"topTip",label:"\u7F6E\u9876\u8BED"}),(0,V.jsx)(f.Z,{width:"md",name:"welcomeTip",label:"\u6B22\u8FCE\u8BED"}),Ae!=O._X4&&(0,V.jsx)(f.Z,{width:"md",name:"leavemsgTip",label:"\u79BB\u7EBF\u7559\u8A00\u63D0\u793A"}),(0,V.jsx)(X.Z,{width:"md",name:"autoCloseMin",label:"\u65E0\u65B0\u6D88\u606F\u4F1A\u8BDD\u81EA\u52A8\u5173\u95ED\u65F6\u957F(\u5355\u4F4D\uFF1A\u5206\u949F)",min:1}),Ae===O.Njn&&(0,V.jsx)(X.Z,{width:"md",name:"maxThreadCount",label:"\u540C\u65F6\u6700\u5927\u63A5\u5F85\u6570\u91CF",min:1}),(0,V.jsx)(x.Z,{name:"showLogo",width:"md",label:"\u663E\u793ALogo",tooltip:"\u53EA\u6709\u4ED8\u8D39\u4F1A\u5458\u53EF\u4EE5\u53BB\u6389Logo",fieldProps:{onChange:a},disabled:!0})]})};G.Z=ae},31207:function(Ue,G,e){e.d(G,{Z:function(){return f}});var L=e(67294),o=e(11941),K=e(86745),n=e(72053),l=e(17167),p=e(85893),W=function(){return(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(l.Z,{})})},A=W,t=function(){return(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(l.Z,{})})},T=t,w=function(){return(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(l.Z,{})})},d=w,F=function(){return(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(l.Z,{})})},j=F,D=function(){return(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(l.Z,{})})},y=D,O=function(){return(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(l.Z,{})})},$=O,x=function(de){var Ce=de.type,V=(0,K.useIntl)(),ae=[{key:"whatsapp",label:"Whatsapp",children:(0,p.jsx)(T,{})},{key:"telegram",label:"Telegram",children:(0,p.jsx)(A,{})},{key:"facebook",label:"Facebook",children:(0,p.jsx)(d,{})},{key:"Line",label:"Line",children:(0,p.jsx)(j,{})},{key:"shopify",label:"Shopify",children:(0,p.jsx)(y,{})},{key:"lazada",label:"Lazada",children:(0,p.jsx)($,{})}];return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(n.Z,{type:Ce}),(0,p.jsx)(o.Z,{tabPosition:"left",items:ae})]})},f=x},36649:function(Ue,G,e){e.d(G,{Z:function(){return U}});var L=e(67294),o=e(11941),K=e(80049),n=e(18678),l=e(85615),p=e(55102),W=e(42075),A=e(14726),t=e(30694),T=e(37326),w=e(87676),d=e(85893),F=p.Z.TextArea,j=function(H){var g=H.type,k=(0,w.u)(function(Q){return Q.currentOrg}),q=(0,T.V)(function(Q){return Q.currentRobot}),M=(0,t.E)(function(Q){return Q.currentAgent}),te=(0,n.$)(function(Q){return Q.currentWorkgroup}),Y=(0,L.useMemo)(function(){if(g===l._X4)return"http://127.0.0.1:9003/chat?org="+(k==null?void 0:k.uid)+"&t="+l.xtN+"&sid="+q.uid+"&";if(g===l.Njn)return"http://127.0.0.1:9003/chat?org="+(k==null?void 0:k.uid)+"&t="+l.es0+"&sid="+M.uid+"&";if(g===l.aZD)return"http://127.0.0.1:9003/chat?org="+(k==null?void 0:k.uid)+"&t="+l.vPY+"&sid="+te.uid+"&"},[q,M,te]),S=function(){window.open(Y)},ue=function(){navigator.clipboard.writeText(Y),K.yw.info("code copyied into clicpboard")};return(0,d.jsxs)("div",{children:[(0,d.jsx)(F,{style:{width:600},value:Y,rows:2}),(0,d.jsx)("br",{}),(0,d.jsx)("br",{}),(0,d.jsxs)(W.Z,{children:[(0,d.jsx)(A.ZP,{type:"primary",onClick:function(){S()},children:"\u9884\u89C8"},"openFullUrl"),(0,d.jsx)(A.ZP,{onClick:function(){ue()},children:"\u590D\u5236"},"copyFullUrl")]})]})},D=j,y=p.Z.TextArea,O=function(H){var g=H.type,k=(0,w.u)(function(Q){return Q.currentOrg}),q=(0,T.V)(function(Q){return Q.currentRobot}),M=(0,t.E)(function(Q){return Q.currentAgent}),te=(0,n.$)(function(Q){return Q.currentWorkgroup}),Y=(0,L.useMemo)(function(){if(g===l._X4)return"http://127.0.0.1:9003/frame?org="+(k==null?void 0:k.uid)+"&t="+l.xtN+"&sid="+q.uid+"&";if(g===l.Njn)return"http://127.0.0.1:9003/frame?org="+(k==null?void 0:k.uid)+"&t="+l.es0+"&sid="+M.uid+"&";if(g===l.aZD)return"http://127.0.0.1:9003/frame?org="+(k==null?void 0:k.uid)+"&t="+l.vPY+"&sid="+te.uid+"&"},[q,M,te]),S=function(){window.open(Y)},ue=function(){navigator.clipboard.writeText(Y),K.yw.info("code copyied into clicpboard")};return(0,d.jsxs)("div",{children:[(0,d.jsx)(y,{style:{width:600},value:Y,rows:2}),(0,d.jsx)("br",{}),(0,d.jsx)("br",{}),(0,d.jsxs)(W.Z,{children:[(0,d.jsx)(A.ZP,{type:"primary",onClick:function(){S()},children:"\u9884\u89C8"},"openFrameUrl"),(0,d.jsx)(A.ZP,{onClick:function(){ue()},children:"\u590D\u5236"},"copyFrameUrl")]})]})},$=O,x=e(87603),f=p.Z.TextArea,X=function(H){var g=H.type,k=(0,w.u)(function(a){return a.currentOrg}),q=(0,T.V)(function(a){return a.currentRobot}),M=(0,t.E)(function(a){return a.currentAgent}),te=(0,n.$)(function(a){return a.currentWorkgroup}),Y=(0,L.useMemo)(function(){if(g===l._X4)return"http://127.0.0.1:9003/float?org="+(k==null?void 0:k.uid)+"&t="+l.xtN+"&sid="+q.uid+"&";if(g===l.Njn)return"http://127.0.0.1:9003/float?org="+(k==null?void 0:k.uid)+"&t="+l.es0+"&sid="+M.uid+"&";if(g===l.aZD)return"http://127.0.0.1:9003/float?org="+(k==null?void 0:k.uid)+"&t="+l.vPY+"&sid="+te.uid+"&"},[q,M,te]),S=function(){window.open(Y)},ue=(0,L.useMemo)(function(){var a="";g===l._X4?a="http://127.0.0.1:9003/chat?org="+(k==null?void 0:k.uid)+"&t="+l.xtN+"&sid="+q.uid+"&":g===l.Njn?a="http://127.0.0.1:9003/chat?org="+(k==null?void 0:k.uid)+"&t="+l.es0+"&sid="+M.uid+"&":g===l.aZD&&(a="http://127.0.0.1:9003/chat?org="+(k==null?void 0:k.uid)+"&t="+l.vPY+"&sid="+te.uid+"&");var ve=` + +
- + \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__404.82f2bc17.async.js b/starter/src/main/resources/templates/admin/p__404.82f2bc17.async.js deleted file mode 100644 index 7ecb73eb..00000000 --- a/starter/src/main/resources/templates/admin/p__404.82f2bc17.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2571],{9826:function(P,n,t){t.r(n);var a=t(86745),s=t(29905),E=t(14726),i=t(67294),u=t(85893),o=function(){return(0,u.jsx)(s.ZP,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:(0,u.jsx)(E.ZP,{type:"primary",onClick:function(){return a.history.push("/")},children:"\u8FD4\u56DE\u4E3B\u9875"})})};n.default=o}}]); diff --git a/starter/src/main/resources/templates/admin/p__404.a5d1c286.async.js b/starter/src/main/resources/templates/admin/p__404.a5d1c286.async.js new file mode 100644 index 00000000..2828b1e4 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__404.a5d1c286.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2571],{9826:function(t,e,i){i.r(e);var n=i(86745),s=i(29905),r=i(14726),u=(i(67294),i(85893));e.default=function(){return(0,u.jsx)(s.ZP,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:(0,u.jsx)(r.ZP,{type:"primary",onClick:function(){return n.history.push("/")},children:"返回主页"})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Auth__Login__index.5f03d1c5.async.js b/starter/src/main/resources/templates/admin/p__Auth__Login__index.5f03d1c5.async.js new file mode 100644 index 00000000..1dc69c78 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Auth__Login__index.5f03d1c5.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9368],{70401:function(e,t,n){n.d(t,{$t:function(){return h},a_:function(){return f},vf:function(){return d}});var a=n(15009),r=n.n(a),s=n(97857),o=n.n(s),i=n(99289),c=n.n(i),u=n(85615),l=n(86745);function d(e){return g.apply(this,arguments)}function g(){return(g=c()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/v1/vip/crm/query/visitor/org",{method:"GET",params:o()(o()({},t),{},{client:u.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(){return p.apply(this,arguments)}function p(){return(p=c()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/visitor/api/v1/kaptcha",{method:"GET",params:{client:u.bVn}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e,t){return m.apply(this,arguments)}function m(){return(m=c()(r()().mark((function e(t,n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/visitor/api/v1/kaptcha/check",{method:"POST",data:{captchaUid:t,captchaCode:n,client:u.bVn}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},6144:function(e,t,n){var a=n(15009),r=n.n(a),s=n(99289),o=n.n(s),i=n(5574),c=n.n(i),u=n(70401),l=n(50228),d=n(86745),g=n(55102),f=n(67294),p=n(85893);t.Z=function(e){var t=e.onKaptchaChange,n=e.onKaptchaCheck,a=(0,d.useIntl)(),s=(0,f.useState)(),i=c()(s,2),h=i[0],m=i[1],x=(0,f.useState)(),v=c()(x,2),k=v[0],w=v[1],y=function(){var e=o()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.a_)();case 2:200===(t=e.sent).code&&(m(t.data.captchaUid),w(t.data.captchaImage));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=o()(r()().mark((function e(t,a){var s;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.$t)(t,a);case 2:s=e.sent,console.log("checkCaptcha response",s),200===s.code?n&&n(!0):n&&n(!1);case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){y()}),[]);return(0,p.jsx)(p.Fragment,{children:k&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(g.Z,{onChange:function(e){t&&(t(h,e.target.value),e.target.value&&""!==e.target.value&&4===e.target.value.trim().length?M(h,e.target.value):n&&n(!1))},prefix:(0,p.jsx)(l.Z,{}),placeholder:a.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),(0,p.jsx)("img",{src:k,alt:"captcha",onClick:y})]})})}},19345:function(e,t,n){n.r(t),n.d(t,{default:function(){return O}});var a=n(97857),r=n.n(a),s=n(15009),o=n.n(s),i=n(99289),c=n.n(i),u=n(5574),l=n.n(u),d=n(98661),g=n(34994),f=n(98082),p=n(10915),h=n(68262),m=n(92879),x=n(86745),v=n(9361),k=n(11941),w=n(28459),y=n(31418),M=n(67294),b=n(73935),j=n(60247),C=n(80049),Z=n(63998),S=n(39825),T=n(85615),F=n(6144),I=n(87547),q=n(94149),K=n(5966),L=n(85893),U=function(e){var t=e.loginType,n=e.onKaptchaChange,a=e.onKaptchaCheck,r=(0,x.useIntl)(),s=function(){var e=c()(o()().mark((function e(t,a){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n&&n(t,a);case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),i=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a&&a(t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,L.jsx)(L.Fragment,{children:"account"===t&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(K.Z,{name:"username",fieldProps:{size:"large",prefix:(0,L.jsx)(I.Z,{})},placeholder:r.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"用户名/邮箱"}),rules:[{required:!0,message:(0,L.jsx)(x.FormattedMessage,{id:"pages.login.username.required",defaultMessage:"请输入用户名/邮箱!"})}]}),(0,L.jsx)(K.Z.Password,{name:"password",fieldProps:{size:"large",prefix:(0,L.jsx)(q.Z,{})},placeholder:r.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:(0,L.jsx)(x.FormattedMessage,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),(0,L.jsx)(g.A.Item,{name:"captchaCode",rules:[{required:!0,message:r.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:(0,L.jsx)(F.Z,{onKaptchaChange:s,onKaptchaCheck:i})})]})})},P=n(24454),R=n(16434),A=n(38437),z=function(e){var t=e.loginType,n=e.onKaptchaChange,a=e.onKaptchaCheck,r=(0,x.useIntl)(),s=(0,M.useRef)(),i=(0,M.useState)(""),u=l()(i,2),f=u[0],p=u[1],h=(0,M.useState)(""),m=l()(h,2),v=m[0],k=m[1],w=(0,M.useState)(!1),y=l()(w,2),b=y[0],j=y[1],Z=function(){var e=c()(o()().mark((function e(t,a){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p(t),k(a),n&&n(t,a);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),S=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j(t),a&&a(t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,L.jsx)(L.Fragment,{children:"mobile"===t&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(K.Z,{fieldProps:{size:"large",prefix:(0,L.jsx)(P.Z,{})},name:"mobile",placeholder:r.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:(0,L.jsx)(x.FormattedMessage,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:(0,L.jsx)(x.FormattedMessage,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]}),(0,L.jsx)(g.A.Item,{name:"captchaCode",rules:[{required:!0,message:r.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:(0,L.jsx)(F.Z,{onKaptchaChange:Z,onKaptchaCheck:S})}),(0,L.jsx)(R.Z,{fieldProps:{size:"large",prefix:(0,L.jsx)(q.Z,{})},captchaProps:{size:"large",disabled:!b},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:function(e,t){return e?"".concat(t," ").concat(r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})):r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"})},phoneName:"mobile",name:"code",rules:[{required:!0,message:(0,L.jsx)(x.FormattedMessage,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],fieldRef:s,onGetCaptcha:function(){var e=c()(o()().mark((function e(t){var n,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("mobile:",t),!t||11!==t.length){e.next=12;break}return n={mobile:t,type:T.yCI,captchaUid:f,captchaCode:v,platform:T.iw8},e.next=5,(0,d.Y7)(n);case 5:if(200===(a=e.sent).code){e.next=9;break}return C.yw.error(a.message),e.abrupt("return");case 9:C.yw.success(a.message),e.next=13;break;case 12:C.yw.error("手机号格式错误");case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),(0,L.jsx)(A.Z,{message:(0,L.jsx)(x.FormattedMessage,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},B=n(16854),E=n(85230),N=function(e){var t=e.loginType,n=(0,x.useIntl)(),a=(0,Z.t)((function(e){return e.setAccessToken})),s=(0,j.L)((function(e){return e.setUserInfo})),i=(0,x.useModel)("@@initialState").setInitialState,u=(0,j.L)((function(e){return{deviceUid:e.deviceUid,setDeviceUid:e.setDeviceUid}})),g=u.deviceUid,f=u.setDeviceUid,p=(0,M.useState)("login"),h=l()(p,2),m=h[0],v=h[1],k=(0,M.useState)("loading"),w=l()(k,2),y=w[0],S=w[1],F=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t&&(0,b.flushSync)((function(){i((function(e){return r()(r()({},e),{},{userInfo:t})}))}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I=function(){var e=c()(o()().mark((function e(t){var i,c,u;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("handleScanLogin values: ",t),C.yw.loading(n.formatMessage({id:"logining",defaultMessage:"logining..."})),e.next=4,(0,d.kZ)(r()({},t));case 4:i=e.sent,console.log("LoginMobileResult scanLogin:",i.data),200===i.code?(C.yw.destroy(),C.yw.success(n.formatMessage({id:"login.success",defaultMessage:"login success"})),a(null==i?void 0:i.data.accessToken),F(null==i||null===(c=i.data)||void 0===c?void 0:c.user),s(null==i||null===(u=i.data)||void 0===u?void 0:u.user),x.history.push("/")):(C.yw.destroy(),C.yw.error(i.message));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),q=function(){var e=c()(o()().mark((function e(n){var a,r,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("scan"==t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,d.Tm)(g,n);case 4:if(200!==(a=e.sent).code){e.next=30;break}if(r=a.data,console.log("handleScanQuery status: ",r.status),r.status!==T.C20){e.next=13;break}S("active"),v("deviceUid="+r.deviceUid+"&code="+r.content),e.next=28;break;case 13:if(r.status!==T.M9$){e.next=17;break}S("scanned"),e.next=28;break;case 17:if(r.status!==T.PhI){e.next=21;break}S("expired"),e.next=28;break;case 21:if(r.status!==T.Cml){e.next=28;break}if(void 0!==r.receiver&&""!==r.receiver){e.next=24;break}return e.abrupt("return");case 24:return s={mobile:r.receiver,code:r.content,platform:T.iw8},console.log("login scan info:",s),e.next=28,I(s);case 28:e.next=31;break;case 30:C.yw.error(a.message);case 31:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,M.useEffect)((function(){console.log("scan deviceUid:",g),void 0!==g&&""!==g||f((0,B.Zx)()),q(!1);var e=setInterval((function(){q(!1)}),3e3);return function(){clearInterval(e)}}),[t,g]),(0,L.jsx)(L.Fragment,{children:"scan"===t&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(E.Z,{style:{margin:"auto"},value:m,status:y,onRefresh:function(){console.log("onRefresh"),q(!0)}})})})},V=n(69554),D=n(17634),$=v.Z.defaultAlgorithm,_=v.Z.darkAlgorithm,G=function(){var e=(0,m.l)((function(e){var t=e.token;return{width:42,height:42,lineHeight:"42px",position:"fixed",right:16,borderRadius:t.borderRadius,":hover":{backgroundColor:t.colorBgTextHover}}}));return(0,L.jsx)("div",{className:e,"data-lang":!0,children:x.SelectLang&&(0,L.jsx)(x.SelectLang,{})})},H=function(){var e=(0,B.lk)();return(0,L.jsx)(x.FormattedMessage,{id:e,defaultMessage:"微语"})},W=function(){var e=(0,B.z)();return(0,L.jsx)(x.FormattedMessage,{id:e,defaultMessage:"微语"})},Y=function(){var e=(0,x.useIntl)(),t=g.A.useForm(),n=l()(t,1)[0],a=v.Z.useToken().token,s=(0,S.Z)().isDarkMode,i=(0,Z.t)((function(e){return e.setAccessToken})),u=(0,M.useState)("mobile"),m=l()(u,2),w=m[0],y=m[1],F=(0,x.useModel)("@@initialState").setInitialState,I=(0,M.useState)(!1),q=l()(I,2),K=q[0],P=q[1],R=(0,j.L)((function(e){return e.setUserInfo})),A=(0,M.useState)(""),E=l()(A,2),V=E[0],$=E[1],_=function(){var e=c()(o()().mark((function e(t,a){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:$(t),n.setFieldValue("captchaCode",a);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Y=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleKaptchaCheck:",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=[{key:"account",label:e.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:(0,L.jsx)(U,{loginType:w,onKaptchaChange:_,onKaptchaCheck:Y})},{key:"mobile",label:e.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:(0,L.jsx)(z,{loginType:w,onKaptchaChange:_,onKaptchaCheck:Y})},{key:"scan",label:e.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:(0,L.jsx)(N,{loginType:w})}];(0,f.uK)(a.colorTextBase,.2);(0,M.useEffect)((function(){(0,D.ME)(),(0,B.Bc)()&&P(!0),(0,B.pr)()}),[]);var Q,X=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t&&(0,b.flushSync)((function(){F((function(e){return r()(r()({},e),{},{userInfo:t})}))}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),J=function(){var t=c()(o()().mark((function t(n){var a;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,C.yw.loading(e.formatMessage({id:"logining",defaultMessage:"logining..."})),t.next=4,(0,d.x4)(r()({},n));case 4:a=t.sent,console.log("LoginResult:",a),200===a.code?(C.yw.destroy(),C.yw.success(e.formatMessage({id:"login.success",defaultMessage:"login success"})),i(a.data.accessToken),X(a.data.user),R(a.data.user),x.history.push("/")):(C.yw.destroy(),C.yw.error(a.message)),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(0),console.log(t.t0),C.yw.error(e.formatMessage({id:"login.error",defaultMessage:"login failed"}));case 13:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(e){return t.apply(this,arguments)}}(),ee=function(){var t=c()(o()().mark((function t(n){var a,s,c;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,C.yw.loading(e.formatMessage({id:"logining",defaultMessage:"logining..."})),t.next=4,(0,d.N9)(r()({},n));case 4:a=t.sent,console.log("LoginMobileResult:",a),200===a.code?(C.yw.destroy(),C.yw.success(e.formatMessage({id:"login.success",defaultMessage:"login success"})),i(null==a?void 0:a.data.accessToken),X(null==a||null===(s=a.data)||void 0===s?void 0:s.user),R(null==a||null===(c=a.data)||void 0===c?void 0:c.user),x.history.push("/")):(C.yw.destroy(),C.yw.error(a.message)),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(0),console.log(t.t0),C.yw.error(e.formatMessage({id:"login.error",defaultMessage:"login failed"}));case 13:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(e){return t.apply(this,arguments)}}();return(0,L.jsxs)(p._Y,{hashed:!1,dark:s,children:[(0,L.jsx)(G,{}),(0,L.jsx)("div",{style:{backgroundColor:a.colorBgContainer,textAlign:"center",height:"100%",backgroundImage:"url('/admin/assets/images/bg-wide.png')"},children:(0,L.jsxs)(h.U,{form:n,contentStyle:{minWidth:280,maxWidth:"75vw"},logo:(Q=(0,B.hX)(),(0,L.jsx)("img",{alt:"logo",src:Q})),title:H(),subTitle:W(),actions:K&&!1,onFinish:function(){var e=c()(o()().mark((function e(t){var n,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("login values:",t),"account"!==w){e.next=8;break}return n={username:t.username,password:t.password,captchaUid:V,captchaCode:t.captchaCode,platform:T.iw8},console.log("login info:",n),e.next=6,J(n);case 6:e.next=12;break;case 8:return a={mobile:t.mobile,code:t.code,captchaUid:V,captchaCode:t.captchaCode,platform:T.iw8},console.log("login mobile info:",a),e.next=12,ee(a);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,L.jsx)(k.Z,{activeKey:w,onChange:y,centered:!0,items:O}),(0,L.jsx)("div",{style:{marginTop:14,marginBottom:14},children:(0,L.jsxs)("div",{style:{float:"right",marginBottom:24},children:[K&&(0,L.jsx)(x.Link,{to:"/auth/register",children:(0,L.jsx)(x.FormattedMessage,{id:"pages.login.registerAccount",defaultMessage:"注册 "})}),(0,L.jsx)(x.Link,{style:{marginLeft:10},to:T.rVq,target:"_blank",children:"帮助文档"})]})})]})})]})},O=function(){var e=(0,S.Z)().isDarkMode;return(0,L.jsx)(V.w,{children:(0,L.jsx)(w.ZP,{theme:{algorithm:e?_:$},children:(0,L.jsxs)(y.Z,{style:{height:"100%"},children:[(0,L.jsx)(C.ZP,{}),(0,L.jsx)(Y,{})]})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Auth__Login__index.77bf22de.async.js b/starter/src/main/resources/templates/admin/p__Auth__Login__index.77bf22de.async.js deleted file mode 100644 index 650e2ea8..00000000 --- a/starter/src/main/resources/templates/admin/p__Auth__Login__index.77bf22de.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9368],{70401:function(fe,B,e){e.d(B,{$t:function(){return se},a_:function(){return J},vf:function(){return b}});var H=e(15009),p=e.n(H),w=e(97857),n=e.n(w),Y=e(99289),i=e.n(Y),I=e(85615),_=e(86745);function b(m){return O.apply(this,arguments)}function O(){return O=i()(p()().mark(function m(d){return p()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,_.request)("/api/v1/vip/crm/query/visitor/org",{method:"GET",params:n()(n()({},d),{},{client:I.bVn})}));case 1:case"end":return g.stop()}},m)})),O.apply(this,arguments)}function J(){return C.apply(this,arguments)}function C(){return C=i()(p()().mark(function m(){return p()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",(0,_.request)("/visitor/api/v1/kaptcha",{method:"GET",params:{client:I.bVn}}));case 1:case"end":return M.stop()}},m)})),C.apply(this,arguments)}function se(m,d){return te.apply(this,arguments)}function te(){return te=i()(p()().mark(function m(d,M){return p()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,_.request)("/visitor/api/v1/kaptcha/check",{method:"POST",data:{captchaUid:d,captchaCode:M,client:I.bVn}}));case 1:case"end":return o.stop()}},m)})),te.apply(this,arguments)}function u(m){return L.apply(this,arguments)}function L(){return L=_asyncToGenerator(_regeneratorRuntime().mark(function m(d){return _regeneratorRuntime().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",request("/api/v1/visitor/update",{method:"POST",data:_objectSpread(_objectSpread({},d),{},{client:HTTP_CLIENT})}));case 1:case"end":return g.stop()}},m)})),L.apply(this,arguments)}function A(m){return X.apply(this,arguments)}function X(){return X=_asyncToGenerator(_regeneratorRuntime().mark(function m(d){return _regeneratorRuntime().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",request("/api/v1/visitor/delete",{method:"POST",data:_objectSpread(_objectSpread({},d),{},{client:HTTP_CLIENT})}));case 1:case"end":return g.stop()}},m)})),X.apply(this,arguments)}},6144:function(fe,B,e){var H=e(15009),p=e.n(H),w=e(99289),n=e.n(w),Y=e(5574),i=e.n(Y),I=e(70401),_=e(50228),b=e(86745),O=e(55102),J=e(67294),C=e(85893),se=function(u){var L=u.onKaptchaChange,A=u.onKaptchaCheck,X=(0,b.useIntl)(),m=(0,J.useState)(),d=i()(m,2),M=d[0],g=d[1],o=(0,J.useState)(),ce=i()(o,2),ie=ce[0],Q=ce[1],ue=function(){var $=n()(p()().mark(function a(){var k;return p()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,(0,I.a_)();case 2:k=T.sent,k.code===200&&(g(k.data.captchaUid),Q(k.data.captchaImage));case 4:case"end":return T.stop()}},a)}));return function(){return $.apply(this,arguments)}}(),ve=function(){var $=n()(p()().mark(function a(k,oe){var T;return p()().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,(0,I.$t)(k,oe);case 2:T=q.sent,console.log("checkCaptcha response",T),T.code===200?A&&A(!0):A&&A(!1);case 5:case"end":return q.stop()}},a)}));return function(k,oe){return $.apply(this,arguments)}}();(0,J.useEffect)(function(){ue()},[]);var de=function(a){L&&(L(M,a.target.value),a.target.value&&a.target.value!==""&&a.target.value.trim().length===4?ve(M,a.target.value):A&&A(!1))};return(0,C.jsx)(C.Fragment,{children:ie&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(O.Z,{onChange:de,prefix:(0,C.jsx)(_.Z,{}),placeholder:X.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),(0,C.jsx)("img",{src:ie,alt:"captcha",onClick:ue})]})})};B.Z=se},19345:function(fe,B,e){e.r(B),e.d(B,{default:function(){return Fe}});var H=e(97857),p=e.n(H),w=e(15009),n=e.n(w),Y=e(99289),i=e.n(Y),I=e(5574),_=e.n(I),b=e(98661),O=e(34994),J=e(98082),C=e(10915),se=e(68262),te=e(92879),u=e(86745),L=e(9361),A=e(11941),X=e(28459),m=e(31418),d=e(67294),M=e(73935),g=e(60247),o=e(80049),ce=e(63998),ie=e(39825),Q=e(85615),ue=e(6144),ve=e(87547),de=e(94149),$=e(5966),a=e(85893),k=function(r){var D=r.loginType,S=r.onKaptchaChange,Z=r.onKaptchaCheck,K=(0,u.useIntl)(),re=function(){var G=i()(n()().mark(function x(F,V){return n()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:S&&S(F,V);case 1:case"end":return ee.stop()}},x)}));return function(F,V){return G.apply(this,arguments)}}(),le=function(){var G=i()(n()().mark(function x(F){return n()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:Z&&Z(F);case 1:case"end":return y.stop()}},x)}));return function(F){return G.apply(this,arguments)}}();return(0,a.jsx)(a.Fragment,{children:D==="account"&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)($.Z,{name:"username",fieldProps:{size:"large",prefix:(0,a.jsx)(ve.Z,{})},placeholder:K.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"\u7528\u6237\u540D/\u90AE\u7BB1"}),rules:[{required:!0,message:(0,a.jsx)(u.FormattedMessage,{id:"pages.login.username.required",defaultMessage:"\u8BF7\u8F93\u5165\u7528\u6237\u540D/\u90AE\u7BB1!"})}]}),(0,a.jsx)($.Z.Password,{name:"password",fieldProps:{size:"large",prefix:(0,a.jsx)(de.Z,{})},placeholder:K.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"\u5BC6\u7801"}),rules:[{required:!0,message:(0,a.jsx)(u.FormattedMessage,{id:"pages.login.password.required",defaultMessage:"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF01"})}]}),(0,a.jsx)(O.A.Item,{name:"captchaCode",rules:[{required:!0,message:K.formatMessage({id:"pages.login.captcha.required",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01"})}],children:(0,a.jsx)(ue.Z,{onKaptchaChange:re,onKaptchaCheck:le})})]})})},oe=k,T=e(24454),ye=e(16434),q=e(40056),Ee=function(r){var D=r.loginType,S=r.onKaptchaChange,Z=r.onKaptchaCheck,K=(0,u.useIntl)(),re=(0,d.useRef)(),le=(0,d.useState)(""),G=_()(le,2),x=G[0],F=G[1],V=(0,d.useState)(""),y=_()(V,2),ee=y[0],_e=y[1],Me=(0,d.useState)(!1),ge=_()(Me,2),he=ge[0],pe=ge[1],Ce=function(){var z=i()(n()().mark(function j(f,R){return n()().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:F(f),_e(R),S&&S(f,R);case 3:case"end":return ae.stop()}},j)}));return function(f,R){return z.apply(this,arguments)}}(),me=function(){var z=i()(n()().mark(function j(f){return n()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:pe(f),Z&&Z(f);case 2:case"end":return E.stop()}},j)}));return function(f){return z.apply(this,arguments)}}();return(0,a.jsx)(a.Fragment,{children:D==="mobile"&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)($.Z,{fieldProps:{size:"large",prefix:(0,a.jsx)(T.Z,{})},name:"mobile",placeholder:K.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"\u624B\u673A\u53F7"}),rules:[{required:!0,message:(0,a.jsx)(u.FormattedMessage,{id:"pages.login.phoneNumber.required",defaultMessage:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\uFF01"})},{pattern:/^1\d{10}$/,message:(0,a.jsx)(u.FormattedMessage,{id:"pages.login.phoneNumber.invalid",defaultMessage:"\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF\uFF01"})}]}),(0,a.jsx)(O.A.Item,{name:"captchaCode",rules:[{required:!0,message:K.formatMessage({id:"pages.login.captcha.required",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01"})}],children:(0,a.jsx)(ue.Z,{onKaptchaChange:Ce,onKaptchaCheck:me})}),(0,a.jsx)(ye.Z,{fieldProps:{size:"large",prefix:(0,a.jsx)(de.Z,{})},captchaProps:{size:"large",disabled:!he},placeholder:K.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}),captchaTextRender:function(j,f){return j?"".concat(f," ").concat(K.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})):K.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})},phoneName:"mobile",name:"code",rules:[{required:!0,message:(0,a.jsx)(u.FormattedMessage,{id:"pages.login.captcha.required",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01"})}],fieldRef:re,onGetCaptcha:function(){var z=i()(n()().mark(function j(f){var R,E;return n()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(console.log("mobile:",f),!(f&&f.length===11)){P.next=12;break}return R={mobile:f,type:Q.yCI,captchaUid:x,captchaCode:ee,platform:Q.iw8},P.next=5,(0,b.Y7)(R);case 5:if(E=P.sent,E.code===200){P.next=9;break}return o.yw.error(E.message),P.abrupt("return");case 9:o.yw.success(E.message),P.next=13;break;case 12:o.yw.error("\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF");case 13:case"end":return P.stop()}},j)}));return function(j){return z.apply(this,arguments)}}()}),(0,a.jsx)(q.Z,{message:(0,a.jsx)(u.FormattedMessage,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},be=Ee,Te=e(97253),De=function(r){var D=r.loginType;return(0,a.jsx)(a.Fragment,{children:D==="scan"&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(Te.Z,{style:{margin:"auto"},value:"login"})})})},Ke=De,ne=e(66419),Pe=e(69554),Ue=L.Z.defaultAlgorithm,Le=L.Z.darkAlgorithm,Se=function(){var r=(0,te.l)(function(D){var S=D.token;return{width:42,height:42,lineHeight:"42px",position:"fixed",right:16,borderRadius:S.borderRadius,":hover":{backgroundColor:S.colorBgTextHover}}});return(0,a.jsx)("div",{className:r,"data-lang":!0,children:u.SelectLang&&(0,a.jsx)(u.SelectLang,{})})},xe=function(){var r=(0,ne.hX)();return(0,a.jsx)("img",{alt:"logo",src:r})},Ie=function(){var r=(0,ne.lk)();return(0,a.jsx)(u.FormattedMessage,{id:r,defaultMessage:"\u5FAE\u8BED"})},Oe=function(){var r=(0,ne.z)();return(0,a.jsx)(u.FormattedMessage,{id:r,defaultMessage:"\u5FAE\u8BED"})},Ae=function(){var r=(0,u.useIntl)(),D=O.A.useForm(),S=_()(D,1),Z=S[0],K=L.Z.useToken(),re=K.token,le=(0,ie.Z)(),G=le.isDarkMode,x=(0,ce.t)(function(h){return h.setAccessToken}),F=(0,d.useState)("mobile"),V=_()(F,2),y=V[0],ee=V[1],_e=(0,u.useModel)("@@initialState"),Me=_e.setInitialState,ge=(0,d.useState)(!1),he=_()(ge,2),pe=he[0],Ce=he[1],me=(0,g.L)(function(h){return h.setUserInfo}),z=(0,d.useState)(""),j=_()(z,2),f=j[0],R=j[1],E=function(){var h=i()(n()().mark(function l(s,t){return n()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:R(s),Z.setFieldValue("captchaCode",t);case 2:case"end":return c.stop()}},l)}));return function(s,t){return h.apply(this,arguments)}}(),ae=function(){var h=i()(n()().mark(function l(s){return n()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:console.log("handleKaptchaCheck:",s);case 1:case"end":return v.stop()}},l)}));return function(s){return h.apply(this,arguments)}}(),P=[{key:"account",label:r.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"\u8D26\u6237\u5BC6\u7801\u767B\u5F55"}),children:(0,a.jsx)(oe,{loginType:y,onKaptchaChange:E,onKaptchaCheck:ae})},{key:"mobile",label:r.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"\u624B\u673A\u53F7\u767B\u5F55"}),children:(0,a.jsx)(be,{loginType:y,onKaptchaChange:E,onKaptchaCheck:ae})},{key:"scan",label:r.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"\u626B\u7801\u767B\u5F55"}),children:(0,a.jsx)(Ke,{loginType:y})}],we={marginInlineStart:"16px",color:(0,J.uK)(re.colorTextBase,.2),fontSize:"24px",verticalAlign:"middle",cursor:"pointer"};(0,d.useEffect)(function(){(0,ne.iE)(),(0,ne.Bc)()&&Ce(!0),(0,ne.pr)()},[]);var je=function(){var h=i()(n()().mark(function l(s){return n()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:s&&(0,M.flushSync)(function(){Me(function(c){return p()(p()({},c),{},{userInfo:s})})});case 1:case"end":return v.stop()}},l)}));return function(s){return h.apply(this,arguments)}}(),Re=function(){var h=i()(n()().mark(function l(s){var t;return n()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,o.yw.loading(r.formatMessage({id:"logining",defaultMessage:"logining..."})),c.next=4,(0,b.x4)(p()({},s));case 4:t=c.sent,console.log("LoginResult:",t),t.code===200?(o.yw.destroy(),o.yw.success(r.formatMessage({id:"login.success",defaultMessage:"login success"})),x(t.data.accessToken),je(t.data.user),me(t.data.user),u.history.push("/")):(o.yw.destroy(),o.yw.error(t.message)),c.next=13;break;case 9:c.prev=9,c.t0=c.catch(0),console.log(c.t0),o.yw.error(r.formatMessage({id:"login.error",defaultMessage:"login failed"}));case 13:case"end":return c.stop()}},l,null,[[0,9]])}));return function(s){return h.apply(this,arguments)}}(),Be=function(){var h=i()(n()().mark(function l(s){var t,v,c;return n()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.prev=0,o.yw.loading(r.formatMessage({id:"logining",defaultMessage:"logining..."})),U.next=4,(0,b.N9)(p()({},s));case 4:t=U.sent,console.log("LoginMobileResult:",t),t.code===200?(o.yw.destroy(),o.yw.success(r.formatMessage({id:"login.success",defaultMessage:"login success"})),x(t==null?void 0:t.data.accessToken),je(t==null||(v=t.data)===null||v===void 0?void 0:v.user),me(t==null||(c=t.data)===null||c===void 0?void 0:c.user),u.history.push("/")):(o.yw.destroy(),o.yw.error(t.message)),U.next=13;break;case 9:U.prev=9,U.t0=U.catch(0),console.log(U.t0),o.yw.error(r.formatMessage({id:"login.error",defaultMessage:"login failed"}));case 13:case"end":return U.stop()}},l,null,[[0,9]])}));return function(s){return h.apply(this,arguments)}}(),$e=function(){var h=i()(n()().mark(function l(){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:console.log("handleGithubLogin");case 1:case"end":return t.stop()}},l)}));return function(){return h.apply(this,arguments)}}(),We=function(){var h=i()(n()().mark(function l(){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:console.log("handleGoogleLogin");case 1:case"end":return t.stop()}},l)}));return function(){return h.apply(this,arguments)}}();return(0,a.jsxs)(C._Y,{hashed:!1,dark:G,children:[(0,a.jsx)(Se,{}),(0,a.jsx)("div",{style:{backgroundColor:re.colorBgContainer,textAlign:"center",height:"100%",backgroundImage:"url('/admin/assets/images/bg-wide.png')"},children:(0,a.jsxs)(se.U,{form:Z,contentStyle:{minWidth:280,maxWidth:"75vw"},logo:xe(),title:Ie(),subTitle:Oe(),actions:pe&&!1,onFinish:function(){var h=i()(n()().mark(function l(s){var t,v;return n()().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(console.log("login values:",s),y!=="account"){N.next=8;break}return t={username:s.username,password:s.password,captchaUid:f,captchaCode:s.captchaCode,platform:Q.iw8},console.log("login info:",t),N.next=6,Re(t);case 6:N.next=12;break;case 8:return v={mobile:s.mobile,code:s.code,captchaUid:f,captchaCode:s.captchaCode,platform:Q.iw8},console.log("login mobile info:",v),N.next=12,Be(v);case 12:case"end":return N.stop()}},l)}));return function(l){return h.apply(this,arguments)}}(),children:[(0,a.jsx)(A.Z,{activeKey:y,onChange:ee,centered:!0,items:P}),(0,a.jsx)("div",{style:{marginTop:14,marginBottom:14},children:(0,a.jsxs)("div",{style:{float:"right",marginBottom:24},children:[pe&&(0,a.jsx)(u.Link,{to:"/auth/register",children:(0,a.jsx)(u.FormattedMessage,{id:"pages.login.registerAccount",defaultMessage:"\u6CE8\u518C "})}),(0,a.jsx)(u.Link,{style:{marginLeft:10},to:Q.rVq,target:"_blank",children:"\u5E2E\u52A9\u6587\u6863"})]})})]})})]})},ke=function(){var r=(0,ie.Z)(),D=r.isDarkMode;return(0,a.jsx)(Pe.w,{children:(0,a.jsx)(X.ZP,{theme:{algorithm:D?Le:Ue},children:(0,a.jsxs)(m.Z,{style:{height:"100%"},children:[(0,a.jsx)(o.ZP,{}),(0,a.jsx)(Ae,{})]})})})},Fe=ke},60247:function(fe,B,e){e.d(B,{L:function(){return Y}});var H=e(85615),p=e(73445),w=e(782),n=e(18753),Y=(0,p.Ue)()((0,w.mW)((0,w.tJ)((0,n.n)(function(i,I){return{userInfo:{uid:""},deviceUid:"",setUserInfo:function(b){i({userInfo:b})},setDeviceUid:function(b){i({deviceUid:b})},deleteUserInfo:function(){return i({},!0)}}}),{name:H.EmD})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Auth__Register__index.09876fde.async.js b/starter/src/main/resources/templates/admin/p__Auth__Register__index.09876fde.async.js deleted file mode 100644 index 787decaf..00000000 --- a/starter/src/main/resources/templates/admin/p__Auth__Register__index.09876fde.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1730],{70401:function(H,T,e){e.d(T,{$t:function(){return F},a_:function(){return L},vf:function(){return P}});var I=e(15009),g=e.n(I),y=e(97857),o=e.n(y),B=e(99289),c=e.n(B),C=e(85615),v=e(86745);function P(m){return K.apply(this,arguments)}function K(){return K=c()(g()().mark(function m(s){return g()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,v.request)("/api/v1/vip/crm/query/visitor/org",{method:"GET",params:o()(o()({},s),{},{client:C.bVn})}));case 1:case"end":return l.stop()}},m)})),K.apply(this,arguments)}function L(){return E.apply(this,arguments)}function E(){return E=c()(g()().mark(function m(){return g()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,v.request)("/visitor/api/v1/kaptcha",{method:"GET",params:{client:C.bVn}}));case 1:case"end":return h.stop()}},m)})),E.apply(this,arguments)}function F(m,s){return W.apply(this,arguments)}function W(){return W=c()(g()().mark(function m(s,h){return g()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.abrupt("return",(0,v.request)("/visitor/api/v1/kaptcha/check",{method:"POST",data:{captchaUid:s,captchaCode:h,client:C.bVn}}));case 1:case"end":return A.stop()}},m)})),W.apply(this,arguments)}function w(m){return R.apply(this,arguments)}function R(){return R=_asyncToGenerator(_regeneratorRuntime().mark(function m(s){return _regeneratorRuntime().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",request("/api/v1/visitor/update",{method:"POST",data:_objectSpread(_objectSpread({},s),{},{client:HTTP_CLIENT})}));case 1:case"end":return l.stop()}},m)})),R.apply(this,arguments)}function O(m){return k.apply(this,arguments)}function k(){return k=_asyncToGenerator(_regeneratorRuntime().mark(function m(s){return _regeneratorRuntime().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",request("/api/v1/visitor/delete",{method:"POST",data:_objectSpread(_objectSpread({},s),{},{client:HTTP_CLIENT})}));case 1:case"end":return l.stop()}},m)})),k.apply(this,arguments)}},6144:function(H,T,e){var I=e(15009),g=e.n(I),y=e(99289),o=e.n(y),B=e(5574),c=e.n(B),C=e(70401),v=e(50228),P=e(86745),K=e(55102),L=e(67294),E=e(85893),F=function(w){var R=w.onKaptchaChange,O=w.onKaptchaCheck,k=(0,P.useIntl)(),m=(0,L.useState)(),s=c()(m,2),h=s[0],l=s[1],A=(0,L.useState)(),z=c()(A,2),G=z[0],Y=z[1],j=function(){var b=o()(g()().mark(function M(){var U;return g()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,(0,C.a_)();case 2:U=D.sent,U.code===200&&(l(U.data.captchaUid),Y(U.data.captchaImage));case 4:case"end":return D.stop()}},M)}));return function(){return b.apply(this,arguments)}}(),V=function(){var b=o()(g()().mark(function M(U,Z){var D;return g()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,C.$t)(U,Z);case 2:D=a.sent,console.log("checkCaptcha response",D),D.code===200?O&&O(!0):O&&O(!1);case 5:case"end":return a.stop()}},M)}));return function(U,Z){return b.apply(this,arguments)}}();(0,L.useEffect)(function(){j()},[]);var p=function(M){R&&(R(h,M.target.value),M.target.value&&M.target.value!==""&&M.target.value.trim().length===4?V(h,M.target.value):O&&O(!1))};return(0,E.jsx)(E.Fragment,{children:G&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(K.Z,{onChange:p,prefix:(0,E.jsx)(v.Z,{}),placeholder:k.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),(0,E.jsx)("img",{src:G,alt:"captcha",onClick:j})]})})};T.Z=F},87223:function(H,T,e){e.r(T);var I=e(97857),g=e.n(I),y=e(15009),o=e.n(y),B=e(99289),c=e.n(B),C=e(5574),v=e.n(C),P=e(98661),K=e(59203),L=e(87547),E=e(94149),F=e(24454),W=e(34994),w=e(10915),R=e(68262),O=e(5966),k=e(16434),m=e(92879),s=e(86745),h=e(9361),l=e(40056),A=e(32983),z=e(14726),G=e(28459),Y=e(31418),j=e(67294),V=e(39825),p=e(80049),b=e(85615),M=e(63998),U=e(73935),Z=e(60247),D=e(66419),X=e(6144),a=e(85893),re=h.Z.defaultAlgorithm,_e=h.Z.darkAlgorithm,ie=function(){var S=(0,m.l)(function(x){var $=x.token;return{width:42,height:42,lineHeight:"42px",position:"fixed",right:16,borderRadius:$.borderRadius,":hover":{backgroundColor:$.colorBgTextHover}}});return(0,a.jsx)("div",{className:S,"data-lang":!0,children:s.SelectLang&&(0,a.jsx)(s.SelectLang,{})})},q=function(S){var x=S.content;return(0,a.jsx)(l.Z,{style:{marginBottom:24},message:x,type:"error",showIcon:!0})},oe=function(){var S=W.A.useForm(),x=v()(S,1),$=x[0],le=h.Z.useToken(),de=le.token,ge=(0,V.Z)(),ce=ge.isDarkMode,ee=(0,j.useRef)(),pe=(0,j.useState)(!1),ae=v()(pe,2),me=ae[0],he=ae[1],N=(0,s.useModel)("@@initialState"),Le=N.initialState,We=N.loading,ke=N.refresh,fe=N.setInitialState,ve=(0,j.useState)(!1),te=v()(ve,2),Ee=te[0],Me=te[1],De=(0,M.t)(function(u){return u.setAccessToken}),Pe=(0,Z.L)(function(u){return u.setUserInfo}),Oe=(0,s.getLocale)();console.log("register page locale:",Oe);var f=(0,s.useIntl)(),Ce=(0,j.useState)(""),se=v()(Ce,2),Q=se[0],je=se[1],be=(0,j.useState)(""),ne=v()(be,2),Ue=ne[0],Te=ne[1],ye=function(){var u=c()(o()().mark(function n(t,r){return o()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:je(t),Te(r),$.setFieldValue("captchaCode",r);case 3:case"end":return _.stop()}},n)}));return function(t,r){return u.apply(this,arguments)}}(),Re=function(){var u=c()(o()().mark(function n(t){return o()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:he(t);case 1:case"end":return d.stop()}},n)}));return function(t){return u.apply(this,arguments)}}();(0,j.useEffect)(function(){(0,D.iE)(),(0,D.Bc)()&&Me(!0),(0,D.pr)()},[]);var Ae=function(){var u=c()(o()().mark(function n(t){return o()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:t&&(0,U.flushSync)(function(){fe(function(_){return g()(g()({},_),{},{userInfo:t})})});case 1:case"end":return d.stop()}},n)}));return function(t){return u.apply(this,arguments)}}(),Ie=function(){var u=c()(o()().mark(function n(t){var r,d;return o()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,console.log("values:",t),p.yw.loading(f.formatMessage({id:"registering",defaultMessage:"registering..."})),i.next=5,(0,P.z2)(g()({},t));case 5:if(r=i.sent,console.log("registerResult:",r),r.code!==200){i.next=15;break}return p.yw.destroy(),p.yw.success(r.message),d={username:t.email,password:t.password,captchaUid:Q,captchaCode:t.captchaCode,platform:b.iw8},Be(d),i.abrupt("return");case 15:p.yw.destroy(),p.yw.error(r.message);case 17:i.next=23;break;case 19:i.prev=19,i.t0=i.catch(0),console.log(i.t0),p.yw.error(f.formatMessage({id:"register.error",defaultMessage:"register failed"}));case 23:case"end":return i.stop()}},n,null,[[0,19]])}));return function(t){return u.apply(this,arguments)}}(),Be=function(){var u=c()(o()().mark(function n(t){var r;return o()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.prev=0,console.log("handleSubmit values: ",t),p.yw.loading(f.formatMessage({id:"logining",defaultMessage:"logining..."})),_.next=5,(0,P.x4)(g()({},t));case 5:r=_.sent,console.log("LoginResult:",r),r.code===200?(p.yw.destroy(),p.yw.success(f.formatMessage({id:"login.success",defaultMessage:"login success"})),Ae(r.data.user),Pe(r.data.user),De(r.data.accessToken),s.history.push("/")):(p.yw.destroy(),p.yw.error(r.message)),_.next=14;break;case 10:_.prev=10,_.t0=_.catch(0),console.log(_.t0),p.yw.error(f.formatMessage({id:"login.error",defaultMessage:"login failed"}));case 14:case"end":return _.stop()}},n,null,[[0,10]])}));return function(t){return u.apply(this,arguments)}}(),Ke=function(){setTimeout(function(){var n;console.log("endCaptchaTiming"),(n=ee.current)===null||n===void 0||n.endTiming()},2)};return(0,a.jsxs)(w._Y,{hashed:!1,dark:ce,children:[(0,a.jsx)(ie,{}),(0,a.jsx)("div",{style:{backgroundColor:de.colorBgContainer,textAlign:"center",height:"100vh",backgroundImage:"url('/admin/assets/images/bg-wide.png')"},children:Ee?(0,a.jsxs)(R.U,{form:$,contentStyle:{minWidth:280,maxWidth:"75vw"},logo:(0,a.jsx)("img",{alt:"logo",src:"/admin/icons/logo.png"}),title:(0,a.jsx)(s.FormattedMessage,{id:"app.title"}),subTitle:f.formatMessage({id:"pages.login.registerAccount"}),initialValues:{autoLogin:!0},submitter:{searchConfig:{submitText:f.formatMessage({id:"pages.login.register"})}},onFinish:function(){var u=c()(o()().mark(function n(t){var r;return o()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return console.log("login values:",t),r={email:t.username,password:t.password,mobile:t.mobile,code:t.code,captchaUid:Q,captchaCode:t.captchaCode,platform:b.iw8},console.log("register info:",r),_.next=5,Ie(r);case 5:case"end":return _.stop()}},n)}));return function(n){return u.apply(this,arguments)}}(),children:[status==="error"&&(0,a.jsx)(q,{content:f.formatMessage({id:"pages.login.accountLogin.errorMessage",defaultMessage:"\u8D26\u6237\u6216\u5BC6\u7801\u9519\u8BEF"})}),(0,a.jsx)(O.Z,{name:"username",fieldProps:{size:"large",prefix:(0,a.jsx)(L.Z,{})},placeholder:f.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"\u90AE\u7BB1"}),rules:[{required:!0,message:(0,a.jsx)(s.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,a.jsx)(O.Z.Password,{name:"password",fieldProps:{size:"large",prefix:(0,a.jsx)(E.Z,{})},placeholder:f.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"\u5BC6\u7801"}),rules:[{required:!0,message:(0,a.jsx)(s.FormattedMessage,{id:"pages.login.password.required",defaultMessage:"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF01"})}]}),(0,a.jsx)(O.Z,{fieldProps:{size:"large",prefix:(0,a.jsx)(F.Z,{})},name:"mobile",placeholder:f.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"\u624B\u673A\u53F7"}),rules:[{required:!0,message:(0,a.jsx)(s.FormattedMessage,{id:"pages.login.phoneNumber.required",defaultMessage:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\uFF01"})},{pattern:/^1\d{10}$/,message:(0,a.jsx)(s.FormattedMessage,{id:"pages.login.phoneNumber.invalid",defaultMessage:"\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF\uFF01"})}]}),(0,a.jsx)(W.A.Item,{name:"captchaCode",rules:[{required:!0,message:f.formatMessage({id:"pages.login.captcha.required",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01"})}],children:(0,a.jsx)(X.Z,{onKaptchaChange:ye,onKaptchaCheck:Re})}),(0,a.jsx)(k.Z,{fieldProps:{size:"large",prefix:(0,a.jsx)(E.Z,{})},captchaProps:{size:"large",disabled:!me},placeholder:f.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}),captchaTextRender:function(n,t){return n?"".concat(t," ").concat(f.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})):f.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})},phoneName:"mobile",name:"code",rules:[{required:!0,message:(0,a.jsx)(s.FormattedMessage,{id:"pages.login.captcha.required",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01"})}],fieldRef:ee,onGetCaptcha:function(){var u=c()(o()().mark(function n(t){var r,d;return o()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(!(t&&t.length===11)){i.next=13;break}return r={mobile:t,type:b.i_k,captchaUid:Q,captchaCode:Ue,platform:b.iw8},i.next=4,(0,P.Y7)(r);case 4:if(d=i.sent,console.log("sendMobileCodeResult:",d),d.code===200){i.next=10;break}return p.yw.error(d.message),Ke(),i.abrupt("return");case 10:p.yw.success(d.message),i.next=14;break;case 13:p.yw.error("\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF");case 14:case"end":return i.stop()}},n)}));return function(n){return u.apply(this,arguments)}}()}),status==="error"&&(0,a.jsx)(q,{content:"\u9A8C\u8BC1\u7801\u9519\u8BEF"}),(0,a.jsx)("div",{style:{marginBottom:64},children:(0,a.jsx)("div",{style:{float:"right"},children:(0,a.jsx)(s.Link,{to:"/auth/login",children:(0,a.jsx)(s.FormattedMessage,{id:"pages.login.submit",defaultMessage:"\u767B\u5F55 "})})})})]}):(0,a.jsx)("div",{style:{textAlign:"center",margin:"0 auto"},children:(0,a.jsx)(A.Z,{description:"only for vip users, please contact: 270580156@qq.com",children:(0,a.jsx)(z.ZP,{type:"primary",onClick:function(){window.open("https://www.weiyuai.cn")},children:"open weiyuai.cn"})})})}),(0,a.jsx)(K.$_,{})]})},ue=function(){var S=(0,V.Z)(),x=S.isDarkMode;return(0,a.jsx)(G.ZP,{theme:{algorithm:x?_e:re},children:(0,a.jsxs)(Y.Z,{children:[(0,a.jsx)(p.ZP,{}),(0,a.jsx)(oe,{})]})})};T.default=ue},60247:function(H,T,e){e.d(T,{L:function(){return B}});var I=e(85615),g=e(73445),y=e(782),o=e(18753),B=(0,g.Ue)()((0,y.mW)((0,y.tJ)((0,o.n)(function(c,C){return{userInfo:{uid:""},deviceUid:"",setUserInfo:function(P){c({userInfo:P})},setDeviceUid:function(P){c({deviceUid:P})},deleteUserInfo:function(){return c({},!0)}}}),{name:I.EmD})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Auth__Register__index.778c02b3.async.js b/starter/src/main/resources/templates/admin/p__Auth__Register__index.778c02b3.async.js new file mode 100644 index 00000000..b6e0f513 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Auth__Register__index.778c02b3.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1730],{70401:function(e,t,r){r.d(t,{$t:function(){return h},a_:function(){return g},vf:function(){return d}});var a=r(15009),n=r.n(a),s=r(97857),o=r.n(s),i=r(99289),c=r.n(i),u=r(85615),l=r(86745);function d(e){return p.apply(this,arguments)}function p(){return(p=c()(n()().mark((function e(t){return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/v1/vip/crm/query/visitor/org",{method:"GET",params:o()(o()({},t),{},{client:u.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(){return f.apply(this,arguments)}function f(){return(f=c()(n()().mark((function e(){return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/visitor/api/v1/kaptcha",{method:"GET",params:{client:u.bVn}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e,t){return m.apply(this,arguments)}function m(){return(m=c()(n()().mark((function e(t,r){return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/visitor/api/v1/kaptcha/check",{method:"POST",data:{captchaUid:t,captchaCode:r,client:u.bVn}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},6144:function(e,t,r){var a=r(15009),n=r.n(a),s=r(99289),o=r.n(s),i=r(5574),c=r.n(i),u=r(70401),l=r(50228),d=r(86745),p=r(55102),g=r(67294),f=r(85893);t.Z=function(e){var t=e.onKaptchaChange,r=e.onKaptchaCheck,a=(0,d.useIntl)(),s=(0,g.useState)(),i=c()(s,2),h=i[0],m=i[1],x=(0,g.useState)(),v=c()(x,2),w=v[0],y=v[1],M=function(){var e=o()(n()().mark((function e(){var t;return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.a_)();case 2:200===(t=e.sent).code&&(m(t.data.captchaUid),y(t.data.captchaImage));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=function(){var e=o()(n()().mark((function e(t,a){var s;return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.$t)(t,a);case 2:s=e.sent,console.log("checkCaptcha response",s),200===s.code?r&&r(!0):r&&r(!1);case 5:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();(0,g.useEffect)((function(){M()}),[]);return(0,f.jsx)(f.Fragment,{children:w&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(p.Z,{onChange:function(e){t&&(t(h,e.target.value),e.target.value&&""!==e.target.value&&4===e.target.value.trim().length?k(h,e.target.value):r&&r(!1))},prefix:(0,f.jsx)(l.Z,{}),placeholder:a.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),(0,f.jsx)("img",{src:w,alt:"captcha",onClick:M})]})})}},87223:function(e,t,r){r.r(t);var a=r(97857),n=r.n(a),s=r(15009),o=r.n(s),i=r(99289),c=r.n(i),u=r(5574),l=r.n(u),d=r(98661),p=r(59203),g=r(87547),f=r(94149),h=r(24454),m=r(34994),x=r(10915),v=r(68262),w=r(5966),y=r(16434),M=r(92879),k=r(86745),j=r(9361),b=r(38437),C=r(32983),Z=r(14726),q=r(28459),S=r(31418),T=r(67294),A=r(39825),F=r(80049),z=r(85615),P=r(63998),I=r(73935),L=r(60247),R=r(16854),U=r(6144),V=r(17634),_=r(85893),B=j.Z.defaultAlgorithm,E=j.Z.darkAlgorithm,N=function(){var e=(0,M.l)((function(e){var t=e.token;return{width:42,height:42,lineHeight:"42px",position:"fixed",right:16,borderRadius:t.borderRadius,":hover":{backgroundColor:t.colorBgTextHover}}}));return(0,_.jsx)("div",{className:e,"data-lang":!0,children:k.SelectLang&&(0,_.jsx)(k.SelectLang,{})})},$=function(e){var t=e.content;return(0,_.jsx)(b.Z,{style:{marginBottom:24},message:t,type:"error",showIcon:!0})},K=function(){var e=m.A.useForm(),t=l()(e,1)[0],r=j.Z.useToken().token,a=(0,A.Z)().isDarkMode,s=(0,T.useRef)(),i=(0,T.useState)(!1),u=l()(i,2),M=u[0],b=u[1],q=(0,k.useModel)("@@initialState"),S=(q.initialState,q.loading,q.refresh,q.setInitialState),B=(0,T.useState)(!1),E=l()(B,2),K=E[0],G=E[1],D=(0,P.t)((function(e){return e.setAccessToken})),H=(0,L.L)((function(e){return e.setUserInfo})),W=(0,k.getLocale)();console.log("register page locale:",W);var Y=(0,k.useIntl)(),O=(0,T.useState)(""),J=l()(O,2),Q=J[0],X=J[1],ee=(0,T.useState)(""),te=l()(ee,2),re=te[0],ae=te[1],ne=function(){var e=c()(o()().mark((function e(r,a){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:X(r),ae(a),t.setFieldValue("captchaCode",a);case 3:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),se=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:b(t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,T.useEffect)((function(){(0,V.ME)(),(0,R.Bc)()&&G(!0),(0,R.pr)()}),[]);var oe=function(){var e=c()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t&&(0,I.flushSync)((function(){S((function(e){return n()(n()({},e),{},{userInfo:t})}))}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ie=function(){var e=c()(o()().mark((function e(t){var r,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,console.log("values:",t),F.yw.loading(Y.formatMessage({id:"registering",defaultMessage:"registering..."})),e.next=5,(0,d.z2)(n()({},t));case 5:if(r=e.sent,console.log("registerResult:",r),200!==r.code){e.next=15;break}return F.yw.destroy(),F.yw.success(r.message),a={username:t.email,password:t.password,captchaUid:Q,captchaCode:t.captchaCode,platform:z.iw8},ce(a),e.abrupt("return");case 15:F.yw.destroy(),F.yw.error(r.message);case 17:e.next=23;break;case 19:e.prev=19,e.t0=e.catch(0),console.log(e.t0),F.yw.error(Y.formatMessage({id:"register.error",defaultMessage:"register failed"}));case 23:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(t){return e.apply(this,arguments)}}(),ce=function(){var e=c()(o()().mark((function e(t){var r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,console.log("handleSubmit values: ",t),F.yw.loading(Y.formatMessage({id:"logining",defaultMessage:"logining..."})),e.next=5,(0,d.x4)(n()({},t));case 5:r=e.sent,console.log("LoginResult:",r),200===r.code?(F.yw.destroy(),F.yw.success(Y.formatMessage({id:"login.success",defaultMessage:"login success"})),oe(r.data.user),H(r.data.user),D(r.data.accessToken),k.history.push("/")):(F.yw.destroy(),F.yw.error(r.message)),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),console.log(e.t0),F.yw.error(Y.formatMessage({id:"login.error",defaultMessage:"login failed"}));case 14:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}();return(0,_.jsxs)(x._Y,{hashed:!1,dark:a,children:[(0,_.jsx)(N,{}),(0,_.jsx)("div",{style:{backgroundColor:r.colorBgContainer,textAlign:"center",height:"100vh",backgroundImage:"url('/admin/assets/images/bg-wide.png')"},children:K?(0,_.jsxs)(v.U,{form:t,contentStyle:{minWidth:280,maxWidth:"75vw"},logo:(0,_.jsx)("img",{alt:"logo",src:"/admin/icons/logo.png"}),title:(0,_.jsx)(k.FormattedMessage,{id:"app.title"}),subTitle:Y.formatMessage({id:"pages.login.registerAccount"}),initialValues:{autoLogin:!0},submitter:{searchConfig:{submitText:Y.formatMessage({id:"pages.login.register"})}},onFinish:function(){var e=c()(o()().mark((function e(t){var r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("login values:",t),r={email:t.username,password:t.password,mobile:t.mobile,code:t.code,captchaUid:Q,captchaCode:t.captchaCode,platform:z.iw8},console.log("register info:",r),e.next=5,ie(r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:["error"===status&&(0,_.jsx)($,{content:Y.formatMessage({id:"pages.login.accountLogin.errorMessage",defaultMessage:"账户或密码错误"})}),(0,_.jsx)(w.Z,{name:"username",fieldProps:{size:"large",prefix:(0,_.jsx)(g.Z,{})},placeholder:Y.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:(0,_.jsx)(k.FormattedMessage,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:"邮箱格式不正确"},{max:50,message:"邮箱不得超过50字符"}]}),(0,_.jsx)(w.Z.Password,{name:"password",fieldProps:{size:"large",prefix:(0,_.jsx)(f.Z,{})},placeholder:Y.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:(0,_.jsx)(k.FormattedMessage,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),(0,_.jsx)(w.Z,{fieldProps:{size:"large",prefix:(0,_.jsx)(h.Z,{})},name:"mobile",placeholder:Y.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:(0,_.jsx)(k.FormattedMessage,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:(0,_.jsx)(k.FormattedMessage,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]}),(0,_.jsx)(m.A.Item,{name:"captchaCode",rules:[{required:!0,message:Y.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:(0,_.jsx)(U.Z,{onKaptchaChange:ne,onKaptchaCheck:se})}),(0,_.jsx)(y.Z,{fieldProps:{size:"large",prefix:(0,_.jsx)(f.Z,{})},captchaProps:{size:"large",disabled:!M},placeholder:Y.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:function(e,t){return e?"".concat(t," ").concat(Y.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})):Y.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"})},phoneName:"mobile",name:"code",rules:[{required:!0,message:(0,_.jsx)(k.FormattedMessage,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],fieldRef:s,onGetCaptcha:function(){var e=c()(o()().mark((function e(t){var r,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||11!==t.length){e.next=13;break}return r={mobile:t,type:z.i_k,captchaUid:Q,captchaCode:re,platform:z.iw8},e.next=4,(0,d.Y7)(r);case 4:if(a=e.sent,console.log("sendMobileCodeResult:",a),200===a.code){e.next=10;break}return F.yw.error(a.message),setTimeout((function(){var e;console.log("endCaptchaTiming"),null===(e=s.current)||void 0===e||e.endTiming()}),2),e.abrupt("return");case 10:F.yw.success(a.message),e.next=14;break;case 13:F.yw.error("手机号格式错误");case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),"error"===status&&(0,_.jsx)($,{content:"验证码错误"}),(0,_.jsx)("div",{style:{marginBottom:64},children:(0,_.jsx)("div",{style:{float:"right"},children:(0,_.jsx)(k.Link,{to:"/auth/login",children:(0,_.jsx)(k.FormattedMessage,{id:"pages.login.submit",defaultMessage:"登录 "})})})})]}):(0,_.jsx)("div",{style:{textAlign:"center",margin:"0 auto"},children:(0,_.jsx)(C.Z,{description:"only for vip users, please contact: 270580156@qq.com",children:(0,_.jsx)(Z.ZP,{type:"primary",onClick:function(){window.open("https://www.weiyuai.cn")},children:"open weiyuai.cn"})})})}),(0,_.jsx)(p.$_,{})]})};t.default=function(){var e=(0,A.Z)().isDarkMode;return(0,_.jsx)(q.ZP,{theme:{algorithm:e?E:B},children:(0,_.jsxs)(S.Z,{children:[(0,_.jsx)(F.ZP,{}),(0,_.jsx)(K,{})]})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__PayData.42496ea1.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__PayData.42496ea1.async.js new file mode 100644 index 00000000..4c2d7125 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__PayData.42496ea1.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8726],{64317:function(e,n,r){var t=r(1413),o=r(91),a=r(22270),i=r(67294),l=r(66758),s=r(29258),u=r(85893),c=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],p=function(e,n){var r=e.fieldProps,d=e.children,p=e.params,f=e.proFieldProps,h=e.mode,g=e.valueEnum,m=e.request,v=e.showSearch,y=e.options,x=(0,o.Z)(e,c),P=(0,i.useContext)(l.Z);return(0,u.jsx)(s.Z,(0,t.Z)((0,t.Z)({valueEnum:(0,a.h)(g),request:m,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,t.Z)({options:y,mode:h,showSearch:v,getPopupContainer:P.getPopupContainer},r),ref:n,proFieldProps:f},x),{},{children:d}))},f=i.forwardRef((function(e,n){var r=e.fieldProps,c=e.children,p=e.params,f=e.proFieldProps,h=e.mode,g=e.valueEnum,m=e.request,v=e.options,y=(0,o.Z)(e,d),x=(0,t.Z)({options:v,mode:h||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},r),P=(0,i.useContext)(l.Z);return(0,u.jsx)(s.Z,(0,t.Z)((0,t.Z)({valueEnum:(0,a.h)(g),request:m,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,t.Z)({getPopupContainer:P.getPopupContainer},x),ref:n,proFieldProps:f},y),{},{children:c}))})),h=i.forwardRef(p);h.SearchSelect=f,h.displayName="ProFormComponent",n.Z=h},5966:function(e,n,r){var t=r(97685),o=r(1413),a=r(91),i=r(21770),l=r(8232),s=r(55241),u=r(97435),c=r(67294),d=r(29258),p=r(85893),f=["fieldProps","proFieldProps"],h=["fieldProps","proFieldProps"],g="text",m=function(e){var n=(0,i.Z)(e.open||!1,{value:e.open,onChange:e.onOpenChange}),r=(0,t.Z)(n,2),a=r[0],u=r[1];return(0,p.jsx)(l.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(n){var r,t=n.getFieldValue(e.name||[]);return(0,p.jsx)(s.Z,(0,o.Z)((0,o.Z)({getPopupContainer:function(e){return e&&e.parentNode?e.parentNode:e},onOpenChange:function(e){return u(e)},content:(0,p.jsxs)("div",{style:{padding:"4px 0"},children:[null===(r=e.statusRender)||void 0===r?void 0:r.call(e,t),e.strengthText?(0,p.jsx)("div",{style:{marginTop:10},children:(0,p.jsx)("span",{children:e.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},e.popoverProps),{},{open:a,children:e.children}))}})},v=function(e){var n=e.fieldProps,r=e.proFieldProps,t=(0,a.Z)(e,f);return(0,p.jsx)(d.Z,(0,o.Z)({valueType:g,fieldProps:n,filedConfig:{valueType:g},proFieldProps:r},t))};v.Password=function(e){var n=e.fieldProps,r=e.proFieldProps,i=(0,a.Z)(e,h),l=(0,c.useState)(!1),s=(0,t.Z)(l,2),f=s[0],v=s[1];return null!=n&&n.statusRender&&i.name?(0,p.jsx)(m,{name:i.name,statusRender:null==n?void 0:n.statusRender,popoverProps:null==n?void 0:n.popoverProps,strengthText:null==n?void 0:n.strengthText,open:f,onOpenChange:v,children:(0,p.jsx)("div",{children:(0,p.jsx)(d.Z,(0,o.Z)({valueType:"password",fieldProps:(0,o.Z)((0,o.Z)({},(0,u.Z)(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(e){var r;null==n||null===(r=n.onBlur)||void 0===r||r.call(n,e),v(!1)},onClick:function(e){var r;null==n||null===(r=n.onClick)||void 0===r||r.call(n,e),v(!0)}}),proFieldProps:r,filedConfig:{valueType:g}},i))})}):(0,p.jsx)(d.Z,(0,o.Z)({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:g}},i))},v.displayName="ProFormComponent",n.Z=v},90672:function(e,n,r){var t=r(1413),o=r(91),a=r(67294),i=r(29258),l=r(85893),s=["fieldProps","proFieldProps"],u=function(e,n){var r=e.fieldProps,a=e.proFieldProps,u=(0,o.Z)(e,s);return(0,l.jsx)(i.Z,(0,t.Z)({ref:n,valueType:"textarea",fieldProps:r,proFieldProps:a},u))};n.Z=a.forwardRef(u)},58293:function(e,n,r){r.r(n),r.d(n,{default:function(){return U}});var t=r(97857),o=r.n(t),a=r(13769),i=r.n(a),l=r(15009),s=r.n(l),u=r(99289),c=r.n(u),d=r(5574),p=r.n(d),f=r(80049),h=r(85615),g=r(86745);function m(e){return v.apply(this,arguments)}function v(){return(v=c()(s()().mark((function e(n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,g.request)("/api/v1/vip/pay/query/org",{method:"GET",params:o()(o()({},n),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e){return x.apply(this,arguments)}function x(){return(x=c()(s()().mark((function e(n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,g.request)("/api/v1/pay/create",{method:"POST",data:o()(o()({},n),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function P(e){return Z.apply(this,arguments)}function Z(){return(Z=c()(s()().mark((function e(n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,g.request)("/api/v1/pay/update",{method:"POST",data:o()(o()({},n),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var C=r(51042),b=r(74190),w=r(14726),j=r(67294),F=r(89102),k=r(87676),T=r(34994),S=r(64317),q=r(5966),R=r(90672),E=r(8232),M=r(85265),O=r(42075),I=r(85893),A=function(e){var n=e.isEdit,r=e.quickreply,t=e.open,a=e.onClose,i=e.onSubmit,l=E.Z.useForm(),s=p()(l,1)[0],u=(0,k.u)((function(e){return e.currentOrg})),c=(0,F.v)((function(e){return e.categorySelectOptions}));(0,j.useEffect)((function(){n||s.resetFields()}),[t]);return(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(M.Z,{title:n?"修改":"新建",onClose:a,open:t,extra:(0,I.jsxs)(O.Z,{children:[(0,I.jsx)(w.ZP,{onClick:a,children:"取消"}),(0,I.jsx)(w.ZP,{onClick:function(){console.log("handleSubmit"),s.validateFields().then((function(e){console.log(e),i(o()(o()(o()({},r),e),{},{orgUid:null==u?void 0:u.uid}))})).catch((function(e){console.log("Form errors:",e),f.yw.error("请检查表单填写")}))},type:"primary",children:"保存"})]}),children:(0,I.jsxs)(T.A,{form:s,initialValues:o()({},r),submitter:{render:function(){return null}},children:[(0,I.jsx)(S.Z,{label:"分类",name:"categoryUid",rules:[{required:!0,message:"请选择分类"}],options:c,fieldProps:{allowClear:!0,placeholder:"请选择分类",onChange:function(e){console.log("category selected ".concat(e))}}}),(0,I.jsx)(S.Z,{label:"类型",name:"type",rules:[{required:!0,message:"请选择类型"}],options:[{label:"文本",value:h.PYi},{label:"图片",value:h.Qm,disabled:!0},{label:"视频",value:h.tVi,disabled:!0},{label:"音频",value:h.Yu1,disabled:!0},{label:"文件",value:h.Qn,disabled:!0}],fieldProps:{allowClear:!0,placeholder:"请选择类型",onChange:function(e){console.log("type selected ".concat(e))}}}),(0,I.jsx)(q.Z,{label:"标题",name:"title",rules:[{required:!0,message:"请输入标题"}]}),(0,I.jsx)(R.Z,{label:"内容",name:"content"})]})})})},V=["current"],B=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"用户名",dataIndex:"payname",copyable:!0},{title:"昵称",dataIndex:"nickname",copyable:!0},{title:"邮箱",dataIndex:"email",copyable:!0},{title:"手机号",dataIndex:"mobile",copyable:!0},{title:"注册时间",key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0,width:180}],N=function(){var e=(0,g.useIntl)(),n=(0,j.useRef)(),r=(0,j.useState)(!0),t=p()(r,2),a=t[0],l=t[1],u=(0,j.useState)(),d=p()(u,2),h=d[0],v=d[1],x=(0,j.useState)(!1),Z=p()(x,2),k=Z[0],T=Z[1],S=[].concat(B,[{title:e.formatMessage({id:"actions"}),valueType:"option",key:"option",width:100,render:function(n,r,t,o){return[(0,I.jsx)("a",{onClick:function(){E(r)},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),q=(0,F.v)((function(e){return e.currentCategory})),R=function(){v(void 0),l(!1),T(!0)},E=function(e){v(e),l(!0),T(!0)},M=function(){var r=c()(s()().mark((function r(t){var o,i;return s()().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(console.log("handleSubmitDrawer",t),a?f.yw.loading(e.formatMessage({id:"updating"})):f.yw.loading(e.formatMessage({id:"creating"})),!a){r.next=8;break}return r.next=5,P(t);case 5:r.t0=r.sent,r.next=11;break;case 8:return r.next=10,y(t);case 10:r.t0=r.sent;case 11:o=r.t0,console.log("createPay response:",t,o),200===o.code?(f.yw.destroy(),f.yw.success(e.formatMessage({id:"create.success",defaultMessage:"create success"})),T(!1),null===(i=n.current)||void 0===i||i.reloadAndRest()):(f.yw.destroy(),f.yw.error(o.message));case 14:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}();return(0,j.useEffect)((function(){var e;console.log("currentCategory:",q),null===(e=n.current)||void 0===e||e.reloadAndRest()}),[q]),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(b.Z,{columns:S,actionRef:n,cardBordered:!0,request:function(){var n=c()(s()().mark((function n(r,t,a){var l,u,c;return s()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("request:",r,t,a),f.yw.loading(e.formatMessage({id:"loading",defaultMessage:"Loading"})),r.current,l=i()(r,V),u=o()({pageNumber:r.current-1},l),n.next=6,m(u);case 6:return c=n.sent,console.log("getAllPays response:",u,c),f.yw.destroy(),200===c.code||f.yw.error(c.message),n.abrupt("return",{data:c.data.content,success:!0,total:c.data.totalElements});case 11:case"end":return n.stop()}}),n)})));return function(e,r,t){return n.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"支付",toolBarRender:function(){return[(0,I.jsx)(w.ZP,{icon:(0,I.jsx)(C.Z,{}),type:"primary",onClick:R,children:e.formatMessage({id:"create",defaultMessage:"Create"})},"button")]}}),(0,I.jsx)(A,{isEdit:a,open:k,quickreply:h,onClose:function(){T(!1)},onSubmit:M})]})},U=function(){return(0,I.jsx)("div",{children:(0,I.jsx)(N,{})})}},89102:function(e,n,r){r.d(n,{v:function(){return d}});var t=r(19632),o=r.n(t),a=r(97857),i=r.n(a),l=r(85615),s=r(73445),u=r(782),c=r(18753),d=(0,s.Ue)()((0,u.mW)((0,u.tJ)((0,c.n)((function(e,n){return{categoryResult:{data:{content:[]}},categoryTreeOptions:[],categorySelectOptions:[],currentCategory:{uid:""},setCategoryResult:function(n){var r,t=function(e){var n=[];return e.data.content.forEach((function(e){var r={label:e.name,value:e.uid};n.push(r)})),n}(n),a=i()(i()({},n),{},{data:{content:[{uid:"all",name:"All"}].concat(o()(n.data.content))}}),l=function(e){var n=[];return e.data.content.forEach((function(e){var r={title:e.name,key:e.uid,children:[]};e.children&&Array.isArray(e.children)&&(r.children=e.children.map((function(e){return{title:e.name,key:e.uid,children:[]}}))),n.push(r)})),n}(a);e({categoryResult:a,categoryTreeOptions:l,categorySelectOptions:t}),(null===(r=n.data)||void 0===r||null===(r=r.content)||void 0===r?void 0:r.length)>0?e({currentCategory:n.data.content[0]}):e({currentCategory:{uid:""}})},setCurrentCategoryUid:function(r){var t=n().categoryResult.data.content.find((function(e){return e.uid===r}));e({currentCategory:t})},deleteCategoryCache:function(){return e({},!0)}}})),{name:l.OMm})))}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__PayData.bc77a74a.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__PayData.bc77a74a.async.js deleted file mode 100644 index 25681618..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__PayData.bc77a74a.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8726],{64317:function(Y,b,e){var P=e(1413),s=e(91),D=e(22270),_=e(67294),A=e(66758),c=e(24809),x=e(85893),M=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],y=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],p=function(u,E){var U=u.fieldProps,a=u.children,t=u.params,C=u.proFieldProps,S=u.mode,F=u.valueEnum,L=u.request,I=u.showSearch,R=u.options,B=(0,s.Z)(u,M),w=(0,_.useContext)(A.Z);return(0,x.jsx)(c.Z,(0,P.Z)((0,P.Z)({valueEnum:(0,D.h)(F),request:L,params:t,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,P.Z)({options:R,mode:S,showSearch:I,getPopupContainer:w.getPopupContainer},U),ref:E,proFieldProps:C},B),{},{children:a}))},h=_.forwardRef(function(n,u){var E=n.fieldProps,U=n.children,a=n.params,t=n.proFieldProps,C=n.mode,S=n.valueEnum,F=n.request,L=n.options,I=(0,s.Z)(n,y),R=(0,P.Z)({options:L,mode:C||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},E),B=(0,_.useContext)(A.Z);return(0,x.jsx)(c.Z,(0,P.Z)((0,P.Z)({valueEnum:(0,D.h)(S),request:F,params:a,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,P.Z)({getPopupContainer:B.getPopupContainer},R),ref:u,proFieldProps:t},I),{},{children:U}))}),i=_.forwardRef(p),m=h,g=i;g.SearchSelect=m,g.displayName="ProFormComponent",b.Z=g},5966:function(Y,b,e){var P=e(97685),s=e(1413),D=e(91),_=e(21770),A=e(8232),c=e(55241),x=e(97435),M=e(67294),y=e(24809),p=e(85893),h=["fieldProps","proFieldProps"],i=["fieldProps","proFieldProps"],m="text",g=function(a){var t=a.fieldProps,C=a.proFieldProps,S=(0,D.Z)(a,h);return(0,p.jsx)(y.Z,(0,s.Z)({valueType:m,fieldProps:t,filedConfig:{valueType:m},proFieldProps:C},S))},n=function(a){var t=(0,_.Z)(a.open||!1,{value:a.open,onChange:a.onOpenChange}),C=(0,P.Z)(t,2),S=C[0],F=C[1];return(0,p.jsx)(A.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(I){var R,B=I.getFieldValue(a.name||[]);return(0,p.jsx)(c.Z,(0,s.Z)((0,s.Z)({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:function(f){return F(f)},content:(0,p.jsxs)("div",{style:{padding:"4px 0"},children:[(R=a.statusRender)===null||R===void 0?void 0:R.call(a,B),a.strengthText?(0,p.jsx)("div",{style:{marginTop:10},children:(0,p.jsx)("span",{children:a.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},a.popoverProps),{},{open:S,children:a.children}))}})},u=function(a){var t=a.fieldProps,C=a.proFieldProps,S=(0,D.Z)(a,i),F=(0,M.useState)(!1),L=(0,P.Z)(F,2),I=L[0],R=L[1];return t!=null&&t.statusRender&&S.name?(0,p.jsx)(n,{name:S.name,statusRender:t==null?void 0:t.statusRender,popoverProps:t==null?void 0:t.popoverProps,strengthText:t==null?void 0:t.strengthText,open:I,onOpenChange:R,children:(0,p.jsx)("div",{children:(0,p.jsx)(y.Z,(0,s.Z)({valueType:"password",fieldProps:(0,s.Z)((0,s.Z)({},(0,x.Z)(t,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(w){var f;t==null||(f=t.onBlur)===null||f===void 0||f.call(t,w),R(!1)},onClick:function(w){var f;t==null||(f=t.onClick)===null||f===void 0||f.call(t,w),R(!0)}}),proFieldProps:C,filedConfig:{valueType:m}},S))})}):(0,p.jsx)(y.Z,(0,s.Z)({valueType:"password",fieldProps:t,proFieldProps:C,filedConfig:{valueType:m}},S))},E=g;E.Password=u,E.displayName="ProFormComponent",b.Z=E},90672:function(Y,b,e){var P=e(1413),s=e(91),D=e(67294),_=e(24809),A=e(85893),c=["fieldProps","proFieldProps"],x=function(y,p){var h=y.fieldProps,i=y.proFieldProps,m=(0,s.Z)(y,c);return(0,A.jsx)(_.Z,(0,P.Z)({ref:p,valueType:"textarea",fieldProps:h,proFieldProps:i},m))};b.Z=D.forwardRef(x)},58293:function(Y,b,e){e.r(b),e.d(b,{default:function(){return Se}});var P=e(97857),s=e.n(P),D=e(13769),_=e.n(D),A=e(15009),c=e.n(A),x=e(99289),M=e.n(x),y=e(5574),p=e.n(y),h=e(80049),i=e(85615),m=e(86745);function g(l){return n.apply(this,arguments)}function n(){return n=_asyncToGenerator(_regeneratorRuntime().mark(function l(o){return _regeneratorRuntime().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",request("/api/v1/pay/profile",_objectSpread({method:"GET",params:{client:HTTP_CLIENT}},o||{})));case 1:case"end":return r.stop()}},l)})),n.apply(this,arguments)}function u(l){return E.apply(this,arguments)}function E(){return E=_asyncToGenerator(_regeneratorRuntime().mark(function l(o){return _regeneratorRuntime().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",request("/api/v1/pay/update",{method:"POST",data:_objectSpread(_objectSpread({},o),{},{client:HTTP_CLIENT})}));case 1:case"end":return r.stop()}},l)})),E.apply(this,arguments)}function U(l){return a.apply(this,arguments)}function a(){return a=_asyncToGenerator(_regeneratorRuntime().mark(function l(o){return _regeneratorRuntime().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",request("/api/v1/pay/change/password",{method:"POST",data:_objectSpread(_objectSpread({},o),{},{client:HTTP_CLIENT})}));case 1:case"end":return r.stop()}},l)})),a.apply(this,arguments)}function t(){return C.apply(this,arguments)}function C(){return C=_asyncToGenerator(_regeneratorRuntime().mark(function l(){return _regeneratorRuntime().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",request("/api/v1/pay/test/super",{method:"GET",params:{client:HTTP_CLIENT}}));case 1:case"end":return d.stop()}},l)})),C.apply(this,arguments)}function S(){return F.apply(this,arguments)}function F(){return F=_asyncToGenerator(_regeneratorRuntime().mark(function l(){return _regeneratorRuntime().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",request("/api/v1/pay/test/cs",{method:"GET",params:{client:HTTP_CLIENT}}));case 1:case"end":return d.stop()}},l)})),F.apply(this,arguments)}function L(l){return I.apply(this,arguments)}function I(){return I=M()(c()().mark(function l(o){return c()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,m.request)("/api/v1/vip/pay/query/org",{method:"GET",params:s()(s()({},o),{},{client:i.bVn})}));case 1:case"end":return r.stop()}},l)})),I.apply(this,arguments)}function R(l){return B.apply(this,arguments)}function B(){return B=M()(c()().mark(function l(o){return c()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,m.request)("/api/v1/pay/create",{method:"POST",data:s()(s()({},o),{},{client:i.bVn})}));case 1:case"end":return r.stop()}},l)})),B.apply(this,arguments)}function w(l){return f.apply(this,arguments)}function f(){return f=M()(c()().mark(function l(o){return c()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,m.request)("/api/v1/pay/update",{method:"POST",data:s()(s()({},o),{},{client:i.bVn})}));case 1:case"end":return r.stop()}},l)})),f.apply(this,arguments)}function xe(l){return te.apply(this,arguments)}function te(){return te=_asyncToGenerator(_regeneratorRuntime().mark(function l(o){return _regeneratorRuntime().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",request("/api/v1/pay/delete",{method:"POST",data:_objectSpread(_objectSpread({},o),{},{client:HTTP_CLIENT})}));case 1:case"end":return r.stop()}},l)})),te.apply(this,arguments)}var ce=e(51042),pe=e(57482),ne=e(14726),G=e(67294),ie=e(89102),me=e(87676),ve=e(34994),de=e(64317),Pe=e(5966),he=e(90672),ge=e(8232),fe=e(85265),_e=e(42075),v=e(85893),ye=function(o){var d=o.isEdit,r=o.quickreply,X=o.open,N=o.onClose,q=o.onSubmit,ae=ge.Z.useForm(),ee=p()(ae,1),k=ee[0],V=(0,me.u)(function(K){return K.currentOrg}),oe=(0,ie.v)(function(K){return K.categorySelectOptions});(0,G.useEffect)(function(){d||k.resetFields()},[X]);var re=function(Z){console.log("category selected ".concat(Z))},se=function(Z){console.log("type selected ".concat(Z))},z=function(){console.log("handleSubmit"),k.validateFields().then(function(Z){console.log(Z),q(s()(s()(s()({},r),Z),{},{orgUid:V==null?void 0:V.uid}))}).catch(function(Z){console.log("Form errors:",Z),h.yw.error("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199")})};return(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(fe.Z,{title:d?"\u4FEE\u6539":"\u65B0\u5EFA",onClose:N,open:X,extra:(0,v.jsxs)(_e.Z,{children:[(0,v.jsx)(ne.ZP,{onClick:N,children:"\u53D6\u6D88"}),(0,v.jsx)(ne.ZP,{onClick:z,type:"primary",children:"\u4FDD\u5B58"})]}),children:(0,v.jsxs)(ve.A,{form:k,initialValues:s()({},r),submitter:{render:function(){return null}},children:[(0,v.jsx)(de.Z,{label:"\u5206\u7C7B",name:"categoryUid",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u7C7B"}],options:oe,fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5206\u7C7B",onChange:re}}),(0,v.jsx)(de.Z,{label:"\u7C7B\u578B",name:"type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}],options:[{label:"\u6587\u672C",value:i.PYi},{label:"\u56FE\u7247",value:i.Qm,disabled:!0},{label:"\u89C6\u9891",value:i.tVi,disabled:!0},{label:"\u97F3\u9891",value:i.Yu1,disabled:!0},{label:"\u6587\u4EF6",value:i.Qn,disabled:!0}],fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B",onChange:se}}),(0,v.jsx)(Pe.Z,{label:"\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]}),(0,v.jsx)(he.Z,{label:"\u5185\u5BB9",name:"content"})]})})})},Ee=ye,Ce=["current"],Te=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"\u7528\u6237\u540D",dataIndex:"payname",copyable:!0},{title:"\u6635\u79F0",dataIndex:"nickname",copyable:!0},{title:"\u90AE\u7BB1",dataIndex:"email",copyable:!0},{title:"\u624B\u673A\u53F7",dataIndex:"mobile",copyable:!0},{title:"\u6CE8\u518C\u65F6\u95F4",key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0,width:180}],Oe=function(){var o=(0,m.useIntl)(),d=(0,G.useRef)(),r=(0,G.useState)(!0),X=p()(r,2),N=X[0],q=X[1],ae=(0,G.useState)(),ee=p()(ae,2),k=ee[0],V=ee[1],oe=(0,G.useState)(!1),re=p()(oe,2),se=re[0],z=re[1],K=[].concat(Te,[{title:o.formatMessage({id:"actions"}),valueType:"option",key:"option",width:100,render:function(W,j,$,H){return[(0,v.jsx)("a",{onClick:function(){je(j)},children:o.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),Z=(0,ie.v)(function(T){return T.currentCategory}),Re=function(){V(void 0),q(!1),z(!0)},je=function(W){V(W),q(!0),z(!0)},be=function(){var T=M()(c()().mark(function W(j){var $,H;return c()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(console.log("handleSubmitDrawer",j),N?h.yw.loading(o.formatMessage({id:"updating"})):h.yw.loading(o.formatMessage({id:"creating"})),!N){O.next=8;break}return O.next=5,w(j);case 5:O.t0=O.sent,O.next=11;break;case 8:return O.next=10,R(j);case 10:O.t0=O.sent;case 11:$=O.t0,console.log("createPay response:",j,$),$.code===200?(h.yw.destroy(),h.yw.success(o.formatMessage({id:"create.success",defaultMessage:"create success"})),z(!1),(H=d.current)===null||H===void 0||H.reloadAndRest()):(h.yw.destroy(),h.yw.error($.message));case 14:case"end":return O.stop()}},W)}));return function(j){return T.apply(this,arguments)}}(),Ae=function(){z(!1)};return(0,G.useEffect)(function(){var T;console.log("currentCategory:",Z),(T=d.current)===null||T===void 0||T.reloadAndRest()},[Z]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(pe.Z,{columns:K,actionRef:d,cardBordered:!0,request:function(){var T=M()(c()().mark(function W(j,$,H){var ue,O,le,Q;return c()().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return console.log("request:",j,$,H),h.yw.loading(o.formatMessage({id:"loading",defaultMessage:"Loading"})),ue=j.current,O=_()(j,Ce),le=s()({pageNumber:j.current-1},O),J.next=6,L(le);case 6:return Q=J.sent,console.log("getAllPays response:",le,Q),h.yw.destroy(),Q.code===200||h.yw.error(Q.message),J.abrupt("return",{data:Q.data.content,success:!0,total:Q.data.totalElements});case 11:case"end":return J.stop()}},W)}));return function(W,j,$){return T.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(W){console.log("page:",W)}},dateFormatter:"string",headerTitle:"\u652F\u4ED8",toolBarRender:function(){return[(0,v.jsx)(ne.ZP,{icon:(0,v.jsx)(ce.Z,{}),type:"primary",onClick:Re,children:o.formatMessage({id:"create",defaultMessage:"Create"})},"button")]}}),(0,v.jsx)(Ee,{isEdit:N,open:se,quickreply:k,onClose:Ae,onSubmit:be})]})},De=Oe,Me=function(){return(0,v.jsx)("div",{children:(0,v.jsx)(De,{})})},Se=Me},89102:function(Y,b,e){e.d(b,{v:function(){return y}});var P=e(19632),s=e.n(P),D=e(97857),_=e.n(D),A=e(85615),c=e(73445),x=e(782),M=e(18753),y=(0,c.Ue)()((0,x.mW)((0,x.tJ)((0,M.n)(function(i,m){return{categoryResult:{data:{content:[]}},categoryTreeOptions:[],categorySelectOptions:[],currentCategory:{uid:""},setCategoryResult:function(n){var u,E=h(n),U={uid:"all",name:"All"},a=_()(_()({},n),{},{data:{content:[U].concat(s()(n.data.content))}}),t=p(a);i({categoryResult:a,categoryTreeOptions:t,categorySelectOptions:E}),((u=n.data)===null||u===void 0||(u=u.content)===null||u===void 0?void 0:u.length)>0?i({currentCategory:n.data.content[0]}):i({currentCategory:{uid:""}})},setCurrentCategoryUid:function(n){var u=m().categoryResult.data.content.find(function(E){return E.uid===n});i({currentCategory:u})},deleteCategoryCache:function(){return i({},!0)}}}),{name:A.OMm})));function p(i){var m=[];return i.data.content.forEach(function(g){var n={title:g.name,key:g.uid,children:[]};g.children&&Array.isArray(g.children)&&(n.children=g.children.map(function(u){return{title:u.name,key:u.uid,children:[]}})),m.push(n)}),m}function h(i){var m=[];return i.data.content.forEach(function(g){var n={label:g.name,value:g.uid};m.push(n)}),m}},87676:function(Y,b,e){e.d(b,{u:function(){return A}});var P=e(85615),s=e(73445),D=e(782),_=e(18753),A=(0,s.Ue)()((0,D.mW)((0,D.tJ)((0,_.n)(function(c,x){return{currentOrg:{uid:"",name:"",description:""},setCurrentOrg:function(y){c({currentOrg:y})},deleteOrg:function(){return c({},!0)}}}),{name:P.eRd})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__PayStatistic.f04c66ee.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__PayStatistic.f04c66ee.async.js new file mode 100644 index 00000000..ab204ccf --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__PayStatistic.f04c66ee.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5851],{24598:function(e,s,c){c.r(s);var a=c(85615),n=c(86745),i=c(85893);s.default=function(){var e=(0,n.useAccess)();return e.canDebug&&console.log("TabPayReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(n.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.FormattedMessage,{id:a.h5w})}),children:"PayStatistic"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__PayStatistic.f0b33b9f.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__PayStatistic.f0b33b9f.async.js deleted file mode 100644 index 310aa72e..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__PayStatistic.f0b33b9f.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5851],{24598:function(l,n,a){a.r(n);var e=a(85615),c=a(86745),s=a(85893),i=function(){var t=(0,c.useAccess)();return t.canDebug&&console.log("TabPayReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(c.Access,{accessible:t.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.FormattedMessage,{id:e.h5w})}),children:"PayStatistic"})})})};n.default=i}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__index.05ef162b.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__index.05ef162b.async.js new file mode 100644 index 00000000..e3fb1f21 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__index.05ef162b.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4657],{77154:function(e,t,a){var i=a(39825);t.Z=function(){var e=(0,i.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},95492:function(e,t,a){a.r(t);var i=a(77154),d=a(86745),s=a(21612),n=a(50136),l=(a(67294),a(96974)),c=a(85893),r=s.Z.Sider,f=s.Z.Content,o=[{label:(0,c.jsx)(d.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"},{label:(0,c.jsx)(d.FormattedMessage,{id:"statistic",defaultMessage:"Statistic"}),key:"statistic"}];t.default=function(){var e=(0,l.s0)(),t=(0,i.Z)(),a=t.leftSiderStyle,d=t.contentStyle;return(0,c.jsxs)(s.Z,{children:[(0,c.jsx)(r,{style:a,children:(0,c.jsx)(n.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/admin/pay/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data"],items:o})}),(0,c.jsx)(s.Z,{children:(0,c.jsx)(f,{style:d,children:(0,c.jsx)(l.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__index.d8866165.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__index.d8866165.async.js deleted file mode 100644 index f57f5174..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Pay__index.d8866165.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4657],{77154:function(u,n,e){var i=e(39825);function l(){var d=(0,i.Z)(),a=d.isDarkMode,_=250,s={borderRight:a?"1px solid #333":"1px solid #ccc",background:a?"#141414":"#f5f5f5"},t={background:a?"#141414":"#fff"},r={borderLeft:a?"1px solid #333":"1px solid #ccc",background:a?"#141414":"#f5f5f5"},o={minHeight:120,background:a?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:s,leftSiderWidth:_,headerStyle:t,rightSiderStyle:r,contentStyle:o}}n.Z=l},95492:function(u,n,e){e.r(n);var i=e(77154),l=e(86745),d=e(21612),a=e(50136),_=e(67294),s=e(96974),t=e(85893),r=d.Z.Sider,o=d.Z.Content,S=[{label:(0,t.jsx)(l.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"},{label:(0,t.jsx)(l.FormattedMessage,{id:"statistic",defaultMessage:"Statistic"}),key:"statistic"}],y=function(){var M=(0,s.s0)(),c=(0,i.Z)(),E=c.leftSiderStyle,v=c.contentStyle,h=function(f){console.log("menu click ",f.key),M("/admin/pay/"+f.key)};return(0,t.jsxs)(d.Z,{children:[(0,t.jsx)(r,{style:E,children:(0,t.jsx)(a.Z,{mode:"inline",onClick:h,defaultSelectedKeys:["data"],defaultOpenKeys:["data"],items:S})}),(0,t.jsx)(d.Z,{children:(0,t.jsx)(o,{style:v,children:(0,t.jsx)(s.j3,{})})})]})};n.default=y}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__PushData.0e753acf.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__PushData.0e753acf.async.js deleted file mode 100644 index 325e559b..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__PushData.0e753acf.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[275],{64317:function(N,O,e){var p=e(1413),s=e(91),y=e(22270),f=e(67294),D=e(66758),v=e(24809),T=e(85893),M=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],E=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],u=function(t,S){var j=t.fieldProps,o=t.children,r=t.params,R=t.proFieldProps,_=t.mode,W=t.valueEnum,U=t.request,A=t.showSearch,P=t.options,b=(0,s.Z)(t,M),L=(0,f.useContext)(D.Z);return(0,T.jsx)(v.Z,(0,p.Z)((0,p.Z)({valueEnum:(0,y.h)(W),request:U,params:r,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,p.Z)({options:P,mode:_,showSearch:A,getPopupContainer:L.getPopupContainer},j),ref:S,proFieldProps:R},b),{},{children:o}))},x=f.forwardRef(function(a,t){var S=a.fieldProps,j=a.children,o=a.params,r=a.proFieldProps,R=a.mode,_=a.valueEnum,W=a.request,U=a.options,A=(0,s.Z)(a,E),P=(0,p.Z)({options:U,mode:R||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},S),b=(0,f.useContext)(D.Z);return(0,T.jsx)(v.Z,(0,p.Z)((0,p.Z)({valueEnum:(0,y.h)(_),request:W,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,p.Z)({getPopupContainer:b.getPopupContainer},P),ref:t,proFieldProps:r},A),{},{children:j}))}),m=f.forwardRef(u),h=x,l=m;l.SearchSelect=h,l.displayName="ProFormComponent",O.Z=l},5966:function(N,O,e){var p=e(97685),s=e(1413),y=e(91),f=e(21770),D=e(8232),v=e(55241),T=e(97435),M=e(67294),E=e(24809),u=e(85893),x=["fieldProps","proFieldProps"],m=["fieldProps","proFieldProps"],h="text",l=function(o){var r=o.fieldProps,R=o.proFieldProps,_=(0,y.Z)(o,x);return(0,u.jsx)(E.Z,(0,s.Z)({valueType:h,fieldProps:r,filedConfig:{valueType:h},proFieldProps:R},_))},a=function(o){var r=(0,f.Z)(o.open||!1,{value:o.open,onChange:o.onOpenChange}),R=(0,p.Z)(r,2),_=R[0],W=R[1];return(0,u.jsx)(D.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(A){var P,b=A.getFieldValue(o.name||[]);return(0,u.jsx)(v.Z,(0,s.Z)((0,s.Z)({getPopupContainer:function(i){return i&&i.parentNode?i.parentNode:i},onOpenChange:function(i){return W(i)},content:(0,u.jsxs)("div",{style:{padding:"4px 0"},children:[(P=o.statusRender)===null||P===void 0?void 0:P.call(o,b),o.strengthText?(0,u.jsx)("div",{style:{marginTop:10},children:(0,u.jsx)("span",{children:o.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},o.popoverProps),{},{open:_,children:o.children}))}})},t=function(o){var r=o.fieldProps,R=o.proFieldProps,_=(0,y.Z)(o,m),W=(0,M.useState)(!1),U=(0,p.Z)(W,2),A=U[0],P=U[1];return r!=null&&r.statusRender&&_.name?(0,u.jsx)(a,{name:_.name,statusRender:r==null?void 0:r.statusRender,popoverProps:r==null?void 0:r.popoverProps,strengthText:r==null?void 0:r.strengthText,open:A,onOpenChange:P,children:(0,u.jsx)("div",{children:(0,u.jsx)(E.Z,(0,s.Z)({valueType:"password",fieldProps:(0,s.Z)((0,s.Z)({},(0,T.Z)(r,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(L){var i;r==null||(i=r.onBlur)===null||i===void 0||i.call(r,L),P(!1)},onClick:function(L){var i;r==null||(i=r.onClick)===null||i===void 0||i.call(r,L),P(!0)}}),proFieldProps:R,filedConfig:{valueType:h}},_))})}):(0,u.jsx)(E.Z,(0,s.Z)({valueType:"password",fieldProps:r,proFieldProps:R,filedConfig:{valueType:h}},_))},S=l;S.Password=t,S.displayName="ProFormComponent",O.Z=S},90672:function(N,O,e){var p=e(1413),s=e(91),y=e(67294),f=e(24809),D=e(85893),v=["fieldProps","proFieldProps"],T=function(E,u){var x=E.fieldProps,m=E.proFieldProps,h=(0,s.Z)(E,v);return(0,D.jsx)(f.Z,(0,p.Z)({ref:u,valueType:"textarea",fieldProps:x,proFieldProps:m},h))};O.Z=y.forwardRef(T)},68059:function(N,O,e){e.r(O),e.d(O,{default:function(){return Ee}});var p=e(97857),s=e.n(p),y=e(13769),f=e.n(y),D=e(15009),v=e.n(D),T=e(99289),M=e.n(T),E=e(5574),u=e.n(E),x=e(80049),m=e(86745);function h(g){return l.apply(this,arguments)}function l(){return l=M()(v()().mark(function g(c){return v()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,m.request)("/api/v1/push/query/org",{method:"GET",params:s()({},c)}));case 1:case"end":return n.stop()}},g)})),l.apply(this,arguments)}function a(g){return t.apply(this,arguments)}function t(){return t=_asyncToGenerator(_regeneratorRuntime().mark(function g(c){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",request("/api/v1/push/update",{method:"POST",data:_objectSpread({},c)}));case 1:case"end":return n.stop()}},g)})),t.apply(this,arguments)}function S(g){return j.apply(this,arguments)}function j(){return j=_asyncToGenerator(_regeneratorRuntime().mark(function g(c){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",request("/api/v1/push/close",{method:"POST",data:_objectSpread({},c)}));case 1:case"end":return n.stop()}},g)})),j.apply(this,arguments)}function o(g){return r.apply(this,arguments)}function r(){return r=_asyncToGenerator(_regeneratorRuntime().mark(function g(c){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",request("/api/v1/push/delete",{method:"POST",data:_objectSpread({},c)}));case 1:case"end":return n.stop()}},g)})),r.apply(this,arguments)}function R(g){return _.apply(this,arguments)}function _(){return _=_asyncToGenerator(_regeneratorRuntime().mark(function g(c){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",request("/api/v1/push/export",{method:"GET",params:_objectSpread({},c)}));case 1:case"end":return n.stop()}},g)})),_.apply(this,arguments)}var W=e(51042),U=e(57482),A=e(14726),P=e(67294),b=e(89102),L=e(87676),i=e(85615),ue=e(34994),ae=e(64317),le=e(5966),ie=e(90672),de=e(8232),ce=e(85265),pe=e(42075),d=e(85893),ve=function(c){var B=c.isEdit,n=c.quickreply,Q=c.open,Y=c.onClose,H=c.onSubmit,ee=de.Z.useForm(),X=u()(ee,1),V=X[0],w=(0,L.u)(function(K){return K.currentOrg}),re=(0,b.v)(function(K){return K.categorySelectOptions});(0,P.useEffect)(function(){B||V.resetFields()},[Q]);var k=function(F){console.log("category selected ".concat(F))},te=function(F){console.log("type selected ".concat(F))},J=function(){console.log("handleSubmit"),V.validateFields().then(function(F){console.log(F),H(s()(s()(s()({},n),F),{},{orgUid:w==null?void 0:w.uid}))}).catch(function(F){console.log("Form errors:",F),x.yw.error("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199")})};return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(ce.Z,{title:B?"\u4FEE\u6539":"\u65B0\u5EFA",onClose:Y,open:Q,extra:(0,d.jsxs)(pe.Z,{children:[(0,d.jsx)(A.ZP,{onClick:Y,children:"\u53D6\u6D88"}),(0,d.jsx)(A.ZP,{onClick:J,type:"primary",children:"\u4FDD\u5B58"})]}),children:(0,d.jsxs)(ue.A,{form:V,initialValues:s()({},n),submitter:{render:function(){return null}},children:[(0,d.jsx)(ae.Z,{label:"\u5206\u7C7B",name:"categoryUid",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u7C7B"}],options:re,fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5206\u7C7B",onChange:k}}),(0,d.jsx)(ae.Z,{label:"\u7C7B\u578B",name:"type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}],options:[{label:"\u6587\u672C",value:i.PYi},{label:"\u56FE\u7247",value:i.Qm,disabled:!0},{label:"\u89C6\u9891",value:i.tVi,disabled:!0},{label:"\u97F3\u9891",value:i.Yu1,disabled:!0},{label:"\u6587\u4EF6",value:i.Qn,disabled:!0}],fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B",onChange:te}}),(0,d.jsx)(le.Z,{label:"\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]}),(0,d.jsx)(ie.Z,{label:"\u5185\u5BB9",name:"content"})]})})})},me=ve,he=["current"],Pe=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"\u53D1\u9001\u8005",dataIndex:"sender",copyable:!0},{title:"\u9A8C\u8BC1\u7801/\u5185\u5BB9",dataIndex:"content",copyable:!0},{title:"\u624B\u673A\u53F7/\u63A5\u6536\u8005",dataIndex:"receiver",copyable:!0},{title:"\u7C7B\u578B",dataIndex:"type"},{title:"\u72B6\u6001",dataIndex:"status"},{title:"\u53D1\u9001\u65F6\u95F4",key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0,width:180}],ge=function(){var c=(0,m.useIntl)(),B=(0,P.useRef)(),n=(0,P.useState)(!0),Q=u()(n,2),Y=Q[0],H=Q[1],ee=(0,P.useState)(),X=u()(ee,2),V=X[0],w=X[1],re=(0,P.useState)(!1),k=u()(re,2),te=k[0],J=k[1],K=[].concat(Pe,[{title:c.formatMessage({id:"actions"}),valueType:"option",key:"option",width:100,render:function(Z,I,q,$){return[(0,d.jsx)("a",{onClick:function(){ye(I)},children:c.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),F=(0,b.v)(function(C){return C.currentCategory}),Ce=function(){w(void 0),H(!1),J(!0)},ye=function(Z){w(Z),H(!0),J(!0)},Oe=function(){var C=M()(v()().mark(function Z(I){return v()().wrap(function($){for(;;)switch($.prev=$.next){case 0:console.log("handleSubmitDrawer",I);case 1:case"end":return $.stop()}},Z)}));return function(I){return C.apply(this,arguments)}}(),De=function(){J(!1)};return(0,P.useEffect)(function(){var C;console.log("currentCategory:",F),(C=B.current)===null||C===void 0||C.reloadAndRest()},[F]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(U.Z,{columns:K,actionRef:B,cardBordered:!0,request:function(){var C=M()(v()().mark(function Z(I,q,$){var oe,se,ne,G;return v()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return console.log("request:",I,q,$),x.yw.loading(c.formatMessage({id:"loading",defaultMessage:"Loading"})),oe=I.current,se=f()(I,he),ne=s()({pageNumber:I.current-1},se),z.next=6,h(ne);case 6:return G=z.sent,console.log("getAllPushs response:",ne,G),x.yw.destroy(),G.code===200||x.yw.error(G.message),z.abrupt("return",{data:G.data.content,success:!0,total:G.data.totalElements});case 11:case"end":return z.stop()}},Z)}));return function(Z,I,q){return C.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(Z){console.log("page:",Z)}},dateFormatter:"string",headerTitle:"\u63A8\u9001/\u77ED\u4FE1",toolBarRender:function(){return[(0,d.jsx)(A.ZP,{icon:(0,d.jsx)(W.Z,{}),type:"primary",onClick:Ce,children:c.formatMessage({id:"create",defaultMessage:"Create"})},"button")]}}),(0,d.jsx)(me,{isEdit:Y,open:te,quickreply:V,onClose:De,onSubmit:Oe})]})},_e=ge,fe=function(){return(0,d.jsx)("div",{children:(0,d.jsx)(_e,{})})},Ee=fe},89102:function(N,O,e){e.d(O,{v:function(){return E}});var p=e(19632),s=e.n(p),y=e(97857),f=e.n(y),D=e(85615),v=e(73445),T=e(782),M=e(18753),E=(0,v.Ue)()((0,T.mW)((0,T.tJ)((0,M.n)(function(m,h){return{categoryResult:{data:{content:[]}},categoryTreeOptions:[],categorySelectOptions:[],currentCategory:{uid:""},setCategoryResult:function(a){var t,S=x(a),j={uid:"all",name:"All"},o=f()(f()({},a),{},{data:{content:[j].concat(s()(a.data.content))}}),r=u(o);m({categoryResult:o,categoryTreeOptions:r,categorySelectOptions:S}),((t=a.data)===null||t===void 0||(t=t.content)===null||t===void 0?void 0:t.length)>0?m({currentCategory:a.data.content[0]}):m({currentCategory:{uid:""}})},setCurrentCategoryUid:function(a){var t=h().categoryResult.data.content.find(function(S){return S.uid===a});m({currentCategory:t})},deleteCategoryCache:function(){return m({},!0)}}}),{name:D.OMm})));function u(m){var h=[];return m.data.content.forEach(function(l){var a={title:l.name,key:l.uid,children:[]};l.children&&Array.isArray(l.children)&&(a.children=l.children.map(function(t){return{title:t.name,key:t.uid,children:[]}})),h.push(a)}),h}function x(m){var h=[];return m.data.content.forEach(function(l){var a={label:l.name,value:l.uid};h.push(a)}),h}},87676:function(N,O,e){e.d(O,{u:function(){return D}});var p=e(85615),s=e(73445),y=e(782),f=e(18753),D=(0,s.Ue)()((0,y.mW)((0,y.tJ)((0,f.n)(function(v,T){return{currentOrg:{uid:"",name:"",description:""},setCurrentOrg:function(E){v({currentOrg:E})},deleteOrg:function(){return v({},!0)}}}),{name:p.eRd})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__PushData.8dd58efd.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__PushData.8dd58efd.async.js new file mode 100644 index 00000000..8c94f2c7 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__PushData.8dd58efd.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[275],{64317:function(e,n,r){var t=r(1413),o=r(91),a=r(22270),l=r(67294),i=r(66758),s=r(29258),u=r(85893),d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],c=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],p=function(e,n){var r=e.fieldProps,c=e.children,p=e.params,f=e.proFieldProps,h=e.mode,g=e.valueEnum,v=e.request,m=e.showSearch,y=e.options,x=(0,o.Z)(e,d),P=(0,l.useContext)(i.Z);return(0,u.jsx)(s.Z,(0,t.Z)((0,t.Z)({valueEnum:(0,a.h)(g),request:v,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,t.Z)({options:y,mode:h,showSearch:m,getPopupContainer:P.getPopupContainer},r),ref:n,proFieldProps:f},x),{},{children:c}))},f=l.forwardRef((function(e,n){var r=e.fieldProps,d=e.children,p=e.params,f=e.proFieldProps,h=e.mode,g=e.valueEnum,v=e.request,m=e.options,y=(0,o.Z)(e,c),x=(0,t.Z)({options:m,mode:h||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},r),P=(0,l.useContext)(i.Z);return(0,u.jsx)(s.Z,(0,t.Z)((0,t.Z)({valueEnum:(0,a.h)(g),request:v,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,t.Z)({getPopupContainer:P.getPopupContainer},x),ref:n,proFieldProps:f},y),{},{children:d}))})),h=l.forwardRef(p);h.SearchSelect=f,h.displayName="ProFormComponent",n.Z=h},5966:function(e,n,r){var t=r(97685),o=r(1413),a=r(91),l=r(21770),i=r(8232),s=r(55241),u=r(97435),d=r(67294),c=r(29258),p=r(85893),f=["fieldProps","proFieldProps"],h=["fieldProps","proFieldProps"],g="text",v=function(e){var n=(0,l.Z)(e.open||!1,{value:e.open,onChange:e.onOpenChange}),r=(0,t.Z)(n,2),a=r[0],u=r[1];return(0,p.jsx)(i.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(n){var r,t=n.getFieldValue(e.name||[]);return(0,p.jsx)(s.Z,(0,o.Z)((0,o.Z)({getPopupContainer:function(e){return e&&e.parentNode?e.parentNode:e},onOpenChange:function(e){return u(e)},content:(0,p.jsxs)("div",{style:{padding:"4px 0"},children:[null===(r=e.statusRender)||void 0===r?void 0:r.call(e,t),e.strengthText?(0,p.jsx)("div",{style:{marginTop:10},children:(0,p.jsx)("span",{children:e.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},e.popoverProps),{},{open:a,children:e.children}))}})},m=function(e){var n=e.fieldProps,r=e.proFieldProps,t=(0,a.Z)(e,f);return(0,p.jsx)(c.Z,(0,o.Z)({valueType:g,fieldProps:n,filedConfig:{valueType:g},proFieldProps:r},t))};m.Password=function(e){var n=e.fieldProps,r=e.proFieldProps,l=(0,a.Z)(e,h),i=(0,d.useState)(!1),s=(0,t.Z)(i,2),f=s[0],m=s[1];return null!=n&&n.statusRender&&l.name?(0,p.jsx)(v,{name:l.name,statusRender:null==n?void 0:n.statusRender,popoverProps:null==n?void 0:n.popoverProps,strengthText:null==n?void 0:n.strengthText,open:f,onOpenChange:m,children:(0,p.jsx)("div",{children:(0,p.jsx)(c.Z,(0,o.Z)({valueType:"password",fieldProps:(0,o.Z)((0,o.Z)({},(0,u.Z)(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(e){var r;null==n||null===(r=n.onBlur)||void 0===r||r.call(n,e),m(!1)},onClick:function(e){var r;null==n||null===(r=n.onClick)||void 0===r||r.call(n,e),m(!0)}}),proFieldProps:r,filedConfig:{valueType:g}},l))})}):(0,p.jsx)(c.Z,(0,o.Z)({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:g}},l))},m.displayName="ProFormComponent",n.Z=m},90672:function(e,n,r){var t=r(1413),o=r(91),a=r(67294),l=r(29258),i=r(85893),s=["fieldProps","proFieldProps"],u=function(e,n){var r=e.fieldProps,a=e.proFieldProps,u=(0,o.Z)(e,s);return(0,i.jsx)(l.Z,(0,t.Z)({ref:n,valueType:"textarea",fieldProps:r,proFieldProps:a},u))};n.Z=a.forwardRef(u)},68059:function(e,n,r){r.r(n),r.d(n,{default:function(){return A}});var t=r(97857),o=r.n(t),a=r(13769),l=r.n(a),i=r(15009),s=r.n(i),u=r(99289),d=r.n(u),c=r(5574),p=r.n(c),f=r(80049),h=r(86745);function g(e){return v.apply(this,arguments)}function v(){return(v=d()(s()().mark((function e(n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,h.request)("/api/v1/push/query/org",{method:"GET",params:o()({},n)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var m=r(51042),y=r(74190),x=r(14726),P=r(67294),Z=r(89102),C=r(87676),b=r(85615),j=r(34994),w=r(64317),F=r(5966),T=r(90672),S=r(8232),k=r(85265),R=r(42075),q=r(85893),E=function(e){var n=e.isEdit,r=e.quickreply,t=e.open,a=e.onClose,l=e.onSubmit,i=S.Z.useForm(),s=p()(i,1)[0],u=(0,C.u)((function(e){return e.currentOrg})),d=(0,Z.v)((function(e){return e.categorySelectOptions}));(0,P.useEffect)((function(){n||s.resetFields()}),[t]);return(0,q.jsx)(q.Fragment,{children:(0,q.jsx)(k.Z,{title:n?"修改":"新建",onClose:a,open:t,extra:(0,q.jsxs)(R.Z,{children:[(0,q.jsx)(x.ZP,{onClick:a,children:"取消"}),(0,q.jsx)(x.ZP,{onClick:function(){console.log("handleSubmit"),s.validateFields().then((function(e){console.log(e),l(o()(o()(o()({},r),e),{},{orgUid:null==u?void 0:u.uid}))})).catch((function(e){console.log("Form errors:",e),f.yw.error("请检查表单填写")}))},type:"primary",children:"保存"})]}),children:(0,q.jsxs)(j.A,{form:s,initialValues:o()({},r),submitter:{render:function(){return null}},children:[(0,q.jsx)(w.Z,{label:"分类",name:"categoryUid",rules:[{required:!0,message:"请选择分类"}],options:d,fieldProps:{allowClear:!0,placeholder:"请选择分类",onChange:function(e){console.log("category selected ".concat(e))}}}),(0,q.jsx)(w.Z,{label:"类型",name:"type",rules:[{required:!0,message:"请选择类型"}],options:[{label:"文本",value:b.PYi},{label:"图片",value:b.Qm,disabled:!0},{label:"视频",value:b.tVi,disabled:!0},{label:"音频",value:b.Yu1,disabled:!0},{label:"文件",value:b.Qn,disabled:!0}],fieldProps:{allowClear:!0,placeholder:"请选择类型",onChange:function(e){console.log("type selected ".concat(e))}}}),(0,q.jsx)(F.Z,{label:"标题",name:"title",rules:[{required:!0,message:"请输入标题"}]}),(0,q.jsx)(T.Z,{label:"内容",name:"content"})]})})})},I=["current"],M=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"发送者",dataIndex:"sender",copyable:!0},{title:"验证码/内容",dataIndex:"content",copyable:!0},{title:"手机号/接收者",dataIndex:"receiver",copyable:!0},{title:"类型",dataIndex:"type"},{title:"状态",dataIndex:"status"},{title:"发送时间",key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0,width:180}],O=function(){var e=(0,h.useIntl)(),n=(0,P.useRef)(),r=(0,P.useState)(!0),t=p()(r,2),a=t[0],i=t[1],u=(0,P.useState)(),c=p()(u,2),v=c[0],C=c[1],b=(0,P.useState)(!1),j=p()(b,2),w=j[0],F=j[1],T=[].concat(M,[{title:e.formatMessage({id:"actions"}),valueType:"option",key:"option",width:100,render:function(n,r,t,o){return[(0,q.jsx)("a",{onClick:function(){R(r)},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),S=(0,Z.v)((function(e){return e.currentCategory})),k=function(){C(void 0),i(!1),F(!0)},R=function(e){C(e),i(!0),F(!0)},O=function(){var e=d()(s()().mark((function e(n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleSubmitDrawer",n);case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,P.useEffect)((function(){var e;console.log("currentCategory:",S),null===(e=n.current)||void 0===e||e.reloadAndRest()}),[S]),(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(y.Z,{columns:T,actionRef:n,cardBordered:!0,request:function(){var n=d()(s()().mark((function n(r,t,a){var i,u,d;return s()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("request:",r,t,a),f.yw.loading(e.formatMessage({id:"loading",defaultMessage:"Loading"})),r.current,i=l()(r,I),u=o()({pageNumber:r.current-1},i),n.next=6,g(u);case 6:return d=n.sent,console.log("getAllPushs response:",u,d),f.yw.destroy(),200===d.code||f.yw.error(d.message),n.abrupt("return",{data:d.data.content,success:!0,total:d.data.totalElements});case 11:case"end":return n.stop()}}),n)})));return function(e,r,t){return n.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"推送/短信",toolBarRender:function(){return[(0,q.jsx)(x.ZP,{icon:(0,q.jsx)(m.Z,{}),type:"primary",onClick:k,children:e.formatMessage({id:"create",defaultMessage:"Create"})},"button")]}}),(0,q.jsx)(E,{isEdit:a,open:w,quickreply:v,onClose:function(){F(!1)},onSubmit:O})]})},A=function(){return(0,q.jsx)("div",{children:(0,q.jsx)(O,{})})}},89102:function(e,n,r){r.d(n,{v:function(){return c}});var t=r(19632),o=r.n(t),a=r(97857),l=r.n(a),i=r(85615),s=r(73445),u=r(782),d=r(18753),c=(0,s.Ue)()((0,u.mW)((0,u.tJ)((0,d.n)((function(e,n){return{categoryResult:{data:{content:[]}},categoryTreeOptions:[],categorySelectOptions:[],currentCategory:{uid:""},setCategoryResult:function(n){var r,t=function(e){var n=[];return e.data.content.forEach((function(e){var r={label:e.name,value:e.uid};n.push(r)})),n}(n),a=l()(l()({},n),{},{data:{content:[{uid:"all",name:"All"}].concat(o()(n.data.content))}}),i=function(e){var n=[];return e.data.content.forEach((function(e){var r={title:e.name,key:e.uid,children:[]};e.children&&Array.isArray(e.children)&&(r.children=e.children.map((function(e){return{title:e.name,key:e.uid,children:[]}}))),n.push(r)})),n}(a);e({categoryResult:a,categoryTreeOptions:i,categorySelectOptions:t}),(null===(r=n.data)||void 0===r||null===(r=r.content)||void 0===r?void 0:r.length)>0?e({currentCategory:n.data.content[0]}):e({currentCategory:{uid:""}})},setCurrentCategoryUid:function(r){var t=n().categoryResult.data.content.find((function(e){return e.uid===r}));e({currentCategory:t})},deleteCategoryCache:function(){return e({},!0)}}})),{name:i.OMm})))}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__PushStatistic.82633c07.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__PushStatistic.82633c07.async.js new file mode 100644 index 00000000..9177c129 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__PushStatistic.82633c07.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4586],{59404:function(e,s,c){c.r(s);var a=c(85615),n=c(86745),i=c(85893);s.default=function(){var e=(0,n.useAccess)();return e.canDebug&&console.log("TabPushReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(n.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.FormattedMessage,{id:a.h5w})}),children:"PushStatistic"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__PushStatistic.8d59086c.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__PushStatistic.8d59086c.async.js deleted file mode 100644 index 8a2c6474..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__PushStatistic.8d59086c.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4586],{59404:function(u,n,a){a.r(n);var e=a(85615),c=a(86745),s=a(85893),i=function(){var t=(0,c.useAccess)();return t.canDebug&&console.log("TabPushReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(c.Access,{accessible:t.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.FormattedMessage,{id:e.h5w})}),children:"PushStatistic"})})})};n.default=i}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__index.bb87ac42.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__index.bb87ac42.async.js deleted file mode 100644 index 34606c43..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__index.bb87ac42.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8152],{77154:function(f,n,e){var i=e(39825);function l(){var d=(0,i.Z)(),a=d.isDarkMode,_=250,s={borderRight:a?"1px solid #333":"1px solid #ccc",background:a?"#141414":"#f5f5f5"},t={background:a?"#141414":"#fff"},r={borderLeft:a?"1px solid #333":"1px solid #ccc",background:a?"#141414":"#f5f5f5"},o={minHeight:120,background:a?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:s,leftSiderWidth:_,headerStyle:t,rightSiderStyle:r,contentStyle:o}}n.Z=l},35049:function(f,n,e){e.r(n);var i=e(77154),l=e(86745),d=e(21612),a=e(50136),_=e(67294),s=e(96974),t=e(85893),r=d.Z.Sider,o=d.Z.Content,S=[{label:(0,t.jsx)(l.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"},{label:(0,t.jsx)(l.FormattedMessage,{id:"statistic",defaultMessage:"Statistic"}),key:"statistic"}],M=function(){var h=(0,s.s0)(),u=(0,i.Z)(),E=u.leftSiderStyle,y=u.contentStyle,v=function(c){console.log("menu click ",c.key),h("/admin/push/"+c.key)};return(0,t.jsxs)(d.Z,{children:[(0,t.jsx)(r,{style:E,children:(0,t.jsx)(a.Z,{mode:"inline",onClick:v,defaultSelectedKeys:["data"],defaultOpenKeys:["data"],items:S})}),(0,t.jsx)(d.Z,{children:(0,t.jsx)(o,{style:y,children:(0,t.jsx)(s.j3,{})})})]})};n.default=M}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__index.ed10257c.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__index.ed10257c.async.js new file mode 100644 index 00000000..886876b3 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__Push__index.ed10257c.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8152],{77154:function(e,t,i){var a=i(39825);t.Z=function(){var e=(0,a.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},35049:function(e,t,i){i.r(t);var a=i(77154),d=i(86745),s=i(21612),n=i(50136),l=(i(67294),i(96974)),c=i(85893),r=s.Z.Sider,f=s.Z.Content,o=[{label:(0,c.jsx)(d.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"},{label:(0,c.jsx)(d.FormattedMessage,{id:"statistic",defaultMessage:"Statistic"}),key:"statistic"}];t.default=function(){var e=(0,l.s0)(),t=(0,a.Z)(),i=t.leftSiderStyle,d=t.contentStyle;return(0,c.jsxs)(s.Z,{children:[(0,c.jsx)(r,{style:i,children:(0,c.jsx)(n.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/admin/push/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data"],items:o})}),(0,c.jsx)(s.Z,{children:(0,c.jsx)(f,{style:d,children:(0,c.jsx)(l.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__UserData.0c219721.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__UserData.0c219721.async.js new file mode 100644 index 00000000..5fa35ad7 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__UserData.0c219721.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[7586],{64317:function(e,n,r){var t=r(1413),o=r(91),a=r(22270),l=r(67294),i=r(66758),s=r(29258),u=r(85893),d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],c=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],p=function(e,n){var r=e.fieldProps,c=e.children,p=e.params,f=e.proFieldProps,g=e.mode,m=e.valueEnum,h=e.request,v=e.showSearch,y=e.options,x=(0,o.Z)(e,d),P=(0,l.useContext)(i.Z);return(0,u.jsx)(s.Z,(0,t.Z)((0,t.Z)({valueEnum:(0,a.h)(m),request:h,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,t.Z)({options:y,mode:g,showSearch:v,getPopupContainer:P.getPopupContainer},r),ref:n,proFieldProps:f},x),{},{children:c}))},f=l.forwardRef((function(e,n){var r=e.fieldProps,d=e.children,p=e.params,f=e.proFieldProps,g=e.mode,m=e.valueEnum,h=e.request,v=e.options,y=(0,o.Z)(e,c),x=(0,t.Z)({options:v,mode:g||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},r),P=(0,l.useContext)(i.Z);return(0,u.jsx)(s.Z,(0,t.Z)((0,t.Z)({valueEnum:(0,a.h)(m),request:h,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,t.Z)({getPopupContainer:P.getPopupContainer},x),ref:n,proFieldProps:f},y),{},{children:d}))})),g=l.forwardRef(p);g.SearchSelect=f,g.displayName="ProFormComponent",n.Z=g},5966:function(e,n,r){var t=r(97685),o=r(1413),a=r(91),l=r(21770),i=r(8232),s=r(55241),u=r(97435),d=r(67294),c=r(29258),p=r(85893),f=["fieldProps","proFieldProps"],g=["fieldProps","proFieldProps"],m="text",h=function(e){var n=(0,l.Z)(e.open||!1,{value:e.open,onChange:e.onOpenChange}),r=(0,t.Z)(n,2),a=r[0],u=r[1];return(0,p.jsx)(i.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(n){var r,t=n.getFieldValue(e.name||[]);return(0,p.jsx)(s.Z,(0,o.Z)((0,o.Z)({getPopupContainer:function(e){return e&&e.parentNode?e.parentNode:e},onOpenChange:function(e){return u(e)},content:(0,p.jsxs)("div",{style:{padding:"4px 0"},children:[null===(r=e.statusRender)||void 0===r?void 0:r.call(e,t),e.strengthText?(0,p.jsx)("div",{style:{marginTop:10},children:(0,p.jsx)("span",{children:e.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},e.popoverProps),{},{open:a,children:e.children}))}})},v=function(e){var n=e.fieldProps,r=e.proFieldProps,t=(0,a.Z)(e,f);return(0,p.jsx)(c.Z,(0,o.Z)({valueType:m,fieldProps:n,filedConfig:{valueType:m},proFieldProps:r},t))};v.Password=function(e){var n=e.fieldProps,r=e.proFieldProps,l=(0,a.Z)(e,g),i=(0,d.useState)(!1),s=(0,t.Z)(i,2),f=s[0],v=s[1];return null!=n&&n.statusRender&&l.name?(0,p.jsx)(h,{name:l.name,statusRender:null==n?void 0:n.statusRender,popoverProps:null==n?void 0:n.popoverProps,strengthText:null==n?void 0:n.strengthText,open:f,onOpenChange:v,children:(0,p.jsx)("div",{children:(0,p.jsx)(c.Z,(0,o.Z)({valueType:"password",fieldProps:(0,o.Z)((0,o.Z)({},(0,u.Z)(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(e){var r;null==n||null===(r=n.onBlur)||void 0===r||r.call(n,e),v(!1)},onClick:function(e){var r;null==n||null===(r=n.onClick)||void 0===r||r.call(n,e),v(!0)}}),proFieldProps:r,filedConfig:{valueType:m}},l))})}):(0,p.jsx)(c.Z,(0,o.Z)({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:m}},l))},v.displayName="ProFormComponent",n.Z=v},90672:function(e,n,r){var t=r(1413),o=r(91),a=r(67294),l=r(29258),i=r(85893),s=["fieldProps","proFieldProps"],u=function(e,n){var r=e.fieldProps,a=e.proFieldProps,u=(0,o.Z)(e,s);return(0,i.jsx)(l.Z,(0,t.Z)({ref:n,valueType:"textarea",fieldProps:r,proFieldProps:a},u))};n.Z=a.forwardRef(u)},48716:function(e,n,r){r.r(n),r.d(n,{default:function(){return O}});var t=r(97857),o=r.n(t),a=r(13769),l=r.n(a),i=r(15009),s=r.n(i),u=r(99289),d=r.n(u),c=r(5574),p=r.n(c),f=r(80049),g=r(16761),m=r(51042),h=r(74190),v=r(14726),y=r(67294),x=r(89102),P=r(87676),Z=r(85615),C=r(34994),b=r(64317),w=r(5966),j=r(90672),F=r(8232),k=r(85265),S=r(42075),T=r(85893),R=function(e){var n=e.isEdit,r=e.quickreply,t=e.open,a=e.onClose,l=e.onSubmit,i=F.Z.useForm(),s=p()(i,1)[0],u=(0,P.u)((function(e){return e.currentOrg})),d=(0,x.v)((function(e){return e.categorySelectOptions}));(0,y.useEffect)((function(){n||s.resetFields()}),[t]);return(0,T.jsx)(T.Fragment,{children:(0,T.jsx)(k.Z,{title:n?"修改":"新建",onClose:a,open:t,extra:(0,T.jsxs)(S.Z,{children:[(0,T.jsx)(v.ZP,{onClick:a,children:"取消"}),(0,T.jsx)(v.ZP,{onClick:function(){console.log("handleSubmit"),s.validateFields().then((function(e){console.log(e),l(o()(o()(o()({},r),e),{},{orgUid:null==u?void 0:u.uid}))})).catch((function(e){console.log("Form errors:",e),f.yw.error("请检查表单填写")}))},type:"primary",children:"保存"})]}),children:(0,T.jsxs)(C.A,{form:s,initialValues:o()({},r),submitter:{render:function(){return null}},children:[(0,T.jsx)(b.Z,{label:"分类",name:"categoryUid",rules:[{required:!0,message:"请选择分类"}],options:d,fieldProps:{allowClear:!0,placeholder:"请选择分类",onChange:function(e){console.log("category selected ".concat(e))}}}),(0,T.jsx)(b.Z,{label:"类型",name:"type",rules:[{required:!0,message:"请选择类型"}],options:[{label:"文本",value:Z.PYi},{label:"图片",value:Z.Qm,disabled:!0},{label:"视频",value:Z.tVi,disabled:!0},{label:"音频",value:Z.Yu1,disabled:!0},{label:"文件",value:Z.Qn,disabled:!0}],fieldProps:{allowClear:!0,placeholder:"请选择类型",onChange:function(e){console.log("type selected ".concat(e))}}}),(0,T.jsx)(w.Z,{label:"标题",name:"title",rules:[{required:!0,message:"请输入标题"}]}),(0,T.jsx)(j.Z,{label:"内容",name:"content"})]})})})},q=r(73803),E=r(86745),M=["current"],I=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"用户名",dataIndex:"username",copyable:!0},{title:"昵称",dataIndex:"nickname",copyable:!0},{title:"邮箱",dataIndex:"email",render:function(e,n){return n.email+(n.emailVerified?"(已验证)":"(未验证)")}},{title:"手机号",dataIndex:"mobile",render:function(e,n){return n.mobile+(n.mobileVerified?"(已验证)":"(未验证)")}},{title:"注册时间",key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0,width:180}],A=function(){var e=(0,E.useIntl)(),n=(0,y.useRef)(),r=(0,q.Z)().translateString,t=(0,y.useState)(!0),a=p()(t,2),i=a[0],u=a[1],c=(0,y.useState)(),P=p()(c,2),Z=P[0],C=P[1],b=(0,y.useState)(!1),w=p()(b,2),j=w[0],F=w[1],k=[].concat(I,[{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:100,render:function(n,r,t,o){return[(0,T.jsx)("a",{onClick:function(){O(r)},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),S=(0,x.v)((function(e){return e.currentCategory})),A=function(){C(void 0),u(!1),F(!0)},O=function(e){C(e),u(!0),F(!0)},U=function(){var r=d()(s()().mark((function r(t){var o,a;return s()().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(console.log("handleSubmitDrawer",t),i?f.yw.loading(e.formatMessage({id:"updating"})):f.yw.loading(e.formatMessage({id:"creating"})),!i){r.next=8;break}return r.next=5,(0,g.Nq)(t);case 5:r.t0=r.sent,r.next=11;break;case 8:return r.next=10,(0,g.r4)(t);case 10:r.t0=r.sent;case 11:o=r.t0,console.log("createUser response:",t,o),200===o.code?(f.yw.destroy(),f.yw.loading(e.formatMessage({id:"create.success"})),F(!1),null===(a=n.current)||void 0===a||a.reloadAndRest()):(f.yw.destroy(),f.yw.error(o.message));case 14:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}();return(0,y.useEffect)((function(){var e;console.log("currentCategory:",S),null===(e=n.current)||void 0===e||e.reloadAndRest()}),[S]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(h.Z,{columns:k,actionRef:n,cardBordered:!0,request:function(){var n=d()(s()().mark((function n(t,a,i){var u,d,c;return s()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("request:",t,a,i),f.yw.loading(e.formatMessage({id:"loading",defaultMessage:"Loading"})),t.current,u=l()(t,M),d=o()({pageNumber:t.current-1},u),n.next=6,(0,g._9)(d);case 6:return c=n.sent,console.log("getAllUsers response:",d,c),f.yw.destroy(),200===c.code||f.yw.error(r(c.message)),n.abrupt("return",{data:c.data.content,success:!0,total:c.data.totalElements});case 11:case"end":return n.stop()}}),n)})));return function(e,r,t){return n.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"用户",toolBarRender:function(){return[(0,T.jsx)(v.ZP,{icon:(0,T.jsx)(m.Z,{}),type:"primary",onClick:A,children:e.formatMessage({id:"create",defaultMessage:"Create"})},"button")]}}),(0,T.jsx)(R,{isEdit:i,open:j,quickreply:Z,onClose:function(){F(!1)},onSubmit:U})]})},O=function(){return(0,T.jsx)("div",{children:(0,T.jsx)(A,{})})}},89102:function(e,n,r){r.d(n,{v:function(){return c}});var t=r(19632),o=r.n(t),a=r(97857),l=r.n(a),i=r(85615),s=r(73445),u=r(782),d=r(18753),c=(0,s.Ue)()((0,u.mW)((0,u.tJ)((0,d.n)((function(e,n){return{categoryResult:{data:{content:[]}},categoryTreeOptions:[],categorySelectOptions:[],currentCategory:{uid:""},setCategoryResult:function(n){var r,t=function(e){var n=[];return e.data.content.forEach((function(e){var r={label:e.name,value:e.uid};n.push(r)})),n}(n),a=l()(l()({},n),{},{data:{content:[{uid:"all",name:"All"}].concat(o()(n.data.content))}}),i=function(e){var n=[];return e.data.content.forEach((function(e){var r={title:e.name,key:e.uid,children:[]};e.children&&Array.isArray(e.children)&&(r.children=e.children.map((function(e){return{title:e.name,key:e.uid,children:[]}}))),n.push(r)})),n}(a);e({categoryResult:a,categoryTreeOptions:i,categorySelectOptions:t}),(null===(r=n.data)||void 0===r||null===(r=r.content)||void 0===r?void 0:r.length)>0?e({currentCategory:n.data.content[0]}):e({currentCategory:{uid:""}})},setCurrentCategoryUid:function(r){var t=n().categoryResult.data.content.find((function(e){return e.uid===r}));e({currentCategory:t})},deleteCategoryCache:function(){return e({},!0)}}})),{name:i.OMm})))}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__UserData.9175e387.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__UserData.9175e387.async.js deleted file mode 100644 index fcc780fa..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__UserData.9175e387.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[7586],{64317:function(K,O,e){var i=e(1413),l=e(91),g=e(22270),P=e(67294),h=e(66758),v=e(24809),D=e(85893),S=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],s=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],u=function(t,M){var A=t.fieldProps,n=t.children,r=t.params,y=t.proFieldProps,T=t.mode,B=t.valueEnum,F=t.request,Z=t.showSearch,x=t.options,o=(0,l.Z)(t,S),I=(0,P.useContext)(h.Z);return(0,D.jsx)(v.Z,(0,i.Z)((0,i.Z)({valueEnum:(0,g.h)(B),request:F,params:r,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,i.Z)({options:x,mode:T,showSearch:Z,getPopupContainer:I.getPopupContainer},A),ref:M,proFieldProps:y},o),{},{children:n}))},p=P.forwardRef(function(a,t){var M=a.fieldProps,A=a.children,n=a.params,r=a.proFieldProps,y=a.mode,T=a.valueEnum,B=a.request,F=a.options,Z=(0,l.Z)(a,s),x=(0,i.Z)({options:F,mode:y||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},M),o=(0,P.useContext)(h.Z);return(0,D.jsx)(v.Z,(0,i.Z)((0,i.Z)({valueEnum:(0,g.h)(T),request:B,params:n,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,i.Z)({getPopupContainer:o.getPopupContainer},x),ref:t,proFieldProps:r},Z),{},{children:A}))}),d=P.forwardRef(u),m=p,c=d;c.SearchSelect=m,c.displayName="ProFormComponent",O.Z=c},5966:function(K,O,e){var i=e(97685),l=e(1413),g=e(91),P=e(21770),h=e(8232),v=e(55241),D=e(97435),S=e(67294),s=e(24809),u=e(85893),p=["fieldProps","proFieldProps"],d=["fieldProps","proFieldProps"],m="text",c=function(n){var r=n.fieldProps,y=n.proFieldProps,T=(0,g.Z)(n,p);return(0,u.jsx)(s.Z,(0,l.Z)({valueType:m,fieldProps:r,filedConfig:{valueType:m},proFieldProps:y},T))},a=function(n){var r=(0,P.Z)(n.open||!1,{value:n.open,onChange:n.onOpenChange}),y=(0,i.Z)(r,2),T=y[0],B=y[1];return(0,u.jsx)(h.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(Z){var x,o=Z.getFieldValue(n.name||[]);return(0,u.jsx)(v.Z,(0,l.Z)((0,l.Z)({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:function(f){return B(f)},content:(0,u.jsxs)("div",{style:{padding:"4px 0"},children:[(x=n.statusRender)===null||x===void 0?void 0:x.call(n,o),n.strengthText?(0,u.jsx)("div",{style:{marginTop:10},children:(0,u.jsx)("span",{children:n.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},n.popoverProps),{},{open:T,children:n.children}))}})},t=function(n){var r=n.fieldProps,y=n.proFieldProps,T=(0,g.Z)(n,d),B=(0,S.useState)(!1),F=(0,i.Z)(B,2),Z=F[0],x=F[1];return r!=null&&r.statusRender&&T.name?(0,u.jsx)(a,{name:T.name,statusRender:r==null?void 0:r.statusRender,popoverProps:r==null?void 0:r.popoverProps,strengthText:r==null?void 0:r.strengthText,open:Z,onOpenChange:x,children:(0,u.jsx)("div",{children:(0,u.jsx)(s.Z,(0,l.Z)({valueType:"password",fieldProps:(0,l.Z)((0,l.Z)({},(0,D.Z)(r,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(I){var f;r==null||(f=r.onBlur)===null||f===void 0||f.call(r,I),x(!1)},onClick:function(I){var f;r==null||(f=r.onClick)===null||f===void 0||f.call(r,I),x(!0)}}),proFieldProps:y,filedConfig:{valueType:m}},T))})}):(0,u.jsx)(s.Z,(0,l.Z)({valueType:"password",fieldProps:r,proFieldProps:y,filedConfig:{valueType:m}},T))},M=c;M.Password=t,M.displayName="ProFormComponent",O.Z=M},90672:function(K,O,e){var i=e(1413),l=e(91),g=e(67294),P=e(24809),h=e(85893),v=["fieldProps","proFieldProps"],D=function(s,u){var p=s.fieldProps,d=s.proFieldProps,m=(0,l.Z)(s,v);return(0,h.jsx)(P.Z,(0,i.Z)({ref:u,valueType:"textarea",fieldProps:p,proFieldProps:d},m))};O.Z=g.forwardRef(D)},73803:function(K,O,e){var i=e(85615),l=e(66419),g=e(86745);function P(){var h=(0,g.useIntl)(),v=function(s){return s&&s.startsWith(i.VoP)?h.formatMessage({id:s,defaultMessage:s}):s},D=function(s){return s!=null&&s.startsWith(i.VoP)?(0,l.aS)(h.formatMessage({id:s}),10):(0,l.aS)(s,10)};return{translateString:v,translateStringTranct:D}}O.Z=P},48716:function(K,O,e){e.r(O),e.d(O,{default:function(){return pe}});var i=e(97857),l=e.n(i),g=e(13769),P=e.n(g),h=e(15009),v=e.n(h),D=e(99289),S=e.n(D),s=e(5574),u=e.n(s),p=e(80049),d=e(16761),m=e(51042),c=e(57482),a=e(14726),t=e(67294),M=e(89102),A=e(87676),n=e(85615),r=e(34994),y=e(64317),T=e(5966),B=e(90672),F=e(8232),Z=e(85265),x=e(42075),o=e(85893),I=function(_){var U=_.isEdit,J=_.quickreply,Y=_.open,H=_.onClose,X=_.onSubmit,Q=F.Z.useForm(),k=u()(Q,1),w=k[0],$=(0,A.u)(function(b){return b.currentOrg}),re=(0,M.v)(function(b){return b.categorySelectOptions});(0,t.useEffect)(function(){U||w.resetFields()},[Y]);var q=function(j){console.log("category selected ".concat(j))},te=function(j){console.log("type selected ".concat(j))},ee=function(){console.log("handleSubmit"),w.validateFields().then(function(j){console.log(j),X(l()(l()(l()({},J),j),{},{orgUid:$==null?void 0:$.uid}))}).catch(function(j){console.log("Form errors:",j),p.yw.error("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199")})};return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(Z.Z,{title:U?"\u4FEE\u6539":"\u65B0\u5EFA",onClose:H,open:Y,extra:(0,o.jsxs)(x.Z,{children:[(0,o.jsx)(a.ZP,{onClick:H,children:"\u53D6\u6D88"}),(0,o.jsx)(a.ZP,{onClick:ee,type:"primary",children:"\u4FDD\u5B58"})]}),children:(0,o.jsxs)(r.A,{form:w,initialValues:l()({},J),submitter:{render:function(){return null}},children:[(0,o.jsx)(y.Z,{label:"\u5206\u7C7B",name:"categoryUid",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u7C7B"}],options:re,fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5206\u7C7B",onChange:q}}),(0,o.jsx)(y.Z,{label:"\u7C7B\u578B",name:"type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}],options:[{label:"\u6587\u672C",value:n.PYi},{label:"\u56FE\u7247",value:n.Qm,disabled:!0},{label:"\u89C6\u9891",value:n.tVi,disabled:!0},{label:"\u97F3\u9891",value:n.Yu1,disabled:!0},{label:"\u6587\u4EF6",value:n.Qn,disabled:!0}],fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B",onChange:te}}),(0,o.jsx)(T.Z,{label:"\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]}),(0,o.jsx)(B.Z,{label:"\u5185\u5BB9",name:"content"})]})})})},f=I,se=e(73803),le=e(86745),ie=["current"],ue=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"\u7528\u6237\u540D",dataIndex:"username",copyable:!0},{title:"\u6635\u79F0",dataIndex:"nickname",copyable:!0},{title:"\u90AE\u7BB1",dataIndex:"email",render:function(_,U){return U.email+(U.emailVerified?"(\u5DF2\u9A8C\u8BC1)":"(\u672A\u9A8C\u8BC1)")}},{title:"\u624B\u673A\u53F7",dataIndex:"mobile",render:function(_,U){return U.mobile+(U.mobileVerified?"(\u5DF2\u9A8C\u8BC1)":"(\u672A\u9A8C\u8BC1)")}},{title:"\u6CE8\u518C\u65F6\u95F4",key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0,width:180}],de=function(){var _=(0,le.useIntl)(),U=(0,t.useRef)(),J=(0,se.Z)(),Y=J.translateString,H=(0,t.useState)(!0),X=u()(H,2),Q=X[0],k=X[1],w=(0,t.useState)(),$=u()(w,2),re=$[0],q=$[1],te=(0,t.useState)(!1),ee=u()(te,2),b=ee[0],j=ee[1],me=[].concat(ue,[{title:_.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:100,render:function(W,R,L,V){return[(0,o.jsx)("a",{onClick:function(){ge(R)},children:_.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),oe=(0,M.v)(function(E){return E.currentCategory}),Pe=function(){q(void 0),k(!1),j(!0)},ge=function(W){q(W),k(!0),j(!0)},fe=function(){var E=S()(v()().mark(function W(R){var L,V;return v()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(console.log("handleSubmitDrawer",R),Q?p.yw.loading(_.formatMessage({id:"updating"})):p.yw.loading(_.formatMessage({id:"creating"})),!Q){C.next=8;break}return C.next=5,(0,d.Nq)(R);case 5:C.t0=C.sent,C.next=11;break;case 8:return C.next=10,(0,d.r4)(R);case 10:C.t0=C.sent;case 11:L=C.t0,console.log("createUser response:",R,L),L.code===200?(p.yw.destroy(),p.yw.loading(_.formatMessage({id:"create.success"})),j(!1),(V=U.current)===null||V===void 0||V.reloadAndRest()):(p.yw.destroy(),p.yw.error(L.message));case 14:case"end":return C.stop()}},W)}));return function(R){return E.apply(this,arguments)}}(),he=function(){j(!1)};return(0,t.useEffect)(function(){var E;console.log("currentCategory:",oe),(E=U.current)===null||E===void 0||E.reloadAndRest()},[oe]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.Z,{columns:me,actionRef:U,cardBordered:!0,request:function(){var E=S()(v()().mark(function W(R,L,V){var ne,C,ae,z;return v()().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return console.log("request:",R,L,V),p.yw.loading(_.formatMessage({id:"loading",defaultMessage:"Loading"})),ne=R.current,C=P()(R,ie),ae=l()({pageNumber:R.current-1},C),N.next=6,(0,d._9)(ae);case 6:return z=N.sent,console.log("getAllUsers response:",ae,z),p.yw.destroy(),z.code===200||p.yw.error(Y(z.message)),N.abrupt("return",{data:z.data.content,success:!0,total:z.data.totalElements});case 11:case"end":return N.stop()}},W)}));return function(W,R,L){return E.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(W){console.log("page:",W)}},dateFormatter:"string",headerTitle:"\u7528\u6237",toolBarRender:function(){return[(0,o.jsx)(a.ZP,{icon:(0,o.jsx)(m.Z,{}),type:"primary",onClick:Pe,children:_.formatMessage({id:"create",defaultMessage:"Create"})},"button")]}}),(0,o.jsx)(f,{isEdit:Q,open:b,quickreply:re,onClose:he,onSubmit:fe})]})},ce=de,ve=function(){return(0,o.jsx)("div",{children:(0,o.jsx)(ce,{})})},pe=ve},89102:function(K,O,e){e.d(O,{v:function(){return s}});var i=e(19632),l=e.n(i),g=e(97857),P=e.n(g),h=e(85615),v=e(73445),D=e(782),S=e(18753),s=(0,v.Ue)()((0,D.mW)((0,D.tJ)((0,S.n)(function(d,m){return{categoryResult:{data:{content:[]}},categoryTreeOptions:[],categorySelectOptions:[],currentCategory:{uid:""},setCategoryResult:function(a){var t,M=p(a),A={uid:"all",name:"All"},n=P()(P()({},a),{},{data:{content:[A].concat(l()(a.data.content))}}),r=u(n);d({categoryResult:n,categoryTreeOptions:r,categorySelectOptions:M}),((t=a.data)===null||t===void 0||(t=t.content)===null||t===void 0?void 0:t.length)>0?d({currentCategory:a.data.content[0]}):d({currentCategory:{uid:""}})},setCurrentCategoryUid:function(a){var t=m().categoryResult.data.content.find(function(M){return M.uid===a});d({currentCategory:t})},deleteCategoryCache:function(){return d({},!0)}}}),{name:h.OMm})));function u(d){var m=[];return d.data.content.forEach(function(c){var a={title:c.name,key:c.uid,children:[]};c.children&&Array.isArray(c.children)&&(a.children=c.children.map(function(t){return{title:t.name,key:t.uid,children:[]}})),m.push(a)}),m}function p(d){var m=[];return d.data.content.forEach(function(c){var a={label:c.name,value:c.uid};m.push(a)}),m}},87676:function(K,O,e){e.d(O,{u:function(){return h}});var i=e(85615),l=e(73445),g=e(782),P=e(18753),h=(0,l.Ue)()((0,g.mW)((0,g.tJ)((0,P.n)(function(v,D){return{currentOrg:{uid:"",name:"",description:""},setCurrentOrg:function(s){v({currentOrg:s})},deleteOrg:function(){return v({},!0)}}}),{name:i.eRd})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__UserStatistic.7cd998d6.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__UserStatistic.7cd998d6.async.js deleted file mode 100644 index b79b2a34..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__UserStatistic.7cd998d6.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4523],{71810:function(l,c,e){e.r(c);var t=e(85615),a=e(86745),s=e(85893),i=function(){var n=(0,a.useAccess)();return n.canDebug&&console.log("TabUserReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(a.Access,{accessible:n.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a.FormattedMessage,{id:t.h5w})}),children:"UserStatistic"})})})};c.default=i}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__UserStatistic.ccb8e535.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__UserStatistic.ccb8e535.async.js new file mode 100644 index 00000000..dda75f83 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__UserStatistic.ccb8e535.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4523],{71810:function(e,s,c){c.r(s);var a=c(85615),n=c(86745),i=c(85893);s.default=function(){var e=(0,n.useAccess)();return e.canDebug&&console.log("TabUserReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(n.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.FormattedMessage,{id:a.h5w})}),children:"UserStatistic"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__index.8236f5b4.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__index.8236f5b4.async.js deleted file mode 100644 index 4f5fd1d8..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__index.8236f5b4.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9234],{77154:function(u,n,e){var s=e(39825);function r(){var a=(0,s.Z)(),d=a.isDarkMode,i=250,l={borderRight:d?"1px solid #333":"1px solid #ccc",background:d?"#141414":"#f5f5f5"},t={background:d?"#141414":"#fff"},o={borderLeft:d?"1px solid #333":"1px solid #ccc",background:d?"#141414":"#f5f5f5"},_={minHeight:120,background:d?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:l,leftSiderWidth:i,headerStyle:t,rightSiderStyle:o,contentStyle:_}}n.Z=r},349:function(u,n,e){e.r(n);var s=e(77154),r=e(86745),a=e(21612),d=e(50136),i=e(67294),l=e(96974),t=e(85893),o=a.Z.Header,_=a.Z.Footer,S=a.Z.Sider,M=a.Z.Content,E=[{label:(0,t.jsx)(r.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"},{label:(0,t.jsx)(r.FormattedMessage,{id:"statistic",defaultMessage:"Statistic"}),key:"statistic"}],y=function(){var v=(0,l.s0)(),c=(0,s.Z)(),h=c.leftSiderStyle,D=c.contentStyle,m=function(f){console.log("menu click ",f.key),v("/admin/user/"+f.key)};return(0,t.jsxs)(a.Z,{children:[(0,t.jsx)(S,{style:h,children:(0,t.jsx)(d.Z,{mode:"inline",onClick:m,defaultSelectedKeys:["data"],defaultOpenKeys:["data"],items:E})}),(0,t.jsx)(a.Z,{children:(0,t.jsx)(M,{style:D,children:(0,t.jsx)(l.j3,{})})})]})};n.default=y}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__index.a3556bcf.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__index.a3556bcf.async.js new file mode 100644 index 00000000..de6ce317 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Admin__User__index.a3556bcf.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9234],{77154:function(e,t,a){var i=a(39825);t.Z=function(){var e=(0,i.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},349:function(e,t,a){a.r(t);var i=a(77154),d=a(86745),s=a(21612),n=a(50136),l=(a(67294),a(96974)),r=a(85893),c=(s.Z.Header,s.Z.Footer,s.Z.Sider),f=s.Z.Content,o=[{label:(0,r.jsx)(d.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"},{label:(0,r.jsx)(d.FormattedMessage,{id:"statistic",defaultMessage:"Statistic"}),key:"statistic"}];t.default=function(){var e=(0,l.s0)(),t=(0,i.Z)(),a=t.leftSiderStyle,d=t.contentStyle;return(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(c,{style:a,children:(0,r.jsx)(n.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/admin/user/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data"],items:o})}),(0,r.jsx)(s.Z,{children:(0,r.jsx)(f,{style:d,children:(0,r.jsx)(l.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Crm__CrmStatistic.74d895e5.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Crm__CrmStatistic.74d895e5.async.js deleted file mode 100644 index a08ee961..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Crm__CrmStatistic.74d895e5.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5520],{24698:function(u,n,c){c.r(n);var e=c(85615),a=c(86745),s=c(85893),i=function(){var t=(0,a.useAccess)();return t.canDebug&&console.log("CrmStatistic canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(a.Access,{accessible:t.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a.FormattedMessage,{id:e.h5w})}),children:"can debug"})})})};n.default=i}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Crm__CrmStatistic.95686e15.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Crm__CrmStatistic.95686e15.async.js new file mode 100644 index 00000000..449570f1 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Crm__CrmStatistic.95686e15.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5520],{24698:function(e,c,s){s.r(c);var n=s(85615),a=s(86745),i=s(85893);c.default=function(){var e=(0,a.useAccess)();return e.canDebug&&console.log("CrmStatistic canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(a.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.FormattedMessage,{id:n.h5w})}),children:"can debug"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Crm__CrmTable.bc3a7cec.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Crm__CrmTable.bc3a7cec.async.js new file mode 100644 index 00000000..8775c5f8 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Crm__CrmTable.bc3a7cec.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9710],{58638:function(e,t,n){n.d(t,{Z:function(){return c}});var a=n(1413),r=n(67294),s={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},u=n(89099),o=function(e,t){return r.createElement(u.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:t,icon:s}))};var c=r.forwardRef(o)},70150:function(e,t,n){n.d(t,{W5:function(){return l}});var a=n(15009),r=n.n(a),s=n(97857),u=n.n(s),o=n(99289),c=n.n(o),i=(n(85615),n(86745));function l(e){return d.apply(this,arguments)}function d(){return(d=c()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/v1/message/query/org",{method:"GET",params:u()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},65214:function(e,t,n){n.r(t);var a=n(15009),r=n.n(a),s=n(99289),u=n.n(s),o=n(5574),c=n.n(o),i=n(80049),l=n(70150),d=n(69888),f=n(87676),g=n(58638),p=n(74190),m=n(86745),h=n(14726),x=n(67294),M=n(85893),v=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,M.jsx)(m.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",copyable:!0},{title:(0,M.jsx)(m.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",hideInSearch:!0},{title:(0,M.jsx)(m.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0},{title:(0,M.jsx)(m.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client",hideInSearch:!0},{title:(0,M.jsx)(m.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0}];t.default=function(){var e=(0,m.useIntl)(),t=(0,x.useRef)(),n=(0,x.useState)(1),a=c()(n,2),s=a[0],o=a[1],y=(0,x.useState)(10),w=c()(y,2),R=w[0],b=w[1],k=(0,x.useState)({}),j=c()(k,2),E=(j[0],j[1],(0,f.u)((function(e){return e.currentOrg}))),I=(0,d.G)((function(e){return{messageResult:e.messageResult,setMessageResult:e.setMessageResult}})),S=I.messageResult,C=I.setMessageResult,Z=[].concat(v,[{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(t,n,a,r){return[(0,M.jsx)("a",{onClick:function(){},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),A=function(){var e=u()(r()().mark((function e(){var t,n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={pageNumber:s-1,pageSize:R,orgUid:E.uid},e.next=3,(0,l.W5)(t);case 3:n=e.sent,console.log("getAllMessages response:",t,n),200===n.code?C(n):i.yw.error(n.message);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,x.useEffect)((function(){A()}),[]),(0,x.useEffect)((function(){A()}),[s,R]),(0,x.useEffect)((function(){console.log("messageResult:",S),t.current.reload()}),[S]);var F=function(){console.log("handleExportExcel"),i.yw.warning("即将上线,敬请期待")};return(0,M.jsx)(p.Z,{columns:Z,actionRef:t,cardBordered:!0,request:function(){var e=u()(r()().mark((function e(t,n,a){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("request:",t,n,a),o(t.current),b(t.pageSize),e.abrupt("return",Promise.resolve({data:S.data.content,success:!0,total:S.data.totalElements}));case 4:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{pageSize:R,showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"客户信息列表",toolBarRender:function(){return[(0,M.jsx)(h.ZP,{icon:(0,M.jsx)(g.Z,{}),type:"primary",onClick:F,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})}},69888:function(e,t,n){n.d(t,{G:function(){return o}});var a=n(85615),r=n(73445),s=n(782),u=n(18753),o=(0,r.Ue)()((0,s.mW)((0,s.tJ)((0,u.n)((function(e,t){return{messageResult:{data:{content:[]}},setMessageResult:function(t){e({messageResult:t})},deleteMessageCache:function(){return e({},!0)}}})),{name:a.j87})))}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Crm__CrmTable.f4734fe5.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Crm__CrmTable.f4734fe5.async.js deleted file mode 100644 index efda0779..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Crm__CrmTable.f4734fe5.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9710],{58638:function(W,m,e){e.d(m,{Z:function(){return v}});var p=e(1413),i=e(67294),g={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},E=g,f=e(89099),l=function(j,A){return i.createElement(f.Z,(0,p.Z)((0,p.Z)({},j),{},{ref:A,icon:E}))},R=i.forwardRef(l),v=R},70150:function(W,m,e){e.d(m,{W5:function(){return A}});var p=e(15009),i=e.n(p),g=e(97857),E=e.n(g),f=e(99289),l=e.n(f),R=e(85615),v=e(88541),y=e.n(v),j=e(86745);function A(r){return I.apply(this,arguments)}function I(){return I=l()(i()().mark(function r(n){return i()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,j.request)("/api/v1/message/query/org",{method:"GET",params:E()({},n)}));case 1:case"end":return t.stop()}},r)})),I.apply(this,arguments)}function b(r){return U.apply(this,arguments)}function U(){return U=_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/user/robot",{method:"GET",params:{page:n.pageNumber,size:n.pageSize,client:HTTP_CLIENT}}));case 1:case"end":return t.stop()}},r)})),U.apply(this,arguments)}function O(r){return d.apply(this,arguments)}function d(){return d=_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/message/rest/send",{method:"POST",data:{json:n,client:HTTP_CLIENT}}));case 1:case"end":return t.stop()}},r)})),d.apply(this,arguments)}function N(r,n){return B.apply(this,arguments)}function B(){return B=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,u){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("http://127.0.0.1:1001/visitor/api/v1/ai/ollama/chat",{method:"GET",params:{query:n,kbUid:u,client:HTTP_CLIENT}}));case 1:case"end":return a.stop()}},r)})),B.apply(this,arguments)}function Z(r,n,u){return T.apply(this,arguments)}function T(){return T=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,u,t){var a,o;return _regeneratorRuntime().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:console.log("sendMessageAiStream: ",n),a="http://127.0.0.1:1001/visitor/api/v1/ai/ollama/chat/stream?query=".concat(n,"&kbUid=").concat(u),o=new EventSource(a,{withCredentials:!1}),o.onopen=function(s){console.log("onopen:",s.target)},o.onmessage=function(s){console.log("onmessage:",s.data),t(s.data)},o.onerror=function(s){console.log("onerror:",s),o.readyState===EventSource.CLOSED?console.log("connection is closed"):console.log("Error occured",s),o.close()},o.addEventListener("customEventName",function(s){console.log("Message id is "+s.lastEventId)});case 7:case"end":return _.stop()}},r)})),T.apply(this,arguments)}function z(r,n){return L.apply(this,arguments)}function L(){return L=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,u){var t,a;return _regeneratorRuntime().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:console.log("sendMessageSSE: ",n),t="".concat("","/visitor/api/v1/zhipuai/sse?uid=&sid=").concat(n.sid,"&content=").concat(n.content),a=new EventSource(t,{withCredentials:!1}),a.onopen=function(_){console.log("onopen:",_.target)},a.onmessage=function(_){u(_.data);var s=JSON.parse(_.data);if(s.type=="finish"){a&&a.close();return}},a.onerror=function(_){console.log("onerror:",_),alert("server error"),a.readyState===EventSource.CLOSED?console.log("connection is closed"):console.log("Error occured",_),a.close()},a.addEventListener("customEventName",function(_){console.log("Message id is "+_.lastEventId)});case 7:case"end":return D.stop()}},r)})),L.apply(this,arguments)}function G(r,n){return C.apply(this,arguments)}function C(){return C=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,u){var t,a,o;return _regeneratorRuntime().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:console.log("sendMessageSSEPolyfill: ",n),t=localStorage.ACCESS_TOKEN,a="".concat("","/visitor/api/v1/zhipuai/sse?uid=&sid=").concat(n.sid,"&content=").concat(n.content),o=new EventSourcePolyfill(a,{headers:{Authorization:"Bearer ".concat(t)}}),o.onopen=function(s){console.log("onopen:",s.target)},o.onmessage=function(s){console.log("onmessage:",s.data),u(s.data);var k=JSON.parse(s.data);if(k.type=="finish"){o&&o.close();return}},o.onerror=function(s){console.log("onerror:",s),alert("server error"),o.readyState===EventSource.CLOSED?console.log("connection is closed"):console.log("Error occured",s),o.close()},o.addEventListener("customEventName",function(s){console.log("Message id is "+s.lastEventId)});case 8:case"end":return _.stop()}},r)})),C.apply(this,arguments)}},65214:function(W,m,e){e.r(m);var p=e(15009),i=e.n(p),g=e(99289),E=e.n(g),f=e(5574),l=e.n(f),R=e(80049),v=e(70150),y=e(69888),j=e(87676),A=e(58638),I=e(57482),b=e(86745),U=e(14726),O=e(67294),d=e(85893),N=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,d.jsx)(b.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",copyable:!0},{title:(0,d.jsx)(b.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",hideInSearch:!0},{title:(0,d.jsx)(b.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0},{title:(0,d.jsx)(b.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client",hideInSearch:!0},{title:(0,d.jsx)(b.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0}],B=function(){var T=(0,b.useIntl)(),z=(0,O.useRef)(),L=(0,O.useState)(1),G=l()(L,2),C=G[0],r=G[1],n=(0,O.useState)(10),u=l()(n,2),t=u[0],a=u[1],o=(0,O.useState)({}),D=l()(o,2),_=D[0],s=D[1],k=(0,j.u)(function(c){return c.currentOrg}),F=(0,y.G)(function(c){return{messageResult:c.messageResult,setMessageResult:c.setMessageResult}}),x=F.messageResult,H=F.setMessageResult,J=[].concat(N,[{title:T.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(P,M,h,w){return[(0,d.jsx)("a",{onClick:function(){},children:T.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),$=function(){var c=E()(i()().mark(function P(){var M,h;return i()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return M={pageNumber:C-1,pageSize:t,orgUid:k.uid},S.next=3,(0,v.W5)(M);case 3:h=S.sent,console.log("getAllMessages response:",M,h),h.code===200?H(h):R.yw.error(h.message);case 6:case"end":return S.stop()}},P)}));return function(){return c.apply(this,arguments)}}();(0,O.useEffect)(function(){$()},[]),(0,O.useEffect)(function(){$()},[C,t]),(0,O.useEffect)(function(){console.log("messageResult:",x),z.current.reload()},[x]);var V=function(){console.log("handleExportExcel"),R.yw.warning("\u5373\u5C06\u4E0A\u7EBF\uFF0C\u656C\u8BF7\u671F\u5F85")};return(0,d.jsx)(I.Z,{columns:J,actionRef:z,cardBordered:!0,request:function(){var c=E()(i()().mark(function P(M,h,w){return i()().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return console.log("request:",M,h,w),r(M.current),a(M.pageSize),K.abrupt("return",Promise.resolve({data:x.data.content,success:!0,total:x.data.totalElements}));case 4:case"end":return K.stop()}},P)}));return function(P,M,h){return c.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{pageSize:t,showQuickJumper:!0,onChange:function(P){console.log("page:",P)}},dateFormatter:"string",headerTitle:"\u5BA2\u6237\u4FE1\u606F\u5217\u8868",toolBarRender:function(){return[(0,d.jsx)(U.ZP,{icon:(0,d.jsx)(A.Z,{}),type:"primary",onClick:V,children:T.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})};m.default=B},69888:function(W,m,e){e.d(m,{G:function(){return f}});var p=e(85615),i=e(73445),g=e(782),E=e(18753),f=(0,i.Ue)()((0,g.mW)((0,g.tJ)((0,E.n)(function(l,R){return{messageResult:{data:{content:[]}},setMessageResult:function(y){l({messageResult:y})},deleteMessageCache:function(){return l({},!0)}}}),{name:p.j87})))},87676:function(W,m,e){e.d(m,{u:function(){return f}});var p=e(85615),i=e(73445),g=e(782),E=e(18753),f=(0,i.Ue)()((0,g.mW)((0,g.tJ)((0,E.n)(function(l,R){return{currentOrg:{uid:"",name:"",description:""},setCurrentOrg:function(y){l({currentOrg:y})},deleteOrg:function(){return l({},!0)}}}),{name:p.eRd})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Crm__VisitorTable.0e286965.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Crm__VisitorTable.0e286965.async.js deleted file mode 100644 index 240a15ba..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Crm__VisitorTable.0e286965.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4580],{58638:function(R,p,e){e.d(p,{Z:function(){return u}});var m=e(1413),_=e(67294),c={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},g=c,h=e(89099),s=function(b,M){return _.createElement(h.Z,(0,m.Z)((0,m.Z)({},b),{},{ref:M,icon:g}))},v=_.forwardRef(s),u=v},70401:function(R,p,e){e.d(p,{$t:function(){return I},a_:function(){return M},vf:function(){return o}});var m=e(15009),_=e.n(m),c=e(97857),g=e.n(c),h=e(99289),s=e.n(h),v=e(85615),u=e(86745);function o(r){return b.apply(this,arguments)}function b(){return b=s()(_()().mark(function r(a){return _()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.request)("/api/v1/vip/crm/query/visitor/org",{method:"GET",params:g()(g()({},a),{},{client:v.bVn})}));case 1:case"end":return t.stop()}},r)})),b.apply(this,arguments)}function M(){return P.apply(this,arguments)}function P(){return P=s()(_()().mark(function r(){return _()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,u.request)("/visitor/api/v1/kaptcha",{method:"GET",params:{client:v.bVn}}));case 1:case"end":return n.stop()}},r)})),P.apply(this,arguments)}function I(r,a){return d.apply(this,arguments)}function d(){return d=s()(_()().mark(function r(a,n){return _()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,u.request)("/visitor/api/v1/kaptcha/check",{method:"POST",data:{captchaUid:a,captchaCode:n,client:v.bVn}}));case 1:case"end":return i.stop()}},r)})),d.apply(this,arguments)}function C(r){return j.apply(this,arguments)}function j(){return j=_asyncToGenerator(_regeneratorRuntime().mark(function r(a){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/visitor/update",{method:"POST",data:_objectSpread(_objectSpread({},a),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),j.apply(this,arguments)}function E(r){return y.apply(this,arguments)}function y(){return y=_asyncToGenerator(_regeneratorRuntime().mark(function r(a){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/visitor/delete",{method:"POST",data:_objectSpread(_objectSpread({},a),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),y.apply(this,arguments)}},34657:function(R,p,e){e.r(p);var m=e(15009),_=e.n(m),c=e(97857),g=e.n(c),h=e(13769),s=e.n(h),v=e(99289),u=e.n(v),o=e(80049),b=e(70401),M=e(87676),P=e(58638),I=e(57482),d=e(86745),C=e(14726),j=e(67294),E=e(85893),y=["current"],r=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,E.jsx)(d.FormattedMessage,{id:"nickname",defaultMessage:"Nickname"}),dataIndex:"nickname",width:120,copyable:!0},{title:(0,E.jsx)(d.FormattedMessage,{id:"browser",defaultMessage:"Browser"}),dataIndex:"browser",hideInSearch:!0,width:50,render:function(t,i){var l;return(l=i.device)===null||l===void 0?void 0:l.browser}},{title:(0,E.jsx)(d.FormattedMessage,{id:"os",defaultMessage:"Os"}),dataIndex:"os",hideInSearch:!0,width:120,render:function(t,i){var l;return(l=i.device)===null||l===void 0?void 0:l.os}},{title:(0,E.jsx)(d.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0}],a=function(){var t=(0,d.useIntl)(),i=(0,j.useRef)(),l=(0,M.u)(function(O){return O.currentOrg}),W=[].concat(r),L=function(){console.log("handleExportExcel"),o.yw.warning("\u5373\u5C06\u4E0A\u7EBF\uFF0C\u656C\u8BF7\u671F\u5F85")};return(0,E.jsx)(I.Z,{columns:W,actionRef:i,cardBordered:!0,request:function(){var O=u()(_()().mark(function U(T,A,x){var k,K,B,f;return _()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return console.log("request:",T,A,x),o.yw.loading(t.formatMessage({id:"loading",defaultMessage:"Loading"})),k=T.current,K=s()(T,y),B=g()({pageNumber:T.current-1,orgUid:l.uid},K),D.next=6,(0,b.vf)(B);case 6:return f=D.sent,console.log("queryVisitorsByOrg response:",B,f),o.yw.destroy(),f.code===200||o.yw.error(f.message),D.abrupt("return",{data:f.data.content,success:!0,total:f.data.totalElements});case 11:case"end":return D.stop()}},U)}));return function(U,T,A){return O.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(U){console.log("page:",U)}},dateFormatter:"string",headerTitle:"\u8BBF\u5BA2\u5217\u8868",toolBarRender:function(){return[(0,E.jsx)(C.ZP,{icon:(0,E.jsx)(P.Z,{}),type:"primary",onClick:L,children:t.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})};p.default=a},87676:function(R,p,e){e.d(p,{u:function(){return h}});var m=e(85615),_=e(73445),c=e(782),g=e(18753),h=(0,_.Ue)()((0,c.mW)((0,c.tJ)((0,g.n)(function(s,v){return{currentOrg:{uid:"",name:"",description:""},setCurrentOrg:function(o){s({currentOrg:o})},deleteOrg:function(){return s({},!0)}}}),{name:m.eRd})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Crm__VisitorTable.85678747.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Crm__VisitorTable.85678747.async.js new file mode 100644 index 00000000..e46db383 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Crm__VisitorTable.85678747.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4580],{58638:function(e,t,r){r.d(t,{Z:function(){return s}});var n=r(1413),a=r(67294),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},i=r(89099),u=function(e,t){return a.createElement(i.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:o}))};var s=a.forwardRef(u)},70401:function(e,t,r){r.d(t,{$t:function(){return v},a_:function(){return f},vf:function(){return l}});var n=r(15009),a=r.n(n),o=r(97857),i=r.n(o),u=r(99289),s=r.n(u),c=r(85615),d=r(86745);function l(e){return p.apply(this,arguments)}function p(){return(p=s()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/vip/crm/query/visitor/org",{method:"GET",params:i()(i()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(){return h.apply(this,arguments)}function h(){return(h=s()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/visitor/api/v1/kaptcha",{method:"GET",params:{client:c.bVn}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e,t){return g.apply(this,arguments)}function g(){return(g=s()(a()().mark((function e(t,r){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/visitor/api/v1/kaptcha/check",{method:"POST",data:{captchaUid:t,captchaCode:r,client:c.bVn}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},34657:function(e,t,r){r.r(t);var n=r(15009),a=r.n(n),o=r(97857),i=r.n(o),u=r(13769),s=r.n(u),c=r(99289),d=r.n(c),l=r(80049),p=r(70401),f=r(87676),h=r(58638),v=r(74190),g=r(86745),m=r(14726),w=r(67294),x=r(85893),y=["current"],b=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,x.jsx)(g.FormattedMessage,{id:"nickname",defaultMessage:"Nickname"}),dataIndex:"nickname",width:120,copyable:!0},{title:(0,x.jsx)(g.FormattedMessage,{id:"browser",defaultMessage:"Browser"}),dataIndex:"browser",hideInSearch:!0,width:50,render:function(e,t){var r;return null===(r=t.device)||void 0===r?void 0:r.browser}},{title:(0,x.jsx)(g.FormattedMessage,{id:"os",defaultMessage:"Os"}),dataIndex:"os",hideInSearch:!0,width:120,render:function(e,t){var r;return null===(r=t.device)||void 0===r?void 0:r.os}},{title:(0,x.jsx)(g.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0}];t.default=function(){var e=(0,g.useIntl)(),t=(0,w.useRef)(),r=(0,f.u)((function(e){return e.currentOrg})),n=[].concat(b),o=function(){console.log("handleExportExcel"),l.yw.warning("即将上线,敬请期待")};return(0,x.jsx)(v.Z,{columns:n,actionRef:t,cardBordered:!0,request:function(){var t=d()(a()().mark((function t(n,o,u){var c,d,f;return a()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("request:",n,o,u),l.yw.loading(e.formatMessage({id:"loading",defaultMessage:"Loading"})),n.current,c=s()(n,y),d=i()({pageNumber:n.current-1,orgUid:r.uid},c),t.next=6,(0,p.vf)(d);case 6:return f=t.sent,console.log("queryVisitorsByOrg response:",d,f),l.yw.destroy(),200===f.code||l.yw.error(f.message),t.abrupt("return",{data:f.data.content,success:!0,total:f.data.totalElements});case 11:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"访客列表",toolBarRender:function(){return[(0,x.jsx)(m.ZP,{icon:(0,x.jsx)(h.Z,{}),type:"primary",onClick:o,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Crm__index.81c65f24.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Crm__index.81c65f24.async.js deleted file mode 100644 index 072cc05a..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Crm__index.81c65f24.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5230],{77154:function(m,n,e){var r=e(39825);function d(){var l=(0,r.Z)(),_=l.isDarkMode,s=250,o={borderRight:_?"1px solid #333":"1px solid #ccc",background:_?"#141414":"#f5f5f5"},i={background:_?"#141414":"#fff"},a={borderLeft:_?"1px solid #333":"1px solid #ccc",background:_?"#141414":"#f5f5f5"},t={minHeight:120,background:_?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:o,leftSiderWidth:s,headerStyle:i,rightSiderStyle:a,contentStyle:t}}n.Z=d},16245:function(m,n,e){e.r(n);var r=e(5574),d=e.n(r),l=e(77154),_=e(86745),s=e(21612),o=e(50136),i=e(67294),a=e(96974),t=e(85893),C=s.Z.Header,j=s.Z.Footer,v=s.Z.Sider,E=s.Z.Content,M=function(){var S=(0,a.s0)(),u=(0,l.Z)(),y=u.leftSiderStyle,h=u.contentStyle,D=[{label:(0,t.jsx)(_.FormattedMessage,{id:"visitor",defaultMessage:"Visitor"}),key:"visitor"}],g=(0,i.useState)(D),f=d()(g,2),O=f[0],T=f[1],P=function(c){console.log("menu click ",c.key),S("/crm/"+c.key)};return(0,i.useEffect)(function(){},[]),(0,t.jsxs)(s.Z,{children:[(0,t.jsx)(v,{style:y,children:(0,t.jsx)(o.Z,{mode:"inline",onClick:P,defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:O})}),(0,t.jsx)(s.Z,{children:(0,t.jsx)(E,{style:h,children:(0,t.jsx)(a.j3,{})})})]})};n.default=M}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Crm__index.f75c8b73.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Crm__index.f75c8b73.async.js new file mode 100644 index 00000000..77e7938b --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Crm__index.f75c8b73.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5230],{77154:function(e,t,i){var n=i(39825);t.Z=function(){var e=(0,n.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},16245:function(e,t,i){i.r(t);var n=i(5574),r=i.n(n),s=i(77154),d=i(86745),c=i(21612),l=i(50136),o=i(67294),f=i(96974),a=i(85893),u=(c.Z.Header,c.Z.Footer,c.Z.Sider),h=c.Z.Content;t.default=function(){var e=(0,f.s0)(),t=(0,s.Z)(),i=t.leftSiderStyle,n=t.contentStyle,k=[{label:(0,a.jsx)(d.FormattedMessage,{id:"visitor",defaultMessage:"Visitor"}),key:"visitor"}],y=(0,o.useState)(k),S=r()(y,2),g=S[0];S[1];return(0,o.useEffect)((function(){0}),[]),(0,a.jsxs)(c.Z,{children:[(0,a.jsx)(u,{style:i,children:(0,a.jsx)(l.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/crm/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:g})}),(0,a.jsx)(c.Z,{children:(0,a.jsx)(h,{style:n,children:(0,a.jsx)(f.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Doceditor__index.a4650649.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Doceditor__index.a4650649.async.js deleted file mode 100644 index 9b94437c..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Doceditor__index.a4650649.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5488],{85022:function(ve,$,e){e.d($,{Az:function(){return q},Xc:function(){return G},jX:function(){return ee},tu:function(){return _}});var Q=e(15009),U=e.n(Q),H=e(97857),l=e.n(H),Y=e(99289),x=e.n(Y),F=e(85615),T=e(86745);function q(c){return Z.apply(this,arguments)}function Z(){return Z=x()(U()().mark(function c(L){return U()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,T.request)("/api/v1/article/query/org",{method:"GET",params:l()(l()({},L),{},{client:F.bVn})}));case 1:case"end":return o.stop()}},c)})),Z.apply(this,arguments)}function _(c){return K.apply(this,arguments)}function K(){return K=x()(U()().mark(function c(L){return U()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,T.request)("/api/v1/article/create",{method:"POST",data:l()(l()({},L),{},{client:F.bVn})}));case 1:case"end":return o.stop()}},c)})),K.apply(this,arguments)}function G(c){return V.apply(this,arguments)}function V(){return V=x()(U()().mark(function c(L){return U()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,T.request)("/api/v1/article/update",{method:"POST",data:l()(l()({},L),{},{client:F.bVn})}));case 1:case"end":return o.stop()}},c)})),V.apply(this,arguments)}function ee(c){return X.apply(this,arguments)}function X(){return X=x()(U()().mark(function c(L){return U()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,T.request)("/api/v1/article/delete",{method:"POST",data:l()(l()({},L),{},{client:F.bVn})}));case 1:case"end":return o.stop()}},c)})),X.apply(this,arguments)}},3059:function(ve,$,e){e.r($),e.d($,{default:function(){return Le}});var Q=e(31418),U=e(77154),H=e(21612),l=e(67294),Y=e(52670),x=e(85615),F=e(69554),T=e(80049),q=e(15009),Z=e.n(q),_=e(99289),K=e.n(_),G=e(85022),V=e(39825),ee=e(73803),X=e(97857),c=e.n(X),L=e(19632),w=e.n(L),o=e(73445),ie=e(782),fe=e(18753),ae=(0,o.Ue)()((0,ie.mW)((0,ie.tJ)((0,fe.n)(function(A,a){return{currentArticle:{uid:"",orgUid:""},articleResult:{data:{content:[]}},insertArticle:function(r){A(function(u){var i=u.articleResult.data.content;i.unshift(r)})},updateArticle:function(r){A(function(u){var i=u.articleResult.data.content,g=i.findIndex(function(y){return y.uid===r.uid});g!==-1?i[g]=r:console.warn("Article with uid ".concat(r.uid," not found."))})},setArticleResult:function(r){A({articleResult:r});var u=a().currentArticle;if(u.uid===""){var i;((i=r.data)===null||i===void 0||(i=i.content)===null||i===void 0?void 0:i.length)>0&&A({currentArticle:r.data.content[0]})}},setCurrentArticle:function(r){var u=a().articleResult.data.content,i=u.findIndex(function(C){return C.uid===r.uid});if(i!==-1){var g=[].concat(w()(u.slice(0,i)),[r],w()(u.slice(i+1))),y=c()(c()({},a().articleResult),{},{data:{content:g}});A({articleResult:y,currentArticle:r})}else console.warn("Article with the specified uid not found."),A({currentArticle:r})},removeArticle:function(r){var u=a().articleResult.data.content,i=u.findIndex(function(g){return g.uid===r});i!==-1?A({articleResult:c()(c()({},a().articleResult),{},{data:{content:[].concat(w()(u.slice(0,i)),w()(u.slice(i+1)))}})}):console.warn("Article not found in cache:",r),a().currentArticle.uid===r&&A({currentArticle:{uid:"",orgUid:""}})},deleteArticleCache:function(){return A({},!0)}}}),{name:x.SsI}))),le=e(89102),oe=e(38302),ue=e(87676),h=e(45360),te=e(2487),n=e(85893),ge=function(){var a=(0,V.Z)(),p=a.isDarkMode,r=(0,l.useRef)(!1),u=(0,ee.Z)(),i=u.translateString,g=(0,ue.u)(function(m){return m.currentOrg}),y=(0,oe.j)(function(m){return m.currentKbase}),C=(0,le.v)(function(m){return m.currentCategory}),S=ae(function(m){return{currentArticle:m.currentArticle,articleResult:m.articleResult,setCurrentArticle:m.setCurrentArticle,setArticleResult:m.setArticleResult}}),v=S.currentArticle,z=S.articleResult,W=S.setCurrentArticle,b=S.setArticleResult,E=function(){var m=K()(Z()().mark(function R(){var D,O;return Z()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(!r.current){M.next=3;break}return console.log("isLoading: 1",r.current),M.abrupt("return");case 3:return r.current=!0,h.ZP.loading("loading"),D={pageNumber:0,pageSize:50,type:x.bjp,categoryUid:C==null?void 0:C.uid,kbUid:y==null?void 0:y.uid,orgUid:g==null?void 0:g.uid},M.next=8,(0,G.Az)(D);case 8:O=M.sent,console.log("queryArticlesByOrg: ",O),O.code===200?(h.ZP.destroy(),b(O)):(h.ZP.destroy(),h.ZP.error(O.message)),r.current=!1;case 12:case"end":return M.stop()}},R)}));return function(){return m.apply(this,arguments)}}();(0,l.useEffect)(function(){console.log("useEffect"),E()},[y,C]);var k=function(R,D){W(R)};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(te.Z,{itemLayout:"horizontal",dataSource:z.data.content,renderItem:function(R,D){return(0,n.jsx)(te.Z.Item,{style:v.uid===R.uid?{backgroundColor:p?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:function(){return k(R,D)},children:(0,n.jsx)(te.Z.Item.Meta,{style:{marginLeft:"10px",color:p?"#ffffff":"#000000"},title:i(R.title)})})}})})},me=ge,he=e(5574),J=e.n(he),pe=e(86250),Ae=e(55102),ye=e(72269),ne=e(14726),Ce=e(7011),je=e(13769),Pe=e.n(je),se=e(86745),Se=e(60520),Fe=e(74864),Ee=["placeholder","defaultValue","value","onChange","options"],Re=function(a){var p=a.placeholder,r=a.defaultValue,u=a.value,i=a.onChange,g=a.options,y=Pe()(a,Ee),C=(0,se.useIntl)(),S=(0,l.useRef)(null),v=(0,l.useRef)(null);return(0,l.useEffect)(function(){if(S.current){if(!v.current){var z=new Se.cW({element:S.current,placeholder:p,content:r,image:{uploaderEvent:{onUploadBefore:function(b,E,k){T.yw.warning(C.formatMessage({id:"i18n.under.development",defaultMessage:"Coming Soon"}))}}},video:{uploaderEvent:{onUploadBefore:function(b,E,k){T.yw.warning(C.formatMessage({id:"i18n.under.development",defaultMessage:"Coming Soon"}))}}},attachment:{uploaderEvent:{onUploadBefore:function(b,E,k){T.yw.warning(C.formatMessage({id:"i18n.under.development",defaultMessage:"Coming Soon"}))}}},onChange:function(b){typeof i=="function"&&i(b.getHtml(),b.getMarkdown())}});v.current=z}return function(){v.current&&(v.current.destroy(),v.current=null)}}},[]),(0,l.useEffect)(function(){v.current&&u!==v.current.getHtml()&&v.current.setContent(u||"")},[u]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",c()(c()({ref:S},y),{},{style:{height:"100%"}}))})},Me=Re,Ue=e(51042),Ze=e(60219),be=e(55287),De=function(){var a=(0,se.useIntl)(),p=(0,V.Z)(),r=p.isDarkMode,u=(0,l.useState)(!1),i=J()(u,2),g=i[0],y=i[1],C=(0,l.useState)(""),S=J()(C,2),v=S[0],z=S[1],W=(0,l.useState)(""),b=J()(W,2),E=b[0],k=b[1],m=(0,l.useState)(""),R=J()(m,2),D=R[0],O=R[1],B=(0,l.useRef)(!1),M=(0,ue.u)(function(s){return s.currentOrg}),I=(0,oe.j)(function(s){return s.currentKbase}),re=(0,le.v)(function(s){return s.currentCategory}),N=ae(function(s){return{currentArticle:s.currentArticle,insertArticle:s.insertArticle,setCurrentArticle:s.setCurrentArticle,updateLocalArticle:s.updateArticle}}),t=N.currentArticle,Be=N.insertArticle,Ie=N.setCurrentArticle,de=N.updateLocalArticle;(0,l.useEffect)(function(){(t==null?void 0:t.kbUid)===(I==null?void 0:I.uid)&&(z(t==null?void 0:t.title),k(t==null?void 0:t.contentHtml),O(t==null?void 0:t.contentMarkdown))},[t]);var we=function(d){console.log("switch to ".concat(d)),y(d)},ke=function(){var s=K()(Z()().mark(function d(){var j,P;return Z()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(console.log("create"),!B.current){f.next=4;break}return console.log("isLoading: 1",B.current),f.abrupt("return");case 4:return B.current=!0,h.ZP.loading(a.formatMessage({id:"creating"})),j={uid:t==null?void 0:t.uid,title:"new article",summary:"new article summary",contentHtml:"new article content",contentMarkdown:"new article content",type:x.bjp,tags:["tag1","tag2"],markdown:g,published:!1,categoryUid:re==null?void 0:re.uid,kbUid:I==null?void 0:I.uid,orgUid:M==null?void 0:M.uid},console.log("create articleObject",j),f.next=10,(0,G.tu)(j);case 10:P=f.sent,console.log("createArticle response",P),P.code===200?(h.ZP.destroy(),h.ZP.info(a.formatMessage({id:"create.success"})),Be(P.data),Ie(P.data)):(h.ZP.destroy(),h.ZP.error(P.message)),B.current=!1;case 14:case"end":return f.stop()}},d)}));return function(){return s.apply(this,arguments)}}(),Ke=function(){var s=K()(Z()().mark(function d(){var j,P;return Z()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(console.log("save",v,E),!(v===""||E==="")){f.next=4;break}return h.ZP.error("\u6807\u9898\u6216\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A\uFF01"),f.abrupt("return");case 4:if(!B.current){f.next=7;break}return console.log("isLoading: 1",B.current),f.abrupt("return");case 7:return B.current=!0,h.ZP.loading(a.formatMessage({id:"updating"})),j={uid:t==null?void 0:t.uid,title:v,summary:t==null?void 0:t.summary,contentHtml:E,contentMarkdown:D,type:t==null?void 0:t.type,tags:["tag1","tag2"],markdown:t==null?void 0:t.markdown,published:t==null?void 0:t.published,categoryUid:t==null?void 0:t.categoryUid,kbUid:t==null?void 0:t.kbUid,orgUid:t==null?void 0:t.orgUid},console.log("update articleObject",j),f.next=13,(0,G.Xc)(j);case 13:P=f.sent,console.log("updateArticle response",P),P.code===200?(h.ZP.destroy(),h.ZP.info(a.formatMessage({id:"update.success"})),de(P.data)):(h.ZP.destroy(),h.ZP.error(P.message)),B.current=!1;case 17:case"end":return f.stop()}},d)}));return function(){return s.apply(this,arguments)}}(),We=function(){console.log("handlePreviewArticle",t),window.open("".concat("","/article/").concat(I==null?void 0:I.uid,"/").concat(t==null?void 0:t.uid))};return(0,l.useEffect)(function(){var s=c()(c()({},t),{},{title:v,contentHtml:E,contentMarkdown:D});de(s)},[v,E,D]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{children:(0,n.jsxs)(pe.Z,{gap:10,style:{marginBottom:10,marginTop:5},children:[(0,n.jsx)(Ae.Z,{size:"large",placeholder:"title",value:v,style:{background:r?"#141414":"#f5f5f5"},onChange:function(d){console.log("title onChange:",d.target.value),z(d.target.value)}}),(0,n.jsx)(ye.Z,{checkedChildren:"Markdown",unCheckedChildren:"Html",onChange:we,defaultValue:g}),(0,n.jsx)(ne.ZP,{type:"primary",icon:(0,n.jsx)(Ue.Z,{}),onClick:ke,children:"\u65B0\u5EFA"}),(0,n.jsx)(ne.ZP,{type:"default",icon:(0,n.jsx)(Ze.Z,{}),onClick:Ke,children:"\u4FDD\u5B58"}),(0,n.jsx)(ne.ZP,{type:"default",icon:(0,n.jsx)(be.Z,{}),onClick:We,children:"\u9884\u89C8"})]})}),g&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(Ce.ZP,{style:{height:"100%"},value:D,enablePreview:!0,onChange:function(d,j){console.log("markdown onChange value",d,j),O(d),k(d)}})}),!g&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(Me,{placeholder:"article content..",value:E,onChange:function(d,j){console.log("aiEditor onChange value",d,j),k(d),O(j)}})})]})},Oe=De,ce=H.Z.Sider,xe=H.Z.Content,Te=function(){var a=(0,U.Z)(),p=a.leftSiderStyle,r=a.contentStyle;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(F.w,{children:(0,n.jsxs)(Q.Z,{children:[(0,n.jsx)(T.ZP,{}),(0,n.jsxs)(H.Z,{children:[(0,n.jsx)(ce,{style:p,children:(0,n.jsx)(Y.Z,{type:x.bjp})}),(0,n.jsx)(ce,{style:p,children:(0,n.jsx)(me,{})}),(0,n.jsx)(H.Z,{children:(0,n.jsx)(xe,{style:r,children:(0,n.jsx)(Oe,{})})})]})]})})})},Le=Te}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Doceditor__index.badb465c.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Doceditor__index.badb465c.async.js new file mode 100644 index 00000000..aa04940d --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Doceditor__index.badb465c.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5488],{85022:function(e,t,n){n.d(t,{Az:function(){return d},Xc:function(){return h},jX:function(){return m},tu:function(){return p}});var r=n(15009),c=n.n(r),u=n(97857),i=n.n(u),o=n(99289),a=n.n(o),l=n(85615),s=n(86745);function d(e){return f.apply(this,arguments)}function f(){return(f=a()(c()().mark((function e(t){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.request)("/api/v1/article/query/org",{method:"GET",params:i()(i()({},t),{},{client:l.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return g.apply(this,arguments)}function g(){return(g=a()(c()().mark((function e(t){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.request)("/api/v1/article/create",{method:"POST",data:i()(i()({},t),{},{client:l.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return v.apply(this,arguments)}function v(){return(v=a()(c()().mark((function e(t){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.request)("/api/v1/article/update",{method:"POST",data:i()(i()({},t),{},{client:l.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return y.apply(this,arguments)}function y(){return(y=a()(c()().mark((function e(t){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.request)("/api/v1/article/delete",{method:"POST",data:i()(i()({},t),{},{client:l.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},3059:function(e,t,n){n.r(t),n.d(t,{default:function(){return _}});var r=n(31418),c=n(77154),u=n(21612),i=n(67294),o=n(52670),a=n(85615),l=n(69554),s=n(80049),d=n(15009),f=n.n(d),p=n(99289),g=n.n(p),h=n(85022),v=n(39825),m=n(73803),y=n(97857),x=n.n(y),w=n(19632),A=n.n(w),j=n(73445),k=n(782),Z=n(18753),b=(0,j.Ue)()((0,k.mW)((0,k.tJ)((0,Z.n)((function(e,t){return{currentArticle:{uid:"",orgUid:""},articleResult:{data:{content:[]}},insertArticle:function(t){e((function(e){e.articleResult.data.content.unshift(t)}))},updateArticle:function(t){e((function(e){var n=e.articleResult.data.content,r=n.findIndex((function(e){return e.uid===t.uid}));-1!==r?n[r]=t:console.warn("Article with uid ".concat(t.uid," not found."))}))},setArticleResult:function(n){var r;(e({articleResult:n}),""===t().currentArticle.uid)&&((null===(r=n.data)||void 0===r||null===(r=r.content)||void 0===r?void 0:r.length)>0&&e({currentArticle:n.data.content[0]}))},setCurrentArticle:function(n){var r=t().articleResult.data.content,c=r.findIndex((function(e){return e.uid===n.uid}));if(-1!==c){var u=[].concat(A()(r.slice(0,c)),[n],A()(r.slice(c+1))),i=x()(x()({},t().articleResult),{},{data:{content:u}});e({articleResult:i,currentArticle:n})}else console.warn("Article with the specified uid not found."),e({currentArticle:n})},removeArticle:function(n){var r=t().articleResult.data.content,c=r.findIndex((function(e){return e.uid===n}));-1!==c?e({articleResult:x()(x()({},t().articleResult),{},{data:{content:[].concat(A()(r.slice(0,c)),A()(r.slice(c+1)))}})}):console.warn("Article not found in cache:",n),t().currentArticle.uid===n&&e({currentArticle:{uid:"",orgUid:""}})},deleteArticleCache:function(){return e({},!0)}}})),{name:a.SsI}))),C=n(89102),P=n(38302),R=n(87676),M=n(45360),S=n(2487),U=n(85893),E=function(){var e=(0,v.Z)().isDarkMode,t=(0,i.useRef)(!1),n=(0,m.Z)().translateString,r=(0,R.u)((function(e){return e.currentOrg})),c=(0,P.j)((function(e){return e.currentKbase})),u=(0,C.v)((function(e){return e.currentCategory})),o=b((function(e){return{currentArticle:e.currentArticle,articleResult:e.articleResult,setCurrentArticle:e.setCurrentArticle,setArticleResult:e.setArticleResult}})),l=o.currentArticle,s=o.articleResult,d=o.setCurrentArticle,p=o.setArticleResult,y=function(){var e=g()(f()().mark((function e(){var n,i;return f()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.current){e.next=3;break}return console.log("isLoading: 1",t.current),e.abrupt("return");case 3:return t.current=!0,M.ZP.loading("loading"),n={pageNumber:0,pageSize:50,type:a.bjp,categoryUid:null==u?void 0:u.uid,kbUid:null==c?void 0:c.uid,orgUid:null==r?void 0:r.uid},e.next=8,(0,h.Az)(n);case 8:i=e.sent,console.log("queryArticlesByOrg: ",i),200===i.code?(M.ZP.destroy(),p(i)):(M.ZP.destroy(),M.ZP.error(i.message)),t.current=!1;case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,i.useEffect)((function(){console.log("useEffect"),y()}),[c,u]);return(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(S.Z,{itemLayout:"horizontal",dataSource:s.data.content,renderItem:function(t,r){return(0,U.jsx)(S.Z.Item,{style:l.uid===t.uid?{backgroundColor:e?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:function(){d(t)},children:(0,U.jsx)(S.Z.Item.Meta,{style:{marginLeft:"10px",color:e?"#ffffff":"#000000"},title:n(t.title)})})}})})},I=n(5574),O=n.n(I),V=n(86250),H=n(55102),L=n(72269),q=n(14726),F=n(31359),z=n(13769),B=n.n(z),T=n(86745),X=n(60520),D=(n(74864),["placeholder","defaultValue","value","onChange","options"]),K=function(e){var t=e.placeholder,n=e.defaultValue,r=e.value,c=e.onChange,u=(e.options,B()(e,D)),o=(0,T.useIntl)(),a=(0,i.useRef)(null),l=(0,i.useRef)(null);return(0,i.useEffect)((function(){if(a.current){if(!l.current){var e=new X.cW({element:a.current,placeholder:t,content:n,image:{uploaderEvent:{onUploadBefore:function(e,t,n){s.yw.warning(o.formatMessage({id:"i18n.under.development",defaultMessage:"Coming Soon"}))}}},video:{uploaderEvent:{onUploadBefore:function(e,t,n){s.yw.warning(o.formatMessage({id:"i18n.under.development",defaultMessage:"Coming Soon"}))}}},attachment:{uploaderEvent:{onUploadBefore:function(e,t,n){s.yw.warning(o.formatMessage({id:"i18n.under.development",defaultMessage:"Coming Soon"}))}}},onChange:function(e){"function"==typeof c&&c(e.getHtml(),e.getMarkdown())}});l.current=e}return function(){l.current&&(l.current.destroy(),l.current=null)}}}),[]),(0,i.useEffect)((function(){l.current&&r!==l.current.getHtml()&&l.current.setContent(r||"")}),[r]),(0,U.jsx)(U.Fragment,{children:(0,U.jsx)("div",x()(x()({ref:a},u),{},{style:{height:"100%"}}))})},W=n(51042),G=n(60219),J=n(55287),N=n(17634),Q=function(){var e=(0,T.useIntl)(),t=(0,v.Z)().isDarkMode,n=(0,i.useState)(!1),r=O()(n,2),c=r[0],u=r[1],o=(0,i.useState)(""),l=O()(o,2),s=l[0],d=l[1],p=(0,i.useState)(""),m=O()(p,2),y=m[0],w=m[1],A=(0,i.useState)(""),j=O()(A,2),k=j[0],Z=j[1],S=(0,i.useRef)(!1),E=(0,R.u)((function(e){return e.currentOrg})),I=(0,P.j)((function(e){return e.currentKbase})),z=(0,C.v)((function(e){return e.currentCategory})),B=b((function(e){return{currentArticle:e.currentArticle,insertArticle:e.insertArticle,setCurrentArticle:e.setCurrentArticle,updateLocalArticle:e.updateArticle}})),X=B.currentArticle,D=B.insertArticle,Q=B.setCurrentArticle,Y=B.updateLocalArticle;(0,i.useEffect)((function(){(null==X?void 0:X.kbUid)===(null==I?void 0:I.uid)&&(d(null==X?void 0:X.title),w(null==X?void 0:X.contentHtml),Z(null==X?void 0:X.contentMarkdown))}),[X]);var $=function(){var t=g()(f()().mark((function t(){var n,r;return f()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log("create"),!S.current){t.next=4;break}return console.log("isLoading: 1",S.current),t.abrupt("return");case 4:return S.current=!0,M.ZP.loading(e.formatMessage({id:"creating"})),n={uid:null==X?void 0:X.uid,title:"new article",summary:"new article summary",contentHtml:"new article content",contentMarkdown:"new article content",type:a.bjp,tags:["tag1","tag2"],markdown:c,published:!1,categoryUid:null==z?void 0:z.uid,kbUid:null==I?void 0:I.uid,orgUid:null==E?void 0:E.uid},console.log("create articleObject",n),t.next=10,(0,h.tu)(n);case 10:r=t.sent,console.log("createArticle response",r),200===r.code?(M.ZP.destroy(),M.ZP.info(e.formatMessage({id:"create.success"})),D(r.data),Q(r.data)):(M.ZP.destroy(),M.ZP.error(r.message)),S.current=!1;case 14:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),_=function(){var t=g()(f()().mark((function t(){var n,r;return f()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log("save",s,y),""!==s&&""!==y){t.next=4;break}return M.ZP.error("标题或内容不能为空!"),t.abrupt("return");case 4:if(!S.current){t.next=7;break}return console.log("isLoading: 1",S.current),t.abrupt("return");case 7:return S.current=!0,M.ZP.loading(e.formatMessage({id:"updating"})),n={uid:null==X?void 0:X.uid,title:s,summary:null==X?void 0:X.summary,contentHtml:y,contentMarkdown:k,type:null==X?void 0:X.type,tags:["tag1","tag2"],markdown:null==X?void 0:X.markdown,published:null==X?void 0:X.published,categoryUid:null==X?void 0:X.categoryUid,kbUid:null==X?void 0:X.kbUid,orgUid:null==X?void 0:X.orgUid},console.log("update articleObject",n),t.next=13,(0,h.Xc)(n);case 13:r=t.sent,console.log("updateArticle response",r),200===r.code?(M.ZP.destroy(),M.ZP.info(e.formatMessage({id:"update.success"})),Y(r.data)):(M.ZP.destroy(),M.ZP.error(r.message)),S.current=!1;case 17:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,i.useEffect)((function(){var e=x()(x()({},X),{},{title:s,contentHtml:y,contentMarkdown:k});Y(e)}),[s,y,k]),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{children:(0,U.jsxs)(V.Z,{gap:10,style:{marginBottom:10,marginTop:5},children:[(0,U.jsx)(H.Z,{size:"large",placeholder:"title",value:s,style:{background:t?"#141414":"#f5f5f5"},onChange:function(e){console.log("title onChange:",e.target.value),d(e.target.value)}}),(0,U.jsx)(L.Z,{checkedChildren:"Markdown",unCheckedChildren:"Html",onChange:function(e){console.log("switch to ".concat(e)),u(e)},defaultValue:c}),(0,U.jsx)(q.ZP,{type:"primary",icon:(0,U.jsx)(W.Z,{}),onClick:$,children:"新建"}),(0,U.jsx)(q.ZP,{type:"default",icon:(0,U.jsx)(G.Z,{}),onClick:_,children:"保存"}),(0,U.jsx)(q.ZP,{type:"default",icon:(0,U.jsx)(J.Z,{}),onClick:function(){console.log("handlePreviewArticle",X),window.open("".concat((0,N.SV)(),"/article/").concat(null==I?void 0:I.uid,"/").concat(null==X?void 0:X.uid))},children:"预览"})]})}),c&&(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(F.ZP,{style:{height:"100%"},value:k,enablePreview:!0,onChange:function(e,t){console.log("markdown onChange value",e,t),Z(e),w(e)}})}),!c&&(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(K,{placeholder:"article content..",value:y,onChange:function(e,t){console.log("aiEditor onChange value",e,t),w(e),Z(t)}})})]})},Y=u.Z.Sider,$=u.Z.Content,_=function(){var e=(0,c.Z)(),t=e.leftSiderStyle,n=e.contentStyle;return(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(l.w,{children:(0,U.jsxs)(r.Z,{children:[(0,U.jsx)(s.ZP,{}),(0,U.jsxs)(u.Z,{children:[(0,U.jsx)(Y,{style:t,children:(0,U.jsx)(o.Z,{type:a.bjp})}),(0,U.jsx)(Y,{style:t,children:(0,U.jsx)(E,{})}),(0,U.jsx)(u.Z,{children:(0,U.jsx)($,{style:n,children:(0,U.jsx)(Q,{})})})]})]})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__ArticleData.231d7d17.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__ArticleData.231d7d17.async.js new file mode 100644 index 00000000..026feff4 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__ArticleData.231d7d17.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5957],{11475:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(1413),o=n(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 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"},l=n(89099),s=function(e,t){return o.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};var i=o.forwardRef(s)},55287:function(e,t,n){var r=n(1413),o=n(67294),a=n(5717),l=n(89099),s=function(e,t){return o.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a.Z}))},i=o.forwardRef(s);t.Z=i},64317:function(e,t,n){var r=n(1413),o=n(91),a=n(22270),l=n(67294),s=n(66758),i=n(29258),c=n(85893),u=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],p=function(e,t){var n=e.fieldProps,d=e.children,p=e.params,f=e.proFieldProps,g=e.mode,m=e.valueEnum,h=e.request,v=e.showSearch,x=e.options,y=(0,o.Z)(e,u),w=(0,l.useContext)(s.Z);return(0,c.jsx)(i.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,a.h)(m),request:h,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({options:x,mode:g,showSearch:v,getPopupContainer:w.getPopupContainer},n),ref:t,proFieldProps:f},y),{},{children:d}))},f=l.forwardRef((function(e,t){var n=e.fieldProps,u=e.children,p=e.params,f=e.proFieldProps,g=e.mode,m=e.valueEnum,h=e.request,v=e.options,x=(0,o.Z)(e,d),y=(0,r.Z)({options:v,mode:g||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),w=(0,l.useContext)(s.Z);return(0,c.jsx)(i.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,a.h)(m),request:h,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({getPopupContainer:w.getPopupContainer},y),ref:t,proFieldProps:f},x),{},{children:u}))})),g=l.forwardRef(p);g.SearchSelect=f,g.displayName="ProFormComponent",t.Z=g},5966:function(e,t,n){var r=n(97685),o=n(1413),a=n(91),l=n(21770),s=n(8232),i=n(55241),c=n(97435),u=n(67294),d=n(29258),p=n(85893),f=["fieldProps","proFieldProps"],g=["fieldProps","proFieldProps"],m="text",h=function(e){var t=(0,l.Z)(e.open||!1,{value:e.open,onChange:e.onOpenChange}),n=(0,r.Z)(t,2),a=n[0],c=n[1];return(0,p.jsx)(s.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(t){var n,r=t.getFieldValue(e.name||[]);return(0,p.jsx)(i.Z,(0,o.Z)((0,o.Z)({getPopupContainer:function(e){return e&&e.parentNode?e.parentNode:e},onOpenChange:function(e){return c(e)},content:(0,p.jsxs)("div",{style:{padding:"4px 0"},children:[null===(n=e.statusRender)||void 0===n?void 0:n.call(e,r),e.strengthText?(0,p.jsx)("div",{style:{marginTop:10},children:(0,p.jsx)("span",{children:e.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},e.popoverProps),{},{open:a,children:e.children}))}})},v=function(e){var t=e.fieldProps,n=e.proFieldProps,r=(0,a.Z)(e,f);return(0,p.jsx)(d.Z,(0,o.Z)({valueType:m,fieldProps:t,filedConfig:{valueType:m},proFieldProps:n},r))};v.Password=function(e){var t=e.fieldProps,n=e.proFieldProps,l=(0,a.Z)(e,g),s=(0,u.useState)(!1),i=(0,r.Z)(s,2),f=i[0],v=i[1];return null!=t&&t.statusRender&&l.name?(0,p.jsx)(h,{name:l.name,statusRender:null==t?void 0:t.statusRender,popoverProps:null==t?void 0:t.popoverProps,strengthText:null==t?void 0:t.strengthText,open:f,onOpenChange:v,children:(0,p.jsx)("div",{children:(0,p.jsx)(d.Z,(0,o.Z)({valueType:"password",fieldProps:(0,o.Z)((0,o.Z)({},(0,c.Z)(t,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(e){var n;null==t||null===(n=t.onBlur)||void 0===n||n.call(t,e),v(!1)},onClick:function(e){var n;null==t||null===(n=t.onClick)||void 0===n||n.call(t,e),v(!0)}}),proFieldProps:n,filedConfig:{valueType:m}},l))})}):(0,p.jsx)(d.Z,(0,o.Z)({valueType:"password",fieldProps:t,proFieldProps:n,filedConfig:{valueType:m}},l))},v.displayName="ProFormComponent",t.Z=v},90672:function(e,t,n){var r=n(1413),o=n(91),a=n(67294),l=n(29258),s=n(85893),i=["fieldProps","proFieldProps"],c=function(e,t){var n=e.fieldProps,a=e.proFieldProps,c=(0,o.Z)(e,i);return(0,s.jsx)(l.Z,(0,r.Z)({ref:t,valueType:"textarea",fieldProps:n,proFieldProps:a},c))};t.Z=a.forwardRef(c)},85022:function(e,t,n){n.d(t,{Az:function(){return d},Xc:function(){return m},jX:function(){return v},tu:function(){return f}});var r=n(15009),o=n.n(r),a=n(97857),l=n.n(a),s=n(99289),i=n.n(s),c=n(85615),u=n(86745);function d(e){return p.apply(this,arguments)}function p(){return(p=i()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/article/query/org",{method:"GET",params:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return g.apply(this,arguments)}function g(){return(g=i()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/article/create",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return h.apply(this,arguments)}function h(){return(h=i()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/article/update",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){return x.apply(this,arguments)}function x(){return(x=i()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/article/delete",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},28765:function(e,t,n){n.r(t),n.d(t,{default:function(){return B}});var r=n(77154),o=n(21612),a=n(85615),l=n(52670),s=n(97857),i=n.n(s),c=n(13769),u=n.n(c),d=n(15009),p=n.n(d),f=n(99289),g=n.n(f),m=n(5574),h=n.n(m),v=n(80049),x=n(85022),y=n(87676),w=n(55287),Z=n(51042),j=n(74190),P=n(86738),b=n(14726),C=n(67294),M=n(89102),S=n(34994),F=n(64317),k=n(5966),T=n(90672),E=n(8232),O=n(85265),$=n(42075),q=n(85893),A=function(e){var t=e.isEdit,n=e.helpdoc,r=e.open,o=e.onClose,l=e.onSubmit,s=E.Z.useForm(),c=h()(s,1)[0],u=(0,y.u)((function(e){return e.currentOrg})),d=(0,M.v)((function(e){return e.categorySelectOptions}));(0,C.useEffect)((function(){t?c.setFieldsValue({type:null==n?void 0:n.type,title:null==n?void 0:n.title,content:null==n?void 0:n.contentHtml}):c.resetFields()}),[r]);return(0,q.jsx)(q.Fragment,{children:(0,q.jsx)(O.Z,{title:t?"修改":"新建",onClose:o,open:r,extra:(0,q.jsxs)($.Z,{children:[(0,q.jsx)(b.ZP,{onClick:o,children:"取消"}),(0,q.jsx)(b.ZP,{onClick:function(){console.log("handleSubmit"),c.validateFields().then((function(e){console.log(e),l(i()(i()(i()({},n),e),{},{orgUid:null==u?void 0:u.uid}))})).catch((function(e){console.log("Form errors:",e),v.yw.error("请检查表单填写")}))},type:"primary",children:"保存"})]}),children:(0,q.jsxs)(S.A,{form:c,initialValues:i()({},n),submitter:{render:function(){return null}},children:[(0,q.jsx)(F.Z,{label:"分类",name:"categoryUid",rules:[{required:!0,message:"请选择分类"}],options:d,fieldProps:{allowClear:!0,placeholder:"请选择分类",onChange:function(e){console.log("category selected ".concat(e))}}}),(0,q.jsx)(F.Z,{label:"类型",name:"type",rules:[{required:!0,message:"请选择类型"}],options:[{label:"文本",value:a.PYi},{label:"图片",value:a.Qm,disabled:!0},{label:"视频",value:a.tVi,disabled:!0},{label:"音频",value:a.Yu1,disabled:!0},{label:"文件",value:a.Qn,disabled:!0}],fieldProps:{allowClear:!0,placeholder:"请选择类型",onChange:function(e){console.log("type selected ".concat(e))}}}),(0,q.jsx)(k.Z,{label:"标题",name:"title",rules:[{required:!0,message:"请输入标题"}]}),(0,q.jsx)(T.Z,{label:"内容",name:"content"})]})})})},R=n(86745),I=n(38302),V=n(17634),N=["current"],G=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,q.jsx)(R.FormattedMessage,{id:"title",defaultMessage:"Title"}),dataIndex:"title",copyable:!0},{title:(0,q.jsx)(R.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",hideInSearch:!0},{title:(0,q.jsx)(R.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",hideInSearch:!0,width:180}],z=function(){var e=(0,R.useIntl)(),t=(0,C.useRef)(),n=(0,C.useState)(!0),r=h()(n,2),o=r[0],l=(r[1],(0,C.useState)()),s=h()(l,2),c=s[0],d=(s[1],(0,C.useState)(!1)),f=h()(d,2),m=f[0],S=f[1],F=(0,y.u)((function(e){return e.currentOrg})),k=(0,I.j)((function(e){return e.currentKbase})),T=(0,M.v)((function(e){return e.currentCategory})),E=function(){var n=g()(p()().mark((function n(r){var o;return p()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log(r),n.next=3,(0,x.jX)(r);case 3:o=n.sent,console.log("delete response:",o),200===o.code?(null==t||t.current.reload(),v.yw.success(e.formatMessage({id:"delete.success",defaultMessage:"Delete Success"}))):v.yw.error(e.formatMessage({id:"delete.error",defaultMessage:"Delete Error"}));case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),O=[].concat(G,[{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:150,render:function(t,n,r,o){return[(0,q.jsx)("a",{onClick:function(){D()},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"edit"),(0,q.jsx)("a",{onClick:function(){!function(e){console.log("handlePreviewArticle",e),window.open("".concat((0,V.SV)(),"/article/").concat(null==k?void 0:k.uid,"/").concat(null==e?void 0:e.uid))}(n)},children:e.formatMessage({id:"preview",defaultMessage:"Preview"})},"preview"),(0,q.jsx)(P.Z,{title:e.formatMessage({id:"deleteTip",defaultMessage:"Delete Tip"}),description:"".concat(e.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"【").concat(null==n?void 0:n.title,"】?"),onConfirm:function(){return E(n)},okText:e.formatMessage({id:"ok"}),cancelText:e.formatMessage({id:"cancel"}),children:(0,q.jsx)(b.ZP,{size:"small",type:"link",danger:!0,children:e.formatMessage({id:"delete",defaultMessage:"Delete"})})},"delete")]}}]),$=function(){var n=g()(p()().mark((function n(r){var a,l;return p()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(console.log("handleSubmitDrawer",r),o?v.yw.loading(e.formatMessage({id:"updating"})):v.yw.loading(e.formatMessage({id:"creating"})),!o){n.next=8;break}return n.next=5,(0,x.Xc)(r);case 5:n.t0=n.sent,n.next=11;break;case 8:return n.next=10,(0,x.tu)(r);case 10:n.t0=n.sent;case 11:a=n.t0,console.log("createArticle response:",r,a),200===a.code?(v.yw.destroy(),v.yw.loading(e.formatMessage({id:"create.success"})),S(!1),null===(l=t.current)||void 0===l||l.reloadAndRest()):(v.yw.destroy(),v.yw.error(a.message));case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();(0,C.useEffect)((function(){var e;null===(e=t.current)||void 0===e||e.reloadAndRest()}),[k,T]);var z=function(){console.log("handlePreviewKbase"),window.open("".concat((0,V.SV)(),"/kbase/").concat(null==k?void 0:k.uid))},D=function(){console.log("handleCreateArticle"),window.open("/admin/doceditor")},L=(0,C.useMemo)((function(){return(null==k?void 0:k.type)!==a.bjp||""===(null==k?void 0:k.uid)}),[k]);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(j.Z,{columns:O,actionRef:t,cardBordered:!0,request:function(){var t=g()(p()().mark((function t(n,r,o){var a,l,s;return p()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("request:",n,r,o),v.yw.loading(e.formatMessage({id:"loading",defaultMessage:"Loading"})),n.current,a=u()(n,N),l=i()({pageNumber:n.current-1,categoryUid:"all"===(null==T?void 0:T.uid)?"":null==T?void 0:T.uid,kbUid:null==k?void 0:k.uid,orgUid:null==F?void 0:F.uid},a),t.next=6,(0,x.Az)(l);case 6:return s=t.sent,console.log("getAllArticles response:",l,s),v.yw.destroy(),200===s.code||v.yw.error(s.message),t.abrupt("return",{data:s.data.content,success:!0,total:s.data.totalElements});case 11:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"帮助文档",toolBarRender:function(){return[(0,q.jsx)(b.ZP,{icon:(0,q.jsx)(w.Z,{}),type:"primary",onClick:z,disabled:L,children:e.formatMessage({id:"preview",defaultMessage:"Preview"})},"button"),(0,q.jsx)(b.ZP,{icon:(0,q.jsx)(Z.Z,{}),type:"primary",onClick:D,disabled:L,children:e.formatMessage({id:"create",defaultMessage:"Create"})},"button")]}}),(0,q.jsx)(A,{isEdit:o,open:m,helpdoc:c,onClose:function(){S(!1)},onSubmit:$})]})},D=o.Z.Sider,L=o.Z.Content,B=function(){var e=(0,r.Z)(),t=e.leftSiderStyle,n=e.contentStyle;return(0,q.jsx)("div",{children:(0,q.jsxs)(o.Z,{children:[(0,q.jsx)(D,{style:t,children:(0,q.jsx)(l.Z,{type:a.bjp})}),(0,q.jsx)(o.Z,{children:(0,q.jsx)(L,{style:n,children:(0,q.jsx)(z,{})})})]})})}},86250:function(e,t,n){n.d(t,{Z:function(){return P}});var r=n(67294),o=n(93967),a=n.n(o),l=n(98423),s=n(98065),i=n(53124),c=n(83559),u=n(83262);const d=["wrap","nowrap","wrap-reverse"],p=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],f=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var g=function(e,t){return a()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&d.includes(n)}})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return p.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))};const m=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},h=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},v=e=>{const{componentCls:t}=e,n={};return d.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},x=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},y=e=>{const{componentCls:t}=e,n={};return p.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n};var w=(0,c.I$)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=(0,u.IX)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[m(o),h(o),v(o),x(o),y(o)]}),(()=>({})),{resetStyle:!1}),Z=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,rootClassName:o,className:c,style:u,flex:d,gap:p,children:f,vertical:m=!1,component:h="div"}=e,v=Z(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:x,direction:y,getPrefixCls:j}=r.useContext(i.E_),P=j("flex",n),[b,C,M]=w(P),S=null!=m?m:null==x?void 0:x.vertical,F=a()(c,o,null==x?void 0:x.className,P,C,M,g(P,e),{[`${P}-rtl`]:"rtl"===y,[`${P}-gap-${p}`]:(0,s.n)(p),[`${P}-vertical`]:S}),k=Object.assign(Object.assign({},null==x?void 0:x.style),u);return d&&(k.flex=d),p&&!(0,s.n)(p)&&(k.gap=p),b(r.createElement(h,Object.assign({ref:t,className:F,style:k},(0,l.Z)(v,["justify","wrap","align"])),f))}));var P=j}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__ArticleData.b0f391f7.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__ArticleData.b0f391f7.async.js deleted file mode 100644 index 97e6712b..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__ArticleData.b0f391f7.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5957],{11475:function(X,A,e){e.d(A,{Z:function(){return D}});var p=e(1413),o=e(67294),g={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"},m=g,j=e(89099),P=function(i,W){return o.createElement(j.Z,(0,p.Z)((0,p.Z)({},i),{},{ref:W,icon:m}))},M=o.forwardRef(P),D=M},55287:function(X,A,e){var p=e(1413),o=e(67294),g=e(5717),m=e(89099),j=function(D,x){return o.createElement(m.Z,(0,p.Z)((0,p.Z)({},D),{},{ref:x,icon:g.Z}))},P=o.forwardRef(j);A.Z=P},64317:function(X,A,e){var p=e(1413),o=e(91),g=e(22270),m=e(67294),j=e(66758),P=e(24809),M=e(85893),D=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],x=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],i=function(f,h){var O=f.fieldProps,u=f.children,t=f.params,I=f.proFieldProps,C=f.mode,S=f.valueEnum,K=f.request,N=f.showSearch,b=f.options,n=(0,o.Z)(f,D),a=(0,m.useContext)(j.Z);return(0,M.jsx)(P.Z,(0,p.Z)((0,p.Z)({valueEnum:(0,g.h)(S),request:K,params:t,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,p.Z)({options:b,mode:C,showSearch:N,getPopupContainer:a.getPopupContainer},O),ref:h,proFieldProps:I},n),{},{children:u}))},W=m.forwardRef(function(d,f){var h=d.fieldProps,O=d.children,u=d.params,t=d.proFieldProps,I=d.mode,C=d.valueEnum,S=d.request,K=d.options,N=(0,o.Z)(d,x),b=(0,p.Z)({options:K,mode:I||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},h),n=(0,m.useContext)(j.Z);return(0,M.jsx)(P.Z,(0,p.Z)((0,p.Z)({valueEnum:(0,g.h)(C),request:S,params:u,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,p.Z)({getPopupContainer:n.getPopupContainer},b),ref:f,proFieldProps:t},N),{},{children:O}))}),R=m.forwardRef(i),U=W,T=R;T.SearchSelect=U,T.displayName="ProFormComponent",A.Z=T},5966:function(X,A,e){var p=e(97685),o=e(1413),g=e(91),m=e(21770),j=e(8232),P=e(55241),M=e(97435),D=e(67294),x=e(24809),i=e(85893),W=["fieldProps","proFieldProps"],R=["fieldProps","proFieldProps"],U="text",T=function(u){var t=u.fieldProps,I=u.proFieldProps,C=(0,g.Z)(u,W);return(0,i.jsx)(x.Z,(0,o.Z)({valueType:U,fieldProps:t,filedConfig:{valueType:U},proFieldProps:I},C))},d=function(u){var t=(0,m.Z)(u.open||!1,{value:u.open,onChange:u.onOpenChange}),I=(0,p.Z)(t,2),C=I[0],S=I[1];return(0,i.jsx)(j.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(N){var b,n=N.getFieldValue(u.name||[]);return(0,i.jsx)(P.Z,(0,o.Z)((0,o.Z)({getPopupContainer:function(r){return r&&r.parentNode?r.parentNode:r},onOpenChange:function(r){return S(r)},content:(0,i.jsxs)("div",{style:{padding:"4px 0"},children:[(b=u.statusRender)===null||b===void 0?void 0:b.call(u,n),u.strengthText?(0,i.jsx)("div",{style:{marginTop:10},children:(0,i.jsx)("span",{children:u.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},u.popoverProps),{},{open:C,children:u.children}))}})},f=function(u){var t=u.fieldProps,I=u.proFieldProps,C=(0,g.Z)(u,R),S=(0,D.useState)(!1),K=(0,p.Z)(S,2),N=K[0],b=K[1];return t!=null&&t.statusRender&&C.name?(0,i.jsx)(d,{name:C.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:b,children:(0,i.jsx)("div",{children:(0,i.jsx)(x.Z,(0,o.Z)({valueType:"password",fieldProps:(0,o.Z)((0,o.Z)({},(0,M.Z)(t,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(a){var r;t==null||(r=t.onBlur)===null||r===void 0||r.call(t,a),b(!1)},onClick:function(a){var r;t==null||(r=t.onClick)===null||r===void 0||r.call(t,a),b(!0)}}),proFieldProps:I,filedConfig:{valueType:U}},C))})}):(0,i.jsx)(x.Z,(0,o.Z)({valueType:"password",fieldProps:t,proFieldProps:I,filedConfig:{valueType:U}},C))},h=T;h.Password=f,h.displayName="ProFormComponent",A.Z=h},90672:function(X,A,e){var p=e(1413),o=e(91),g=e(67294),m=e(24809),j=e(85893),P=["fieldProps","proFieldProps"],M=function(x,i){var W=x.fieldProps,R=x.proFieldProps,U=(0,o.Z)(x,P);return(0,j.jsx)(m.Z,(0,p.Z)({ref:i,valueType:"textarea",fieldProps:W,proFieldProps:R},U))};A.Z=g.forwardRef(M)},85022:function(X,A,e){e.d(A,{Az:function(){return x},Xc:function(){return U},jX:function(){return d},tu:function(){return W}});var p=e(15009),o=e.n(p),g=e(97857),m=e.n(g),j=e(99289),P=e.n(j),M=e(85615),D=e(86745);function x(h){return i.apply(this,arguments)}function i(){return i=P()(o()().mark(function h(O){return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,D.request)("/api/v1/article/query/org",{method:"GET",params:m()(m()({},O),{},{client:M.bVn})}));case 1:case"end":return t.stop()}},h)})),i.apply(this,arguments)}function W(h){return R.apply(this,arguments)}function R(){return R=P()(o()().mark(function h(O){return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,D.request)("/api/v1/article/create",{method:"POST",data:m()(m()({},O),{},{client:M.bVn})}));case 1:case"end":return t.stop()}},h)})),R.apply(this,arguments)}function U(h){return T.apply(this,arguments)}function T(){return T=P()(o()().mark(function h(O){return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,D.request)("/api/v1/article/update",{method:"POST",data:m()(m()({},O),{},{client:M.bVn})}));case 1:case"end":return t.stop()}},h)})),T.apply(this,arguments)}function d(h){return f.apply(this,arguments)}function f(){return f=P()(o()().mark(function h(O){return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,D.request)("/api/v1/article/delete",{method:"POST",data:m()(m()({},O),{},{client:M.bVn})}));case 1:case"end":return t.stop()}},h)})),f.apply(this,arguments)}},28765:function(X,A,e){e.r(A),e.d(A,{default:function(){return fe}});var p=e(77154),o=e(21612),g=e(85615),m=e(52670),j=e(97857),P=e.n(j),M=e(13769),D=e.n(M),x=e(15009),i=e.n(x),W=e(99289),R=e.n(W),U=e(5574),T=e.n(U),d=e(80049),f=e(85022),h=e(87676),O=e(55287),u=e(51042),t=e(57482),I=e(86738),C=e(14726),S=e(67294),K=e(89102),N=e(34994),b=e(64317),n=e(5966),a=e(90672),r=e(8232),s=e(85265),Z=e(42075),l=e(85893),ae=function(c){var L=c.isEdit,_=c.helpdoc,re=c.open,k=c.onClose,Ee=c.onSubmit,ge=r.Z.useForm(),oe=T()(ge,1),q=oe[0],se=(0,h.u)(function(V){return V.currentOrg}),he=(0,K.v)(function(V){return V.categorySelectOptions});(0,S.useEffect)(function(){L?q.setFieldsValue({type:_==null?void 0:_.type,title:_==null?void 0:_.title,content:_==null?void 0:_.contentHtml}):q.resetFields()},[re]);var ie=function(v){console.log("category selected ".concat(v))},Pe=function(v){console.log("type selected ".concat(v))},ue=function(){console.log("handleSubmit"),q.validateFields().then(function(v){console.log(v),Ee(P()(P()(P()({},_),v),{},{orgUid:se==null?void 0:se.uid}))}).catch(function(v){console.log("Form errors:",v),d.yw.error("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199")})};return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(s.Z,{title:L?"\u4FEE\u6539":"\u65B0\u5EFA",onClose:k,open:re,extra:(0,l.jsxs)(Z.Z,{children:[(0,l.jsx)(C.ZP,{onClick:k,children:"\u53D6\u6D88"}),(0,l.jsx)(C.ZP,{onClick:ue,type:"primary",children:"\u4FDD\u5B58"})]}),children:(0,l.jsxs)(N.A,{form:q,initialValues:P()({},_),submitter:{render:function(){return null}},children:[(0,l.jsx)(b.Z,{label:"\u5206\u7C7B",name:"categoryUid",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u7C7B"}],options:he,fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5206\u7C7B",onChange:ie}}),(0,l.jsx)(b.Z,{label:"\u7C7B\u578B",name:"type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}],options:[{label:"\u6587\u672C",value:g.PYi},{label:"\u56FE\u7247",value:g.Qm,disabled:!0},{label:"\u89C6\u9891",value:g.tVi,disabled:!0},{label:"\u97F3\u9891",value:g.Yu1,disabled:!0},{label:"\u6587\u4EF6",value:g.Qn,disabled:!0}],fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B",onChange:Pe}}),(0,l.jsx)(n.Z,{label:"\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]}),(0,l.jsx)(a.Z,{label:"\u5185\u5BB9",name:"content"})]})})})},J=ae,Y=e(86745),ne=e(38302),de=["current"],ce=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,l.jsx)(Y.FormattedMessage,{id:"title",defaultMessage:"Title"}),dataIndex:"title",copyable:!0},{title:(0,l.jsx)(Y.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",hideInSearch:!0},{title:(0,l.jsx)(Y.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",hideInSearch:!0,width:180}],$=function(){var c=(0,Y.useIntl)(),L=(0,S.useRef)(),_=(0,S.useState)(!0),re=T()(_,2),k=re[0],Ee=re[1],ge=(0,S.useState)(),oe=T()(ge,2),q=oe[0],se=oe[1],he=(0,S.useState)(!1),ie=T()(he,2),Pe=ie[0],ue=ie[1],V=(0,h.u)(function(y){return y.currentOrg}),v=(0,ne.j)(function(y){return y.currentKbase}),Q=(0,K.v)(function(y){return y.currentCategory}),_e=function(F){console.log("handlePreviewArticle",F),window.open("".concat("","/article/").concat(v==null?void 0:v.uid,"/").concat(F==null?void 0:F.uid))},Me=function(){var y=R()(i()().mark(function F(E){var w;return i()().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return console.log(E),G.next=3,(0,f.jX)(E);case 3:w=G.sent,console.log("delete response:",w),w.code===200?(L==null||L.current.reload(),d.yw.success(c.formatMessage({id:"delete.success",defaultMessage:"Delete Success"}))):d.yw.error(c.formatMessage({id:"delete.error",defaultMessage:"Delete Error"}));case 6:case"end":return G.stop()}},F)}));return function(E){return y.apply(this,arguments)}}(),Oe=[].concat(ce,[{title:c.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:150,render:function(F,E,w,H){return[(0,l.jsx)("a",{onClick:function(){Ce()},children:c.formatMessage({id:"edit",defaultMessage:"Edit"})},"edit"),(0,l.jsx)("a",{onClick:function(){_e(E)},children:c.formatMessage({id:"preview",defaultMessage:"Preview"})},"preview"),(0,l.jsx)(I.Z,{title:c.formatMessage({id:"deleteTip",defaultMessage:"Delete Tip"}),description:"".concat(c.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"\u3010").concat(E==null?void 0:E.title,"\u3011\uFF1F"),onConfirm:function(){return Me(E)},okText:c.formatMessage({id:"ok"}),cancelText:c.formatMessage({id:"cancel"}),children:(0,l.jsx)(C.ZP,{size:"small",type:"link",danger:!0,children:c.formatMessage({id:"delete",defaultMessage:"Delete"})})},"delete")]}}]),je=function(){var y=R()(i()().mark(function F(E){var w,H;return i()().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(console.log("handleSubmitDrawer",E),k?d.yw.loading(c.formatMessage({id:"updating"})):d.yw.loading(c.formatMessage({id:"creating"})),!k){B.next=8;break}return B.next=5,(0,f.Xc)(E);case 5:B.t0=B.sent,B.next=11;break;case 8:return B.next=10,(0,f.tu)(E);case 10:B.t0=B.sent;case 11:w=B.t0,console.log("createArticle response:",E,w),w.code===200?(d.yw.destroy(),d.yw.loading(c.formatMessage({id:"create.success"})),ue(!1),(H=L.current)===null||H===void 0||H.reloadAndRest()):(d.yw.destroy(),d.yw.error(w.message));case 14:case"end":return B.stop()}},F)}));return function(E){return y.apply(this,arguments)}}(),De=function(){ue(!1)};(0,S.useEffect)(function(){var y;(y=L.current)===null||y===void 0||y.reloadAndRest()},[v,Q]);var Se=function(){console.log("handlePreviewKbase"),window.open("".concat("","/kbase/").concat(v==null?void 0:v.uid))},Ce=function(){console.log("handleCreateArticle"),window.open("/admin/doceditor")},xe=(0,S.useMemo)(function(){return(v==null?void 0:v.type)===g.bjp?(v==null?void 0:v.uid)==="":!0},[v]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t.Z,{columns:Oe,actionRef:L,cardBordered:!0,request:function(){var y=R()(i()().mark(function F(E,w,H){var G,B,ye,ee;return i()().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return console.log("request:",E,w,H),d.yw.loading(c.formatMessage({id:"loading",defaultMessage:"Loading"})),G=E.current,B=D()(E,de),ye=P()({pageNumber:E.current-1,categoryUid:(Q==null?void 0:Q.uid)==="all"?"":Q==null?void 0:Q.uid,kbUid:v==null?void 0:v.uid,orgUid:V==null?void 0:V.uid},B),te.next=6,(0,f.Az)(ye);case 6:return ee=te.sent,console.log("getAllArticles response:",ye,ee),d.yw.destroy(),ee.code===200||d.yw.error(ee.message),te.abrupt("return",{data:ee.data.content,success:!0,total:ee.data.totalElements});case 11:case"end":return te.stop()}},F)}));return function(F,E,w){return y.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(F){console.log("page:",F)}},dateFormatter:"string",headerTitle:"\u5E2E\u52A9\u6587\u6863",toolBarRender:function(){return[(0,l.jsx)(C.ZP,{icon:(0,l.jsx)(O.Z,{}),type:"primary",onClick:Se,disabled:xe,children:c.formatMessage({id:"preview",defaultMessage:"Preview"})},"button"),(0,l.jsx)(C.ZP,{icon:(0,l.jsx)(u.Z,{}),type:"primary",onClick:Ce,disabled:xe,children:c.formatMessage({id:"create",defaultMessage:"Create"})},"button")]}}),(0,l.jsx)(J,{isEdit:k,open:Pe,helpdoc:q,onClose:De,onSubmit:je})]})},pe=$,ve=o.Z.Sider,z=o.Z.Content,me=function(){var c=(0,p.Z)(),L=c.leftSiderStyle,_=c.contentStyle;return(0,l.jsx)("div",{children:(0,l.jsxs)(o.Z,{children:[(0,l.jsx)(ve,{style:L,children:(0,l.jsx)(m.Z,{type:g.bjp})}),(0,l.jsx)(o.Z,{children:(0,l.jsx)(z,{style:_,children:(0,l.jsx)(pe,{})})})]})})},fe=me},86250:function(X,A,e){e.d(A,{Z:function(){return b}});var p=e(67294),o=e(93967),g=e.n(o),m=e(98423),j=e(98065),P=e(53124),M=e(27036),D=e(45503);const x=["wrap","nowrap","wrap-reverse"],i=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],W=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],R=(n,a)=>{const r=a.wrap===!0?"wrap":a.wrap;return{[`${n}-wrap-${r}`]:r&&x.includes(r)}},U=(n,a)=>{const r={};return W.forEach(s=>{r[`${n}-align-${s}`]=a.align===s}),r[`${n}-align-stretch`]=!a.align&&!!a.vertical,r},T=(n,a)=>{const r={};return i.forEach(s=>{r[`${n}-justify-${s}`]=a.justify===s}),r};function d(n,a){return g()(Object.assign(Object.assign(Object.assign({},R(n,a)),U(n,a)),T(n,a)))}var f=d;const h=n=>{const{componentCls:a}=n;return{[a]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},O=n=>{const{componentCls:a}=n;return{[a]:{"&-gap-small":{gap:n.flexGapSM},"&-gap-middle":{gap:n.flexGap},"&-gap-large":{gap:n.flexGapLG}}}},u=n=>{const{componentCls:a}=n,r={};return x.forEach(s=>{r[`${a}-wrap-${s}`]={flexWrap:s}}),r},t=n=>{const{componentCls:a}=n,r={};return W.forEach(s=>{r[`${a}-align-${s}`]={alignItems:s}}),r},I=n=>{const{componentCls:a}=n,r={};return i.forEach(s=>{r[`${a}-justify-${s}`]={justifyContent:s}}),r},C=()=>({});var S=(0,M.I$)("Flex",n=>{const{paddingXS:a,padding:r,paddingLG:s}=n,Z=(0,D.TS)(n,{flexGapSM:a,flexGap:r,flexGapLG:s});return[h(Z),O(Z),u(Z),t(Z),I(Z)]},C,{resetStyle:!1}),K=function(n,a){var r={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&a.indexOf(s)<0&&(r[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,s=Object.getOwnPropertySymbols(n);Z{const{prefixCls:r,rootClassName:s,className:Z,style:l,flex:ae,gap:J,children:Y,vertical:ne=!1,component:de="div"}=n,ce=K(n,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:$,direction:pe,getPrefixCls:ve}=p.useContext(P.E_),z=ve("flex",r),[me,fe,le]=S(z),c=ne!=null?ne:$==null?void 0:$.vertical,L=g()(Z,s,$==null?void 0:$.className,z,fe,le,f(z,n),{[`${z}-rtl`]:pe==="rtl",[`${z}-gap-${J}`]:(0,j.n)(J),[`${z}-vertical`]:c}),_=Object.assign(Object.assign({},$==null?void 0:$.style),l);return ae&&(_.flex=ae),J&&!(0,j.n)(J)&&(_.gap=J),me(p.createElement(de,Object.assign({ref:a,className:L,style:_},(0,m.Z)(ce,["justify","wrap","align"])),Y))})}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__ArticleStatistic.6b172d59.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__ArticleStatistic.6b172d59.async.js deleted file mode 100644 index 0ee68252..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__ArticleStatistic.6b172d59.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6906],{88405:function(l,a,c){c.r(a);var n=c(85615),t=c(86745),s=c(85893),i=function(){var e=(0,t.useAccess)();return e.canDebug&&console.log("helpdoc canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(t.Access,{accessible:e.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(t.FormattedMessage,{id:n.h5w})}),children:"DocStatistic"})})})};a.default=i}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__ArticleStatistic.c9ab96d9.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__ArticleStatistic.c9ab96d9.async.js new file mode 100644 index 00000000..6dc8a864 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__ArticleStatistic.c9ab96d9.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6906],{88405:function(e,c,s){s.r(c);var n=s(85615),a=s(86745),i=s(85893);c.default=function(){var e=(0,a.useAccess)();return e.canDebug&&console.log("helpdoc canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(a.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.FormattedMessage,{id:n.h5w})}),children:"DocStatistic"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__index.59c26f13.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__index.59c26f13.async.js deleted file mode 100644 index 91e3711a..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__index.59c26f13.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8587],{10763:function(i,_,t){t.r(_);var l=t(77154),s=t(21612),o=t(67294),E=t(96974),a=t(85615),d=t(65383),n=t(85893),r=s.Z.Sider,D=s.Z.Content,M=function(){var e=(0,l.Z)(),O=e.leftSiderStyle,P=e.contentStyle;return(0,n.jsxs)(s.Z,{children:[(0,n.jsx)(r,{style:O,children:(0,n.jsx)(d.Z,{type:a.bjp})}),(0,n.jsx)(s.Z,{children:(0,n.jsx)(D,{style:P,children:(0,n.jsx)(E.j3,{})})})]})};_.default=M}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__index.bc59ee05.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__index.bc59ee05.async.js new file mode 100644 index 00000000..a1c8dcb9 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Article__index.bc59ee05.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8587],{10763:function(e,n,t){t.r(n);var s=t(77154),l=t(21612),r=(t(67294),t(96974)),i=t(85615),c=t(65383),d=t(85893),j=l.Z.Sider,u=l.Z.Content;n.default=function(){var e=(0,s.Z)(),n=e.leftSiderStyle,t=e.contentStyle;return(0,d.jsxs)(l.Z,{children:[(0,d.jsx)(j,{style:n,children:(0,d.jsx)(c.Z,{type:i.bjp})}),(0,d.jsx)(l.Z,{children:(0,d.jsx)(u,{style:t,children:(0,d.jsx)(r.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.3faba189.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.3faba189.async.js new file mode 100644 index 00000000..142f0140 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.3faba189.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6130],{69753:function(e,t,n){var r=n(1413),a=n(67294),o=n(49495),l=n(89099),i=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o.Z}))},s=a.forwardRef(i);t.Z=s},11475:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1413),a=n(67294),o={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"},l=n(89099),i=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var s=a.forwardRef(i)},58638:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},l=n(89099),i=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var s=a.forwardRef(i)},57546:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},l=n(89099),i=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var s=a.forwardRef(i)},64082:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},l=n(89099),i=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var s=a.forwardRef(i)},64317:function(e,t,n){var r=n(1413),a=n(91),o=n(22270),l=n(67294),i=n(66758),s=n(29258),c=n(85893),u=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],p=function(e,t){var n=e.fieldProps,d=e.children,p=e.params,f=e.proFieldProps,g=e.mode,m=e.valueEnum,v=e.request,h=e.showSearch,y=e.options,x=(0,a.Z)(e,u),w=(0,l.useContext)(i.Z);return(0,c.jsx)(s.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,o.h)(m),request:v,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({options:y,mode:g,showSearch:h,getPopupContainer:w.getPopupContainer},n),ref:t,proFieldProps:f},x),{},{children:d}))},f=l.forwardRef((function(e,t){var n=e.fieldProps,u=e.children,p=e.params,f=e.proFieldProps,g=e.mode,m=e.valueEnum,v=e.request,h=e.options,y=(0,a.Z)(e,d),x=(0,r.Z)({options:h,mode:g||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),w=(0,l.useContext)(i.Z);return(0,c.jsx)(s.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,o.h)(m),request:v,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({getPopupContainer:w.getPopupContainer},x),ref:t,proFieldProps:f},y),{},{children:u}))})),g=l.forwardRef(p);g.SearchSelect=f,g.displayName="ProFormComponent",t.Z=g},90672:function(e,t,n){var r=n(1413),a=n(91),o=n(67294),l=n(29258),i=n(85893),s=["fieldProps","proFieldProps"],c=function(e,t){var n=e.fieldProps,o=e.proFieldProps,c=(0,a.Z)(e,s);return(0,i.jsx)(l.Z,(0,r.Z)({ref:t,valueType:"textarea",fieldProps:n,proFieldProps:o},c))};t.Z=o.forwardRef(c)},36497:function(e,t,n){n.d(t,{O9:function(){return f},ZG:function(){return m},bN:function(){return h},p1:function(){return d}});var r=n(15009),a=n.n(r),o=n(97857),l=n.n(o),i=n(99289),s=n.n(i),c=n(85615),u=n(86745);function d(e){return p.apply(this,arguments)}function p(){return(p=s()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/autoreply/query/org",{method:"GET",params:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return g.apply(this,arguments)}function g(){return(g=s()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/autoreply/create",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return v.apply(this,arguments)}function v(){return(v=s()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/autoreply/update",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return y.apply(this,arguments)}function y(){return(y=s()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/autoreply/delete",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},68256:function(e,t,n){var r=n(97857),a=n.n(r),o=n(5574),l=n.n(o),i=n(85576),s=n(67294),c=n(64082),u=n(64121),d=n(27484),p=n.n(d),f=n(85615),g=n(80049),m=n(38302),v=n(89102),h=n(17634),y=n(85893),x=u.Z.Dragger;t.Z=function(e){var t=e.type,n=e.acceptType,r=e.isModalOpen,o=e.handleOk,u=e.handleCancel,d=(0,m.j)((function(e){return e.currentKbase})),w=(0,s.useState)((null==d?void 0:d.uid)||""),b=l()(w,2),Z=b[0],j=b[1],M=(0,v.v)((function(e){return e.currentCategory})),C=(0,s.useState)("当前支持上传pdf/txt/markdown/docx等"),S=l()(C,2),k=S[0],P=S[1],E=(0,s.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:t,category_uid:"all"===(null==M?void 0:M.uid)?"":(null==M?void 0:M.uid)||"",kb_uid:(null==d?void 0:d.uid)||"",client:f.bVn}),O=l()(E,2),_=O[0],F=O[1],V={name:"file",accept:n,action:(0,h.M$)(),headers:{Authorization:"Bearer "+localStorage.getItem(f.LA8)},data:_,showUploadList:!1,beforeUpload:function(e){console.log("beforeUpload before",e,Z,d);var n=p()(new Date).format("YYMMDDHHmmss")+"_"+e.name;_.file=e,_.file_name=n,_.file_type=e.type,_.kb_type=t,_.kb_uid=Z,console.log("beforeUpload after",_)},onChange:function(e){"uploading"===e.file.status&&g.yw.loading("".concat(e.file.name," 上传中")),"done"===e.file.status?(console.log("response: ",e.file.response),200===e.file.response.code?(g.yw.destroy(),g.yw.success("".concat(e.file.name," 上传成功")),o()):(g.yw.destroy(),g.yw.error("".concat(e.file.name," 上传失败")),u())):"error"===e.file.status&&(g.yw.error("".concat(e.file.name," 上传失败")),u())},onDrop:function(e){console.log("Dropped files",e.dataTransfer.files)}},U=(0,s.useState)(V),D=l()(U,2),T=D[0],$=D[1];return(0,s.useEffect)((function(){m.j.subscribe((function(e,t){var n,r;console.log("useKbaseStore changed:",null==e||null===(n=e.currentKbase)||void 0===n?void 0:n.uid),j(null==e||null===(r=e.currentKbase)||void 0===r?void 0:r.uid),$(V)}))}),[d]),(0,s.useEffect)((function(){t!=f.QPQ&&(V.accept="application/vnd.ms-excel",$(V),P("当前支持上传excel文件")),F(a()(a()({},_),{},{kb_type:t,category_uid:"all"===(null==M?void 0:M.uid)?"":null==M?void 0:M.uid})),$(V)}),[t,M]),(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(i.Z,{title:"上传文件",open:r,onOk:o,onCancel:u,children:(0,y.jsxs)(x,a()(a()({},T),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(c.Z,{})}),(0,y.jsx)("p",{className:"ant-upload-text",children:"点击或拖拽文件至此处实现上传"}),(0,y.jsx)("p",{className:"ant-upload-hint",children:k})]}))})})}},99967:function(e,t,n){n.r(t),n.d(t,{default:function(){return Q}});var r=n(77154),a=n(21612),o=n(52670),l=n(97857),i=n.n(l),s=n(13769),c=n.n(s),u=n(15009),d=n.n(u),p=n(99289),f=n.n(p),g=n(5574),m=n.n(g),v=n(80049),h=n(36497),y=n(87676),x=n(51042),w=n(57546),b=n(58638),Z=n(69753),j=n(74190),M=n(86738),C=n(14726),S=n(67294),k=n(89102),P=n(38302),E=n(85615),O=n(64082),_=n(34994),F=n(64317),V=n(90672),U=n(85265),D=n(42075),T=n(43940),$=n(27484),z=n.n($),L=n(85893),I=function(e){var t=e.isEdit,n=e.autoreply,r=e.open,a=e.onClose,o=e.onSubmit,l=_.A.useForm(),s=m()(l,1)[0],c=(0,y.u)((function(e){return e.currentOrg})),u=(0,P.j)((function(e){return e.currentKbase})),d=(0,k.v)((function(e){return e.categorySelectOptions})),p=(0,S.useState)(),f=m()(p,2),g=f[0],h=f[1],x=(0,S.useState)(E.PYi),w=m()(x,2),b=w[0],Z=w[1],j=(0,S.useState)(".png,.jpg,.jpeg"),M=m()(j,2),$=M[0],I=M[1],q=(0,S.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:"type",category_uid:"",kb_uid:(null==u?void 0:u.uid)||"",client:E.bVn}),N=m()(q,2),A=N[0];N[1];(0,S.useEffect)((function(){t?s.setFieldsValue({type:null==n?void 0:n.type,content:null==n?void 0:n.content,categoryUid:null==n?void 0:n.categoryUid,kbUid:null==u?void 0:u.uid}):s.resetFields()}),[r]);var R={name:"file",accept:$,action:"http://127.0.0.1:9003/api/v1/upload/file",headers:{Authorization:"Bearer "+localStorage.getItem(E.LA8)},data:A,showUploadList:!1,beforeUpload:function(e){console.log("beforeUpload",e);var t=z()(new Date).format("YYMMDDHHmmss")+"_"+e.name;A.file=e,A.file_name=t,A.file_type=e.type,A.kb_type=E.YjS,A.category_uid=g||"",A.kb_uid=null==u?void 0:u.uid,console.log("beforeUpload",A)},onChange:function(e){if("uploading"===e.file.status&&v.yw.loading("".concat(e.file.name," 上传中")),"done"===e.file.status)if(console.log("response: ",e.file.response),200===e.file.response.code){var t=e.file.response.data;s.setFieldValue("content",t),v.yw.destroy(),v.yw.success("".concat(e.file.name," 上传成功"))}else v.yw.destroy(),v.yw.error("".concat(e.file.name," 上传失败"));else"error"===e.file.status&&v.yw.error("".concat(e.file.name," 上传失败"))},onDrop:function(e){console.log("Dropped files",e.dataTransfer.files)}};return(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(U.Z,{title:t?"修改":"新建",onClose:a,open:r,extra:(0,L.jsxs)(D.Z,{children:[(0,L.jsx)(C.ZP,{onClick:a,children:"取消"}),(0,L.jsx)(C.ZP,{onClick:function(){console.log("handleSubmit"),s.validateFields().then((function(e){console.log(e),o(i()(i()(i()({},n),e),{},{kbUid:null==u?void 0:u.uid,orgUid:null==c?void 0:c.uid}))})).catch((function(e){console.log("Form errors:",e),v.yw.error("请检查表单填写")}))},type:"primary",children:"保存"})]}),children:(0,L.jsxs)(_.A,{form:s,initialValues:i()({},n),submitter:{render:function(){return null}},children:[(0,L.jsx)(F.Z,{label:"分类",name:"categoryUid",rules:[{required:!0,message:"请选择分类"}],options:d,fieldProps:{allowClear:!0,placeholder:"请选择分类",onChange:function(e){console.log("category selected ".concat(e)),h(e)}}}),(0,L.jsx)(F.Z,{label:"类型",name:"type",rules:[{required:!0,message:"请选择类型"}],options:[{label:"文本",value:E.PYi},{label:"图片",value:E.Qm},{label:"视频",value:E.tVi},{label:"音频",value:E.Yu1},{label:"文件",value:E.Qn}],fieldProps:{allowClear:!0,placeholder:"请选择类型",onChange:function(e){console.log("type selected ".concat(e)),Z(e),e===E.Qm?I(".png,.jpg,.jpeg,.gif,.bmp"):e===E.tVi?I(".mp4,.avi,.mov,.wmv"):e===E.Yu1?I(".mp3,.wav,.flac"):e===E.Qn&&I(".doc,.xls,.ppt,.pdf,.docx,.txt,.csv,.xlsx,.rtf,.zip,.7z,.tar,.gz,.rar,.iso")}}}),(0,L.jsx)(V.Z,{label:"内容",name:"content"}),b!=E.PYi&&(0,L.jsxs)(T.Z,i()(i()({},R),{},{children:[(0,L.jsx)("p",{className:"ant-upload-drag-icon",children:(0,L.jsx)(O.Z,{})}),(0,L.jsx)("p",{className:"ant-upload-text",children:"点击或拖拽上传文件"})]}))]})})})},q=n(73803),N=n(86745),A=n(68256),R=n(17634),G=["current"],H=function(){var e=(0,N.useIntl)(),t=(0,S.useRef)(),n=(0,S.useState)(!0),r=m()(n,2),a=r[0],o=r[1],l=(0,S.useState)(),s=m()(l,2),u=s[0],p=s[1],g=(0,S.useState)(!1),O=m()(g,2),_=O[0],F=O[1],V=(0,q.Z)().translateString,U=(0,y.u)((function(e){return e.currentOrg})),D=(0,P.j)((function(e){return e.currentKbase})),T=(0,k.v)((function(e){return e.currentCategory})),$=(0,S.useState)(!1),z=m()($,2),H=z[0],B=z[1],Y=function(){var n=f()(d()().mark((function n(r){var a,o;return d()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log(r),n.next=3,(0,h.bN)(r);case 3:a=n.sent,console.log("delete response:",a),200===a.code?(null==t||null===(o=t.current)||void 0===o||o.reload(),v.yw.success(e.formatMessage({id:"delete.success",defaultMessage:"Delete Success"}))):v.yw.error(e.formatMessage({id:"delete.error",defaultMessage:"Delete Error"}));case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),Q=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,L.jsx)(N.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",render:function(e,t){return V(null==t?void 0:t.content)}},{title:(0,L.jsx)(N.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",hideInSearch:!0,render:function(t,n){return(0,L.jsx)(L.Fragment,{children:e.formatMessage({id:null==n?void 0:n.type,defaultMessage:null==n?void 0:n.type})})}},{title:(0,L.jsx)(N.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0,width:180},{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:100,render:function(t,n,r,a){return[(0,L.jsx)("a",{onClick:function(){W(n)},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,L.jsx)(M.Z,{title:e.formatMessage({id:"deleteTip",defaultMessage:"Delete Tip"}),description:"".concat(e.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"【").concat(null==n?void 0:n.content,"】?"),onConfirm:function(){return Y(n)},okText:e.formatMessage({id:"ok"}),cancelText:e.formatMessage({id:"cancel"}),children:(0,L.jsx)(C.ZP,{size:"small",type:"link",danger:!0,children:e.formatMessage({id:"delete",defaultMessage:"Delete"})})},"delete")]}}],K=function(){p(void 0),o(!1),F(!0)},W=function(e){p(e),o(!0),F(!0)},X=function(){var n=f()(d()().mark((function n(r){var o,l;return d()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(console.log("handleSubmitDrawer",r),a?v.yw.loading(e.formatMessage({id:"updating"})):v.yw.loading(e.formatMessage({id:"creating"})),!a){n.next=8;break}return n.next=5,(0,h.ZG)(r);case 5:n.t0=n.sent,n.next=11;break;case 8:return n.next=10,(0,h.O9)(r);case 10:n.t0=n.sent;case 11:o=n.t0,console.log("createQuickreply response:",r,o),200===o.code?(v.yw.destroy(),v.yw.loading(e.formatMessage({id:"create.success"})),F(!1),null===(l=t.current)||void 0===l||l.reload()):(v.yw.destroy(),v.yw.error(o.message));case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),J=function(){var e=f()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:B(!0);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=function(){var e=f()(d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleExport"),t=localStorage.getItem(E.LA8),window.open((0,R.SV)()+"/api/v1/autoreply/export?categoryUid="+(null==T?void 0:T.uid)+"&kbUid="+(null==D?void 0:D.uid)+"&orgUid="+(null==U?void 0:U.uid)+"&pageNumber=0&pageSize=20&accessToken="+t);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,S.useEffect)((function(){var e;null===(e=t.current)||void 0===e||e.reload()}),[D,T]);var te=(0,S.useMemo)((function(){return(null==D?void 0:D.type)!==E.WvL||""===(null==D?void 0:D.uid)}),[D]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(j.Z,{columns:Q,actionRef:t,cardBordered:!0,request:function(){var t=f()(d()().mark((function t(n,r,a){var o,l,s,u,p;return d()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("request:",n,r,a),v.yw.loading(e.formatMessage({id:"loading",defaultMessage:"Loading"})),o=n.current,l=void 0===o?1:o,s=c()(n,G),u=i()({pageNumber:l-1,categoryUid:"all"===(null==T?void 0:T.uid)?"":null==T?void 0:T.uid,kbUid:null==D?void 0:D.uid,orgUid:null==U?void 0:U.uid},s),t.next=6,(0,h.p1)(u);case 6:return p=t.sent,console.log("queryAutoReplysByOrg response:",u,p),v.yw.destroy(),200===p.code||v.yw.error(p.message),t.abrupt("return",{data:p.data.content,success:!0,total:p.data.totalElements});case 11:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"快捷回复",toolBarRender:function(){return[(0,L.jsx)(C.ZP,{icon:(0,L.jsx)(x.Z,{}),type:"primary",onClick:K,disabled:te,children:e.formatMessage({id:"create",defaultMessage:"Create"})},"button"),(0,L.jsx)(C.ZP,{icon:(0,L.jsx)(w.Z,{}),type:"primary",onClick:J,disabled:te,children:e.formatMessage({id:"import",defaultMessage:"Import"})},"button"),(0,L.jsx)(C.ZP,{icon:(0,L.jsx)(b.Z,{}),type:"primary",onClick:ee,disabled:te,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button"),(0,L.jsx)(C.ZP,{icon:(0,L.jsx)(Z.Z,{}),type:"link",onClick:function(){window.open("https://www.weiyuai.cn/download/excel/auto_reply.xlsx")},children:e.formatMessage({id:"download.template",defaultMessage:"Download Template"})},"download")]}}),(0,L.jsx)(I,{isEdit:a,open:_,autoreply:u,onClose:function(){return F(!1)},onSubmit:X}),(0,L.jsx)(A.Z,{type:E.WvL,acceptType:".xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",isModalOpen:H,handleOk:function(){var e;console.log("handleUploadDragSubmit"),B(!1),null==t||null===(e=t.current)||void 0===e||e.reload()},handleCancel:function(){var e;console.log("handleUploadDragCancel"),B(!1),null==t||null===(e=t.current)||void 0===e||e.reload()}})]})},B=a.Z.Sider,Y=a.Z.Content,Q=function(){var e=(0,r.Z)(),t=e.leftSiderStyle,n=e.contentStyle;return(0,L.jsx)("div",{children:(0,L.jsxs)(a.Z,{children:[(0,L.jsx)(B,{style:t,children:(0,L.jsx)(o.Z,{type:E.WvL})}),(0,L.jsx)(a.Z,{children:(0,L.jsx)(Y,{style:n,children:(0,L.jsx)(H,{})})})]})})}},86250:function(e,t,n){n.d(t,{Z:function(){return j}});var r=n(67294),a=n(93967),o=n.n(a),l=n(98423),i=n(98065),s=n(53124),c=n(83559),u=n(83262);const d=["wrap","nowrap","wrap-reverse"],p=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],f=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var g=function(e,t){return o()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&d.includes(n)}})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return p.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))};const m=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},v=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},h=e=>{const{componentCls:t}=e,n={};return d.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},y=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},x=e=>{const{componentCls:t}=e,n={};return p.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n};var w=(0,c.I$)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,a=(0,u.IX)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[m(a),v(a),h(a),y(a),x(a)]}),(()=>({})),{resetStyle:!1}),b=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,rootClassName:a,className:c,style:u,flex:d,gap:p,children:f,vertical:m=!1,component:v="div"}=e,h=b(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:y,direction:x,getPrefixCls:Z}=r.useContext(s.E_),j=Z("flex",n),[M,C,S]=w(j),k=null!=m?m:null==y?void 0:y.vertical,P=o()(c,a,null==y?void 0:y.className,j,C,S,g(j,e),{[`${j}-rtl`]:"rtl"===x,[`${j}-gap-${p}`]:(0,i.n)(p),[`${j}-vertical`]:k}),E=Object.assign(Object.assign({},null==y?void 0:y.style),u);return d&&(E.flex=d),p&&!(0,i.n)(p)&&(E.gap=p),M(r.createElement(v,Object.assign({ref:t,className:P,style:E},(0,l.Z)(h,["justify","wrap","align"])),f))}));var j=Z}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.b8516a76.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.b8516a76.async.js deleted file mode 100644 index a3aa5b21..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyData.b8516a76.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6130],{69753:function(Q,b,e){var i=e(1413),l=e(67294),P=e(49495),f=e(89099),g=function(C,y){return l.createElement(f.Z,(0,i.Z)((0,i.Z)({},C),{},{ref:y,icon:P.Z}))},h=l.forwardRef(g);b.Z=h},11475:function(Q,b,e){e.d(b,{Z:function(){return C}});var i=e(1413),l=e(67294),P={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"},f=P,g=e(89099),h=function(M,_){return l.createElement(g.Z,(0,i.Z)((0,i.Z)({},M),{},{ref:_,icon:f}))},O=l.forwardRef(h),C=O},58638:function(Q,b,e){e.d(b,{Z:function(){return C}});var i=e(1413),l=e(67294),P={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},f=P,g=e(89099),h=function(M,_){return l.createElement(g.Z,(0,i.Z)((0,i.Z)({},M),{},{ref:_,icon:f}))},O=l.forwardRef(h),C=O},57546:function(Q,b,e){e.d(b,{Z:function(){return C}});var i=e(1413),l=e(67294),P={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},f=P,g=e(89099),h=function(M,_){return l.createElement(g.Z,(0,i.Z)((0,i.Z)({},M),{},{ref:_,icon:f}))},O=l.forwardRef(h),C=O},64082:function(Q,b,e){e.d(b,{Z:function(){return C}});var i=e(1413),l=e(67294),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},f=P,g=e(89099),h=function(M,_){return l.createElement(g.Z,(0,i.Z)((0,i.Z)({},M),{},{ref:_,icon:f}))},O=l.forwardRef(h),C=O},64317:function(Q,b,e){var i=e(1413),l=e(91),P=e(22270),f=e(67294),g=e(66758),h=e(24809),O=e(85893),C=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],y=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],M=function(j,T){var $=j.fieldProps,B=j.children,d=j.params,k=j.proFieldProps,q=j.mode,L=j.valueEnum,S=j.request,U=j.showSearch,c=j.options,a=(0,l.Z)(j,C),s=(0,f.useContext)(g.Z);return(0,O.jsx)(h.Z,(0,i.Z)((0,i.Z)({valueEnum:(0,P.h)(L),request:S,params:d,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,i.Z)({options:c,mode:q,showSearch:U,getPopupContainer:s.getPopupContainer},$),ref:T,proFieldProps:k},a),{},{children:B}))},_=f.forwardRef(function(E,j){var T=E.fieldProps,$=E.children,B=E.params,d=E.proFieldProps,k=E.mode,q=E.valueEnum,L=E.request,S=E.options,U=(0,l.Z)(E,y),c=(0,i.Z)({options:S,mode:k||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},T),a=(0,f.useContext)(g.Z);return(0,O.jsx)(h.Z,(0,i.Z)((0,i.Z)({valueEnum:(0,P.h)(q),request:L,params:B,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,i.Z)({getPopupContainer:a.getPopupContainer},c),ref:j,proFieldProps:d},U),{},{children:$}))}),A=f.forwardRef(M),F=_,u=A;u.SearchSelect=F,u.displayName="ProFormComponent",b.Z=u},90672:function(Q,b,e){var i=e(1413),l=e(91),P=e(67294),f=e(24809),g=e(85893),h=["fieldProps","proFieldProps"],O=function(y,M){var _=y.fieldProps,A=y.proFieldProps,F=(0,l.Z)(y,h);return(0,g.jsx)(f.Z,(0,i.Z)({ref:M,valueType:"textarea",fieldProps:_,proFieldProps:A},F))};b.Z=P.forwardRef(O)},36497:function(Q,b,e){e.d(b,{O9:function(){return _},ZG:function(){return F},bN:function(){return E},p1:function(){return y}});var i=e(15009),l=e.n(i),P=e(97857),f=e.n(P),g=e(99289),h=e.n(g),O=e(85615),C=e(86745);function y(T){return M.apply(this,arguments)}function M(){return M=h()(l()().mark(function T($){return l()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,C.request)("/api/v1/autoreply/query/org",{method:"GET",params:f()(f()({},$),{},{client:O.bVn})}));case 1:case"end":return d.stop()}},T)})),M.apply(this,arguments)}function _(T){return A.apply(this,arguments)}function A(){return A=h()(l()().mark(function T($){return l()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,C.request)("/api/v1/autoreply/create",{method:"POST",data:f()(f()({},$),{},{client:O.bVn})}));case 1:case"end":return d.stop()}},T)})),A.apply(this,arguments)}function F(T){return u.apply(this,arguments)}function u(){return u=h()(l()().mark(function T($){return l()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,C.request)("/api/v1/autoreply/update",{method:"POST",data:f()(f()({},$),{},{client:O.bVn})}));case 1:case"end":return d.stop()}},T)})),u.apply(this,arguments)}function E(T){return j.apply(this,arguments)}function j(){return j=h()(l()().mark(function T($){return l()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,C.request)("/api/v1/autoreply/delete",{method:"POST",data:f()(f()({},$),{},{client:O.bVn})}));case 1:case"end":return d.stop()}},T)})),j.apply(this,arguments)}},68256:function(Q,b,e){var i=e(97857),l=e.n(i),P=e(5574),f=e.n(P),g=e(85576),h=e(67294),O=e(64082),C=e(64121),y=e(27484),M=e.n(y),_=e(85615),A=e(80049),F=e(38302),u=e(89102),E=e(85893),j=C.Z.Dragger,T=function(B){var d=B.type,k=B.acceptType,q=B.isModalOpen,L=B.handleOk,S=B.handleCancel,U=(0,F.j)(function(G){return G.currentKbase}),c=(0,u.v)(function(G){return G.currentCategory}),a=(0,h.useState)("\u5F53\u524D\u652F\u6301\u4E0A\u4F20pdf/txt/markdown/docx\u7B49"),s=f()(a,2),v=s[0],p=s[1],Z=(0,h.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:d,category_uid:(c==null?void 0:c.uid)==="all"?"":(c==null?void 0:c.uid)||"",kb_uid:(U==null?void 0:U.uid)||"",client:_.bVn}),se=f()(Z,2),z=se[0],ee=se[1],ve=function(m){var te=M()(new Date).format("YYYYMMDDHHmmss")+"_"+m.name,Y=new FormData;Y.append("file",m),Y.append("file_name",te),Y.append("file_type",m.type),Y.append("is_avatar","false"),Y.append("kb_type",d),Y.append("category_uid",(c==null?void 0:c.uid)==="all"?"":(c==null?void 0:c.uid)||""),Y.append("kb_uid",(U==null?void 0:U.uid)||""),Y.append("client",_.bVn),fetch("/api/v1/upload/file",{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(_.LA8)},body:Y}).then(function(ne){return ne.json()}).then(function(ne){console.log("upload data:",ne),ne.code===200?(A.yw.destroy(),A.yw.success("".concat(te," \u4E0A\u4F20\u6210\u529F")),L()):(A.yw.destroy(),A.yw.error("".concat(te," \u4E0A\u4F20\u5931\u8D25")),S())})},J={name:"file",accept:k,action:"/api/v1/upload/file",headers:{Authorization:"Bearer "+localStorage.getItem(_.LA8)},data:z,showUploadList:!1,beforeUpload:function(m){console.log("beforeUpload",m);var te=M()(new Date).format("YYMMDDHHmmss")+"_"+m.name;z.file=m,z.file_name=te,z.file_type=m.type,z.kb_type=d,z.category_uid=(c==null?void 0:c.uid)==="all"?"":c==null?void 0:c.uid,z.kb_uid=U==null?void 0:U.uid,console.log("beforeUpload",z)},onChange:function(m){m.file.status==="uploading"&&A.yw.loading("".concat(m.file.name," \u4E0A\u4F20\u4E2D")),m.file.status==="done"?(console.log("response: ",m.file.response),m.file.response.code===200?(A.yw.destroy(),A.yw.success("".concat(m.file.name," \u4E0A\u4F20\u6210\u529F")),L()):(A.yw.destroy(),A.yw.error("".concat(m.file.name," \u4E0A\u4F20\u5931\u8D25")),S())):m.file.status==="error"&&(A.yw.error("".concat(m.file.name," \u4E0A\u4F20\u5931\u8D25")),S())},onDrop:function(m){console.log("Dropped files",m.dataTransfer.files),ve(m.dataTransfer.files[0])}},n=(0,h.useState)(J),ie=f()(n,2),H=ie[0],me=ie[1];return(0,h.useEffect)(function(){d!=_.QPQ&&(J.accept="application/vnd.ms-excel",me(J),p("\u5F53\u524D\u652F\u6301\u4E0A\u4F20excel\u6587\u4EF6")),ee(l()(l()({},z),{},{kb_type:d,category_uid:(c==null?void 0:c.uid)==="all"?"":c==null?void 0:c.uid,kb_uid:U==null?void 0:U.uid}))},[d,c,U]),(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(g.Z,{title:"\u4E0A\u4F20\u6587\u4EF6",open:q,onOk:L,onCancel:S,children:(0,E.jsxs)(j,l()(l()({},H),{},{children:[(0,E.jsx)("p",{className:"ant-upload-drag-icon",children:(0,E.jsx)(O.Z,{})}),(0,E.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u81F3\u6B64\u5904\u5B9E\u73B0\u4E0A\u4F20"}),(0,E.jsx)("p",{className:"ant-upload-hint",children:v})]}))})})};b.Z=T},99967:function(Q,b,e){e.r(b),e.d(b,{default:function(){return $e}});var i=e(77154),l=e(21612),P=e(52670),f=e(97857),g=e.n(f),h=e(13769),O=e.n(h),C=e(15009),y=e.n(C),M=e(99289),_=e.n(M),A=e(5574),F=e.n(A),u=e(80049),E=e(36497),j=e(87676),T=e(51042),$=e(57546),B=e(58638),d=e(69753),k=e(57482),q=e(86738),L=e(14726),S=e(67294),U=e(89102),c=e(38302),a=e(85615),s=e(64082),v=e(34994),p=e(64317),Z=e(90672),se=e(85265),z=e(42075),ee=e(43940),ve=e(27484),J=e.n(ve),n=e(85893),ie=function(D){var w=D.isEdit,V=D.autoreply,ye=D.open,ue=D.onClose,Ee=D.onSubmit,be=v.A.useForm(),De=F()(be,1),re=De[0],de=(0,j.u)(function(r){return r.currentOrg}),W=(0,c.j)(function(r){return r.currentKbase}),xe=(0,U.v)(function(r){return r.categorySelectOptions}),Ae=(0,S.useState)(),le=F()(Ae,2),Oe=le[0],Te=le[1],oe=(0,S.useState)(a.PYi),K=F()(oe,2),N=K[0],Ue=K[1],Pe=(0,S.useState)(".png,.jpg,.jpeg"),Ce=F()(Pe,2),he=Ce[0],ce=Ce[1],Ie=(0,S.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:"type",category_uid:"",kb_uid:(W==null?void 0:W.uid)||"",client:a.bVn}),Me=F()(Ie,2),X=Me[0],We=Me[1];(0,S.useEffect)(function(){w?re.setFieldsValue({type:V==null?void 0:V.type,content:V==null?void 0:V.content,categoryUid:V==null?void 0:V.categoryUid,kbUid:W==null?void 0:W.uid}):re.resetFields()},[ye]);var Re=function(t){console.log("category selected ".concat(t)),Te(t)},Fe=function(t){console.log("type selected ".concat(t)),Ue(t),t===a.Qm?ce(".png,.jpg,.jpeg,.gif,.bmp"):t===a.tVi?ce(".mp4,.avi,.mov,.wmv"):t===a.Yu1?ce(".mp3,.wav,.flac"):t===a.Qn&&ce(".doc,.xls,.ppt,.pdf,.docx,.txt,.csv,.xlsx,.rtf,.zip,.7z,.tar,.gz,.rar,.iso")},Ze=function(){console.log("handleSubmit"),re.validateFields().then(function(t){console.log(t),Ee(g()(g()(g()({},V),t),{},{kbUid:W==null?void 0:W.uid,orgUid:de==null?void 0:de.uid}))}).catch(function(t){console.log("Form errors:",t),u.yw.error("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199")})},Be=function(t){var o=J()(new Date).format("YYYYMMDDHHmmss")+"_"+t.name,x=new FormData;x.append("file",t),x.append("file_name",o),x.append("file_type",t.type),x.append("is_avatar","false"),x.append("kb_type",a.YjS),x.append("category_uid",Oe||""),x.append("kb_uid",(W==null?void 0:W.uid)||""),x.append("client",a.bVn),fetch("/api/v1/upload/file",{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(a.LA8)},body:x}).then(function(R){return R.json()}).then(function(R){if(console.log("upload data:",R),R.code===200){var ae=R.data;re.setFieldValue("content",ae),u.yw.destroy(),u.yw.success("".concat(o," \u4E0A\u4F20\u6210\u529F"))}else u.yw.destroy(),u.yw.error("".concat(o," \u4E0A\u4F20\u5931\u8D25"))})},_e={name:"file",accept:he,action:"/api/v1/upload/file",headers:{Authorization:"Bearer "+localStorage.getItem(a.LA8)},data:X,showUploadList:!1,beforeUpload:function(t){console.log("beforeUpload",t);var o=J()(new Date).format("YYMMDDHHmmss")+"_"+t.name;X.file=t,X.file_name=o,X.file_type=t.type,X.kb_type=a.YjS,X.category_uid=Oe||"",X.kb_uid=W==null?void 0:W.uid,console.log("beforeUpload",X)},onChange:function(t){if(t.file.status==="uploading"&&u.yw.loading("".concat(t.file.name," \u4E0A\u4F20\u4E2D")),t.file.status==="done")if(console.log("response: ",t.file.response),t.file.response.code===200){var o=t.file.response.data;re.setFieldValue("content",o),u.yw.destroy(),u.yw.success("".concat(t.file.name," \u4E0A\u4F20\u6210\u529F"))}else u.yw.destroy(),u.yw.error("".concat(t.file.name," \u4E0A\u4F20\u5931\u8D25"));else t.file.status==="error"&&u.yw.error("".concat(t.file.name," \u4E0A\u4F20\u5931\u8D25"))},onDrop:function(t){console.log("Dropped files",t.dataTransfer.files),Be(t.dataTransfer.files[0])}};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(se.Z,{title:w?"\u4FEE\u6539":"\u65B0\u5EFA",onClose:ue,open:ye,extra:(0,n.jsxs)(z.Z,{children:[(0,n.jsx)(L.ZP,{onClick:ue,children:"\u53D6\u6D88"}),(0,n.jsx)(L.ZP,{onClick:Ze,type:"primary",children:"\u4FDD\u5B58"})]}),children:(0,n.jsxs)(v.A,{form:re,initialValues:g()({},V),submitter:{render:function(){return null}},children:[(0,n.jsx)(p.Z,{label:"\u5206\u7C7B",name:"categoryUid",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u7C7B"}],options:xe,fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5206\u7C7B",onChange:Re}}),(0,n.jsx)(p.Z,{label:"\u7C7B\u578B",name:"type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}],options:[{label:"\u6587\u672C",value:a.PYi},{label:"\u56FE\u7247",value:a.Qm},{label:"\u89C6\u9891",value:a.tVi},{label:"\u97F3\u9891",value:a.Yu1},{label:"\u6587\u4EF6",value:a.Qn}],fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B",onChange:Fe}}),(0,n.jsx)(Z.Z,{label:"\u5185\u5BB9",name:"content"}),N!=a.PYi&&(0,n.jsxs)(ee.Z,g()(g()({},_e),{},{children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)(s.Z,{})}),(0,n.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u6587\u4EF6"})]}))]})})})},H=ie,me=e(73803),G=e(86745),m=e(68256),te=["current"],Y=function(){var D=(0,G.useIntl)(),w=(0,S.useRef)(),V=(0,S.useState)(!0),ye=F()(V,2),ue=ye[0],Ee=ye[1],be=(0,S.useState)(),De=F()(be,2),re=De[0],de=De[1],W=(0,S.useState)(!1),xe=F()(W,2),Ae=xe[0],le=xe[1],Oe=(0,me.Z)(),Te=Oe.translateString,oe=(0,j.u)(function(r){return r.currentOrg}),K=(0,c.j)(function(r){return r.currentKbase}),N=(0,U.v)(function(r){return r.currentCategory}),Ue=(0,S.useState)(!1),Pe=F()(Ue,2),Ce=Pe[0],he=Pe[1],ce=function(){var r=_()(y()().mark(function t(o){var x,R;return y()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return console.log(o),I.next=3,(0,E.bN)(o);case 3:x=I.sent,console.log("delete response:",x),x.code===200?(w==null||(R=w.current)===null||R===void 0||R.reload(),u.yw.success(D.formatMessage({id:"delete.success",defaultMessage:"Delete Success"}))):u.yw.error(D.formatMessage({id:"delete.error",defaultMessage:"Delete Error"}));case 6:case"end":return I.stop()}},t)}));return function(o){return r.apply(this,arguments)}}(),Ie=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,n.jsx)(G.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",render:function(t,o){return Te(o==null?void 0:o.content)}},{title:(0,n.jsx)(G.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",hideInSearch:!0,render:function(t,o){return(0,n.jsx)(n.Fragment,{children:D.formatMessage({id:o==null?void 0:o.type,defaultMessage:o==null?void 0:o.type})})}},{title:(0,n.jsx)(G.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0,width:180},{title:D.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:100,render:function(t,o,x,R){return[(0,n.jsx)("a",{onClick:function(){X(o)},children:D.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,n.jsx)(q.Z,{title:D.formatMessage({id:"deleteTip",defaultMessage:"Delete Tip"}),description:"".concat(D.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"\u3010").concat(o==null?void 0:o.content,"\u3011\uFF1F"),onConfirm:function(){return ce(o)},okText:D.formatMessage({id:"ok"}),cancelText:D.formatMessage({id:"cancel"}),children:(0,n.jsx)(L.ZP,{size:"small",type:"link",danger:!0,children:D.formatMessage({id:"delete",defaultMessage:"Delete"})})},"delete")]}}],Me=function(){de(void 0),Ee(!1),le(!0)},X=function(t){de(t),Ee(!0),le(!0)},We=function(){var r=_()(y()().mark(function t(o){var x,R;return y()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(console.log("handleSubmitDrawer",o),ue?u.yw.loading(D.formatMessage({id:"updating"})):u.yw.loading(D.formatMessage({id:"creating"})),!ue){I.next=8;break}return I.next=5,(0,E.ZG)(o);case 5:I.t0=I.sent,I.next=11;break;case 8:return I.next=10,(0,E.O9)(o);case 10:I.t0=I.sent;case 11:x=I.t0,console.log("createQuickreply response:",o,x),x.code===200?(u.yw.destroy(),u.yw.loading(D.formatMessage({id:"create.success"})),le(!1),(R=w.current)===null||R===void 0||R.reload()):(u.yw.destroy(),u.yw.error(x.message));case 14:case"end":return I.stop()}},t)}));return function(o){return r.apply(this,arguments)}}(),Re=function(){var r=_()(y()().mark(function t(){return y()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:he(!0);case 1:case"end":return x.stop()}},t)}));return function(){return r.apply(this,arguments)}}(),Fe=function(){var r=_()(y()().mark(function t(){var o;return y()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:console.log("handleExport"),o=localStorage.getItem(a.LA8),window.open("/api/v1/autoreply/export?categoryUid="+(N==null?void 0:N.uid)+"&kbUid="+(K==null?void 0:K.uid)+"&orgUid="+(oe==null?void 0:oe.uid)+"&pageNumber=0&pageSize=20&accessToken="+o);case 3:case"end":return R.stop()}},t)}));return function(){return r.apply(this,arguments)}}();(0,S.useEffect)(function(){var r;(r=w.current)===null||r===void 0||r.reload()},[K,N]);var Ze=function(){var t;console.log("handleUploadDragSubmit"),he(!1),w==null||(t=w.current)===null||t===void 0||t.reload()},Be=function(){var t;console.log("handleUploadDragCancel"),he(!1),w==null||(t=w.current)===null||t===void 0||t.reload()},_e=(0,S.useMemo)(function(){return(K==null?void 0:K.type)===a.WvL?(K==null?void 0:K.uid)==="":!0},[K]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(k.Z,{columns:Ie,actionRef:w,cardBordered:!0,request:function(){var r=_()(y()().mark(function t(o,x,R){var ae,I,Ke,Le,pe;return y()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return console.log("request:",o,x,R),u.yw.loading(D.formatMessage({id:"loading",defaultMessage:"Loading"})),ae=o.current,I=ae===void 0?1:ae,Ke=O()(o,te),Le=g()({pageNumber:I-1,categoryUid:(N==null?void 0:N.uid)==="all"?"":N==null?void 0:N.uid,kbUid:K==null?void 0:K.uid,orgUid:oe==null?void 0:oe.uid},Ke),fe.next=6,(0,E.p1)(Le);case 6:return pe=fe.sent,console.log("queryAutoReplysByOrg response:",Le,pe),u.yw.destroy(),pe.code===200||u.yw.error(pe.message),fe.abrupt("return",{data:pe.data.content,success:!0,total:pe.data.totalElements});case 11:case"end":return fe.stop()}},t)}));return function(t,o,x){return r.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(t){console.log("page:",t)}},dateFormatter:"string",headerTitle:"\u5FEB\u6377\u56DE\u590D",toolBarRender:function(){return[(0,n.jsx)(L.ZP,{icon:(0,n.jsx)(T.Z,{}),type:"primary",onClick:Me,disabled:_e,children:D.formatMessage({id:"create",defaultMessage:"Create"})},"button"),(0,n.jsx)(L.ZP,{icon:(0,n.jsx)($.Z,{}),type:"primary",onClick:Re,disabled:_e,children:D.formatMessage({id:"import",defaultMessage:"Import"})},"button"),(0,n.jsx)(L.ZP,{icon:(0,n.jsx)(B.Z,{}),type:"primary",onClick:Fe,disabled:_e,children:D.formatMessage({id:"export",defaultMessage:"Export"})},"button"),(0,n.jsx)(L.ZP,{icon:(0,n.jsx)(d.Z,{}),type:"link",onClick:function(){window.open("https://www.weiyuai.cn/download/excel/auto_reply.xlsx")},children:D.formatMessage({id:"download.template",defaultMessage:"Download Template"})},"download")]}}),(0,n.jsx)(H,{isEdit:ue,open:Ae,autoreply:re,onClose:function(){return le(!1)},onSubmit:We}),(0,n.jsx)(m.Z,{type:a.WvL,acceptType:".xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",isModalOpen:Ce,handleOk:Ze,handleCancel:Be})]})},ne=Y,je=l.Z.Sider,Se=l.Z.Content,ge=function(){var D=(0,i.Z)(),w=D.leftSiderStyle,V=D.contentStyle;return(0,n.jsx)("div",{children:(0,n.jsxs)(l.Z,{children:[(0,n.jsx)(je,{style:w,children:(0,n.jsx)(P.Z,{type:a.WvL})}),(0,n.jsx)(l.Z,{children:(0,n.jsx)(Se,{style:V,children:(0,n.jsx)(ne,{})})})]})})},$e=ge},86250:function(Q,b,e){e.d(b,{Z:function(){return c}});var i=e(67294),l=e(93967),P=e.n(l),f=e(98423),g=e(98065),h=e(53124),O=e(27036),C=e(45503);const y=["wrap","nowrap","wrap-reverse"],M=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],_=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],A=(a,s)=>{const v=s.wrap===!0?"wrap":s.wrap;return{[`${a}-wrap-${v}`]:v&&y.includes(v)}},F=(a,s)=>{const v={};return _.forEach(p=>{v[`${a}-align-${p}`]=s.align===p}),v[`${a}-align-stretch`]=!s.align&&!!s.vertical,v},u=(a,s)=>{const v={};return M.forEach(p=>{v[`${a}-justify-${p}`]=s.justify===p}),v};function E(a,s){return P()(Object.assign(Object.assign(Object.assign({},A(a,s)),F(a,s)),u(a,s)))}var j=E;const T=a=>{const{componentCls:s}=a;return{[s]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},$=a=>{const{componentCls:s}=a;return{[s]:{"&-gap-small":{gap:a.flexGapSM},"&-gap-middle":{gap:a.flexGap},"&-gap-large":{gap:a.flexGapLG}}}},B=a=>{const{componentCls:s}=a,v={};return y.forEach(p=>{v[`${s}-wrap-${p}`]={flexWrap:p}}),v},d=a=>{const{componentCls:s}=a,v={};return _.forEach(p=>{v[`${s}-align-${p}`]={alignItems:p}}),v},k=a=>{const{componentCls:s}=a,v={};return M.forEach(p=>{v[`${s}-justify-${p}`]={justifyContent:p}}),v},q=()=>({});var L=(0,O.I$)("Flex",a=>{const{paddingXS:s,padding:v,paddingLG:p}=a,Z=(0,C.TS)(a,{flexGapSM:s,flexGap:v,flexGapLG:p});return[T(Z),$(Z),B(Z),d(Z),k(Z)]},q,{resetStyle:!1}),S=function(a,s){var v={};for(var p in a)Object.prototype.hasOwnProperty.call(a,p)&&s.indexOf(p)<0&&(v[p]=a[p]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,p=Object.getOwnPropertySymbols(a);Z{const{prefixCls:v,rootClassName:p,className:Z,style:se,flex:z,gap:ee,children:ve,vertical:J=!1,component:n="div"}=a,ie=S(a,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:H,direction:me,getPrefixCls:G}=i.useContext(h.E_),m=G("flex",v),[te,Y,ne]=L(m),je=J!=null?J:H==null?void 0:H.vertical,Se=P()(Z,p,H==null?void 0:H.className,m,Y,ne,j(m,a),{[`${m}-rtl`]:me==="rtl",[`${m}-gap-${ee}`]:(0,g.n)(ee),[`${m}-vertical`]:je}),ge=Object.assign(Object.assign({},H==null?void 0:H.style),se);return z&&(ge.flex=z),ee&&!(0,g.n)(ee)&&(ge.gap=ee),te(i.createElement(n,Object.assign({ref:s,className:Se,style:ge},(0,f.Z)(ie,["justify","wrap","align"])),ve))})}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyStatistic.78c581dc.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyStatistic.78c581dc.async.js deleted file mode 100644 index b0e5a30b..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyStatistic.78c581dc.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2930],{43508:function(l,a,t){t.r(a);var n=t(85615),e=t(86745),s=t(85893),i=function(){var c=(0,e.useAccess)();return c.canDebug&&console.log("TabAutoReplyReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(e.Access,{accessible:c.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(e.FormattedMessage,{id:n.h5w})}),children:"AutoReplyStatistic"})})})};a.default=i}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyStatistic.fbd40a3d.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyStatistic.fbd40a3d.async.js new file mode 100644 index 00000000..3074937d --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__AutoReplyStatistic.fbd40a3d.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2930],{43508:function(e,s,c){c.r(s);var a=c(85615),n=c(86745),i=c(85893);s.default=function(){var e=(0,n.useAccess)();return e.canDebug&&console.log("TabAutoReplyReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(n.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.FormattedMessage,{id:a.h5w})}),children:"AutoReplyStatistic"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__index.0cd7142d.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__index.0cd7142d.async.js deleted file mode 100644 index fb4fe859..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__index.0cd7142d.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6778],{1007:function(P,s,t){t.r(s);var l=t(77154),e=t(21612),i=t(67294),E=t(96974),a=t(85615),d=t(65383),n=t(85893),u=e.Z.Header,v=e.Z.Footer,r=e.Z.Sider,o=e.Z.Content,D=function(){var _=(0,l.Z)(),M=_.leftSiderStyle,O=_.contentStyle;return(0,n.jsxs)(e.Z,{children:[(0,n.jsx)(r,{style:M,children:(0,n.jsx)(d.Z,{type:a.WvL})}),(0,n.jsx)(e.Z,{children:(0,n.jsx)(o,{style:O,children:(0,n.jsx)(E.j3,{})})})]})};s.default=D}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__index.6a84cd6a.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__index.6a84cd6a.async.js new file mode 100644 index 00000000..5aa848f6 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__AutoReply__index.6a84cd6a.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6778],{1007:function(e,n,t){t.r(n);var r=t(77154),s=t(21612),l=(t(67294),t(96974)),i=t(85615),c=t(65383),d=t(85893),a=(s.Z.Header,s.Z.Footer,s.Z.Sider),u=s.Z.Content;n.default=function(){var e=(0,r.Z)(),n=e.leftSiderStyle,t=e.contentStyle;return(0,d.jsxs)(s.Z,{children:[(0,d.jsx)(a,{style:n,children:(0,d.jsx)(c.Z,{type:i.WvL})}),(0,d.jsx)(s.Z,{children:(0,d.jsx)(u,{style:t,children:(0,d.jsx)(l.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__FaqData.e4c74069.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__FaqData.e4c74069.async.js deleted file mode 100644 index 821d627d..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__FaqData.e4c74069.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[79],{69753:function(Q,b,e){var u=e(1413),s=e(67294),M=e(49495),i=e(89099),j=function(f,A){return s.createElement(i.Z,(0,u.Z)((0,u.Z)({},f),{},{ref:A,icon:M.Z}))},y=s.forwardRef(j);b.Z=y},11475:function(Q,b,e){e.d(b,{Z:function(){return f}});var u=e(1413),s=e(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 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"},i=M,j=e(89099),y=function(E,O){return s.createElement(j.Z,(0,u.Z)((0,u.Z)({},E),{},{ref:O,icon:i}))},P=s.forwardRef(y),f=P},58638:function(Q,b,e){e.d(b,{Z:function(){return f}});var u=e(1413),s=e(67294),M={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},i=M,j=e(89099),y=function(E,O){return s.createElement(j.Z,(0,u.Z)((0,u.Z)({},E),{},{ref:O,icon:i}))},P=s.forwardRef(y),f=P},57546:function(Q,b,e){e.d(b,{Z:function(){return f}});var u=e(1413),s=e(67294),M={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},i=M,j=e(89099),y=function(E,O){return s.createElement(j.Z,(0,u.Z)((0,u.Z)({},E),{},{ref:O,icon:i}))},P=s.forwardRef(y),f=P},64082:function(Q,b,e){e.d(b,{Z:function(){return f}});var u=e(1413),s=e(67294),M={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},i=M,j=e(89099),y=function(E,O){return s.createElement(j.Z,(0,u.Z)((0,u.Z)({},E),{},{ref:O,icon:i}))},P=s.forwardRef(y),f=P},64317:function(Q,b,e){var u=e(1413),s=e(91),M=e(22270),i=e(67294),j=e(66758),y=e(24809),P=e(85893),f=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],A=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],E=function(S,T){var W=S.fieldProps,Z=S.children,d=S.params,X=S.proFieldProps,K=S.mode,F=S.valueEnum,Y=S.request,C=S.showSearch,p=S.options,o=(0,s.Z)(S,f),a=(0,i.useContext)(j.Z);return(0,P.jsx)(y.Z,(0,u.Z)((0,u.Z)({valueEnum:(0,M.h)(F),request:Y,params:d,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,u.Z)({options:p,mode:K,showSearch:C,getPopupContainer:a.getPopupContainer},W),ref:T,proFieldProps:X},o),{},{children:Z}))},O=i.forwardRef(function(x,S){var T=x.fieldProps,W=x.children,Z=x.params,d=x.proFieldProps,X=x.mode,K=x.valueEnum,F=x.request,Y=x.options,C=(0,s.Z)(x,A),p=(0,u.Z)({options:Y,mode:X||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},T),o=(0,i.useContext)(j.Z);return(0,P.jsx)(y.Z,(0,u.Z)((0,u.Z)({valueEnum:(0,M.h)(K),request:F,params:Z,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,u.Z)({getPopupContainer:o.getPopupContainer},p),ref:S,proFieldProps:d},C),{},{children:W}))}),g=i.forwardRef(E),m=O,L=g;L.SearchSelect=m,L.displayName="ProFormComponent",b.Z=L},90672:function(Q,b,e){var u=e(1413),s=e(91),M=e(67294),i=e(24809),j=e(85893),y=["fieldProps","proFieldProps"],P=function(A,E){var O=A.fieldProps,g=A.proFieldProps,m=(0,s.Z)(A,y);return(0,j.jsx)(i.Z,(0,u.Z)({ref:E,valueType:"textarea",fieldProps:O,proFieldProps:g},m))};b.Z=M.forwardRef(P)},40401:function(Q,b,e){e.d(b,{Yg:function(){return x},kh:function(){return O},pf:function(){return A},y:function(){return m}});var u=e(15009),s=e.n(u),M=e(97857),i=e.n(M),j=e(99289),y=e.n(j),P=e(85615),f=e(86745);function A(T){return E.apply(this,arguments)}function E(){return E=y()(s()().mark(function T(W){return s()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,f.request)("/api/v1/faq/query/org",{method:"GET",params:i()(i()({},W),{},{client:P.bVn})}));case 1:case"end":return d.stop()}},T)})),E.apply(this,arguments)}function O(T){return g.apply(this,arguments)}function g(){return g=y()(s()().mark(function T(W){return s()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,f.request)("/api/v1/faq/create",{method:"POST",data:i()(i()({},W),{},{client:P.bVn})}));case 1:case"end":return d.stop()}},T)})),g.apply(this,arguments)}function m(T){return L.apply(this,arguments)}function L(){return L=y()(s()().mark(function T(W){return s()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,f.request)("/api/v1/faq/update",{method:"POST",data:i()(i()({},W),{},{client:P.bVn})}));case 1:case"end":return d.stop()}},T)})),L.apply(this,arguments)}function x(T){return S.apply(this,arguments)}function S(){return S=y()(s()().mark(function T(W){return s()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,f.request)("/api/v1/faq/delete",{method:"POST",data:i()(i()({},W),{},{client:P.bVn})}));case 1:case"end":return d.stop()}},T)})),S.apply(this,arguments)}},68256:function(Q,b,e){var u=e(97857),s=e.n(u),M=e(5574),i=e.n(M),j=e(85576),y=e(67294),P=e(64082),f=e(64121),A=e(27484),E=e.n(A),O=e(85615),g=e(80049),m=e(38302),L=e(89102),x=e(85893),S=f.Z.Dragger,T=function(Z){var d=Z.type,X=Z.acceptType,K=Z.isModalOpen,F=Z.handleOk,Y=Z.handleCancel,C=(0,m.j)(function(N){return N.currentKbase}),p=(0,L.v)(function(N){return N.currentCategory}),o=(0,y.useState)("\u5F53\u524D\u652F\u6301\u4E0A\u4F20pdf/txt/markdown/docx\u7B49"),a=i()(o,2),v=a[0],c=a[1],U=(0,y.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:d,category_uid:(p==null?void 0:p.uid)==="all"?"":(p==null?void 0:p.uid)||"",kb_uid:(C==null?void 0:C.uid)||"",client:O.bVn}),le=i()(U,2),z=le[0],k=le[1],fe=function(h){var ee=E()(new Date).format("YYYYMMDDHHmmss")+"_"+h.name,H=new FormData;H.append("file",h),H.append("file_name",ee),H.append("file_type",h.type),H.append("is_avatar","false"),H.append("kb_type",d),H.append("category_uid",(p==null?void 0:p.uid)==="all"?"":(p==null?void 0:p.uid)||""),H.append("kb_uid",(C==null?void 0:C.uid)||""),H.append("client",O.bVn),fetch("/api/v1/upload/file",{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(O.LA8)},body:H}).then(function(te){return te.json()}).then(function(te){console.log("upload data:",te),te.code===200?(g.yw.destroy(),g.yw.success("".concat(ee," \u4E0A\u4F20\u6210\u529F")),F()):(g.yw.destroy(),g.yw.error("".concat(ee," \u4E0A\u4F20\u5931\u8D25")),Y())})},q={name:"file",accept:X,action:"/api/v1/upload/file",headers:{Authorization:"Bearer "+localStorage.getItem(O.LA8)},data:z,showUploadList:!1,beforeUpload:function(h){console.log("beforeUpload",h);var ee=E()(new Date).format("YYMMDDHHmmss")+"_"+h.name;z.file=h,z.file_name=ee,z.file_type=h.type,z.kb_type=d,z.category_uid=(p==null?void 0:p.uid)==="all"?"":p==null?void 0:p.uid,z.kb_uid=C==null?void 0:C.uid,console.log("beforeUpload",z)},onChange:function(h){h.file.status==="uploading"&&g.yw.loading("".concat(h.file.name," \u4E0A\u4F20\u4E2D")),h.file.status==="done"?(console.log("response: ",h.file.response),h.file.response.code===200?(g.yw.destroy(),g.yw.success("".concat(h.file.name," \u4E0A\u4F20\u6210\u529F")),F()):(g.yw.destroy(),g.yw.error("".concat(h.file.name," \u4E0A\u4F20\u5931\u8D25")),Y())):h.file.status==="error"&&(g.yw.error("".concat(h.file.name," \u4E0A\u4F20\u5931\u8D25")),Y())},onDrop:function(h){console.log("Dropped files",h.dataTransfer.files),fe(h.dataTransfer.files[0])}},me=(0,y.useState)(q),oe=i()(me,2),n=oe[0],ve=oe[1];return(0,y.useEffect)(function(){d!=O.QPQ&&(q.accept="application/vnd.ms-excel",ve(q),c("\u5F53\u524D\u652F\u6301\u4E0A\u4F20excel\u6587\u4EF6")),k(s()(s()({},z),{},{kb_type:d,category_uid:(p==null?void 0:p.uid)==="all"?"":p==null?void 0:p.uid,kb_uid:C==null?void 0:C.uid}))},[d,p,C]),(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(j.Z,{title:"\u4E0A\u4F20\u6587\u4EF6",open:K,onOk:F,onCancel:Y,children:(0,x.jsxs)(S,s()(s()({},n),{},{children:[(0,x.jsx)("p",{className:"ant-upload-drag-icon",children:(0,x.jsx)(P.Z,{})}),(0,x.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u81F3\u6B64\u5904\u5B9E\u73B0\u4E0A\u4F20"}),(0,x.jsx)("p",{className:"ant-upload-hint",children:v})]}))})})};b.Z=T},19177:function(Q,b,e){e.r(b),e.d(b,{default:function(){return Ve}});var u=e(77154),s=e(21612),M=e(97857),i=e.n(M),j=e(13769),y=e.n(j),P=e(15009),f=e.n(P),A=e(99289),E=e.n(A),O=e(5574),g=e.n(O),m=e(80049),L=e(40401),x=e(87676),S=e(51042),T=e(57546),W=e(58638),Z=e(69753),d=e(57482),X=e(86738),K=e(14726),F=e(67294),Y=e(89102),C=e(86745),p=e(73803),o=e(38302),a=e(85615),v=e(64082),c=e(34994),U=e(64317),le=e(5966),z=e(90672),k=e(85265),fe=e(42075),q=e(43940),me=e(27484),oe=e.n(me),n=e(85893),ve=function(_){var se=_.isEdit,I=_.faq,V=_.open,_e=_.onClose,De=_.onSubmit,he=c.A.useForm(),xe=g()(he,1),ae=xe[0],ie=(0,x.u)(function(l){return l.currentOrg}),B=(0,o.j)(function(l){return l.currentKbase}),Pe=(0,Y.v)(function(l){return l.categorySelectOptions}),Te=(0,F.useState)(),ye=g()(Te,2),Oe=ye[0],ue=ye[1],ne=(0,F.useState)(a.PYi),R=g()(ne,2),re=R[0],Ae=R[1],Ce=(0,F.useState)(".png,.jpg,.jpeg"),Me=g()(Ce,2),je=Me[0],de=Me[1],Ue=(0,F.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:"type",category_uid:"",kb_uid:(B==null?void 0:B.uid)||"",client:a.bVn}),be=g()(Ue,2),J=be[0],We=be[1];(0,F.useEffect)(function(){se?ae.setFieldsValue({type:I==null?void 0:I.type,title:I==null?void 0:I.title,content:I==null?void 0:I.content,categoryUid:I==null?void 0:I.categoryUid,kbUid:B==null?void 0:B.uid}):ae.resetFields()},[V]);var Ie=function(t){console.log("category selected ".concat(t)),ue(t)},Ze=function(t){console.log("type selected ".concat(t)),Ae(t),t===a.Qm?de(".png,.jpg,.jpeg,.gif,.bmp"):t===a.tVi?de(".mp4,.avi,.mov,.wmv"):t===a.Yu1?de(".mp3,.wav,.flac"):t===a.Qn&&de(".doc,.xls,.ppt,.pdf,.docx,.txt,.csv,.xlsx,.rtf,.zip,.7z,.tar,.gz,.rar,.iso")},Be=function(){console.log("handleSubmit"),ae.validateFields().then(function(t){console.log(t),De(i()(i()(i()({},I),t),{},{kbUid:B==null?void 0:B.uid,orgUid:ie==null?void 0:ie.uid}))}).catch(function(t){console.log("Form errors:",t),m.yw.error("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199")})},Re=function(t){var r=oe()(new Date).format("YYYYMMDDHHmmss")+"_"+t.name,D=new FormData;D.append("file",t),D.append("file_name",r),D.append("file_type",t.type),D.append("is_avatar","false"),D.append("kb_type",a.YjS),D.append("category_uid",Oe||""),D.append("kb_uid",(B==null?void 0:B.uid)||""),D.append("client",a.bVn),fetch("/api/v1/upload/file",{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(a.LA8)},body:D}).then(function(w){return w.json()}).then(function(w){if(console.log("upload data:",w),w.code===200){var G=w.data;ae.setFieldValue("content",G),m.yw.destroy(),m.yw.success("".concat(r," \u4E0A\u4F20\u6210\u529F"))}else m.yw.destroy(),m.yw.error("".concat(r," \u4E0A\u4F20\u5931\u8D25"))})},Ee={name:"file",action:"/api/v1/upload/file",headers:{Authorization:"Bearer "+localStorage.getItem(a.LA8)},data:J,showUploadList:!1,beforeUpload:function(t){console.log("beforeUpload",t);var r=oe()(new Date).format("YYMMDDHHmmss")+"_"+t.name;J.file=t,J.file_name=r,J.file_type=t.type,J.kb_type=a.YjS,J.category_uid=Oe||"",J.kb_uid=B==null?void 0:B.uid,console.log("beforeUpload",J)},onChange:function(t){if(t.file.status==="uploading"&&m.yw.loading("".concat(t.file.name," \u4E0A\u4F20\u4E2D")),t.file.status==="done")if(console.log("response: ",t.file.response),t.file.response.code===200){var r=t.file.response.data;ae.setFieldValue("content",r),m.yw.destroy(),m.yw.success("".concat(t.file.name," \u4E0A\u4F20\u6210\u529F"))}else m.yw.destroy(),m.yw.error("".concat(t.file.name," \u4E0A\u4F20\u5931\u8D25"));else t.file.status==="error"&&m.yw.error("".concat(t.file.name," \u4E0A\u4F20\u5931\u8D25"))},onDrop:function(t){console.log("Dropped files",t.dataTransfer.files),Re(t.dataTransfer.files[0])}};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(k.Z,{title:se?"\u4FEE\u6539":"\u65B0\u5EFA",onClose:_e,open:V,extra:(0,n.jsxs)(fe.Z,{children:[(0,n.jsx)(K.ZP,{onClick:_e,children:"\u53D6\u6D88"}),(0,n.jsx)(K.ZP,{onClick:Be,type:"primary",children:"\u4FDD\u5B58"})]}),children:(0,n.jsxs)(c.A,{form:ae,initialValues:i()({},I),submitter:{render:function(){return null}},children:[(0,n.jsx)(U.Z,{label:"\u5206\u7C7B",name:"categoryUid",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u7C7B"}],options:Pe,fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5206\u7C7B",onChange:Ie}}),(0,n.jsx)(U.Z,{label:"\u7C7B\u578B",name:"type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}],options:[{label:"\u6587\u672C",value:a.PYi},{label:"\u56FE\u7247",value:a.Qm},{label:"\u89C6\u9891",value:a.tVi},{label:"\u97F3\u9891",value:a.Yu1},{label:"\u6587\u4EF6",value:a.Qn}],fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B",onChange:Ze}}),(0,n.jsx)(le.Z,{label:"\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]}),(0,n.jsx)(z.Z,{label:"\u5185\u5BB9",name:"content"}),re!=a.PYi&&(0,n.jsxs)(q.Z,i()(i()({},Ee),{},{children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)(v.Z,{})}),(0,n.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u6587\u4EF6"})]}))]})})})},N=ve,h=e(68256),ee=["current"],H=function(){var _=(0,C.useIntl)(),se=(0,p.Z)(),I=se.translateStringTranct,V=(0,F.useRef)(),_e=(0,F.useState)(!0),De=g()(_e,2),he=De[0],xe=De[1],ae=(0,F.useState)(),ie=g()(ae,2),B=ie[0],Pe=ie[1],Te=(0,F.useState)(!1),ye=g()(Te,2),Oe=ye[0],ue=ye[1],ne=(0,x.u)(function(l){return l.currentOrg}),R=(0,o.j)(function(l){return l.currentKbase}),re=(0,Y.v)(function(l){return l.currentCategory}),Ae=(0,F.useState)(!1),Ce=g()(Ae,2),Me=Ce[0],je=Ce[1],de=function(){var l=E()(f()().mark(function t(r){var D;return f()().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return console.log(r),G.next=3,(0,L.Yg)(r);case 3:D=G.sent,console.log("delete response:",D),D.code===200?(V==null||V.current.reload(),m.yw.success(_.formatMessage({id:"delete.success",defaultMessage:"Delete Success"}))):m.yw.error(_.formatMessage({id:"delete.error",defaultMessage:"Delete Error"}));case 6:case"end":return G.stop()}},t)}));return function(r){return l.apply(this,arguments)}}(),Ue=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,n.jsx)(C.FormattedMessage,{id:"title",defaultMessage:"Title"}),dataIndex:"title",copyable:!0,render:function(t,r){return I(r==null?void 0:r.title)}},{title:(0,n.jsx)(C.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",render:function(t,r){return I(r==null?void 0:r.content)}},{title:(0,n.jsx)(C.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",hideInSearch:!0,render:function(t,r){return(0,n.jsx)(n.Fragment,{children:_.formatMessage({id:r==null?void 0:r.type,defaultMessage:r==null?void 0:r.type})})}},{title:(0,n.jsx)(C.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0,width:180},{title:_.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:100,render:function(t,r,D,w){return[(0,n.jsx)("a",{onClick:function(){J(r)},children:_.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,n.jsx)(X.Z,{title:_.formatMessage({id:"deleteTip",defaultMessage:"Delete Tip"}),description:"".concat(_.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"\u3010").concat(r==null?void 0:r.title,"\u3011\uFF1F"),onConfirm:function(){return de(r)},okText:_.formatMessage({id:"ok"}),cancelText:_.formatMessage({id:"cancel"}),children:(0,n.jsx)(K.ZP,{size:"small",type:"link",danger:!0,children:_.formatMessage({id:"delete",defaultMessage:"Delete"})})},"delete")]}}],be=function(){Pe(void 0),xe(!1),ue(!0)},J=function(t){Pe(t),xe(!0),ue(!0)},We=function(){var l=E()(f()().mark(function t(r){var D,w;return f()().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(console.log("handleSubmitDrawer",r),he?m.yw.loading(_.formatMessage({id:"updating"})):m.yw.loading(_.formatMessage({id:"creating"})),!he){$.next=8;break}return $.next=5,(0,L.y)(r);case 5:$.t0=$.sent,$.next=11;break;case 8:return $.next=10,(0,L.kh)(r);case 10:$.t0=$.sent;case 11:D=$.t0,console.log("createFaq response:",r,D),D.code===200?(m.yw.destroy(),m.yw.success(_.formatMessage({id:"create.success",defaultMessage:"create success"})),ue(!1),(w=V.current)===null||w===void 0||w.reloadAndRest()):(m.yw.destroy(),m.yw.error(D.message));case 14:case"end":return $.stop()}},t)}));return function(r){return l.apply(this,arguments)}}(),Ie=function(){var l=E()(f()().mark(function t(){return f()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:console.log("handleImport"),je(!0);case 2:case"end":return D.stop()}},t)}));return function(){return l.apply(this,arguments)}}(),Ze=function(){var l=E()(f()().mark(function t(){var r;return f()().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:console.log("handleExport"),r=localStorage.getItem(a.LA8),window.open("/api/v1/faq/export?categoryUid="+(re==null?void 0:re.uid)+"&kbUid="+(R==null?void 0:R.uid)+"&orgUid="+(ne==null?void 0:ne.uid)+"&pageNumber=0&pageSize=20&accessToken="+r);case 3:case"end":return w.stop()}},t)}));return function(){return l.apply(this,arguments)}}();(0,F.useEffect)(function(){var l;(l=V.current)===null||l===void 0||l.reloadAndRest()},[R,re]);var Be=function(){console.log("handleUploadDragSubmit"),je(!1),V==null||V.current.reload()},Re=function(){console.log("handleUploadDragCancel"),je(!1),V==null||V.current.reload()},Ee=(0,F.useMemo)(function(){return(R==null?void 0:R.type)===a.bE7?(R==null?void 0:R.uid)==="":!0},[R]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.Z,{columns:Ue,actionRef:V,cardBordered:!0,request:function(){var l=E()(f()().mark(function t(r,D,w){var G,$,we,ce;return f()().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return console.log("request:",r,D,w),m.yw.loading(_.formatMessage({id:"loading",defaultMessage:"Loading"})),G=r.current,$=y()(r,ee),we=i()({pageNumber:r.current-1,categoryUid:re.uid==="all"?"":re.uid,kbUid:R==null?void 0:R.uid,orgUid:ne==null?void 0:ne.uid},$),pe.next=6,(0,L.pf)(we);case 6:return ce=pe.sent,console.log("getAllFaqs response:",we,ce),m.yw.destroy(),ce.code===200||m.yw.error(ce.message),pe.abrupt("return",{data:ce.data.content,success:!0,total:ce.data.totalElements});case 11:case"end":return pe.stop()}},t)}));return function(t,r,D){return l.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(t){console.log("page:",t)}},dateFormatter:"string",headerTitle:"\u5E38\u89C1\u95EE\u9898/\u5FEB\u6377\u6309\u94AE/\u731C\u4F60\u76F8\u95EE/\u70ED\u95E8\u95EE\u9898/\u5FEB\u6377\u8DEF\u5F84",toolBarRender:function(){return[(0,n.jsx)(K.ZP,{icon:(0,n.jsx)(S.Z,{}),type:"primary",onClick:be,disabled:Ee,children:_.formatMessage({id:"create",defaultMessage:"Create"})},"button"),(0,n.jsx)(K.ZP,{icon:(0,n.jsx)(T.Z,{}),type:"primary",onClick:Ie,disabled:Ee,children:_.formatMessage({id:"import",defaultMessage:"Import"})},"button"),(0,n.jsx)(K.ZP,{icon:(0,n.jsx)(W.Z,{}),type:"primary",onClick:Ze,disabled:Ee,children:_.formatMessage({id:"export",defaultMessage:"Export"})},"button"),(0,n.jsx)(K.ZP,{icon:(0,n.jsx)(Z.Z,{}),type:"link",onClick:function(){window.open("https://www.weiyuai.cn/download/excel/faq.xlsx")},children:_.formatMessage({id:"download.template",defaultMessage:"Download Template"})},"download")]}}),(0,n.jsx)(N,{isEdit:he,open:Oe,faq:B,onClose:function(){return ue(!1)},onSubmit:We}),(0,n.jsx)(h.Z,{type:a.bE7,acceptType:".xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",isModalOpen:Me,handleOk:Be,handleCancel:Re})]})},te=H,Se=e(52670),Fe=s.Z.Sider,ge=s.Z.Content,Ke=function(){var _=(0,u.Z)(),se=_.leftSiderStyle,I=_.contentStyle;return(0,n.jsx)("div",{children:(0,n.jsxs)(s.Z,{children:[(0,n.jsx)(Fe,{style:se,children:(0,n.jsx)(Se.Z,{type:a.bE7})}),(0,n.jsx)(s.Z,{children:(0,n.jsx)(ge,{style:I,children:(0,n.jsx)(te,{})})})]})})},Ve=Ke},86250:function(Q,b,e){e.d(b,{Z:function(){return p}});var u=e(67294),s=e(93967),M=e.n(s),i=e(98423),j=e(98065),y=e(53124),P=e(27036),f=e(45503);const A=["wrap","nowrap","wrap-reverse"],E=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],O=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],g=(o,a)=>{const v=a.wrap===!0?"wrap":a.wrap;return{[`${o}-wrap-${v}`]:v&&A.includes(v)}},m=(o,a)=>{const v={};return O.forEach(c=>{v[`${o}-align-${c}`]=a.align===c}),v[`${o}-align-stretch`]=!a.align&&!!a.vertical,v},L=(o,a)=>{const v={};return E.forEach(c=>{v[`${o}-justify-${c}`]=a.justify===c}),v};function x(o,a){return M()(Object.assign(Object.assign(Object.assign({},g(o,a)),m(o,a)),L(o,a)))}var S=x;const T=o=>{const{componentCls:a}=o;return{[a]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},W=o=>{const{componentCls:a}=o;return{[a]:{"&-gap-small":{gap:o.flexGapSM},"&-gap-middle":{gap:o.flexGap},"&-gap-large":{gap:o.flexGapLG}}}},Z=o=>{const{componentCls:a}=o,v={};return A.forEach(c=>{v[`${a}-wrap-${c}`]={flexWrap:c}}),v},d=o=>{const{componentCls:a}=o,v={};return O.forEach(c=>{v[`${a}-align-${c}`]={alignItems:c}}),v},X=o=>{const{componentCls:a}=o,v={};return E.forEach(c=>{v[`${a}-justify-${c}`]={justifyContent:c}}),v},K=()=>({});var F=(0,P.I$)("Flex",o=>{const{paddingXS:a,padding:v,paddingLG:c}=o,U=(0,f.TS)(o,{flexGapSM:a,flexGap:v,flexGapLG:c});return[T(U),W(U),Z(U),d(U),X(U)]},K,{resetStyle:!1}),Y=function(o,a){var v={};for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&a.indexOf(c)<0&&(v[c]=o[c]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,c=Object.getOwnPropertySymbols(o);U{const{prefixCls:v,rootClassName:c,className:U,style:le,flex:z,gap:k,children:fe,vertical:q=!1,component:me="div"}=o,oe=Y(o,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:n,direction:ve,getPrefixCls:N}=u.useContext(y.E_),h=N("flex",v),[ee,H,te]=F(h),Se=q!=null?q:n==null?void 0:n.vertical,Fe=M()(U,c,n==null?void 0:n.className,h,H,te,S(h,o),{[`${h}-rtl`]:ve==="rtl",[`${h}-gap-${k}`]:(0,j.n)(k),[`${h}-vertical`]:Se}),ge=Object.assign(Object.assign({},n==null?void 0:n.style),le);return z&&(ge.flex=z),k&&!(0,j.n)(k)&&(ge.gap=k),ee(u.createElement(me,Object.assign({ref:a,className:Fe,style:ge},(0,i.Z)(oe,["justify","wrap","align"])),fe))})}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__FaqData.ee37c50a.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__FaqData.ee37c50a.async.js new file mode 100644 index 00000000..a91f2a28 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__FaqData.ee37c50a.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[79],{69753:function(e,t,n){var r=n(1413),a=n(67294),o=n(49495),l=n(89099),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o.Z}))},i=a.forwardRef(s);t.Z=i},11475:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(1413),a=n(67294),o={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"},l=n(89099),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(s)},58638:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},l=n(89099),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(s)},57546:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},l=n(89099),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(s)},64082:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},l=n(89099),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(s)},64317:function(e,t,n){var r=n(1413),a=n(91),o=n(22270),l=n(67294),s=n(66758),i=n(29258),c=n(85893),u=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],f=function(e,t){var n=e.fieldProps,d=e.children,f=e.params,p=e.proFieldProps,g=e.mode,m=e.valueEnum,h=e.request,v=e.showSearch,x=e.options,y=(0,a.Z)(e,u),w=(0,l.useContext)(s.Z);return(0,c.jsx)(i.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,o.h)(m),request:h,params:f,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({options:x,mode:g,showSearch:v,getPopupContainer:w.getPopupContainer},n),ref:t,proFieldProps:p},y),{},{children:d}))},p=l.forwardRef((function(e,t){var n=e.fieldProps,u=e.children,f=e.params,p=e.proFieldProps,g=e.mode,m=e.valueEnum,h=e.request,v=e.options,x=(0,a.Z)(e,d),y=(0,r.Z)({options:v,mode:g||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),w=(0,l.useContext)(s.Z);return(0,c.jsx)(i.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,o.h)(m),request:h,params:f,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({getPopupContainer:w.getPopupContainer},y),ref:t,proFieldProps:p},x),{},{children:u}))})),g=l.forwardRef(f);g.SearchSelect=p,g.displayName="ProFormComponent",t.Z=g},90672:function(e,t,n){var r=n(1413),a=n(91),o=n(67294),l=n(29258),s=n(85893),i=["fieldProps","proFieldProps"],c=function(e,t){var n=e.fieldProps,o=e.proFieldProps,c=(0,a.Z)(e,i);return(0,s.jsx)(l.Z,(0,r.Z)({ref:t,valueType:"textarea",fieldProps:n,proFieldProps:o},c))};t.Z=o.forwardRef(c)},40401:function(e,t,n){n.d(t,{Yg:function(){return v},kh:function(){return p},pf:function(){return d},y:function(){return m}});var r=n(15009),a=n.n(r),o=n(97857),l=n.n(o),s=n(99289),i=n.n(s),c=n(85615),u=n(86745);function d(e){return f.apply(this,arguments)}function f(){return(f=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/faq/query/org",{method:"GET",params:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return g.apply(this,arguments)}function g(){return(g=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/faq/create",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return h.apply(this,arguments)}function h(){return(h=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/faq/update",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){return x.apply(this,arguments)}function x(){return(x=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/faq/delete",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},68256:function(e,t,n){var r=n(97857),a=n.n(r),o=n(5574),l=n.n(o),s=n(85576),i=n(67294),c=n(64082),u=n(64121),d=n(27484),f=n.n(d),p=n(85615),g=n(80049),m=n(38302),h=n(89102),v=n(17634),x=n(85893),y=u.Z.Dragger;t.Z=function(e){var t=e.type,n=e.acceptType,r=e.isModalOpen,o=e.handleOk,u=e.handleCancel,d=(0,m.j)((function(e){return e.currentKbase})),w=(0,i.useState)((null==d?void 0:d.uid)||""),b=l()(w,2),j=b[0],Z=b[1],M=(0,h.v)((function(e){return e.currentCategory})),C=(0,i.useState)("当前支持上传pdf/txt/markdown/docx等"),S=l()(C,2),k=S[0],P=S[1],E=(0,i.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:t,category_uid:"all"===(null==M?void 0:M.uid)?"":(null==M?void 0:M.uid)||"",kb_uid:(null==d?void 0:d.uid)||"",client:p.bVn}),F=l()(E,2),q=F[0],O=F[1],_={name:"file",accept:n,action:(0,v.M$)(),headers:{Authorization:"Bearer "+localStorage.getItem(p.LA8)},data:q,showUploadList:!1,beforeUpload:function(e){console.log("beforeUpload before",e,j,d);var n=f()(new Date).format("YYMMDDHHmmss")+"_"+e.name;q.file=e,q.file_name=n,q.file_type=e.type,q.kb_type=t,q.kb_uid=j,console.log("beforeUpload after",q)},onChange:function(e){"uploading"===e.file.status&&g.yw.loading("".concat(e.file.name," 上传中")),"done"===e.file.status?(console.log("response: ",e.file.response),200===e.file.response.code?(g.yw.destroy(),g.yw.success("".concat(e.file.name," 上传成功")),o()):(g.yw.destroy(),g.yw.error("".concat(e.file.name," 上传失败")),u())):"error"===e.file.status&&(g.yw.error("".concat(e.file.name," 上传失败")),u())},onDrop:function(e){console.log("Dropped files",e.dataTransfer.files)}},T=(0,i.useState)(_),V=l()(T,2),U=V[0],D=V[1];return(0,i.useEffect)((function(){m.j.subscribe((function(e,t){var n,r;console.log("useKbaseStore changed:",null==e||null===(n=e.currentKbase)||void 0===n?void 0:n.uid),Z(null==e||null===(r=e.currentKbase)||void 0===r?void 0:r.uid),D(_)}))}),[d]),(0,i.useEffect)((function(){t!=p.QPQ&&(_.accept="application/vnd.ms-excel",D(_),P("当前支持上传excel文件")),O(a()(a()({},q),{},{kb_type:t,category_uid:"all"===(null==M?void 0:M.uid)?"":null==M?void 0:M.uid})),D(_)}),[t,M]),(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(s.Z,{title:"上传文件",open:r,onOk:o,onCancel:u,children:(0,x.jsxs)(y,a()(a()({},U),{},{children:[(0,x.jsx)("p",{className:"ant-upload-drag-icon",children:(0,x.jsx)(c.Z,{})}),(0,x.jsx)("p",{className:"ant-upload-text",children:"点击或拖拽文件至此处实现上传"}),(0,x.jsx)("p",{className:"ant-upload-hint",children:k})]}))})})}},19177:function(e,t,n){n.r(t),n.d(t,{default:function(){return Q}});var r=n(77154),a=n(21612),o=n(97857),l=n.n(o),s=n(13769),i=n.n(s),c=n(15009),u=n.n(c),d=n(99289),f=n.n(d),p=n(5574),g=n.n(p),m=n(80049),h=n(40401),v=n(87676),x=n(51042),y=n(57546),w=n(58638),b=n(69753),j=n(74190),Z=n(86738),M=n(14726),C=n(67294),S=n(89102),k=n(86745),P=n(73803),E=n(38302),F=n(17634),q=n(85615),O=n(64082),_=n(34994),T=n(64317),V=n(5966),U=n(90672),D=n(85265),$=n(42075),I=n(43940),z=n(27484),A=n.n(z),L=n(85893),N=function(e){var t=e.isEdit,n=e.faq,r=e.open,a=e.onClose,o=e.onSubmit,s=_.A.useForm(),i=g()(s,1)[0],c=(0,v.u)((function(e){return e.currentOrg})),u=(0,E.j)((function(e){return e.currentKbase})),d=(0,S.v)((function(e){return e.categorySelectOptions})),f=(0,C.useState)(),p=g()(f,2),h=p[0],x=p[1],y=(0,C.useState)(q.PYi),w=g()(y,2),b=w[0],j=w[1],Z=(0,C.useState)(".png,.jpg,.jpeg"),k=g()(Z,2),P=(k[0],k[1]),z=(0,C.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:"type",category_uid:"",kb_uid:(null==u?void 0:u.uid)||"",client:q.bVn}),N=g()(z,2),R=N[0];N[1];(0,C.useEffect)((function(){t?i.setFieldsValue({type:null==n?void 0:n.type,title:null==n?void 0:n.title,content:null==n?void 0:n.content,categoryUid:null==n?void 0:n.categoryUid,kbUid:null==u?void 0:u.uid}):i.resetFields()}),[r]);var H={name:"file",action:(0,F.M$)(),headers:{Authorization:"Bearer "+localStorage.getItem(q.LA8)},data:R,showUploadList:!1,beforeUpload:function(e){console.log("beforeUpload",e);var t=A()(new Date).format("YYMMDDHHmmss")+"_"+e.name;R.file=e,R.file_name=t,R.file_type=e.type,R.kb_type=q.YjS,R.category_uid=h||"",R.kb_uid=null==u?void 0:u.uid,console.log("beforeUpload",R)},onChange:function(e){if("uploading"===e.file.status&&m.yw.loading("".concat(e.file.name," 上传中")),"done"===e.file.status)if(console.log("response: ",e.file.response),200===e.file.response.code){var t=e.file.response.data;i.setFieldValue("content",t),m.yw.destroy(),m.yw.success("".concat(e.file.name," 上传成功"))}else m.yw.destroy(),m.yw.error("".concat(e.file.name," 上传失败"));else"error"===e.file.status&&m.yw.error("".concat(e.file.name," 上传失败"))},onDrop:function(e){console.log("Dropped files",e.dataTransfer.files)}};return(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(D.Z,{title:t?"修改":"新建",onClose:a,open:r,extra:(0,L.jsxs)($.Z,{children:[(0,L.jsx)(M.ZP,{onClick:a,children:"取消"}),(0,L.jsx)(M.ZP,{onClick:function(){console.log("handleSubmit"),i.validateFields().then((function(e){console.log(e),o(l()(l()(l()({},n),e),{},{kbUid:null==u?void 0:u.uid,orgUid:null==c?void 0:c.uid}))})).catch((function(e){console.log("Form errors:",e),m.yw.error("请检查表单填写")}))},type:"primary",children:"保存"})]}),children:(0,L.jsxs)(_.A,{form:i,initialValues:l()({},n),submitter:{render:function(){return null}},children:[(0,L.jsx)(T.Z,{label:"分类",name:"categoryUid",rules:[{required:!0,message:"请选择分类"}],options:d,fieldProps:{allowClear:!0,placeholder:"请选择分类",onChange:function(e){console.log("category selected ".concat(e)),x(e)}}}),(0,L.jsx)(T.Z,{label:"类型",name:"type",rules:[{required:!0,message:"请选择类型"}],options:[{label:"文本",value:q.PYi},{label:"图片",value:q.Qm},{label:"视频",value:q.tVi},{label:"音频",value:q.Yu1},{label:"文件",value:q.Qn}],fieldProps:{allowClear:!0,placeholder:"请选择类型",onChange:function(e){console.log("type selected ".concat(e)),j(e),e===q.Qm?P(".png,.jpg,.jpeg,.gif,.bmp"):e===q.tVi?P(".mp4,.avi,.mov,.wmv"):e===q.Yu1?P(".mp3,.wav,.flac"):e===q.Qn&&P(".doc,.xls,.ppt,.pdf,.docx,.txt,.csv,.xlsx,.rtf,.zip,.7z,.tar,.gz,.rar,.iso")}}}),(0,L.jsx)(V.Z,{label:"标题",name:"title",rules:[{required:!0,message:"请输入标题"}]}),(0,L.jsx)(U.Z,{label:"内容",name:"content"}),b!=q.PYi&&(0,L.jsxs)(I.Z,l()(l()({},H),{},{children:[(0,L.jsx)("p",{className:"ant-upload-drag-icon",children:(0,L.jsx)(O.Z,{})}),(0,L.jsx)("p",{className:"ant-upload-text",children:"点击或拖拽上传文件"})]}))]})})})},R=n(68256),H=["current"],Y=function(){var e=(0,k.useIntl)(),t=(0,P.Z)().translateStringTranct,n=(0,C.useRef)(),r=(0,C.useState)(!0),a=g()(r,2),o=a[0],s=a[1],c=(0,C.useState)(),d=g()(c,2),p=d[0],O=d[1],_=(0,C.useState)(!1),T=g()(_,2),V=T[0],U=T[1],D=(0,v.u)((function(e){return e.currentOrg})),$=(0,E.j)((function(e){return e.currentKbase})),I=(0,S.v)((function(e){return e.currentCategory})),z=(0,C.useState)(!1),A=g()(z,2),Y=A[0],G=A[1],B=function(){var t=f()(u()().mark((function t(r){var a;return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log(r),t.next=3,(0,h.Yg)(r);case 3:a=t.sent,console.log("delete response:",a),200===a.code?(null==n||n.current.reload(),m.yw.success(e.formatMessage({id:"delete.success",defaultMessage:"Delete Success"}))):m.yw.error(e.formatMessage({id:"delete.error",defaultMessage:"Delete Error"}));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),K=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,L.jsx)(k.FormattedMessage,{id:"title",defaultMessage:"Title"}),dataIndex:"title",copyable:!0,render:function(e,n){return t(null==n?void 0:n.title)}},{title:(0,L.jsx)(k.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",render:function(e,n){return t(null==n?void 0:n.content)}},{title:(0,L.jsx)(k.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",hideInSearch:!0,render:function(t,n){return(0,L.jsx)(L.Fragment,{children:e.formatMessage({id:null==n?void 0:n.type,defaultMessage:null==n?void 0:n.type})})}},{title:(0,L.jsx)(k.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0,width:180},{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:100,render:function(t,n,r,a){return[(0,L.jsx)("a",{onClick:function(){W(n)},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,L.jsx)(Z.Z,{title:e.formatMessage({id:"deleteTip",defaultMessage:"Delete Tip"}),description:"".concat(e.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"【").concat(null==n?void 0:n.title,"】?"),onConfirm:function(){return B(n)},okText:e.formatMessage({id:"ok"}),cancelText:e.formatMessage({id:"cancel"}),children:(0,L.jsx)(M.ZP,{size:"small",type:"link",danger:!0,children:e.formatMessage({id:"delete",defaultMessage:"Delete"})})},"delete")]}}],Q=function(){O(void 0),s(!1),U(!0)},W=function(e){O(e),s(!0),U(!0)},X=function(){var t=f()(u()().mark((function t(r){var a,l;return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log("handleSubmitDrawer",r),o?m.yw.loading(e.formatMessage({id:"updating"})):m.yw.loading(e.formatMessage({id:"creating"})),!o){t.next=8;break}return t.next=5,(0,h.y)(r);case 5:t.t0=t.sent,t.next=11;break;case 8:return t.next=10,(0,h.kh)(r);case 10:t.t0=t.sent;case 11:a=t.t0,console.log("createFaq response:",r,a),200===a.code?(m.yw.destroy(),m.yw.success(e.formatMessage({id:"create.success",defaultMessage:"create success"})),U(!1),null===(l=n.current)||void 0===l||l.reloadAndRest()):(m.yw.destroy(),m.yw.error(a.message));case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),J=function(){var e=f()(u()().mark((function e(){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleImport"),G(!0);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=function(){var e=f()(u()().mark((function e(){var t;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleExport"),t=localStorage.getItem(q.LA8),window.open((0,F.SV)()+"/api/v1/faq/export?categoryUid="+(null==I?void 0:I.uid)+"&kbUid="+(null==$?void 0:$.uid)+"&orgUid="+(null==D?void 0:D.uid)+"&pageNumber=0&pageSize=20&accessToken="+t);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,C.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.reloadAndRest()}),[$,I]);var te=(0,C.useMemo)((function(){return(null==$?void 0:$.type)!==q.bE7||""===(null==$?void 0:$.uid)}),[$]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(j.Z,{columns:K,actionRef:n,cardBordered:!0,request:function(){var t=f()(u()().mark((function t(n,r,a){var o,s,c;return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("request:",n,r,a),m.yw.loading(e.formatMessage({id:"loading",defaultMessage:"Loading"})),n.current,o=i()(n,H),s=l()({pageNumber:n.current-1,categoryUid:"all"===I.uid?"":I.uid,kbUid:null==$?void 0:$.uid,orgUid:null==D?void 0:D.uid},o),t.next=6,(0,h.pf)(s);case 6:return c=t.sent,console.log("getAllFaqs response:",s,c),m.yw.destroy(),200===c.code||m.yw.error(c.message),t.abrupt("return",{data:c.data.content,success:!0,total:c.data.totalElements});case 11:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"常见问题/快捷按钮/猜你相问/热门问题/快捷路径",toolBarRender:function(){return[(0,L.jsx)(M.ZP,{icon:(0,L.jsx)(x.Z,{}),type:"primary",onClick:Q,disabled:te,children:e.formatMessage({id:"create",defaultMessage:"Create"})},"button"),(0,L.jsx)(M.ZP,{icon:(0,L.jsx)(y.Z,{}),type:"primary",onClick:J,disabled:te,children:e.formatMessage({id:"import",defaultMessage:"Import"})},"button"),(0,L.jsx)(M.ZP,{icon:(0,L.jsx)(w.Z,{}),type:"primary",onClick:ee,disabled:te,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button"),(0,L.jsx)(M.ZP,{icon:(0,L.jsx)(b.Z,{}),type:"link",onClick:function(){window.open("https://www.weiyuai.cn/download/excel/faq.xlsx")},children:e.formatMessage({id:"download.template",defaultMessage:"Download Template"})},"download")]}}),(0,L.jsx)(N,{isEdit:o,open:V,faq:p,onClose:function(){return U(!1)},onSubmit:X}),(0,L.jsx)(R.Z,{type:q.bE7,acceptType:".xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",isModalOpen:Y,handleOk:function(){console.log("handleUploadDragSubmit"),G(!1),null==n||n.current.reload()},handleCancel:function(){console.log("handleUploadDragCancel"),G(!1),null==n||n.current.reload()}})]})},G=n(52670),B=a.Z.Sider,K=a.Z.Content,Q=function(){var e=(0,r.Z)(),t=e.leftSiderStyle,n=e.contentStyle;return(0,L.jsx)("div",{children:(0,L.jsxs)(a.Z,{children:[(0,L.jsx)(B,{style:t,children:(0,L.jsx)(G.Z,{type:q.bE7})}),(0,L.jsx)(a.Z,{children:(0,L.jsx)(K,{style:n,children:(0,L.jsx)(Y,{})})})]})})}},86250:function(e,t,n){n.d(t,{Z:function(){return Z}});var r=n(67294),a=n(93967),o=n.n(a),l=n(98423),s=n(98065),i=n(53124),c=n(83559),u=n(83262);const d=["wrap","nowrap","wrap-reverse"],f=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],p=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var g=function(e,t){return o()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&d.includes(n)}})(e,t)),((e,t)=>{const n={};return p.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))};const m=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},h=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},v=e=>{const{componentCls:t}=e,n={};return d.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},x=e=>{const{componentCls:t}=e,n={};return p.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},y=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n};var w=(0,c.I$)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,a=(0,u.IX)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[m(a),h(a),v(a),x(a),y(a)]}),(()=>({})),{resetStyle:!1}),b=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,rootClassName:a,className:c,style:u,flex:d,gap:f,children:p,vertical:m=!1,component:h="div"}=e,v=b(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:x,direction:y,getPrefixCls:j}=r.useContext(i.E_),Z=j("flex",n),[M,C,S]=w(Z),k=null!=m?m:null==x?void 0:x.vertical,P=o()(c,a,null==x?void 0:x.className,Z,C,S,g(Z,e),{[`${Z}-rtl`]:"rtl"===y,[`${Z}-gap-${f}`]:(0,s.n)(f),[`${Z}-vertical`]:k}),E=Object.assign(Object.assign({},null==x?void 0:x.style),u);return d&&(E.flex=d),f&&!(0,s.n)(f)&&(E.gap=f),M(r.createElement(h,Object.assign({ref:t,className:P,style:E},(0,l.Z)(v,["justify","wrap","align"])),p))}));var Z=j}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__FaqStatistic.7d6b7fb2.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__FaqStatistic.7d6b7fb2.async.js new file mode 100644 index 00000000..a14b7d70 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__FaqStatistic.7d6b7fb2.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8041],{54e3:function(e,s,c){c.r(s);var a=c(85615),n=c(86745),i=c(85893);s.default=function(){var e=(0,n.useAccess)();return e.canDebug&&console.log("TabFaqReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(n.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.FormattedMessage,{id:a.h5w})}),children:"FaqStatistic"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__FaqStatistic.ed48edd8.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__FaqStatistic.ed48edd8.async.js deleted file mode 100644 index ed81c792..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__FaqStatistic.ed48edd8.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8041],{54e3:function(l,n,a){a.r(n);var e=a(85615),c=a(86745),s=a(85893),i=function(){var t=(0,c.useAccess)();return t.canDebug&&console.log("TabFaqReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(c.Access,{accessible:t.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.FormattedMessage,{id:e.h5w})}),children:"FaqStatistic"})})})};n.default=i}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__index.3c744248.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__index.3c744248.async.js deleted file mode 100644 index 8ec0f05c..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__index.3c744248.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8801],{37768:function(o,_,t){t.r(_);var e=t(77154),s=t(21612),C=t(67294),l=t(96974),a=t(85615),d=t(65383),n=t(85893),D=s.Z.Sider,M=s.Z.Content,O=function(){var E=(0,e.Z)(),P=E.leftSiderStyle,r=E.contentStyle;return(0,n.jsxs)(s.Z,{children:[(0,n.jsx)(D,{style:P,children:(0,n.jsx)(d.Z,{type:a.bE7})}),(0,n.jsx)(s.Z,{children:(0,n.jsx)(M,{style:r,children:(0,n.jsx)(l.j3,{})})})]})};_.default=O}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__index.7bdc6925.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__index.7bdc6925.async.js new file mode 100644 index 00000000..f02d7c00 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Faq__index.7bdc6925.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8801],{37768:function(e,n,t){t.r(n);var s=t(77154),l=t(21612),r=(t(67294),t(96974)),i=t(85615),c=t(65383),d=t(85893),u=l.Z.Sider,a=l.Z.Content;n.default=function(){var e=(0,s.Z)(),n=e.leftSiderStyle,t=e.contentStyle;return(0,d.jsxs)(l.Z,{children:[(0,d.jsx)(u,{style:n,children:(0,d.jsx)(c.Z,{type:i.bE7})}),(0,d.jsx)(l.Z,{children:(0,d.jsx)(a,{style:t,children:(0,d.jsx)(r.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__KeywordData.4d88f3aa.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__KeywordData.4d88f3aa.async.js deleted file mode 100644 index feb46fe3..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__KeywordData.4d88f3aa.async.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3340],{69753:function(me,I,e){var A=e(1413),p=e(67294),R=e(49495),c=e(89099),L=function(v,Q){return p.createElement(c.Z,(0,A.Z)((0,A.Z)({},v),{},{ref:Q,icon:R.Z}))},U=p.forwardRef(L);I.Z=U},58638:function(me,I,e){e.d(I,{Z:function(){return v}});var A=e(1413),p=e(67294),R={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},c=R,L=e(89099),U=function(C,K){return p.createElement(L.Z,(0,A.Z)((0,A.Z)({},C),{},{ref:K,icon:c}))},$=p.forwardRef(U),v=$},57546:function(me,I,e){e.d(I,{Z:function(){return v}});var A=e(1413),p=e(67294),R={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},c=R,L=e(89099),U=function(C,K){return p.createElement(L.Z,(0,A.Z)((0,A.Z)({},C),{},{ref:K,icon:c}))},$=p.forwardRef(U),v=$},91310:function(me,I,e){var A=e(15009),p=e.n(A),R=e(99289),c=e.n(R),L=e(85265),U=e(75658),$=e(98558),v=e(67294),Q=e(38302),C=e(73803),K=e(9361),y=e(39825),f=e(85615),s=e(85893),_=function(G){var ge=G.type,Z=G.open,k=G.onClose,re=(0,y.Z)(),de=re.isDarkMode,J=(0,C.Z)(),X=J.translateString,b=(0,v.useRef)(),d=(0,Q.j)(function(j){return j.currentKbase});(0,v.useEffect)(function(){var j;(j=b.current)===null||j===void 0||j.clearMessage()},[d]);var Ee=function(){var j=c()(p()().mark(function D(i){var h,g,B;return p()().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return console.log("handleChat"),h=i[i.length-1],w.next=4,fetch("http://127.0.0.1:1001/visitor/api/v1/ai/ollama/chat?query=".concat(h==null?void 0:h.content,"&kbUid=").concat(d==null?void 0:d.uid),{method:"GET"});case 4:return g=w.sent,w.next=7,g.json();case 7:return B=w.sent,console.log("sendAiMessageStream response:",B),w.abrupt("return",new Response(B==null?void 0:B.data));case 10:case"end":return w.stop()}},D)}));return function(i){return j.apply(this,arguments)}}(),ue=function(){var j=c()(p()().mark(function D(i){return p()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:console.log("handleChatKeyword");case 1:case"end":return g.stop()}},D)}));return function(i){return j.apply(this,arguments)}}(),he=function(){var j=c()(p()().mark(function D(i){var h,g,B,V,w,le;return p()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return console.log("handleChatStream"),h=i[i.length-1],W.next=4,fetch("http://127.0.0.1:1001/visitor/api/v1/ai/ollama/chat/stream",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},body:JSON.stringify({query:h==null?void 0:h.content,kbUid:d==null?void 0:d.uid,stream:!0})});case 4:if(g=W.sent,!(!g.ok||!g.body)){W.next=7;break}throw new Error("HTTP error! status: ".concat(g.status));case 7:return B=g.body.getReader(),V=new TextDecoder("utf-8"),w=new TextEncoder,le=new ReadableStream({start:function(m){return c()(p()().mark(function q(){var x;return p()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:x=function(){B.read().then(function(oe){var Se=oe.done,Ae=oe.value;if(Se){m.close();return}var Ue=V.decode(Ae,{stream:!0}),Ke=Ue.replaceAll("data:","").replaceAll(` -`,"");m.enqueue(w.encode(Ke)),x()}).catch(function(oe){console.error("\u8BFB\u53D6\u6D41\u4E2D\u7684\u6570\u636E\u65F6\u53D1\u751F\u9519\u8BEF",oe),m.error(oe)})},x();case 2:case"end":return a.stop()}},q)}))()}}),W.abrupt("return",new Response(le));case 12:case"end":return W.stop()}},D)}));return function(i){return j.apply(this,arguments)}}();return(0,s.jsx)("div",{children:(0,s.jsx)(L.Z,{title:X(d==null?void 0:d.name),onClose:function(){k&&k()},open:Z,styles:{body:{padding:0}},children:(0,s.jsx)($.f6,{appearance:de?"dark":"light",theme:{algorithm:de?K.Z.darkAlgorithm:K.Z.defaultAlgorithm},children:(0,s.jsx)(U.j,{chatRef:b,helloMessage:"\u8BF7\u8F93\u5165\u4F60\u60F3\u95EE\u7684\u95EE\u9898",request:function(){var j=c()(p()().mark(function D(i){return p()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(console.log("messages:",i),!(i.length>0)){g.next=8;break}if(ge!==f.QPQ){g.next=6;break}return g.abrupt("return",he(i));case 6:if(ge!==f.jNC){g.next=8;break}return g.abrupt("return",ue(i));case 8:case"end":return g.stop()}},D)}));return function(D){return j.apply(this,arguments)}}()})})})})};I.Z=_},68256:function(me,I,e){var A=e(97857),p=e.n(A),R=e(5574),c=e.n(R),L=e(85576),U=e(67294),$=e(64082),v=e(64121),Q=e(27484),C=e.n(Q),K=e(85615),y=e(80049),f=e(38302),s=e(89102),_=e(85893),De=v.Z.Dragger,G=function(Z){var k=Z.type,re=Z.acceptType,de=Z.isModalOpen,J=Z.handleOk,X=Z.handleCancel,b=(0,f.j)(function(H){return H.currentKbase}),d=(0,s.v)(function(H){return H.currentCategory}),Ee=(0,U.useState)("\u5F53\u524D\u652F\u6301\u4E0A\u4F20pdf/txt/markdown/docx\u7B49"),ue=c()(Ee,2),he=ue[0],j=ue[1],D=(0,U.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:k,category_uid:(d==null?void 0:d.uid)==="all"?"":(d==null?void 0:d.uid)||"",kb_uid:(b==null?void 0:b.uid)||"",client:K.bVn}),i=c()(D,2),h=i[0],g=i[1],B=function(m){var q=C()(new Date).format("YYYYMMDDHHmmss")+"_"+m.name,x=new FormData;x.append("file",m),x.append("file_name",q),x.append("file_type",m.type),x.append("is_avatar","false"),x.append("kb_type",k),x.append("category_uid",(d==null?void 0:d.uid)==="all"?"":(d==null?void 0:d.uid)||""),x.append("kb_uid",(b==null?void 0:b.uid)||""),x.append("client",K.bVn),fetch("/api/v1/upload/file",{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(K.LA8)},body:x}).then(function(ae){return ae.json()}).then(function(ae){console.log("upload data:",ae),ae.code===200?(y.yw.destroy(),y.yw.success("".concat(q," \u4E0A\u4F20\u6210\u529F")),J()):(y.yw.destroy(),y.yw.error("".concat(q," \u4E0A\u4F20\u5931\u8D25")),X())})},V={name:"file",accept:re,action:"/api/v1/upload/file",headers:{Authorization:"Bearer "+localStorage.getItem(K.LA8)},data:h,showUploadList:!1,beforeUpload:function(m){console.log("beforeUpload",m);var q=C()(new Date).format("YYMMDDHHmmss")+"_"+m.name;h.file=m,h.file_name=q,h.file_type=m.type,h.kb_type=k,h.category_uid=(d==null?void 0:d.uid)==="all"?"":d==null?void 0:d.uid,h.kb_uid=b==null?void 0:b.uid,console.log("beforeUpload",h)},onChange:function(m){m.file.status==="uploading"&&y.yw.loading("".concat(m.file.name," \u4E0A\u4F20\u4E2D")),m.file.status==="done"?(console.log("response: ",m.file.response),m.file.response.code===200?(y.yw.destroy(),y.yw.success("".concat(m.file.name," \u4E0A\u4F20\u6210\u529F")),J()):(y.yw.destroy(),y.yw.error("".concat(m.file.name," \u4E0A\u4F20\u5931\u8D25")),X())):m.file.status==="error"&&(y.yw.error("".concat(m.file.name," \u4E0A\u4F20\u5931\u8D25")),X())},onDrop:function(m){console.log("Dropped files",m.dataTransfer.files),B(m.dataTransfer.files[0])}},w=(0,U.useState)(V),le=c()(w,2),Me=le[0],W=le[1];return(0,U.useEffect)(function(){k!=K.QPQ&&(V.accept="application/vnd.ms-excel",W(V),j("\u5F53\u524D\u652F\u6301\u4E0A\u4F20excel\u6587\u4EF6")),g(p()(p()({},h),{},{kb_type:k,category_uid:(d==null?void 0:d.uid)==="all"?"":d==null?void 0:d.uid,kb_uid:b==null?void 0:b.uid}))},[k,d,b]),(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(L.Z,{title:"\u4E0A\u4F20\u6587\u4EF6",open:de,onOk:J,onCancel:X,children:(0,_.jsxs)(De,p()(p()({},Me),{},{children:[(0,_.jsx)("p",{className:"ant-upload-drag-icon",children:(0,_.jsx)($.Z,{})}),(0,_.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u81F3\u6B64\u5904\u5B9E\u73B0\u4E0A\u4F20"}),(0,_.jsx)("p",{className:"ant-upload-hint",children:he})]}))})})};I.Z=G},73226:function(me,I,e){e.r(I),e.d(I,{default:function(){return Xe}});var A=e(77154),p=e(21612),R=e(97857),c=e.n(R),L=e(13769),U=e.n(L),$=e(15009),v=e.n($),Q=e(99289),C=e.n(Q),K=e(5574),y=e.n(K),f=e(80049),s=e(85615),_=e(86745);function De(F){return G.apply(this,arguments)}function G(){return G=C()(v()().mark(function F(l){return v()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,_.request)("/api/v1/keyword/query/org",{method:"GET",params:c()(c()({},l),{},{client:s.bVn})}));case 1:case"end":return n.stop()}},F)})),G.apply(this,arguments)}function ge(F){return Z.apply(this,arguments)}function Z(){return Z=C()(v()().mark(function F(l){return v()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,_.request)("/api/v1/keyword/create",{method:"POST",data:c()(c()({},l),{},{client:s.bVn})}));case 1:case"end":return n.stop()}},F)})),Z.apply(this,arguments)}function k(F){return re.apply(this,arguments)}function re(){return re=C()(v()().mark(function F(l){return v()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,_.request)("/api/v1/keyword/update",{method:"POST",data:c()(c()({},l),{},{client:s.bVn})}));case 1:case"end":return n.stop()}},F)})),re.apply(this,arguments)}function de(F){return J.apply(this,arguments)}function J(){return J=C()(v()().mark(function F(l){return v()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,_.request)("/api/v1/keyword/delete",{method:"POST",data:c()(c()({},l),{},{client:s.bVn})}));case 1:case"end":return n.stop()}},F)})),J.apply(this,arguments)}var X=e(87676),b=e(51042),d=e(57546),Ee=e(58638),ue=e(69753),he=e(57482),j=e(86738),D=e(14726),i=e(67294),h=e(89102),g=e(38302),B=e(64082),V=e(34994),w=e(64317),le=e(5966),Me=e(90672),W=e(52688),H=e(85265),m=e(42075),q=e(43940),x=e(27484),ae=e.n(x),a=e(85893),Ve=function(l){var E=l.isEdit,n=l.keyword,ye=l.open,ie=l.onClose,Ce=l.onSubmit,Fe=V.A.useForm(),be=y()(Fe,1),te=be[0],ce=(0,X.u)(function(P){return P.currentOrg}),O=(0,g.j)(function(P){return P.currentKbase}),je=(0,h.v)(function(P){return P.categorySelectOptions}),Ie=(0,i.useState)(),se=y()(Ie,2),ee=se[0],T=se[1],ne=(0,i.useState)(s.PYi),we=y()(ne,2),Oe=we[0],Be=we[1],Re=(0,i.useState)(".png,.jpg,.jpeg"),Te=y()(Re,2),xe=Te[0],pe=Te[1],_e=(0,i.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:"type",category_uid:"",kb_uid:(O==null?void 0:O.uid)||"",client:s.bVn}),Pe=y()(_e,2),N=Pe[0],He=Pe[1];(0,i.useEffect)(function(){E?te.setFieldsValue({keyword:n==null?void 0:n.keywordList,reply:n==null?void 0:n.replyList,matchType:n==null?void 0:n.matchType,contentType:n==null?void 0:n.contentType,categoryUid:n==null?void 0:n.categoryUid,kbUid:O==null?void 0:O.uid,enabled:n==null?void 0:n.enabled}):te.resetFields()},[ye]);var Le=function(r){console.log("category selected ".concat(r)),T(r)},Ze=function(r){console.log("type selected ".concat(r)),Be(r),r===s.Qm?pe(".png,.jpg,.jpeg,.gif,.bmp"):r===s.tVi?pe(".mp4,.avi,.mov,.wmv"):r===s.Yu1?pe(".mp3,.wav,.flac"):r===s.Qn&&pe(".doc,.xls,.ppt,.pdf,.docx,.txt,.csv,.xlsx,.rtf,.zip,.7z,.tar,.gz,.rar,.iso")},ke=function(){console.log("handleSubmit"),te.validateFields().then(function(r){console.log(r),Ce(c()(c()(c()({},n),r),{},{keywordList:[r.keyword],replyList:[r.reply],kbUid:O==null?void 0:O.uid,orgUid:ce==null?void 0:ce.uid}))}).catch(function(r){console.log("Form errors:",r),f.yw.error("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199")})},We=function(r){var o=ae()(new Date).format("YYYYMMDDHHmmss")+"_"+r.name,u=new FormData;u.append("file",r),u.append("file_name",o),u.append("file_type",r.type),u.append("is_avatar","false"),u.append("kb_type",s.YjS),u.append("category_uid",ee||""),u.append("kb_uid",(O==null?void 0:O.uid)||""),u.append("client",s.bVn),fetch("/api/v1/upload/file",{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(s.LA8)},body:u}).then(function(t){return t.json()}).then(function(t){if(console.log("upload data:",t),t.code===200){var M=t.data;te.setFieldValue("reply",M),f.yw.destroy(),f.yw.success("".concat(o," \u4E0A\u4F20\u6210\u529F"))}else f.yw.destroy(),f.yw.error("".concat(o," \u4E0A\u4F20\u5931\u8D25"))})},Ye={name:"file",accept:xe,action:"/api/v1/upload/file",headers:{Authorization:"Bearer "+localStorage.getItem(s.LA8)},data:N,showUploadList:!1,beforeUpload:function(r){console.log("beforeUpload",r);var o=ae()(new Date).format("YYMMDDHHmmss")+"_"+r.name;N.file=r,N.file_name=o,N.file_type=r.type,N.kb_type=s.YjS,N.category_uid=ee||"",N.kb_uid=O==null?void 0:O.uid,console.log("beforeUpload",N)},onChange:function(r){if(r.file.status==="uploading"&&f.yw.loading("".concat(r.file.name," \u4E0A\u4F20\u4E2D")),r.file.status==="done")if(console.log("response: ",r.file.response),r.file.response.code===200){var o=r.file.response.data;te.setFieldValue("reply",o),f.yw.destroy(),f.yw.success("".concat(r.file.name," \u4E0A\u4F20\u6210\u529F"))}else f.yw.destroy(),f.yw.error("".concat(r.file.name," \u4E0A\u4F20\u5931\u8D25"));else r.file.status==="error"&&f.yw.error("".concat(r.file.name," \u4E0A\u4F20\u5931\u8D25"))},onDrop:function(r){console.log("Dropped files",r.dataTransfer.files),We(r.dataTransfer.files[0])}};return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(H.Z,{title:E?"\u4FEE\u6539":"\u65B0\u5EFA",onClose:ie,open:ye,extra:(0,a.jsxs)(m.Z,{children:[(0,a.jsx)(D.ZP,{onClick:ie,children:"\u53D6\u6D88"}),(0,a.jsx)(D.ZP,{onClick:ke,type:"primary",children:"\u4FDD\u5B58"})]}),children:(0,a.jsxs)(V.A,{form:te,submitter:{render:function(){return null}},children:[(0,a.jsx)(w.Z,{label:"\u5339\u914D\u7C7B\u578B",name:"matchType",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5339\u914D\u7C7B\u578B"}],options:[{label:"\u6A21\u7CCA\u5339\u914D",value:s.lEl},{label:"\u7CBE\u786E\u5339\u914D",value:s.TAc,disabled:!0},{label:"\u6B63\u5219\u5339\u914D",value:s.c7i,disabled:!0},{label:"\u5411\u91CF\u5339\u914D",value:s.sOn,disabled:!0},{label:"\u641C\u7D22\u5F15\u64CE\u5339\u914D",value:s.NDq,disabled:!0}],fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5339\u914D\u7C7B\u578B"}}),(0,a.jsx)(w.Z,{label:"\u5185\u5BB9\u5206\u7C7B",name:"categoryUid",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u7C7B"}],options:je,tooltip:"\u8BF7\u5148\uFF1A\u521B\u5EFA\u5206\u7C7B",fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5206\u7C7B",onChange:Le}}),(0,a.jsx)(w.Z,{label:"\u7C7B\u578B",name:"contentType",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}],options:[{label:"\u6587\u672C",value:s.PYi},{label:"\u56FE\u7247",value:s.Qm},{label:"\u89C6\u9891",value:s.tVi},{label:"\u97F3\u9891",value:s.Yu1},{label:"\u6587\u4EF6",value:s.Qn}],fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B",onChange:Ze}}),(0,a.jsx)(le.Z,{label:"\u5173\u952E\u8BCD",name:"keyword",tooltip:"\u591A\u4E2A\u5173\u952E\u8BCD\u4F7F\u7528 '|' \u5206\u5272",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\uFF0C\u591A\u4E2A\u5173\u952E\u8BCD\u4F7F\u7528 '|' \u5206\u5272",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\uFF0C\u591A\u4E2A\u5173\u952E\u8BCD\u4F7F\u7528 '|' \u5206\u5272 "}]}),(0,a.jsx)(Me.Z,{label:"\u56DE\u590D",name:"reply"}),(0,a.jsx)(W.Z,{label:"\u542F\u7528",name:"enabled",fieldProps:{defaultValue:!0}}),Oe!=s.PYi&&(0,a.jsxs)(q.Z,c()(c()({},Ye),{},{children:[(0,a.jsx)("p",{className:"ant-upload-drag-icon",children:(0,a.jsx)(B.Z,{})}),(0,a.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u6587\u4EF6"})]}))]})})})},oe=Ve,Se=e(91310),Ae=e(68256),Ue=["current"],Ke=function(){var l=(0,_.useIntl)(),E=(0,i.useRef)(),n=(0,i.useState)(!0),ye=y()(n,2),ie=ye[0],Ce=ye[1],Fe=(0,i.useState)(),be=y()(Fe,2),te=be[0],ce=be[1],O=(0,i.useState)(!1),je=y()(O,2),Ie=je[0],se=je[1],ee=(0,X.u)(function(o){return o.currentOrg}),T=(0,g.j)(function(o){return o.currentKbase}),ne=(0,h.v)(function(o){return o.currentCategory}),we=(0,i.useState)(!1),Oe=y()(we,2),Be=Oe[0],Re=Oe[1],Te=(0,i.useState)(!1),xe=y()(Te,2),pe=xe[0],_e=xe[1],Pe=function(){var o=C()(v()().mark(function u(t){var M;return v()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return console.log(t),z.next=3,de(t);case 3:M=z.sent,console.log("delete response:",M),M.code===200?(E==null||E.current.reload(),f.yw.success(l.formatMessage({id:"delete.success",defaultMessage:"Delete Success"}))):f.yw.error(l.formatMessage({id:"delete.error",defaultMessage:"Delete Error"}));case 6:case"end":return z.stop()}},u)}));return function(t){return o.apply(this,arguments)}}(),N=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,a.jsx)(_.FormattedMessage,{id:"keyword",defaultMessage:"Keyword"}),dataIndex:"keywordList",copyable:!0},{title:(0,a.jsx)(_.FormattedMessage,{id:"reply",defaultMessage:"Reply"}),dataIndex:"replyList",copyable:!0},{title:(0,a.jsx)(_.FormattedMessage,{id:"matchType",defaultMessage:"MatchType"}),dataIndex:"matchType",width:80,render:function(u,t){return l.formatMessage({id:t==null?void 0:t.matchType,defaultMessage:t==null?void 0:t.matchType})}},{title:(0,a.jsx)(_.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"contentType",hideInSearch:!0,width:50,render:function(u,t){return(0,a.jsx)(a.Fragment,{children:l.formatMessage({id:t==null?void 0:t.contentType,defaultMessage:t==null?void 0:t.contentType})})}},{title:(0,a.jsx)(_.FormattedMessage,{id:"enabled",defaultMessage:"Enabled"}),dataIndex:"enabled",width:80,render:function(u,t){return(0,a.jsx)(a.Fragment,{children:t!=null&&t.enabled?l.formatMessage({id:"yes",defaultMessage:"Yes"}):l.formatMessage({id:"no",defaultMessage:"No"})})}},{title:(0,a.jsx)(_.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0,width:180},{title:l.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:100,render:function(u,t,M,Y){return[(0,a.jsx)("a",{onClick:function(){Le(t)},children:l.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,a.jsx)(j.Z,{title:l.formatMessage({id:"deleteTip",defaultMessage:"Delete Tip"}),description:"".concat(l.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"\u3010").concat(t==null?void 0:t.keywordList,"\u3011\uFF1F"),onConfirm:function(){return Pe(t)},okText:l.formatMessage({id:"ok"}),cancelText:l.formatMessage({id:"cancel"}),children:(0,a.jsx)(D.ZP,{size:"small",type:"link",danger:!0,children:l.formatMessage({id:"delete",defaultMessage:"Delete"})})},"delete")]}}],He=function(){ce(void 0),Ce(!1),se(!0)},Le=function(u){ce(u),Ce(!0),se(!0)},Ze=function(){var o=C()(v()().mark(function u(t){var M,Y;return v()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(console.log("handleSubmitDrawer",t),ie?f.yw.loading(l.formatMessage({id:"updating"})):f.yw.loading(l.formatMessage({id:"creating"})),!ie){S.next=8;break}return S.next=5,k(t);case 5:S.t0=S.sent,S.next=11;break;case 8:return S.next=10,ge(t);case 10:S.t0=S.sent;case 11:M=S.t0,console.log("createKeyword response:",t,M),M.code===200?(f.yw.destroy(),f.yw.success(l.formatMessage({id:"create.success",defaultMessage:"create success"})),se(!1),(Y=E.current)===null||Y===void 0||Y.reloadAndRest()):(f.yw.destroy(),f.yw.error(M.message));case 14:case"end":return S.stop()}},u)}));return function(t){return o.apply(this,arguments)}}(),ke=function(){var o=C()(v()().mark(function u(){return v()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:_e(!0);case 1:case"end":return M.stop()}},u)}));return function(){return o.apply(this,arguments)}}(),We=function(){var o=C()(v()().mark(function u(){var t;return v()().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:t=localStorage.getItem(s.LA8),window.open("/api/v1/keyword/export?categoryUid="+(ne==null?void 0:ne.uid)+"&kbUid="+(T==null?void 0:T.uid)+"&orgUid="+(ee==null?void 0:ee.uid)+"&pageNumber=0&pageSize=20&accessToken="+t);case 2:case"end":return Y.stop()}},u)}));return function(){return o.apply(this,arguments)}}();(0,i.useEffect)(function(){var o;(o=E.current)===null||o===void 0||o.reloadAndRest()},[T,ne]);var Ye=function(){console.log("handleUploadDragSubmit"),_e(!1),E==null||E.current.reload()},P=function(){console.log("handleUploadDragCancel"),_e(!1),E==null||E.current.reload()},r=(0,i.useMemo)(function(){return(T==null?void 0:T.type)===s.jNC?(T==null?void 0:T.uid)==="":!0},[T]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(he.Z,{columns:N,actionRef:E,cardBordered:!0,request:function(){var o=C()(v()().mark(function u(t,M,Y){var z,S,$e,ve;return v()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return console.log("request:",t,M,Y),f.yw.loading(l.formatMessage({id:"loading",defaultMessage:"Loading"})),z=t.current,S=U()(t,Ue),$e=c()({pageNumber:t.current-1,categoryUid:ne.uid==="all"?"":ne.uid,kbUid:T==null?void 0:T.uid,orgUid:ee==null?void 0:ee.uid},S),fe.next=6,De($e);case 6:return ve=fe.sent,console.log("getAllKeywords response:",$e,ve),f.yw.destroy(),ve.code===200||f.yw.error(ve.message),fe.abrupt("return",{data:ve.data.content,success:!0,total:ve.data.totalElements});case 11:case"end":return fe.stop()}},u)}));return function(u,t,M){return o.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(u){console.log("page:",u)}},dateFormatter:"string",headerTitle:l.formatMessage({id:"menu.knowledge.keyword",defaultMessage:"KEYWORD"}),toolBarRender:function(){return[(0,a.jsx)(D.ZP,{icon:(0,a.jsx)(b.Z,{}),type:"primary",onClick:He,disabled:r,children:l.formatMessage({id:"create",defaultMessage:"Create"})},"create"),(0,a.jsx)(D.ZP,{icon:(0,a.jsx)(d.Z,{}),type:"primary",onClick:ke,disabled:r,children:l.formatMessage({id:"import",defaultMessage:"Import"})},"import"),(0,a.jsx)(D.ZP,{icon:(0,a.jsx)(Ee.Z,{}),type:"primary",onClick:We,disabled:r,children:l.formatMessage({id:"export",defaultMessage:"Export"})},"export"),(0,a.jsx)(D.ZP,{icon:(0,a.jsx)(ue.Z,{}),type:"link",onClick:function(){window.open("https://www.weiyuai.cn/download/excel/keyword.xlsx")},children:l.formatMessage({id:"download.template",defaultMessage:"Download Template"})},"download")]}}),(0,a.jsx)(oe,{isEdit:ie,open:Ie,keyword:te,onClose:function(){return se(!1)},onSubmit:Ze}),(0,a.jsx)(Ae.Z,{type:s.jNC,acceptType:".xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",isModalOpen:pe,handleOk:Ye,handleCancel:P}),(0,a.jsx)(Se.Z,{type:s.jNC,open:Be,onClose:function(){return Re(!1)}})]})},Ne=Ke,ze=e(52670),Qe=p.Z.Sider,Ge=p.Z.Content,Je=function(){var l=(0,A.Z)(),E=l.leftSiderStyle,n=l.contentStyle;return(0,a.jsx)("div",{children:(0,a.jsxs)(p.Z,{children:[(0,a.jsx)(Qe,{style:E,children:(0,a.jsx)(ze.Z,{type:s.jNC})}),(0,a.jsx)(p.Z,{children:(0,a.jsx)(Ge,{style:n,children:(0,a.jsx)(Ne,{})})})]})})},Xe=Je}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__KeywordData.f5772fa8.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__KeywordData.f5772fa8.async.js new file mode 100644 index 00000000..fe842873 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__KeywordData.f5772fa8.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3340],{68256:function(e,t,n){var r=n(97857),a=n.n(r),o=n(5574),s=n.n(o),l=n(85576),i=n(67294),d=n(64082),u=n(64121),c=n(27484),p=n.n(c),f=n(85615),g=n(80049),y=n(38302),m=n(89102),h=n(17634),v=n(85893),x=u.Z.Dragger;t.Z=function(e){var t=e.type,n=e.acceptType,r=e.isModalOpen,o=e.handleOk,u=e.handleCancel,c=(0,y.j)((function(e){return e.currentKbase})),w=(0,i.useState)((null==c?void 0:c.uid)||""),b=s()(w,2),k=b[0],j=b[1],M=(0,m.v)((function(e){return e.currentCategory})),S=(0,i.useState)("当前支持上传pdf/txt/markdown/docx等"),C=s()(S,2),T=C[0],Z=C[1],_=(0,i.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:t,category_uid:"all"===(null==M?void 0:M.uid)?"":(null==M?void 0:M.uid)||"",kb_uid:(null==c?void 0:c.uid)||"",client:f.bVn}),D=s()(_,2),U=D[0],A=D[1],P={name:"file",accept:n,action:(0,h.M$)(),headers:{Authorization:"Bearer "+localStorage.getItem(f.LA8)},data:U,showUploadList:!1,beforeUpload:function(e){console.log("beforeUpload before",e,k,c);var n=p()(new Date).format("YYMMDDHHmmss")+"_"+e.name;U.file=e,U.file_name=n,U.file_type=e.type,U.kb_type=t,U.kb_uid=k,console.log("beforeUpload after",U)},onChange:function(e){"uploading"===e.file.status&&g.yw.loading("".concat(e.file.name," 上传中")),"done"===e.file.status?(console.log("response: ",e.file.response),200===e.file.response.code?(g.yw.destroy(),g.yw.success("".concat(e.file.name," 上传成功")),o()):(g.yw.destroy(),g.yw.error("".concat(e.file.name," 上传失败")),u())):"error"===e.file.status&&(g.yw.error("".concat(e.file.name," 上传失败")),u())},onDrop:function(e){console.log("Dropped files",e.dataTransfer.files)}},F=(0,i.useState)(P),E=s()(F,2),q=E[0],N=E[1];return(0,i.useEffect)((function(){y.j.subscribe((function(e,t){var n,r;console.log("useKbaseStore changed:",null==e||null===(n=e.currentKbase)||void 0===n?void 0:n.uid),j(null==e||null===(r=e.currentKbase)||void 0===r?void 0:r.uid),N(P)}))}),[c]),(0,i.useEffect)((function(){t!=f.QPQ&&(P.accept="application/vnd.ms-excel",N(P),Z("当前支持上传excel文件")),A(a()(a()({},U),{},{kb_type:t,category_uid:"all"===(null==M?void 0:M.uid)?"":null==M?void 0:M.uid})),N(P)}),[t,M]),(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(l.Z,{title:"上传文件",open:r,onOk:o,onCancel:u,children:(0,v.jsxs)(x,a()(a()({},q),{},{children:[(0,v.jsx)("p",{className:"ant-upload-drag-icon",children:(0,v.jsx)(d.Z,{})}),(0,v.jsx)("p",{className:"ant-upload-text",children:"点击或拖拽文件至此处实现上传"}),(0,v.jsx)("p",{className:"ant-upload-hint",children:T})]}))})})}},20767:function(e,t,n){n.r(t),n.d(t,{default:function(){return de}});var r=n(77154),a=n(21612),o=n(97857),s=n.n(o),l=n(13769),i=n.n(l),d=n(15009),u=n.n(d),c=n(99289),p=n.n(c),f=n(5574),g=n.n(f),y=n(80049),m=n(85615),h=n(86745);function v(e){return x.apply(this,arguments)}function x(){return(x=p()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,h.request)("/api/v1/keyword/query/org",{method:"GET",params:s()(s()({},t),{},{client:m.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e){return b.apply(this,arguments)}function b(){return(b=p()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,h.request)("/api/v1/keyword/create",{method:"POST",data:s()(s()({},t),{},{client:m.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e){return j.apply(this,arguments)}function j(){return(j=p()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,h.request)("/api/v1/keyword/update",{method:"POST",data:s()(s()({},t),{},{client:m.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(e){return S.apply(this,arguments)}function S(){return(S=p()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,h.request)("/api/v1/keyword/delete",{method:"POST",data:s()(s()({},t),{},{client:m.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var C=n(87676),T=n(51042),Z=n(57546),_=n(58638),D=n(69753),U=n(74190),A=n(86738),P=n(14726),F=n(67294),E=n(89102),q=n(38302),N=n(17634),O=n(64082),I=n(34994),K=n(64317),L=n(5966),R=n(90672),V=n(52688),Y=n(85265),Q=n(42075),z=n(43940),B=n(27484),H=n.n(B),J=n(85893),W=function(e){var t=e.isEdit,n=e.keyword,r=e.open,a=e.onClose,o=e.onSubmit,l=I.A.useForm(),i=g()(l,1)[0],d=(0,C.u)((function(e){return e.currentOrg})),u=(0,q.j)((function(e){return e.currentKbase})),c=(0,E.v)((function(e){return e.categorySelectOptions})),p=(0,F.useState)(),f=g()(p,2),h=f[0],v=f[1],x=(0,F.useState)(m.PYi),w=g()(x,2),b=w[0],k=w[1],j=(0,F.useState)(".png,.jpg,.jpeg"),M=g()(j,2),S=M[0],T=M[1],Z=(0,F.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:"type",category_uid:"",kb_uid:(null==u?void 0:u.uid)||"",client:m.bVn}),_=g()(Z,2),D=_[0];_[1];(0,F.useEffect)((function(){t?i.setFieldsValue({keyword:null==n?void 0:n.keywordList,reply:null==n?void 0:n.replyList,matchType:null==n?void 0:n.matchType,contentType:null==n?void 0:n.contentType,categoryUid:null==n?void 0:n.categoryUid,kbUid:null==u?void 0:u.uid,enabled:null==n?void 0:n.enabled}):i.resetFields()}),[r]);var U={name:"file",accept:S,action:(0,N.M$)(),headers:{Authorization:"Bearer "+localStorage.getItem(m.LA8)},data:D,showUploadList:!1,beforeUpload:function(e){console.log("beforeUpload",e);var t=H()(new Date).format("YYMMDDHHmmss")+"_"+e.name;D.file=e,D.file_name=t,D.file_type=e.type,D.kb_type=m.YjS,D.category_uid=h||"",D.kb_uid=null==u?void 0:u.uid,console.log("beforeUpload",D)},onChange:function(e){if("uploading"===e.file.status&&y.yw.loading("".concat(e.file.name," 上传中")),"done"===e.file.status)if(console.log("response: ",e.file.response),200===e.file.response.code){var t=e.file.response.data;i.setFieldValue("reply",t),y.yw.destroy(),y.yw.success("".concat(e.file.name," 上传成功"))}else y.yw.destroy(),y.yw.error("".concat(e.file.name," 上传失败"));else"error"===e.file.status&&y.yw.error("".concat(e.file.name," 上传失败"))},onDrop:function(e){console.log("Dropped files",e.dataTransfer.files)}};return(0,J.jsx)(J.Fragment,{children:(0,J.jsx)(Y.Z,{title:t?"修改":"新建",onClose:a,open:r,extra:(0,J.jsxs)(Q.Z,{children:[(0,J.jsx)(P.ZP,{onClick:a,children:"取消"}),(0,J.jsx)(P.ZP,{onClick:function(){console.log("handleSubmit"),i.validateFields().then((function(e){console.log(e),o(s()(s()(s()({},n),e),{},{keywordList:[e.keyword],replyList:[e.reply],kbUid:null==u?void 0:u.uid,orgUid:null==d?void 0:d.uid}))})).catch((function(e){console.log("Form errors:",e),y.yw.error("请检查表单填写")}))},type:"primary",children:"保存"})]}),children:(0,J.jsxs)(I.A,{form:i,submitter:{render:function(){return null}},children:[(0,J.jsx)(K.Z,{label:"匹配类型",name:"matchType",rules:[{required:!0,message:"请选择匹配类型"}],options:[{label:"模糊匹配",value:m.lEl},{label:"精确匹配",value:m.TAc,disabled:!0},{label:"正则匹配",value:m.c7i,disabled:!0},{label:"向量匹配",value:m.sOn,disabled:!0},{label:"搜索引擎匹配",value:m.NDq,disabled:!0}],fieldProps:{allowClear:!0,placeholder:"请选择匹配类型"}}),(0,J.jsx)(K.Z,{label:"内容分类",name:"categoryUid",rules:[{required:!0,message:"请选择分类"}],options:c,tooltip:"请先:创建分类",fieldProps:{allowClear:!0,placeholder:"请选择分类",onChange:function(e){console.log("category selected ".concat(e)),v(e)}}}),(0,J.jsx)(K.Z,{label:"类型",name:"contentType",rules:[{required:!0,message:"请选择类型"}],options:[{label:"文本",value:m.PYi},{label:"图片",value:m.Qm},{label:"视频",value:m.tVi},{label:"音频",value:m.Yu1},{label:"文件",value:m.Qn}],fieldProps:{allowClear:!0,placeholder:"请选择类型",onChange:function(e){console.log("type selected ".concat(e)),k(e),e===m.Qm?T(".png,.jpg,.jpeg,.gif,.bmp"):e===m.tVi?T(".mp4,.avi,.mov,.wmv"):e===m.Yu1?T(".mp3,.wav,.flac"):e===m.Qn&&T(".doc,.xls,.ppt,.pdf,.docx,.txt,.csv,.xlsx,.rtf,.zip,.7z,.tar,.gz,.rar,.iso")}}}),(0,J.jsx)(L.Z,{label:"关键词",name:"keyword",tooltip:"多个关键词使用 '|' 分割",placeholder:"请输入关键词,多个关键词使用 '|' 分割",rules:[{required:!0,message:"请输入关键词,多个关键词使用 '|' 分割 "}]}),(0,J.jsx)(R.Z,{label:"回复",name:"reply"}),(0,J.jsx)(V.Z,{label:"启用",name:"enabled",fieldProps:{defaultValue:!0}}),b!=m.PYi&&(0,J.jsxs)(z.Z,s()(s()({},U),{},{children:[(0,J.jsx)("p",{className:"ant-upload-drag-icon",children:(0,J.jsx)(O.Z,{})}),(0,J.jsx)("p",{className:"ant-upload-text",children:"点击或拖拽上传文件"})]}))]})})})},$=n(1368),G=n(98558),X=n(73803),ee=n(9361),te=n(39825),ne=function(e){var t=e.type,n=e.open,r=e.onClose,a=(0,te.Z)().isDarkMode,o=(0,X.Z)().translateString,s=(0,F.useRef)(),l=(0,q.j)((function(e){return e.currentKbase}));(0,F.useEffect)((function(){var e;null===(e=s.current)||void 0===e||e.clearMessage()}),[l]);var i=function(){var e=p()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleChatKeyword");case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=p()(u()().mark((function e(t){var n,r,a,o,s,i;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("handleChatStream"),n=t[t.length-1],e.next=4,fetch("http://127.0.0.1:1001/visitor/api/v1/ai/ollama/chat/stream",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},body:JSON.stringify({query:null==n?void 0:n.content,kbUid:null==l?void 0:l.uid,stream:!0})});case 4:if((r=e.sent).ok&&r.body){e.next=7;break}throw new Error("HTTP error! status: ".concat(r.status));case 7:return a=r.body.getReader(),o=new TextDecoder("utf-8"),s=new TextEncoder,i=new ReadableStream({start:function(e){return p()(u()().mark((function t(){var n;return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n=function(){a.read().then((function(t){var r=t.done,a=t.value;if(r)e.close();else{var l=o.decode(a,{stream:!0}).replaceAll("data:","").replaceAll("\n","");e.enqueue(s.encode(l)),n()}})).catch((function(t){console.error("读取流中的数据时发生错误",t),e.error(t)}))})();case 2:case"end":return t.stop()}}),t)})))()}}),e.abrupt("return",new Response(i));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,J.jsx)("div",{children:(0,J.jsx)(Y.Z,{title:o(null==l?void 0:l.name),onClose:function(){r&&r()},open:n,styles:{body:{padding:0}},children:(0,J.jsx)(G.f6,{appearance:a?"dark":"light",theme:{algorithm:a?ee.Z.darkAlgorithm:ee.Z.defaultAlgorithm},children:(0,J.jsx)($.j,{chatRef:s,helloMessage:"请输入你想问的问题",request:function(){var e=p()(u()().mark((function e(n){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("messages:",n),!(n.length>0)){e.next=8;break}if(t!==m.QPQ){e.next=6;break}return e.abrupt("return",d(n));case 6:if(t!==m.jNC){e.next=8;break}return e.abrupt("return",i(n));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})})})})},re=n(68256),ae=["current"],oe=function(){var e=(0,h.useIntl)(),t=(0,F.useRef)(),n=(0,F.useState)(!0),r=g()(n,2),a=r[0],o=r[1],l=(0,F.useState)(),d=g()(l,2),c=d[0],f=d[1],x=(0,F.useState)(!1),b=g()(x,2),j=b[0],S=b[1],O=(0,C.u)((function(e){return e.currentOrg})),I=(0,q.j)((function(e){return e.currentKbase})),K=(0,E.v)((function(e){return e.currentCategory})),L=(0,F.useState)(!1),R=g()(L,2),V=R[0],Y=R[1],Q=(0,F.useState)(!1),z=g()(Q,2),B=z[0],H=z[1],$=function(){var n=p()(u()().mark((function n(r){var a;return u()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log(r),n.next=3,M(r);case 3:a=n.sent,console.log("delete response:",a),200===a.code?(null==t||t.current.reload(),y.yw.success(e.formatMessage({id:"delete.success",defaultMessage:"Delete Success"}))):y.yw.error(e.formatMessage({id:"delete.error",defaultMessage:"Delete Error"}));case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),G=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,J.jsx)(h.FormattedMessage,{id:"keyword",defaultMessage:"Keyword"}),dataIndex:"keywordList",copyable:!0},{title:(0,J.jsx)(h.FormattedMessage,{id:"reply",defaultMessage:"Reply"}),dataIndex:"replyList",copyable:!0},{title:(0,J.jsx)(h.FormattedMessage,{id:"matchType",defaultMessage:"MatchType"}),dataIndex:"matchType",width:80,render:function(t,n){return e.formatMessage({id:null==n?void 0:n.matchType,defaultMessage:null==n?void 0:n.matchType})}},{title:(0,J.jsx)(h.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"contentType",hideInSearch:!0,width:50,render:function(t,n){return(0,J.jsx)(J.Fragment,{children:e.formatMessage({id:null==n?void 0:n.contentType,defaultMessage:null==n?void 0:n.contentType})})}},{title:(0,J.jsx)(h.FormattedMessage,{id:"enabled",defaultMessage:"Enabled"}),dataIndex:"enabled",width:80,render:function(t,n){return(0,J.jsx)(J.Fragment,{children:null!=n&&n.enabled?e.formatMessage({id:"yes",defaultMessage:"Yes"}):e.formatMessage({id:"no",defaultMessage:"No"})})}},{title:(0,J.jsx)(h.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0,width:180},{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:100,render:function(t,n,r,a){return[(0,J.jsx)("a",{onClick:function(){ee(n)},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,J.jsx)(A.Z,{title:e.formatMessage({id:"deleteTip",defaultMessage:"Delete Tip"}),description:"".concat(e.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"【").concat(null==n?void 0:n.keywordList,"】?"),onConfirm:function(){return $(n)},okText:e.formatMessage({id:"ok"}),cancelText:e.formatMessage({id:"cancel"}),children:(0,J.jsx)(P.ZP,{size:"small",type:"link",danger:!0,children:e.formatMessage({id:"delete",defaultMessage:"Delete"})})},"delete")]}}],X=function(){f(void 0),o(!1),S(!0)},ee=function(e){f(e),o(!0),S(!0)},te=function(){var n=p()(u()().mark((function n(r){var o,s;return u()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(console.log("handleSubmitDrawer",r),a?y.yw.loading(e.formatMessage({id:"updating"})):y.yw.loading(e.formatMessage({id:"creating"})),!a){n.next=8;break}return n.next=5,k(r);case 5:n.t0=n.sent,n.next=11;break;case 8:return n.next=10,w(r);case 10:n.t0=n.sent;case 11:o=n.t0,console.log("createKeyword response:",r,o),200===o.code?(y.yw.destroy(),y.yw.success(e.formatMessage({id:"create.success",defaultMessage:"create success"})),S(!1),null===(s=t.current)||void 0===s||s.reloadAndRest()):(y.yw.destroy(),y.yw.error(o.message));case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),oe=function(){var e=p()(u()().mark((function e(){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:H(!0);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),se=function(){var e=p()(u()().mark((function e(){var t;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=localStorage.getItem(m.LA8),window.open((0,N.SV)()+"/api/v1/keyword/export?categoryUid="+(null==K?void 0:K.uid)+"&kbUid="+(null==I?void 0:I.uid)+"&orgUid="+(null==O?void 0:O.uid)+"&pageNumber=0&pageSize=20&accessToken="+t);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,F.useEffect)((function(){var e;null===(e=t.current)||void 0===e||e.reloadAndRest()}),[I,K]);var le=(0,F.useMemo)((function(){return(null==I?void 0:I.type)!==m.jNC||""===(null==I?void 0:I.uid)}),[I]);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(U.Z,{columns:G,actionRef:t,cardBordered:!0,request:function(){var t=p()(u()().mark((function t(n,r,a){var o,l,d;return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("request:",n,r,a),y.yw.loading(e.formatMessage({id:"loading",defaultMessage:"Loading"})),n.current,o=i()(n,ae),l=s()({pageNumber:n.current-1,categoryUid:"all"===K.uid?"":K.uid,kbUid:null==I?void 0:I.uid,orgUid:null==O?void 0:O.uid},o),t.next=6,v(l);case 6:return d=t.sent,console.log("getAllKeywords response:",l,d),y.yw.destroy(),200===d.code||y.yw.error(d.message),t.abrupt("return",{data:d.data.content,success:!0,total:d.data.totalElements});case 11:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:e.formatMessage({id:"menu.knowledge.keyword",defaultMessage:"KEYWORD"}),toolBarRender:function(){return[(0,J.jsx)(P.ZP,{icon:(0,J.jsx)(T.Z,{}),type:"primary",onClick:X,disabled:le,children:e.formatMessage({id:"create",defaultMessage:"Create"})},"create"),(0,J.jsx)(P.ZP,{icon:(0,J.jsx)(Z.Z,{}),type:"primary",onClick:oe,disabled:le,children:e.formatMessage({id:"import",defaultMessage:"Import"})},"import"),(0,J.jsx)(P.ZP,{icon:(0,J.jsx)(_.Z,{}),type:"primary",onClick:se,disabled:le,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"export"),(0,J.jsx)(P.ZP,{icon:(0,J.jsx)(D.Z,{}),type:"link",onClick:function(){window.open("https://www.weiyuai.cn/download/excel/keyword.xlsx")},children:e.formatMessage({id:"download.template",defaultMessage:"Download Template"})},"download")]}}),(0,J.jsx)(W,{isEdit:a,open:j,keyword:c,onClose:function(){return S(!1)},onSubmit:te}),(0,J.jsx)(re.Z,{type:m.jNC,acceptType:".xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",isModalOpen:B,handleOk:function(){console.log("handleUploadDragSubmit"),H(!1),null==t||t.current.reload()},handleCancel:function(){console.log("handleUploadDragCancel"),H(!1),null==t||t.current.reload()}}),(0,J.jsx)(ne,{type:m.jNC,open:V,onClose:function(){return Y(!1)}})]})},se=n(52670),le=a.Z.Sider,ie=a.Z.Content,de=function(){var e=(0,r.Z)(),t=e.leftSiderStyle,n=e.contentStyle;return(0,J.jsx)("div",{children:(0,J.jsxs)(a.Z,{children:[(0,J.jsx)(le,{style:t,children:(0,J.jsx)(se.Z,{type:m.jNC})}),(0,J.jsx)(a.Z,{children:(0,J.jsx)(ie,{style:n,children:(0,J.jsx)(oe,{})})})]})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__KeywordStatistic.6ba0b7d5.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__KeywordStatistic.6ba0b7d5.async.js new file mode 100644 index 00000000..f43b3d3a --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__KeywordStatistic.6ba0b7d5.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9397],{62398:function(e,s,c){c.r(s);var a=c(85615),n=c(86745),i=c(85893);s.default=function(){var e=(0,n.useAccess)();return e.canDebug&&console.log("TabKeywordReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(n.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.FormattedMessage,{id:a.h5w})}),children:"KeywordStatistic"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__KeywordStatistic.91f4cc1e.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__KeywordStatistic.91f4cc1e.async.js deleted file mode 100644 index 8de59fbd..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__KeywordStatistic.91f4cc1e.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9397],{62398:function(d,c,e){e.r(c);var t=e(85615),a=e(86745),s=e(85893),i=function(){var n=(0,a.useAccess)();return n.canDebug&&console.log("TabKeywordReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(a.Access,{accessible:n.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a.FormattedMessage,{id:t.h5w})}),children:"KeywordStatistic"})})})};c.default=i}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__index.0c431791.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__index.0c431791.async.js deleted file mode 100644 index dde14cc7..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__index.0c431791.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5847],{40883:function(o,_,t){t.r(_);var E=t(77154),s=t(21612),K=t(67294),l=t(96974),d=t(85615),a=t(65383),n=t(85893),r=s.Z.Sider,D=s.Z.Content,M=function(){var e=(0,E.Z)(),O=e.leftSiderStyle,P=e.contentStyle;return(0,n.jsxs)(s.Z,{children:[(0,n.jsx)(r,{style:O,children:(0,n.jsx)(a.Z,{type:d.jNC})}),(0,n.jsx)(s.Z,{children:(0,n.jsx)(D,{style:P,children:(0,n.jsx)(l.j3,{})})})]})};_.default=M}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__index.6126c068.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__index.6126c068.async.js new file mode 100644 index 00000000..2fb6fe08 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Keyword__index.6126c068.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5847],{40883:function(e,n,t){t.r(n);var s=t(77154),l=t(21612),r=(t(67294),t(96974)),i=t(85615),c=t(65383),d=t(85893),j=l.Z.Sider,u=l.Z.Content;n.default=function(){var e=(0,s.Z)(),n=e.leftSiderStyle,t=e.contentStyle;return(0,d.jsxs)(l.Z,{children:[(0,d.jsx)(j,{style:n,children:(0,d.jsx)(c.Z,{type:i.jNC})}),(0,d.jsx)(l.Z,{children:(0,d.jsx)(u,{style:t,children:(0,d.jsx)(r.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__LlmData.a2460c5b.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__LlmData.a2460c5b.async.js new file mode 100644 index 00000000..80993513 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__LlmData.a2460c5b.async.js @@ -0,0 +1 @@ +(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4167],{11475:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(1413),o=n(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 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"},s=n(89099),c=function(e,t){return o.createElement(s.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};var u=o.forwardRef(c)},64082:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(1413),o=n(67294),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},s=n(89099),c=function(e,t){return o.createElement(s.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};var u=o.forwardRef(c)},64317:function(e,t,n){"use strict";var r=n(1413),o=n(91),a=n(22270),s=n(67294),c=n(66758),u=n(29258),l=n(85893),i=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],f=function(e,t){var n=e.fieldProps,d=e.children,f=e.params,p=e.proFieldProps,m=e.mode,g=e.valueEnum,h=e.request,b=e.showSearch,v=e.options,x=(0,o.Z)(e,i),y=(0,s.useContext)(c.Z);return(0,l.jsx)(u.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,a.h)(g),request:h,params:f,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({options:v,mode:m,showSearch:b,getPopupContainer:y.getPopupContainer},n),ref:t,proFieldProps:p},x),{},{children:d}))},p=s.forwardRef((function(e,t){var n=e.fieldProps,i=e.children,f=e.params,p=e.proFieldProps,m=e.mode,g=e.valueEnum,h=e.request,b=e.options,v=(0,o.Z)(e,d),x=(0,r.Z)({options:b,mode:m||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),y=(0,s.useContext)(c.Z);return(0,l.jsx)(u.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,a.h)(g),request:h,params:f,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({getPopupContainer:y.getPopupContainer},x),ref:t,proFieldProps:p},v),{},{children:i}))})),m=s.forwardRef(f);m.SearchSelect=p,m.displayName="ProFormComponent",t.Z=m},27214:function(){},91977:function(e,t,n){"use strict";n.d(t,{HZ:function(){return m},RR:function(){return i},yL:function(){return f}});var r=n(15009),o=n.n(r),a=n(97857),s=n.n(a),c=n(99289),u=n.n(c),l=n(86745);function i(e){return d.apply(this,arguments)}function d(){return(d=u()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/v1/upload/query/org",{method:"GET",params:s()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return p.apply(this,arguments)}function p(){return(p=u()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/v1/upload/process",{method:"POST",data:s()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return g.apply(this,arguments)}function g(){return(g=u()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/v1/upload/delete",{method:"POST",data:s()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},68256:function(e,t,n){"use strict";var r=n(97857),o=n.n(r),a=n(5574),s=n.n(a),c=n(85576),u=n(67294),l=n(64082),i=n(64121),d=n(27484),f=n.n(d),p=n(85615),m=n(80049),g=n(38302),h=n(89102),b=n(17634),v=n(85893),x=i.Z.Dragger;t.Z=function(e){var t=e.type,n=e.acceptType,r=e.isModalOpen,a=e.handleOk,i=e.handleCancel,d=(0,g.j)((function(e){return e.currentKbase})),y=(0,u.useState)((null==d?void 0:d.uid)||""),w=s()(y,2),j=w[0],k=w[1],C=(0,h.v)((function(e){return e.currentCategory})),R=(0,u.useState)("当前支持上传pdf/txt/markdown/docx等"),F=s()(R,2),Z=F[0],D=F[1],M=(0,u.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:t,category_uid:"all"===(null==C?void 0:C.uid)?"":(null==C?void 0:C.uid)||"",kb_uid:(null==d?void 0:d.uid)||"",client:p.bVn}),S=s()(M,2),P=S[0],E=S[1],I={name:"file",accept:n,action:(0,b.M$)(),headers:{Authorization:"Bearer "+localStorage.getItem(p.LA8)},data:P,showUploadList:!1,beforeUpload:function(e){console.log("beforeUpload before",e,j,d);var n=f()(new Date).format("YYMMDDHHmmss")+"_"+e.name;P.file=e,P.file_name=n,P.file_type=e.type,P.kb_type=t,P.kb_uid=j,console.log("beforeUpload after",P)},onChange:function(e){"uploading"===e.file.status&&m.yw.loading("".concat(e.file.name," 上传中")),"done"===e.file.status?(console.log("response: ",e.file.response),200===e.file.response.code?(m.yw.destroy(),m.yw.success("".concat(e.file.name," 上传成功")),a()):(m.yw.destroy(),m.yw.error("".concat(e.file.name," 上传失败")),i())):"error"===e.file.status&&(m.yw.error("".concat(e.file.name," 上传失败")),i())},onDrop:function(e){console.log("Dropped files",e.dataTransfer.files)}},K=(0,u.useState)(I),U=s()(K,2),O=U[0],T=U[1];return(0,u.useEffect)((function(){g.j.subscribe((function(e,t){var n,r;console.log("useKbaseStore changed:",null==e||null===(n=e.currentKbase)||void 0===n?void 0:n.uid),k(null==e||null===(r=e.currentKbase)||void 0===r?void 0:r.uid),T(I)}))}),[d]),(0,u.useEffect)((function(){t!=p.QPQ&&(I.accept="application/vnd.ms-excel",T(I),D("当前支持上传excel文件")),E(o()(o()({},P),{},{kb_type:t,category_uid:"all"===(null==C?void 0:C.uid)?"":null==C?void 0:C.uid})),T(I)}),[t,C]),(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(c.Z,{title:"上传文件",open:r,onOk:a,onCancel:i,children:(0,v.jsxs)(x,o()(o()({},O),{},{children:[(0,v.jsx)("p",{className:"ant-upload-drag-icon",children:(0,v.jsx)(l.Z,{})}),(0,v.jsx)("p",{className:"ant-upload-text",children:"点击或拖拽文件至此处实现上传"}),(0,v.jsx)("p",{className:"ant-upload-hint",children:Z})]}))})})}},26739:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return de}});var r=n(77154),o=n(21612),a=n(85615),s=n(52670),c=n(5574),u=n.n(c),l=n(67294),i=n(11941),d=n(15009),f=n.n(d),p=n(97857),m=n.n(p),g=n(13769),h=n.n(g),b=n(99289),v=n.n(b),x=n(91977),y=n(89102),w=n(27214),j=n(73445),k=n(782),C=n(18753),R=(0,j.Ue)()((0,k.mW)((0,k.tJ)((0,C.n)((function(e,t){return{kbFileResult:{},kbDocResult:{items:[]},currentKbFile:{},currentKbDoc:{fileName:"",pageContent:""},fetchFiles:(s=v()(f()().mark((function e(t,n){var r;return f()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("kbName",t," pageParams",n),e.next=3,(0,w.getKbFiles)(t,n);case 3:r=e.sent,console.log("kbName kbFiles",r);case 5:case"end":return e.stop()}}),e)}))),function(e,t){return s.apply(this,arguments)}),deleteFile:(a=v()(f()().mark((function n(r){var o,a,s,c,u;return f()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("delete file",r),n.next=3,(0,w.deleteKbFile)(r);case 3:o=n.sent,a=t().kbFileResult.data.content.filter((function(e){return e.uid!==r})),e((function(e){return{kbFileResult:{items:a}}})),console.log("delete file result",o),s=t().kbDocResult.data.content,c=f()().mark((function e(){var t;return f()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=o.data[u],s=s.filter((function(e){return e.uid!==t}));case 2:case"end":return e.stop()}}),e)})),u=0;case 10:if(!(u0&&e({currentRobot:n.data.content[0]})},setCurrentRobot:function(n){var r=t().robotResult.data.content,a=r.findIndex((function(e){return e.uid===n.uid}));if(-1!==a){var c=[].concat(s()(r.slice(0,a)),[n],s()(r.slice(a+1))),u=o()(o()({},t().robotResult),{},{data:{content:c}});e({robotResult:u,currentRobot:n})}else console.warn("Robot with the specified uid not found."),e({currentRobot:n})},deleteCurrentRobot:function(n){var r=t().robotResult.data.content,a=r.findIndex((function(e){return e.uid===n}));-1!==a?e({robotResult:o()(o()({},t().robotResult),{},{data:{content:[].concat(s()(r.slice(0,a)),s()(r.slice(a+1)))}})}):console.warn("Robot not found in cache:",n),t().currentRobot.uid===n&&e({currentRobot:{uid:""}})},deleteRobotCache:function(){return e({},!0)}}})),{name:c.Eis})))},86250:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(67294),o=n(93967),a=n.n(o),s=n(98423),c=n(98065),u=n(53124),l=n(83559),i=n(83262);const d=["wrap","nowrap","wrap-reverse"],f=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],p=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var m=function(e,t){return a()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&d.includes(n)}})(e,t)),((e,t)=>{const n={};return p.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))};const g=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},h=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},b=e=>{const{componentCls:t}=e,n={};return d.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},v=e=>{const{componentCls:t}=e,n={};return p.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},x=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n};var y=(0,l.I$)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=(0,i.IX)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[g(o),h(o),b(o),v(o),x(o)]}),(()=>({})),{resetStyle:!1}),w=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,rootClassName:o,className:l,style:i,flex:d,gap:f,children:p,vertical:g=!1,component:h="div"}=e,b=w(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:x,getPrefixCls:j}=r.useContext(u.E_),k=j("flex",n),[C,R,F]=y(k),Z=null!=g?g:null==v?void 0:v.vertical,D=a()(l,o,null==v?void 0:v.className,k,R,F,m(k,e),{[`${k}-rtl`]:"rtl"===x,[`${k}-gap-${f}`]:(0,c.n)(f),[`${k}-vertical`]:Z}),M=Object.assign(Object.assign({},null==v?void 0:v.style),i);return d&&(M.flex=d),f&&!(0,c.n)(f)&&(M.gap=f),C(r.createElement(h,Object.assign({ref:t,className:D,style:M},(0,s.Z)(b,["justify","wrap","align"])),p))}));var k=j}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__LlmData.d985143f.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__LlmData.d985143f.async.js deleted file mode 100644 index 1cd5b44d..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__LlmData.d985143f.async.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4167],{11475:function(me,k,e){e.d(k,{Z:function(){return S}});var l=e(1413),g=e(67294),G={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"},b=G,H=e(89099),$=function(K,x){return g.createElement(H.Z,(0,l.Z)((0,l.Z)({},K),{},{ref:x,icon:b}))},w=g.forwardRef($),S=w},64317:function(me,k,e){var l=e(1413),g=e(91),G=e(22270),b=e(67294),H=e(66758),$=e(24809),w=e(85893),S=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],Q=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],K=function(A,R){var D=A.fieldProps,O=A.children,M=A.params,f=A.proFieldProps,Z=A.mode,Y=A.valueEnum,J=A.request,j=A.showSearch,d=A.options,s=(0,g.Z)(A,S),p=(0,b.useContext)(H.Z);return(0,w.jsx)($.Z,(0,l.Z)((0,l.Z)({valueEnum:(0,G.h)(Y),request:J,params:M,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,l.Z)({options:d,mode:Z,showSearch:j,getPopupContainer:p.getPopupContainer},D),ref:R,proFieldProps:f},s),{},{children:O}))},x=b.forwardRef(function(E,A){var R=E.fieldProps,D=E.children,O=E.params,M=E.proFieldProps,f=E.mode,Z=E.valueEnum,Y=E.request,J=E.options,j=(0,g.Z)(E,Q),d=(0,l.Z)({options:J,mode:f||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},R),s=(0,b.useContext)(H.Z);return(0,w.jsx)($.Z,(0,l.Z)((0,l.Z)({valueEnum:(0,G.h)(Z),request:Y,params:O,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,l.Z)({getPopupContainer:s.getPopupContainer},d),ref:A,proFieldProps:M},j),{},{children:D}))}),U=b.forwardRef(K),W=x,B=U;B.SearchSelect=W,B.displayName="ProFormComponent",k.Z=B},91977:function(me,k,e){e.d(k,{HZ:function(){return B},RR:function(){return S},yL:function(){return K}});var l=e(15009),g=e.n(l),G=e(97857),b=e.n(G),H=e(99289),$=e.n(H),w=e(86745);function S(D){return Q.apply(this,arguments)}function Q(){return Q=$()(g()().mark(function D(O){return g()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,w.request)("/api/v1/upload/query/org",{method:"GET",params:b()({},O)}));case 1:case"end":return f.stop()}},D)})),Q.apply(this,arguments)}function K(D){return x.apply(this,arguments)}function x(){return x=$()(g()().mark(function D(O){return g()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,w.request)("/api/v1/upload/process",{method:"POST",data:b()({},O)}));case 1:case"end":return f.stop()}},D)})),x.apply(this,arguments)}function U(D){return W.apply(this,arguments)}function W(){return W=_asyncToGenerator(_regeneratorRuntime().mark(function D(O){return _regeneratorRuntime().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",request("/api/v1/upload/update",{method:"POST",data:_objectSpread({},O)}));case 1:case"end":return f.stop()}},D)})),W.apply(this,arguments)}function B(D){return E.apply(this,arguments)}function E(){return E=$()(g()().mark(function D(O){return g()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,w.request)("/api/v1/upload/delete",{method:"POST",data:b()({},O)}));case 1:case"end":return f.stop()}},D)})),E.apply(this,arguments)}function A(D){return R.apply(this,arguments)}function R(){return R=_asyncToGenerator(_regeneratorRuntime().mark(function D(O){return _regeneratorRuntime().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",request("/api/v1/upload/export",{method:"GET",params:_objectSpread({},O)}));case 1:case"end":return f.stop()}},D)})),R.apply(this,arguments)}},91310:function(me,k,e){var l=e(15009),g=e.n(l),G=e(99289),b=e.n(G),H=e(85265),$=e(75658),w=e(98558),S=e(67294),Q=e(38302),K=e(73803),x=e(9361),U=e(39825),W=e(85615),B=e(85893),E=function(R){var D=R.type,O=R.open,M=R.onClose,f=(0,U.Z)(),Z=f.isDarkMode,Y=(0,K.Z)(),J=Y.translateString,j=(0,S.useRef)(),d=(0,Q.j)(function(o){return o.currentKbase});(0,S.useEffect)(function(){var o;(o=j.current)===null||o===void 0||o.clearMessage()},[d]);var s=function(){var o=b()(g()().mark(function h(I){var P,r,X;return g()().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return console.log("handleChat"),P=I[I.length-1],N.next=4,fetch("http://127.0.0.1:1001/visitor/api/v1/ai/ollama/chat?query=".concat(P==null?void 0:P.content,"&kbUid=").concat(d==null?void 0:d.uid),{method:"GET"});case 4:return r=N.sent,N.next=7,r.json();case 7:return X=N.sent,console.log("sendAiMessageStream response:",X),N.abrupt("return",new Response(X==null?void 0:X.data));case 10:case"end":return N.stop()}},h)}));return function(I){return o.apply(this,arguments)}}(),p=function(){var o=b()(g()().mark(function h(I){return g()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:console.log("handleChatKeyword");case 1:case"end":return r.stop()}},h)}));return function(I){return o.apply(this,arguments)}}(),y=function(){var o=b()(g()().mark(function h(I){var P,r,X,ee,N,ae;return g()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("handleChatStream"),P=I[I.length-1],n.next=4,fetch("http://127.0.0.1:1001/visitor/api/v1/ai/ollama/chat/stream",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},body:JSON.stringify({query:P==null?void 0:P.content,kbUid:d==null?void 0:d.uid,stream:!0})});case 4:if(r=n.sent,!(!r.ok||!r.body)){n.next=7;break}throw new Error("HTTP error! status: ".concat(r.status));case 7:return X=r.body.getReader(),ee=new TextDecoder("utf-8"),N=new TextEncoder,ae=new ReadableStream({start:function(t){return b()(g()().mark(function u(){var c;return g()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:c=function(){X.read().then(function(C){var L=C.done,oe=C.value;if(L){t.close();return}var re=ee.decode(oe,{stream:!0}),se=re.replaceAll("data:","").replaceAll(` -`,"");t.enqueue(N.encode(se)),c()}).catch(function(C){console.error("\u8BFB\u53D6\u6D41\u4E2D\u7684\u6570\u636E\u65F6\u53D1\u751F\u9519\u8BEF",C),t.error(C)})},c();case 2:case"end":return v.stop()}},u)}))()}}),n.abrupt("return",new Response(ae));case 12:case"end":return n.stop()}},h)}));return function(I){return o.apply(this,arguments)}}();return(0,B.jsx)("div",{children:(0,B.jsx)(H.Z,{title:J(d==null?void 0:d.name),onClose:function(){M&&M()},open:O,styles:{body:{padding:0}},children:(0,B.jsx)(w.f6,{appearance:Z?"dark":"light",theme:{algorithm:Z?x.Z.darkAlgorithm:x.Z.defaultAlgorithm},children:(0,B.jsx)($.j,{chatRef:j,helloMessage:"\u8BF7\u8F93\u5165\u4F60\u60F3\u95EE\u7684\u95EE\u9898",request:function(){var o=b()(g()().mark(function h(I){return g()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(console.log("messages:",I),!(I.length>0)){r.next=8;break}if(D!==W.QPQ){r.next=6;break}return r.abrupt("return",y(I));case 6:if(D!==W.jNC){r.next=8;break}return r.abrupt("return",p(I));case 8:case"end":return r.stop()}},h)}));return function(h){return o.apply(this,arguments)}}()})})})})};k.Z=E},68256:function(me,k,e){var l=e(97857),g=e.n(l),G=e(5574),b=e.n(G),H=e(85576),$=e(67294),w=e(64082),S=e(64121),Q=e(27484),K=e.n(Q),x=e(85615),U=e(80049),W=e(38302),B=e(89102),E=e(85893),A=S.Z.Dragger,R=function(O){var M=O.type,f=O.acceptType,Z=O.isModalOpen,Y=O.handleOk,J=O.handleCancel,j=(0,W.j)(function(a){return a.currentKbase}),d=(0,B.v)(function(a){return a.currentCategory}),s=(0,$.useState)("\u5F53\u524D\u652F\u6301\u4E0A\u4F20pdf/txt/markdown/docx\u7B49"),p=b()(s,2),y=p[0],o=p[1],h=(0,$.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:M,category_uid:(d==null?void 0:d.uid)==="all"?"":(d==null?void 0:d.uid)||"",kb_uid:(j==null?void 0:j.uid)||"",client:x.bVn}),I=b()(h,2),P=I[0],r=I[1],X=function(t){var u=K()(new Date).format("YYYYMMDDHHmmss")+"_"+t.name,c=new FormData;c.append("file",t),c.append("file_name",u),c.append("file_type",t.type),c.append("is_avatar","false"),c.append("kb_type",M),c.append("category_uid",(d==null?void 0:d.uid)==="all"?"":(d==null?void 0:d.uid)||""),c.append("kb_uid",(j==null?void 0:j.uid)||""),c.append("client",x.bVn),fetch("/api/v1/upload/file",{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(x.LA8)},body:c}).then(function(m){return m.json()}).then(function(m){console.log("upload data:",m),m.code===200?(U.yw.destroy(),U.yw.success("".concat(u," \u4E0A\u4F20\u6210\u529F")),Y()):(U.yw.destroy(),U.yw.error("".concat(u," \u4E0A\u4F20\u5931\u8D25")),J())})},ee={name:"file",accept:f,action:"/api/v1/upload/file",headers:{Authorization:"Bearer "+localStorage.getItem(x.LA8)},data:P,showUploadList:!1,beforeUpload:function(t){console.log("beforeUpload",t);var u=K()(new Date).format("YYMMDDHHmmss")+"_"+t.name;P.file=t,P.file_name=u,P.file_type=t.type,P.kb_type=M,P.category_uid=(d==null?void 0:d.uid)==="all"?"":d==null?void 0:d.uid,P.kb_uid=j==null?void 0:j.uid,console.log("beforeUpload",P)},onChange:function(t){t.file.status==="uploading"&&U.yw.loading("".concat(t.file.name," \u4E0A\u4F20\u4E2D")),t.file.status==="done"?(console.log("response: ",t.file.response),t.file.response.code===200?(U.yw.destroy(),U.yw.success("".concat(t.file.name," \u4E0A\u4F20\u6210\u529F")),Y()):(U.yw.destroy(),U.yw.error("".concat(t.file.name," \u4E0A\u4F20\u5931\u8D25")),J())):t.file.status==="error"&&(U.yw.error("".concat(t.file.name," \u4E0A\u4F20\u5931\u8D25")),J())},onDrop:function(t){console.log("Dropped files",t.dataTransfer.files),X(t.dataTransfer.files[0])}},N=(0,$.useState)(ee),ae=b()(N,2),q=ae[0],n=ae[1];return(0,$.useEffect)(function(){M!=x.QPQ&&(ee.accept="application/vnd.ms-excel",n(ee),o("\u5F53\u524D\u652F\u6301\u4E0A\u4F20excel\u6587\u4EF6")),r(g()(g()({},P),{},{kb_type:M,category_uid:(d==null?void 0:d.uid)==="all"?"":d==null?void 0:d.uid,kb_uid:j==null?void 0:j.uid}))},[M,d,j]),(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(H.Z,{title:"\u4E0A\u4F20\u6587\u4EF6",open:Z,onOk:Y,onCancel:J,children:(0,E.jsxs)(A,g()(g()({},q),{},{children:[(0,E.jsx)("p",{className:"ant-upload-drag-icon",children:(0,E.jsx)(w.Z,{})}),(0,E.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u81F3\u6B64\u5904\u5B9E\u73B0\u4E0A\u4F20"}),(0,E.jsx)("p",{className:"ant-upload-hint",children:y})]}))})})};k.Z=R},49381:function(me,k,e){e.r(k),e.d(k,{default:function(){return u}});var l=e(77154),g=e(21612),G=e(97857),b=e.n(G),H=e(13769),$=e.n(H),w=e(15009),S=e.n(w),Q=e(99289),K=e.n(Q),x=e(5574),U=e.n(x),W=e(80049),B=e(91977),E=e(91310),A=e(68256),R=e(89102),D=e(38302),O=e(87676),M=e(85615),f=e(1413),Z=e(67294),Y={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.78 729.59a135.87 135.87 0 00-47.04 19.04 114.24 114.24 0 01-51.4 31.08 76.29 76.29 0 0124.45-45.42 169.3 169.3 0 0023.4-55.02 50.41 50.41 0 1150.6 50.32zm-92.21-120.76a168.83 168.83 0 00-54.81-23.68 50.41 50.41 0 01-50.4-50.42 50.41 50.41 0 11100.8 0 137.5 137.5 0 0018.82 47.2 114.8 114.8 0 0130.76 51.66 76.08 76.08 0 01-45.02-24.76h-.19zm-83.04-177.71c-15.19-127.33-146.98-227.1-306.44-227.1-169.87 0-308.09 113.1-308.09 252.2A235.81 235.81 0 00230.06 647.6a311.28 311.28 0 0033.6 21.59L250 723.76c4.93 2.31 9.7 4.78 14.75 6.9l69-34.5c10.07 2.61 20.68 4.3 31.2 6.08 6.73 1.2 13.45 2.43 20.35 3.25a354.83 354.83 0 00128.81-7.4 248.88 248.88 0 0010.15 55.06 425.64 425.64 0 01-96.17 11.24 417.98 417.98 0 01-86.4-9.52L216.52 817.4a27.62 27.62 0 01-29.98-3.14 28.02 28.02 0 01-9.67-28.61l22.4-90.24A292.26 292.26 0 0164 456.21C64 285.98 227 148 428.09 148c190.93 0 347.29 124.53 362.52 282.82a244.97 244.97 0 00-26.47-2.62c-9.9.38-19.79 1.31-29.6 2.88zm-116.3 198.81a135.76 135.76 0 0047.05-19.04 114.24 114.24 0 0151.45-31 76.47 76.47 0 01-24.5 45.34 169.48 169.48 0 00-23.4 55.05 50.41 50.41 0 01-100.8.23 50.41 50.41 0 0150.2-50.58m90.8 121.32a168.6 168.6 0 0054.66 23.9 50.44 50.44 0 0135.64 86.08 50.38 50.38 0 01-86.04-35.66 136.74 136.74 0 00-18.67-47.28 114.71 114.71 0 01-30.54-51.8 76 76 0 0144.95 25.06z"}}]},name:"wechat-work",theme:"outlined"},J=Y,j=e(89099),d=function(m,v){return Z.createElement(j.Z,(0,f.Z)((0,f.Z)({},m),{},{ref:v,icon:J}))},s=Z.forwardRef(d),p=s,y=e(51042),o=e(57482),h=e(86745),I=e(86738),P=e(14726),r=e(85893),X=["current"],ee=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,r.jsx)(h.FormattedMessage,{id:"fileName",defaultMessage:"fileName"}),dataIndex:"fileName"},{title:(0,r.jsx)(h.FormattedMessage,{id:"fileType",defaultMessage:"fileType"}),dataIndex:"fileType",hideInSearch:!0},{title:(0,r.jsx)(h.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",hideInSearch:!0},{title:(0,r.jsx)(h.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",width:200,hideInSearch:!0}],N=function(){var m=(0,h.useIntl)(),v=(0,Z.useRef)(),F=(0,O.u)(function(T){return T.currentOrg}),C=(0,D.j)(function(T){return T.currentKbase}),L=(0,R.v)(function(T){return T.currentCategory}),oe=(0,Z.useState)(!1),re=U()(oe,2),se=re[0],le=re[1],V=(0,Z.useState)(!1),ue=U()(V,2),de=ue[0],he=ue[1],Ee=function(){var T=K()(S()().mark(function i(_){var te;return S()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return console.log("process",_),z.next=3,(0,B.yL)(_);case 3:te=z.sent,console.log("process response",te),te.code===200?(v==null||v.current.reload(),W.yw.success(m.formatMessage({id:"process.success",defaultMessage:"Process Success"}))):W.yw.error(m.formatMessage({id:"process.fail",defaultMessage:"Process Error"}));case 6:case"end":return z.stop()}},i)}));return function(_){return T.apply(this,arguments)}}(),Ce=function(){var T=K()(S()().mark(function i(_){var te;return S()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return console.log(_),z.next=3,(0,B.HZ)(_);case 3:te=z.sent,console.log("delete response:",te),te.code===200?(v==null||v.current.reload(),W.yw.success(m.formatMessage({id:"delete.success",defaultMessage:"Delete Success"}))):W.yw.error(m.formatMessage({id:"delete.error",defaultMessage:"Delete Error"}));case 6:case"end":return z.stop()}},i)}));return function(_){return T.apply(this,arguments)}}(),_e=[].concat(ee,[{title:m.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:150,render:function(i,_,te,ve){return[(0,r.jsx)("a",{onClick:function(){var ge=_==null?void 0:_.fileUrl,fe=encodeURIComponent(ge);window.open(decodeURIComponent(fe))},children:m.formatMessage({id:"open",defaultMessage:"Open"})},"editable"),(0,r.jsx)("a",{onClick:function(){Ee(_)},children:"\u5904\u7406"},"status"),(0,r.jsx)(I.Z,{title:m.formatMessage({id:"deleteTip",defaultMessage:"Delete Tip"}),description:"".concat(m.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"\u3010").concat(_==null?void 0:_.fileName,"\u3011\uFF1F"),onConfirm:function(){return Ce(_)},okText:m.formatMessage({id:"ok"}),cancelText:m.formatMessage({id:"cancel"}),children:(0,r.jsx)(P.ZP,{size:"small",type:"link",danger:!0,children:m.formatMessage({id:"delete",defaultMessage:"Delete"})})},"delete")]}}]);(0,Z.useEffect)(function(){var T;v==null||(T=v.current)===null||T===void 0||T.reload()},[C,L]);var Pe=function(){console.log("handleUploadDragSubmit"),le(!1),v==null||v.current.reload()},ye=function(){console.log("handleUploadDragCancel"),le(!1),v==null||v.current.reload()},De=(0,Z.useMemo)(function(){return(C==null?void 0:C.type)===M.QPQ?(C==null?void 0:C.uid)==="":!0},[C]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{columns:_e,actionRef:v,cardBordered:!0,request:function(){var T=K()(S()().mark(function i(_,te,ve){var z,ge,fe,ce;return S()().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return console.log("request:",_,te,ve),z=_.current,ge=$()(_,X),fe=b()({pageNumber:_.current-1,categoryUid:(L==null?void 0:L.uid)==="all"?"":L==null?void 0:L.uid,kbUid:C==null?void 0:C.uid,orgUid:F==null?void 0:F.uid},ge),pe.next=5,(0,B.RR)(fe);case 5:return ce=pe.sent,console.log("getAllUploads response:",ce),ce.code===200||W.yw.error(ce.message),pe.abrupt("return",{data:ce.data.content,success:!0,total:ce.data.totalElements});case 9:case"end":return pe.stop()}},i)}));return function(i,_,te){return T.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(i){console.log("page:",i)}},dateFormatter:"string",headerTitle:"\u6587\u6863",toolBarRender:function(){return[(0,r.jsx)(P.ZP,{type:"primary",icon:(0,r.jsx)(p,{}),onClick:function(){he(!0)},disabled:!0,children:"\u6D4B\u8BD5"},"test"),(0,r.jsx)(P.ZP,{icon:(0,r.jsx)(y.Z,{}),type:"primary",onClick:function(){return le(!0)},disabled:De,children:m.formatMessage({id:"upload",defaultMessage:"Upload"})},"button")]}}),(0,r.jsx)(A.Z,{type:M.QPQ,acceptType:"application/pdf, text/plain, text/html, text/markdown, application/json",isModalOpen:se,handleOk:Pe,handleCancel:ye}),(0,r.jsx)(E.Z,{type:M.QPQ,open:de,onClose:function(){return he(!1)}})]})},ae=N,q=e(52670),n=g.Z.Sider,a=g.Z.Content,t=function(){var m=(0,l.Z)(),v=m.leftSiderStyle,F=m.contentStyle;return(0,r.jsx)("div",{children:(0,r.jsxs)(g.Z,{children:[(0,r.jsx)(n,{style:v,children:(0,r.jsx)(q.Z,{type:M.QPQ})}),(0,r.jsx)(g.Z,{children:(0,r.jsx)(a,{style:F,children:(0,r.jsx)(ae,{})})})]})})},u=t},40056:function(me,k,e){e.d(k,{Z:function(){return q}});var l=e(67294),g=e(76278),G=e(17012),b=e(84481),H=e(26702),$=e(1558),w=e(93967),S=e.n(w),Q=e(29372),K=e(64217),x=e(42550),U=e(96159),W=e(53124),B=e(85982),E=e(14747),A=e(27036);const R=(n,a,t,u,c)=>({background:n,border:`${(0,B.bf)(u.lineWidth)} ${u.lineType} ${a}`,[`${c}-icon`]:{color:t}}),D=n=>{const{componentCls:a,motionDurationSlow:t,marginXS:u,marginSM:c,fontSize:m,fontSizeLG:v,lineHeight:F,borderRadiusLG:C,motionEaseInOutCirc:L,withDescriptionIconSize:oe,colorText:re,colorTextHeading:se,withDescriptionPadding:le,defaultPadding:V}=n;return{[a]:Object.assign(Object.assign({},(0,E.Wf)(n)),{position:"relative",display:"flex",alignItems:"center",padding:V,wordWrap:"break-word",borderRadius:C,[`&${a}-rtl`]:{direction:"rtl"},[`${a}-content`]:{flex:1,minWidth:0},[`${a}-icon`]:{marginInlineEnd:u,lineHeight:0},"&-description":{display:"none",fontSize:m,lineHeight:F},"&-message":{color:se},[`&${a}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${t} ${L}, opacity ${t} ${L}, - padding-top ${t} ${L}, padding-bottom ${t} ${L}, - margin-bottom ${t} ${L}`},[`&${a}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${a}-with-description`]:{alignItems:"flex-start",padding:le,[`${a}-icon`]:{marginInlineEnd:c,fontSize:oe,lineHeight:0},[`${a}-message`]:{display:"block",marginBottom:u,color:se,fontSize:v},[`${a}-description`]:{display:"block",color:re}},[`${a}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},O=n=>{const{componentCls:a,colorSuccess:t,colorSuccessBorder:u,colorSuccessBg:c,colorWarning:m,colorWarningBorder:v,colorWarningBg:F,colorError:C,colorErrorBorder:L,colorErrorBg:oe,colorInfo:re,colorInfoBorder:se,colorInfoBg:le}=n;return{[a]:{"&-success":R(c,u,t,n,a),"&-info":R(le,se,re,n,a),"&-warning":R(F,v,m,n,a),"&-error":Object.assign(Object.assign({},R(oe,L,C,n,a)),{[`${a}-description > pre`]:{margin:0,padding:0}})}}},M=n=>{const{componentCls:a,iconCls:t,motionDurationMid:u,marginXS:c,fontSizeIcon:m,colorIcon:v,colorIconHover:F}=n;return{[a]:{"&-action":{marginInlineStart:c},[`${a}-close-icon`]:{marginInlineStart:c,padding:0,overflow:"hidden",fontSize:m,lineHeight:(0,B.bf)(m),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${t}-close`]:{color:v,transition:`color ${u}`,"&:hover":{color:F}}},"&-close-text":{color:v,transition:`color ${u}`,"&:hover":{color:F}}}}},f=n=>({withDescriptionIconSize:n.fontSizeHeading3,defaultPadding:`${n.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${n.paddingMD}px ${n.paddingContentHorizontalLG}px`});var Z=(0,A.I$)("Alert",n=>[D(n),O(n),M(n)],f),Y=function(n,a){var t={};for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&a.indexOf(u)<0&&(t[u]=n[u]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,u=Object.getOwnPropertySymbols(n);c{const{icon:a,prefixCls:t,type:u}=n,c=J[u]||null;return a?(0,U.wm)(a,l.createElement("span",{className:`${t}-icon`},a),()=>({className:S()(`${t}-icon`,{[a.props.className]:a.props.className})})):l.createElement(c,{className:`${t}-icon`})},d=n=>{const{isClosable:a,prefixCls:t,closeIcon:u,handleClose:c,ariaProps:m}=n,v=u===!0||u===void 0?l.createElement(b.Z,null):u;return a?l.createElement("button",Object.assign({type:"button",onClick:c,className:`${t}-close-icon`,tabIndex:0},m),v):null};var p=l.forwardRef((n,a)=>{const{description:t,prefixCls:u,message:c,banner:m,className:v,rootClassName:F,style:C,onMouseEnter:L,onMouseLeave:oe,onClick:re,afterClose:se,showIcon:le,closable:V,closeText:ue,closeIcon:de,action:he,id:Ee}=n,Ce=Y(n,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[_e,Pe]=l.useState(!1),ye=l.useRef(null);l.useImperativeHandle(a,()=>({nativeElement:ye.current}));const{getPrefixCls:De,direction:T,alert:i}=l.useContext(W.E_),_=De("alert",u),[te,ve,z]=Z(_),ge=ne=>{var ie;Pe(!0),(ie=n.onClose)===null||ie===void 0||ie.call(n,ne)},fe=l.useMemo(()=>n.type!==void 0?n.type:m?"warning":"info",[n.type,m]),ce=l.useMemo(()=>typeof V=="object"&&V.closeIcon||ue?!0:typeof V=="boolean"?V:de!==!1&&de!==null&&de!==void 0?!0:!!(i!=null&&i.closable),[ue,de,V,i==null?void 0:i.closable]),Oe=m&&le===void 0?!0:le,pe=S()(_,`${_}-${fe}`,{[`${_}-with-description`]:!!t,[`${_}-no-icon`]:!Oe,[`${_}-banner`]:!!m,[`${_}-rtl`]:T==="rtl"},i==null?void 0:i.className,v,F,z,ve),be=(0,K.Z)(Ce,{aria:!0,data:!0}),je=l.useMemo(()=>{var ne,ie;return typeof V=="object"&&V.closeIcon?V.closeIcon:ue||(de!==void 0?de:typeof(i==null?void 0:i.closable)=="object"&&(!((ne=i==null?void 0:i.closable)===null||ne===void 0)&&ne.closeIcon)?(ie=i==null?void 0:i.closable)===null||ie===void 0?void 0:ie.closeIcon:i==null?void 0:i.closeIcon)},[de,V,ue,i==null?void 0:i.closeIcon]),Se=l.useMemo(()=>{const ne=V!=null?V:i==null?void 0:i.closable;if(typeof ne=="object"){const{closeIcon:ie}=ne;return Y(ne,["closeIcon"])}return{}},[V,i==null?void 0:i.closable]);return te(l.createElement(Q.ZP,{visible:!_e,motionName:`${_}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:ne=>({maxHeight:ne.offsetHeight}),onLeaveEnd:se},(ne,ie)=>{let{className:Me,style:xe}=ne;return l.createElement("div",Object.assign({id:Ee,ref:(0,x.sQ)(ye,ie),"data-show":!_e,className:S()(pe,Me),style:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.style),C),xe),onMouseEnter:L,onMouseLeave:oe,onClick:re,role:"alert"},be),Oe?l.createElement(j,{description:t,icon:n.icon,prefixCls:_,type:fe}):null,l.createElement("div",{className:`${_}-content`},c?l.createElement("div",{className:`${_}-message`},c):null,t?l.createElement("div",{className:`${_}-description`},t):null),he?l.createElement("div",{className:`${_}-action`},he):null,l.createElement(d,{isClosable:ce,prefixCls:_,closeIcon:je,handleClose:ge,ariaProps:Se}))}))}),y=e(15671),o=e(43144),h=e(61120),I=e(78814),P=e(82963);function r(n,a,t){return a=(0,h.Z)(a),(0,P.Z)(n,(0,I.Z)()?Reflect.construct(a,t||[],(0,h.Z)(n).constructor):a.apply(n,t))}var X=e(60136),N=function(n){function a(){var t;return(0,y.Z)(this,a),t=r(this,a,arguments),t.state={error:void 0,info:{componentStack:""}},t}return(0,X.Z)(a,n),(0,o.Z)(a,[{key:"componentDidCatch",value:function(u,c){this.setState({error:u,info:c})}},{key:"render",value:function(){const{message:u,description:c,id:m,children:v}=this.props,{error:F,info:C}=this.state,L=(C==null?void 0:C.componentStack)||null,oe=typeof u=="undefined"?(F||"").toString():u,re=typeof c=="undefined"?L:c;return F?l.createElement(p,{id:m,type:"error",message:oe,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},re)}):v}}])}(l.Component);const ae=p;ae.ErrorBoundary=N;var q=ae},86250:function(me,k,e){e.d(k,{Z:function(){return d}});var l=e(67294),g=e(93967),G=e.n(g),b=e(98423),H=e(98065),$=e(53124),w=e(27036),S=e(45503);const Q=["wrap","nowrap","wrap-reverse"],K=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],x=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],U=(s,p)=>{const y=p.wrap===!0?"wrap":p.wrap;return{[`${s}-wrap-${y}`]:y&&Q.includes(y)}},W=(s,p)=>{const y={};return x.forEach(o=>{y[`${s}-align-${o}`]=p.align===o}),y[`${s}-align-stretch`]=!p.align&&!!p.vertical,y},B=(s,p)=>{const y={};return K.forEach(o=>{y[`${s}-justify-${o}`]=p.justify===o}),y};function E(s,p){return G()(Object.assign(Object.assign(Object.assign({},U(s,p)),W(s,p)),B(s,p)))}var A=E;const R=s=>{const{componentCls:p}=s;return{[p]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},D=s=>{const{componentCls:p}=s;return{[p]:{"&-gap-small":{gap:s.flexGapSM},"&-gap-middle":{gap:s.flexGap},"&-gap-large":{gap:s.flexGapLG}}}},O=s=>{const{componentCls:p}=s,y={};return Q.forEach(o=>{y[`${p}-wrap-${o}`]={flexWrap:o}}),y},M=s=>{const{componentCls:p}=s,y={};return x.forEach(o=>{y[`${p}-align-${o}`]={alignItems:o}}),y},f=s=>{const{componentCls:p}=s,y={};return K.forEach(o=>{y[`${p}-justify-${o}`]={justifyContent:o}}),y},Z=()=>({});var Y=(0,w.I$)("Flex",s=>{const{paddingXS:p,padding:y,paddingLG:o}=s,h=(0,S.TS)(s,{flexGapSM:p,flexGap:y,flexGapLG:o});return[R(h),D(h),O(h),M(h),f(h)]},Z,{resetStyle:!1}),J=function(s,p){var y={};for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&p.indexOf(o)<0&&(y[o]=s[o]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,o=Object.getOwnPropertySymbols(s);h{const{prefixCls:y,rootClassName:o,className:h,style:I,flex:P,gap:r,children:X,vertical:ee=!1,component:N="div"}=s,ae=J(s,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:q,direction:n,getPrefixCls:a}=l.useContext($.E_),t=a("flex",y),[u,c,m]=Y(t),v=ee!=null?ee:q==null?void 0:q.vertical,F=G()(h,o,q==null?void 0:q.className,t,c,m,A(t,s),{[`${t}-rtl`]:n==="rtl",[`${t}-gap-${r}`]:(0,H.n)(r),[`${t}-vertical`]:v}),C=Object.assign(Object.assign({},q==null?void 0:q.style),I);return P&&(C.flex=P),r&&!(0,H.n)(r)&&(C.gap=r),u(l.createElement(N,Object.assign({ref:p,className:F,style:C},(0,b.Z)(ae,["justify","wrap","align"])),X))})}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__LlmStatistic.5c0bb9dd.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__LlmStatistic.5c0bb9dd.async.js new file mode 100644 index 00000000..ab7c9955 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__LlmStatistic.5c0bb9dd.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4422],{5374:function(e,c,s){s.r(c);var n=s(85615),a=s(86745),i=s(85893);c.default=function(){var e=(0,a.useAccess)();return e.canDebug&&console.log("robotkb canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(a.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.FormattedMessage,{id:n.h5w})}),children:"LlmStatistic"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__LlmStatistic.8f95a2a1.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__LlmStatistic.8f95a2a1.async.js deleted file mode 100644 index a3a48fbd..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__LlmStatistic.8f95a2a1.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4422],{5374:function(l,t,c){c.r(t);var e=c(85615),a=c(86745),s=c(85893),i=function(){var n=(0,a.useAccess)();return n.canDebug&&console.log("robotkb canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(a.Access,{accessible:n.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a.FormattedMessage,{id:e.h5w})}),children:"LlmStatistic"})})})};t.default=i}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__index.eb67f39f.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__index.eb67f39f.async.js deleted file mode 100644 index 428f8ee9..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__index.eb67f39f.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9450],{97480:function(o,_,t){t.r(_);var E=t(77154),s=t(21612),C=t(67294),e=t(96974),a=t(85615),d=t(65383),n=t(85893),P=s.Z.Sider,D=s.Z.Content,M=function(){var l=(0,E.Z)(),O=l.leftSiderStyle,r=l.contentStyle;return(0,n.jsxs)(s.Z,{children:[(0,n.jsx)(P,{style:O,children:(0,n.jsx)(d.Z,{type:a.QPQ})}),(0,n.jsx)(s.Z,{children:(0,n.jsx)(D,{style:r,children:(0,n.jsx)(e.j3,{})})})]})};_.default=M}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__index.f3e705e5.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__index.f3e705e5.async.js new file mode 100644 index 00000000..f5ce6910 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Llm__index.f3e705e5.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9450],{97480:function(e,n,t){t.r(n);var s=t(77154),l=t(21612),r=(t(67294),t(96974)),i=t(85615),c=t(65383),d=t(85893),u=l.Z.Sider,a=l.Z.Content;n.default=function(){var e=(0,s.Z)(),n=e.leftSiderStyle,t=e.contentStyle;return(0,d.jsxs)(l.Z,{children:[(0,d.jsx)(u,{style:n,children:(0,d.jsx)(c.Z,{type:i.QPQ})}),(0,d.jsx)(l.Z,{children:(0,d.jsx)(a,{style:t,children:(0,d.jsx)(r.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__QuickReplyData.b9082940.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__QuickReplyData.b9082940.async.js new file mode 100644 index 00000000..3b09bd95 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__QuickReplyData.b9082940.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9584],{69753:function(e,t,n){var r=n(1413),a=n(67294),o=n(49495),l=n(89099),i=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o.Z}))},s=a.forwardRef(i);t.Z=s},11475:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1413),a=n(67294),o={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"},l=n(89099),i=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var s=a.forwardRef(i)},58638:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},l=n(89099),i=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var s=a.forwardRef(i)},57546:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},l=n(89099),i=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var s=a.forwardRef(i)},64082:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},l=n(89099),i=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var s=a.forwardRef(i)},64317:function(e,t,n){var r=n(1413),a=n(91),o=n(22270),l=n(67294),i=n(66758),s=n(29258),c=n(85893),u=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],p=function(e,t){var n=e.fieldProps,d=e.children,p=e.params,f=e.proFieldProps,g=e.mode,m=e.valueEnum,v=e.request,h=e.showSearch,y=e.options,x=(0,a.Z)(e,u),w=(0,l.useContext)(i.Z);return(0,c.jsx)(s.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,o.h)(m),request:v,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({options:y,mode:g,showSearch:h,getPopupContainer:w.getPopupContainer},n),ref:t,proFieldProps:f},x),{},{children:d}))},f=l.forwardRef((function(e,t){var n=e.fieldProps,u=e.children,p=e.params,f=e.proFieldProps,g=e.mode,m=e.valueEnum,v=e.request,h=e.options,y=(0,a.Z)(e,d),x=(0,r.Z)({options:h,mode:g||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),w=(0,l.useContext)(i.Z);return(0,c.jsx)(s.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,o.h)(m),request:v,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({getPopupContainer:w.getPopupContainer},x),ref:t,proFieldProps:f},y),{},{children:u}))})),g=l.forwardRef(p);g.SearchSelect=f,g.displayName="ProFormComponent",t.Z=g},90672:function(e,t,n){var r=n(1413),a=n(91),o=n(67294),l=n(29258),i=n(85893),s=["fieldProps","proFieldProps"],c=function(e,t){var n=e.fieldProps,o=e.proFieldProps,c=(0,a.Z)(e,s);return(0,i.jsx)(l.Z,(0,r.Z)({ref:t,valueType:"textarea",fieldProps:n,proFieldProps:o},c))};t.Z=o.forwardRef(c)},68256:function(e,t,n){var r=n(97857),a=n.n(r),o=n(5574),l=n.n(o),i=n(85576),s=n(67294),c=n(64082),u=n(64121),d=n(27484),p=n.n(d),f=n(85615),g=n(80049),m=n(38302),v=n(89102),h=n(17634),y=n(85893),x=u.Z.Dragger;t.Z=function(e){var t=e.type,n=e.acceptType,r=e.isModalOpen,o=e.handleOk,u=e.handleCancel,d=(0,m.j)((function(e){return e.currentKbase})),w=(0,s.useState)((null==d?void 0:d.uid)||""),b=l()(w,2),j=b[0],Z=b[1],M=(0,v.v)((function(e){return e.currentCategory})),k=(0,s.useState)("当前支持上传pdf/txt/markdown/docx等"),S=l()(k,2),C=S[0],P=S[1],E=(0,s.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:t,category_uid:"all"===(null==M?void 0:M.uid)?"":(null==M?void 0:M.uid)||"",kb_uid:(null==d?void 0:d.uid)||"",client:f.bVn}),_=l()(E,2),F=_[0],O=_[1],q={name:"file",accept:n,action:(0,h.M$)(),headers:{Authorization:"Bearer "+localStorage.getItem(f.LA8)},data:F,showUploadList:!1,beforeUpload:function(e){console.log("beforeUpload before",e,j,d);var n=p()(new Date).format("YYMMDDHHmmss")+"_"+e.name;F.file=e,F.file_name=n,F.file_type=e.type,F.kb_type=t,F.kb_uid=j,console.log("beforeUpload after",F)},onChange:function(e){"uploading"===e.file.status&&g.yw.loading("".concat(e.file.name," 上传中")),"done"===e.file.status?(console.log("response: ",e.file.response),200===e.file.response.code?(g.yw.destroy(),g.yw.success("".concat(e.file.name," 上传成功")),o()):(g.yw.destroy(),g.yw.error("".concat(e.file.name," 上传失败")),u())):"error"===e.file.status&&(g.yw.error("".concat(e.file.name," 上传失败")),u())},onDrop:function(e){console.log("Dropped files",e.dataTransfer.files)}},V=(0,s.useState)(q),D=l()(V,2),T=D[0],U=D[1];return(0,s.useEffect)((function(){m.j.subscribe((function(e,t){var n,r;console.log("useKbaseStore changed:",null==e||null===(n=e.currentKbase)||void 0===n?void 0:n.uid),Z(null==e||null===(r=e.currentKbase)||void 0===r?void 0:r.uid),U(q)}))}),[d]),(0,s.useEffect)((function(){t!=f.QPQ&&(q.accept="application/vnd.ms-excel",U(q),P("当前支持上传excel文件")),O(a()(a()({},F),{},{kb_type:t,category_uid:"all"===(null==M?void 0:M.uid)?"":null==M?void 0:M.uid})),U(q)}),[t,M]),(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(i.Z,{title:"上传文件",open:r,onOk:o,onCancel:u,children:(0,y.jsxs)(x,a()(a()({},T),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(c.Z,{})}),(0,y.jsx)("p",{className:"ant-upload-text",children:"点击或拖拽文件至此处实现上传"}),(0,y.jsx)("p",{className:"ant-upload-hint",children:C})]}))})})}},29286:function(e,t,n){n.r(t),n.d(t,{default:function(){return ae}});var r=n(77154),a=n(21612),o=n(52670),l=n(97857),i=n.n(l),s=n(13769),c=n.n(s),u=n(15009),d=n.n(u),p=n(99289),f=n.n(p),g=n(5574),m=n.n(g),v=n(80049),h=n(85615),y=n(86745);function x(e){return w.apply(this,arguments)}function w(){return(w=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,y.request)("/api/v1/quickreply/query/org",{method:"GET",params:i()(i()({},t),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return j.apply(this,arguments)}function j(){return(j=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,y.request)("/api/v1/quickreply/create",{method:"POST",data:i()(i()({},t),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e){return M.apply(this,arguments)}function M(){return(M=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,y.request)("/api/v1/quickreply/update",{method:"POST",data:i()(i()({},t),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e){return S.apply(this,arguments)}function S(){return(S=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,y.request)("/api/v1/quickreply/delete",{method:"POST",data:i()(i()({},t),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var C=n(87676),P=n(51042),E=n(57546),_=n(58638),F=n(69753),O=n(74190),q=n(86738),V=n(14726),D=n(67294),T=n(89102),U=n(38302),$=n(34994),z=n(64317),I=n(5966),A=n(90672),L=n(85265),N=n(42075),R=n(64121),H=n(64082),G=n(27484),Y=n.n(G),B=n(73803),Q=n(17634),K=n(85893),W=R.Z.Dragger,X=function(e){var t=e.isEdit,n=e.quickreply,r=e.open,a=e.onClose,o=e.onSubmit,l=$.A.useForm(),s=m()(l,1)[0],c=(0,B.Z)().translateString,u=(0,C.u)((function(e){return e.currentOrg})),d=(0,U.j)((function(e){return e.currentKbase})),p=(0,T.v)((function(e){return e.categorySelectOptions})),f=(0,D.useState)(),g=m()(f,2),y=g[0],x=g[1],w=(0,D.useState)(h.PYi),b=m()(w,2),j=b[0],Z=b[1],M=(0,D.useState)(".png,.jpg,.jpeg"),k=m()(M,2),S=k[0],P=k[1],E=(0,D.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:"type",category_uid:"",kb_uid:(null==d?void 0:d.uid)||"",client:h.bVn}),_=m()(E,2),F=_[0];_[1];(0,D.useEffect)((function(){t?s.setFieldsValue({type:null==n?void 0:n.type,title:null==n?void 0:n.title,content:null==n?void 0:n.content,categoryUid:null==n?void 0:n.categoryUid,kbUid:null==d?void 0:d.uid}):s.resetFields()}),[r]);var O={name:"file",accept:S,action:(0,Q.M$)(),headers:{Authorization:"Bearer "+localStorage.getItem(h.LA8)},data:F,showUploadList:!1,beforeUpload:function(e){console.log("beforeUpload",e);var t=Y()(new Date).format("YYMMDDHHmmss")+"_"+e.name;F.file=e,F.file_name=t,F.file_type=e.type,F.kb_type=h.YjS,F.category_uid=y||"",F.kb_uid=null==d?void 0:d.uid,console.log("beforeUpload",F)},onChange:function(e){if("uploading"===e.file.status&&v.yw.loading("".concat(e.file.name," 上传中")),"done"===e.file.status)if(console.log("response: ",e.file.response),200===e.file.response.code){var t=e.file.response.data;s.setFieldValue("content",t),v.yw.destroy(),v.yw.success("".concat(e.file.name," 上传成功"))}else v.yw.destroy(),v.yw.error("".concat(e.file.name," 上传失败"));else"error"===e.file.status&&v.yw.error("".concat(e.file.name," 上传失败"))},onDrop:function(e){console.log("Dropped files",e.dataTransfer.files)}};return(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(L.Z,{title:t?"修改":"新建",onClose:a,open:r,extra:(0,K.jsxs)(N.Z,{children:[(0,K.jsx)(V.ZP,{onClick:a,children:"取消"}),(0,K.jsx)(V.ZP,{onClick:function(){console.log("handleSubmit"),s.validateFields().then((function(e){console.log(e),o(i()(i()(i()({},n),e),{},{kbUid:null==d?void 0:d.uid,orgUid:null==u?void 0:u.uid}))})).catch((function(e){console.log("Form errors:",e),v.yw.error("请检查表单填写")}))},type:"primary",children:"保存"})]}),children:(0,K.jsxs)($.A,{form:s,initialValues:i()({},n),submitter:{render:function(){return null}},children:[(0,K.jsx)(z.Z,{label:"分类",name:"categoryUid",rules:[{required:!0,message:"请选择分类"}],options:p.map((function(e){return{value:e.value,label:c(e.label)}})),fieldProps:{allowClear:!0,placeholder:"请选择分类",onChange:function(e){console.log("category selected ".concat(e)),x(e)}}}),(0,K.jsx)(z.Z,{label:"类型",name:"type",rules:[{required:!0,message:"请选择类型"}],options:[{label:"文本",value:h.PYi},{label:"图片",value:h.Qm},{label:"视频",value:h.tVi},{label:"音频",value:h.Yu1},{label:"文件",value:h.Qn}],fieldProps:{allowClear:!0,placeholder:"请选择类型",onChange:function(e){console.log("type selected ".concat(e)),Z(e),e===h.Qm?P(".png,.jpg,.jpeg,.gif,.bmp"):e===h.tVi?P(".mp4,.avi,.mov,.wmv"):e===h.Yu1?P(".mp3,.wav,.flac"):e===h.Qn&&P(".doc,.xls,.ppt,.pdf,.docx,.txt,.csv,.xlsx,.rtf,.zip,.7z,.tar,.gz,.rar,.iso")}}}),(0,K.jsx)(I.Z,{label:"标题",name:"title",rules:[{required:!0,message:"请输入标题"}]}),(0,K.jsx)(A.Z,{label:"内容",name:"content"}),j!=h.PYi&&(0,K.jsxs)(W,i()(i()({},O),{},{children:[(0,K.jsx)("p",{className:"ant-upload-drag-icon",children:(0,K.jsx)(H.Z,{})}),(0,K.jsx)("p",{className:"ant-upload-text",children:"点击或拖拽上传文件"})]}))]})})})},J=n(68256),ee=["current"],te=function(){var e=(0,y.useIntl)(),t=(0,D.useRef)(),n=(0,D.useState)(!0),r=m()(n,2),a=r[0],o=r[1],l=(0,D.useState)(),s=m()(l,2),u=s[0],p=s[1],g=(0,D.useState)(!1),w=m()(g,2),j=w[0],M=w[1],S=(0,B.Z)().translateString,$=(0,C.u)((function(e){return e.currentOrg})),z=(0,U.j)((function(e){return e.currentKbase})),I=(0,T.v)((function(e){return e.currentCategory})),A=(0,D.useState)(!1),L=m()(A,2),N=L[0],R=L[1],H=function(){var n=f()(d()().mark((function n(r){var a;return d()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log(r),n.next=3,k(r);case 3:a=n.sent,console.log("delete response:",a),200===a.code?(null==t||t.current.reload(),v.yw.success(e.formatMessage({id:"delete.success",defaultMessage:"Delete Success"}))):v.yw.error(e.formatMessage({id:"delete.error",defaultMessage:"Delete Error"}));case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),G=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,K.jsx)(y.FormattedMessage,{id:"title",defaultMessage:"Title"}),dataIndex:"title",copyable:!0,render:function(e,t){return S(null==t?void 0:t.title)}},{title:(0,K.jsx)(y.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",render:function(e,t){return S(null==t?void 0:t.content)}},{title:(0,K.jsx)(y.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",hideInSearch:!0,render:function(t,n){return(0,K.jsx)(K.Fragment,{children:e.formatMessage({id:null==n?void 0:n.type,defaultMessage:null==n?void 0:n.type})})}},{title:(0,K.jsx)(y.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0,width:180},{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:100,render:function(t,n,r,a){return[(0,K.jsx)("a",{onClick:function(){W(n)},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,K.jsx)(q.Z,{title:e.formatMessage({id:"deleteTip",defaultMessage:"Delete Tip"}),description:"".concat(e.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"【").concat(null==n?void 0:n.title,"】?"),onConfirm:function(){return H(n)},okText:e.formatMessage({id:"ok"}),cancelText:e.formatMessage({id:"cancel"}),children:(0,K.jsx)(V.ZP,{size:"small",type:"link",danger:!0,children:e.formatMessage({id:"delete",defaultMessage:"Delete"})})},"delete")]}}],Y=function(){p(void 0),o(!1),M(!0)},W=function(e){p(e),o(!0),M(!0)},te=function(){var n=f()(d()().mark((function n(r){var o,l;return d()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(console.log("handleSubmitDrawer",r),a?v.yw.loading(e.formatMessage({id:"updating"})):v.yw.loading(e.formatMessage({id:"creating"})),!a){n.next=8;break}return n.next=5,Z(r);case 5:n.t0=n.sent,n.next=11;break;case 8:return n.next=10,b(r);case 10:n.t0=n.sent;case 11:o=n.t0,console.log("createQuickreply response:",r,o),200===o.code?(v.yw.destroy(),v.yw.loading(e.formatMessage({id:"create.success"})),M(!1),null===(l=t.current)||void 0===l||l.reloadAndRest()):(v.yw.destroy(),v.yw.error(o.message));case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),ne=function(){var e=f()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:R(!0);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),re=function(){var e=f()(d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleExport"),t=localStorage.getItem(h.LA8),window.open((0,Q.SV)()+"/api/v1/quickreply/export?categoryUid="+(null==I?void 0:I.uid)+"&kbUid="+(null==z?void 0:z.uid)+"&orgUid="+(null==$?void 0:$.uid)+"&pageNumber=0&pageSize=20&accessToken="+t);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,D.useEffect)((function(){var e;null===(e=t.current)||void 0===e||e.reloadAndRest()}),[z,I]);var ae=(0,D.useMemo)((function(){return(null==z?void 0:z.type)!==h._FS||""===(null==z?void 0:z.uid)}),[z]);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(O.Z,{columns:G,actionRef:t,cardBordered:!0,request:function(){var t=f()(d()().mark((function t(n,r,a){var o,l,s;return d()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("request:",n,r,a),v.yw.loading(e.formatMessage({id:"loading",defaultMessage:"Loading"})),n.current,o=c()(n,ee),l=i()({pageNumber:n.current-1,categoryUid:"all"===(null==I?void 0:I.uid)?"":null==I?void 0:I.uid,kbUid:null==z?void 0:z.uid,orgUid:null==$?void 0:$.uid},o),t.next=6,x(l);case 6:return s=t.sent,console.log("getAllQuickreplys response:",l,s),v.yw.destroy(),200===s.code||v.yw.error(s.message),t.abrupt("return",{data:s.data.content,success:!0,total:s.data.totalElements});case 11:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"快捷回复",toolBarRender:function(){return[(0,K.jsx)(V.ZP,{icon:(0,K.jsx)(P.Z,{}),type:"primary",onClick:Y,disabled:ae,children:e.formatMessage({id:"create",defaultMessage:"Create"})},"button"),(0,K.jsx)(V.ZP,{icon:(0,K.jsx)(E.Z,{}),type:"primary",onClick:ne,disabled:ae,children:e.formatMessage({id:"import",defaultMessage:"Import"})},"button"),(0,K.jsx)(V.ZP,{icon:(0,K.jsx)(_.Z,{}),type:"primary",onClick:re,disabled:ae,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button"),(0,K.jsx)(V.ZP,{icon:(0,K.jsx)(F.Z,{}),type:"link",onClick:function(){window.open("https://www.weiyuai.cn/download/excel/quick_reply.xlsx")},children:e.formatMessage({id:"download.template",defaultMessage:"Download Template"})},"download")]}}),(0,K.jsx)(X,{isEdit:a,open:j,quickreply:u,onClose:function(){return M(!1)},onSubmit:te}),(0,K.jsx)(J.Z,{type:h._FS,acceptType:".xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",isModalOpen:N,handleOk:function(){console.log("handleUploadDragSubmit"),R(!1),null==t||t.current.reload()},handleCancel:function(){console.log("handleUploadDragCancel"),R(!1),null==t||t.current.reload()}})]})},ne=a.Z.Sider,re=a.Z.Content,ae=function(){var e=(0,r.Z)(),t=e.leftSiderStyle,n=e.contentStyle;return(0,K.jsx)("div",{children:(0,K.jsxs)(a.Z,{children:[(0,K.jsx)(ne,{style:t,children:(0,K.jsx)(o.Z,{type:h._FS})}),(0,K.jsx)(a.Z,{children:(0,K.jsx)(re,{style:n,children:(0,K.jsx)(te,{})})})]})})}},86250:function(e,t,n){n.d(t,{Z:function(){return Z}});var r=n(67294),a=n(93967),o=n.n(a),l=n(98423),i=n(98065),s=n(53124),c=n(83559),u=n(83262);const d=["wrap","nowrap","wrap-reverse"],p=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],f=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var g=function(e,t){return o()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&d.includes(n)}})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return p.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))};const m=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},v=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},h=e=>{const{componentCls:t}=e,n={};return d.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},y=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},x=e=>{const{componentCls:t}=e,n={};return p.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n};var w=(0,c.I$)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,a=(0,u.IX)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[m(a),v(a),h(a),y(a),x(a)]}),(()=>({})),{resetStyle:!1}),b=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,rootClassName:a,className:c,style:u,flex:d,gap:p,children:f,vertical:m=!1,component:v="div"}=e,h=b(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:y,direction:x,getPrefixCls:j}=r.useContext(s.E_),Z=j("flex",n),[M,k,S]=w(Z),C=null!=m?m:null==y?void 0:y.vertical,P=o()(c,a,null==y?void 0:y.className,Z,k,S,g(Z,e),{[`${Z}-rtl`]:"rtl"===x,[`${Z}-gap-${p}`]:(0,i.n)(p),[`${Z}-vertical`]:C}),E=Object.assign(Object.assign({},null==y?void 0:y.style),u);return d&&(E.flex=d),p&&!(0,i.n)(p)&&(E.gap=p),M(r.createElement(v,Object.assign({ref:t,className:P,style:E},(0,l.Z)(h,["justify","wrap","align"])),f))}));var Z=j}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__QuickReplyData.e0288086.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__QuickReplyData.e0288086.async.js deleted file mode 100644 index 7fd0319f..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__QuickReplyData.e0288086.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9584],{69753:function(te,F,e){var f=e(1413),m=e(67294),S=e(49495),P=e(89099),i=function(R,u){return m.createElement(P.Z,(0,f.Z)((0,f.Z)({},R),{},{ref:u,icon:S.Z}))},O=m.forwardRef(i);F.Z=O},11475:function(te,F,e){e.d(F,{Z:function(){return R}});var f=e(1413),m=e(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 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"},P=S,i=e(89099),O=function(I,y){return m.createElement(i.Z,(0,f.Z)((0,f.Z)({},I),{},{ref:y,icon:P}))},T=m.forwardRef(O),R=T},58638:function(te,F,e){e.d(F,{Z:function(){return R}});var f=e(1413),m=e(67294),S={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},P=S,i=e(89099),O=function(I,y){return m.createElement(i.Z,(0,f.Z)((0,f.Z)({},I),{},{ref:y,icon:P}))},T=m.forwardRef(O),R=T},57546:function(te,F,e){e.d(F,{Z:function(){return R}});var f=e(1413),m=e(67294),S={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},P=S,i=e(89099),O=function(I,y){return m.createElement(i.Z,(0,f.Z)((0,f.Z)({},I),{},{ref:y,icon:P}))},T=m.forwardRef(O),R=T},64082:function(te,F,e){e.d(F,{Z:function(){return R}});var f=e(1413),m=e(67294),S={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},P=S,i=e(89099),O=function(I,y){return m.createElement(i.Z,(0,f.Z)((0,f.Z)({},I),{},{ref:y,icon:P}))},T=m.forwardRef(O),R=T},64317:function(te,F,e){var f=e(1413),m=e(91),S=e(22270),P=e(67294),i=e(66758),O=e(24809),T=e(85893),R=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],u=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],I=function(x,ae){var J=x.fieldProps,V=x.children,L=x.params,ne=x.proFieldProps,Y=x.mode,G=x.valueEnum,K=x.request,M=x.showSearch,c=x.options,r=(0,m.Z)(x,R),s=(0,P.useContext)(i.Z);return(0,T.jsx)(O.Z,(0,f.Z)((0,f.Z)({valueEnum:(0,S.h)(G),request:K,params:L,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,f.Z)({options:c,mode:Y,showSearch:M,getPopupContainer:s.getPopupContainer},J),ref:ae,proFieldProps:ne},r),{},{children:V}))},y=P.forwardRef(function(n,x){var ae=n.fieldProps,J=n.children,V=n.params,L=n.proFieldProps,ne=n.mode,Y=n.valueEnum,G=n.request,K=n.options,M=(0,m.Z)(n,u),c=(0,f.Z)({options:K,mode:ne||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},ae),r=(0,P.useContext)(i.Z);return(0,T.jsx)(O.Z,(0,f.Z)((0,f.Z)({valueEnum:(0,S.h)(Y),request:G,params:V,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,f.Z)({getPopupContainer:r.getPopupContainer},c),ref:x,proFieldProps:L},M),{},{children:J}))}),Z=P.forwardRef(I),B=y,h=Z;h.SearchSelect=B,h.displayName="ProFormComponent",F.Z=h},90672:function(te,F,e){var f=e(1413),m=e(91),S=e(67294),P=e(24809),i=e(85893),O=["fieldProps","proFieldProps"],T=function(u,I){var y=u.fieldProps,Z=u.proFieldProps,B=(0,m.Z)(u,O);return(0,i.jsx)(P.Z,(0,f.Z)({ref:I,valueType:"textarea",fieldProps:y,proFieldProps:Z},B))};F.Z=S.forwardRef(T)},68256:function(te,F,e){var f=e(97857),m=e.n(f),S=e(5574),P=e.n(S),i=e(85576),O=e(67294),T=e(64082),R=e(64121),u=e(27484),I=e.n(u),y=e(85615),Z=e(80049),B=e(38302),h=e(89102),n=e(85893),x=R.Z.Dragger,ae=function(V){var L=V.type,ne=V.acceptType,Y=V.isModalOpen,G=V.handleOk,K=V.handleCancel,M=(0,B.j)(function(N){return N.currentKbase}),c=(0,h.v)(function(N){return N.currentCategory}),r=(0,O.useState)("\u5F53\u524D\u652F\u6301\u4E0A\u4F20pdf/txt/markdown/docx\u7B49"),s=P()(r,2),g=s[0],p=s[1],w=(0,O.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:L,category_uid:(c==null?void 0:c.uid)==="all"?"":(c==null?void 0:c.uid)||"",kb_uid:(M==null?void 0:M.uid)||"",client:y.bVn}),k=P()(w,2),D=k[0],X=k[1],ie=function(E){var re=I()(new Date).format("YYYYMMDDHHmmss")+"_"+E.name,z=new FormData;z.append("file",E),z.append("file_name",re),z.append("file_type",E.type),z.append("is_avatar","false"),z.append("kb_type",L),z.append("category_uid",(c==null?void 0:c.uid)==="all"?"":(c==null?void 0:c.uid)||""),z.append("kb_uid",(M==null?void 0:M.uid)||""),z.append("client",y.bVn),fetch("/api/v1/upload/file",{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(y.LA8)},body:z}).then(function(le){return le.json()}).then(function(le){console.log("upload data:",le),le.code===200?(Z.yw.destroy(),Z.yw.success("".concat(re," \u4E0A\u4F20\u6210\u529F")),G()):(Z.yw.destroy(),Z.yw.error("".concat(re," \u4E0A\u4F20\u5931\u8D25")),K())})},q={name:"file",accept:ne,action:"/api/v1/upload/file",headers:{Authorization:"Bearer "+localStorage.getItem(y.LA8)},data:D,showUploadList:!1,beforeUpload:function(E){console.log("beforeUpload",E);var re=I()(new Date).format("YYMMDDHHmmss")+"_"+E.name;D.file=E,D.file_name=re,D.file_type=E.type,D.kb_type=L,D.category_uid=(c==null?void 0:c.uid)==="all"?"":c==null?void 0:c.uid,D.kb_uid=M==null?void 0:M.uid,console.log("beforeUpload",D)},onChange:function(E){E.file.status==="uploading"&&Z.yw.loading("".concat(E.file.name," \u4E0A\u4F20\u4E2D")),E.file.status==="done"?(console.log("response: ",E.file.response),E.file.response.code===200?(Z.yw.destroy(),Z.yw.success("".concat(E.file.name," \u4E0A\u4F20\u6210\u529F")),G()):(Z.yw.destroy(),Z.yw.error("".concat(E.file.name," \u4E0A\u4F20\u5931\u8D25")),K())):E.file.status==="error"&&(Z.yw.error("".concat(E.file.name," \u4E0A\u4F20\u5931\u8D25")),K())},onDrop:function(E){console.log("Dropped files",E.dataTransfer.files),ie(E.dataTransfer.files[0])}},ue=(0,O.useState)(q),de=P()(ue,2),$=de[0],ye=de[1];return(0,O.useEffect)(function(){L!=y.QPQ&&(q.accept="application/vnd.ms-excel",ye(q),p("\u5F53\u524D\u652F\u6301\u4E0A\u4F20excel\u6587\u4EF6")),X(m()(m()({},D),{},{kb_type:L,category_uid:(c==null?void 0:c.uid)==="all"?"":c==null?void 0:c.uid,kb_uid:M==null?void 0:M.uid}))},[L,c,M]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.Z,{title:"\u4E0A\u4F20\u6587\u4EF6",open:Y,onOk:G,onCancel:K,children:(0,n.jsxs)(x,m()(m()({},$),{},{children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)(T.Z,{})}),(0,n.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u81F3\u6B64\u5904\u5B9E\u73B0\u4E0A\u4F20"}),(0,n.jsx)("p",{className:"ant-upload-hint",children:g})]}))})})};F.Z=ae},29286:function(te,F,e){e.r(F),e.d(F,{default:function(){return Ne}});var f=e(77154),m=e(21612),S=e(52670),P=e(97857),i=e.n(P),O=e(13769),T=e.n(O),R=e(15009),u=e.n(R),I=e(99289),y=e.n(I),Z=e(5574),B=e.n(Z),h=e(80049),n=e(85615),x=e(86745);function ae(Q){return J.apply(this,arguments)}function J(){return J=y()(u()().mark(function Q(d){return u()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,x.request)("/api/v1/quickreply/query/org",{method:"GET",params:i()(i()({},d),{},{client:n.bVn})}));case 1:case"end":return o.stop()}},Q)})),J.apply(this,arguments)}function V(Q){return L.apply(this,arguments)}function L(){return L=y()(u()().mark(function Q(d){return u()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,x.request)("/api/v1/quickreply/create",{method:"POST",data:i()(i()({},d),{},{client:n.bVn})}));case 1:case"end":return o.stop()}},Q)})),L.apply(this,arguments)}function ne(Q){return Y.apply(this,arguments)}function Y(){return Y=y()(u()().mark(function Q(d){return u()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,x.request)("/api/v1/quickreply/update",{method:"POST",data:i()(i()({},d),{},{client:n.bVn})}));case 1:case"end":return o.stop()}},Q)})),Y.apply(this,arguments)}function G(Q){return K.apply(this,arguments)}function K(){return K=y()(u()().mark(function Q(d){return u()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,x.request)("/api/v1/quickreply/delete",{method:"POST",data:i()(i()({},d),{},{client:n.bVn})}));case 1:case"end":return o.stop()}},Q)})),K.apply(this,arguments)}var M=e(87676),c=e(51042),r=e(57546),s=e(58638),g=e(69753),p=e(57482),w=e(86738),k=e(14726),D=e(67294),X=e(89102),ie=e(38302),q=e(34994),ue=e(64317),de=e(5966),$=e(90672),ye=e(85265),N=e(42075),E=e(64121),re=e(64082),z=e(27484),le=e.n(z),Oe=e(73803),l=e(85893),he=E.Z.Dragger,Ke=function(d){var j=d.isEdit,o=d.quickreply,Ee=d.open,ce=d.onClose,Se=d.onSubmit,Ie=q.A.useForm(),Me=B()(Ie,1),se=Me[0],je=(0,Oe.Z)(),Ue=je.translateString,pe=(0,M.u)(function(t){return t.currentOrg}),_=(0,ie.j)(function(t){return t.currentKbase}),fe=(0,X.v)(function(t){return t.categorySelectOptions}),Re=(0,D.useState)(),xe=B()(Re,2),oe=xe[0],W=xe[1],H=(0,D.useState)(n.PYi),be=B()(H,2),Fe=be[0],Ze=be[1],De=(0,D.useState)(".png,.jpg,.jpeg"),Ae=B()(De,2),we=Ae[0],ve=Ae[1],Be=(0,D.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:"type",category_uid:"",kb_uid:(_==null?void 0:_.uid)||"",client:n.bVn}),Te=B()(Be,2),ee=Te[0],We=Te[1];(0,D.useEffect)(function(){j?se.setFieldsValue({type:o==null?void 0:o.type,title:o==null?void 0:o.title,content:o==null?void 0:o.content,categoryUid:o==null?void 0:o.categoryUid,kbUid:_==null?void 0:_.uid}):se.resetFields()},[Ee]);var _e=function(a){console.log("category selected ".concat(a)),W(a)},Le=function(a){console.log("type selected ".concat(a)),Ze(a),a===n.Qm?ve(".png,.jpg,.jpeg,.gif,.bmp"):a===n.tVi?ve(".mp4,.avi,.mov,.wmv"):a===n.Yu1?ve(".mp3,.wav,.flac"):a===n.Qn&&ve(".doc,.xls,.ppt,.pdf,.docx,.txt,.csv,.xlsx,.rtf,.zip,.7z,.tar,.gz,.rar,.iso")},Ce=function(){console.log("handleSubmit"),se.validateFields().then(function(a){console.log(a),Se(i()(i()(i()({},o),a),{},{kbUid:_==null?void 0:_.uid,orgUid:pe==null?void 0:pe.uid}))}).catch(function(a){console.log("Form errors:",a),h.yw.error("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199")})},v=function(a){var U=le()(new Date).format("YYYYMMDDHHmmss")+"_"+a.name,A=new FormData;A.append("file",a),A.append("file_name",U),A.append("file_type",a.type),A.append("is_avatar","false"),A.append("kb_type",n.YjS),A.append("category_uid",oe||""),A.append("kb_uid",(_==null?void 0:_.uid)||""),A.append("client",n.bVn),fetch("/api/v1/upload/file",{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(n.LA8)},body:A}).then(function(b){return b.json()}).then(function(b){if(console.log("upload data:",b),b.code===200){var Pe=b.data;se.setFieldValue("content",Pe),h.yw.destroy(),h.yw.success("".concat(U," \u4E0A\u4F20\u6210\u529F"))}else h.yw.destroy(),h.yw.error("".concat(U," \u4E0A\u4F20\u5931\u8D25"))})},C={name:"file",accept:we,action:"/api/v1/upload/file",headers:{Authorization:"Bearer "+localStorage.getItem(n.LA8)},data:ee,showUploadList:!1,beforeUpload:function(a){console.log("beforeUpload",a);var U=le()(new Date).format("YYMMDDHHmmss")+"_"+a.name;ee.file=a,ee.file_name=U,ee.file_type=a.type,ee.kb_type=n.YjS,ee.category_uid=oe||"",ee.kb_uid=_==null?void 0:_.uid,console.log("beforeUpload",ee)},onChange:function(a){if(a.file.status==="uploading"&&h.yw.loading("".concat(a.file.name," \u4E0A\u4F20\u4E2D")),a.file.status==="done")if(console.log("response: ",a.file.response),a.file.response.code===200){var U=a.file.response.data;se.setFieldValue("content",U),h.yw.destroy(),h.yw.success("".concat(a.file.name," \u4E0A\u4F20\u6210\u529F"))}else h.yw.destroy(),h.yw.error("".concat(a.file.name," \u4E0A\u4F20\u5931\u8D25"));else a.file.status==="error"&&h.yw.error("".concat(a.file.name," \u4E0A\u4F20\u5931\u8D25"))},onDrop:function(a){console.log("Dropped files",a.dataTransfer.files),v(a.dataTransfer.files[0])}};return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(ye.Z,{title:j?"\u4FEE\u6539":"\u65B0\u5EFA",onClose:ce,open:Ee,extra:(0,l.jsxs)(N.Z,{children:[(0,l.jsx)(k.ZP,{onClick:ce,children:"\u53D6\u6D88"}),(0,l.jsx)(k.ZP,{onClick:Ce,type:"primary",children:"\u4FDD\u5B58"})]}),children:(0,l.jsxs)(q.A,{form:se,initialValues:i()({},o),submitter:{render:function(){return null}},children:[(0,l.jsx)(ue.Z,{label:"\u5206\u7C7B",name:"categoryUid",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u7C7B"}],options:fe.map(function(t){return{value:t.value,label:Ue(t.label)}}),fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5206\u7C7B",onChange:_e}}),(0,l.jsx)(ue.Z,{label:"\u7C7B\u578B",name:"type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}],options:[{label:"\u6587\u672C",value:n.PYi},{label:"\u56FE\u7247",value:n.Qm},{label:"\u89C6\u9891",value:n.tVi},{label:"\u97F3\u9891",value:n.Yu1},{label:"\u6587\u4EF6",value:n.Qn}],fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B",onChange:Le}}),(0,l.jsx)(de.Z,{label:"\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]}),(0,l.jsx)($.Z,{label:"\u5185\u5BB9",name:"content"}),Fe!=n.PYi&&(0,l.jsxs)(he,i()(i()({},C),{},{children:[(0,l.jsx)("p",{className:"ant-upload-drag-icon",children:(0,l.jsx)(re.Z,{})}),(0,l.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u6587\u4EF6"})]}))]})})})},Qe=Ke,Ve=e(68256),$e=["current"],ze=function(){var d=(0,x.useIntl)(),j=(0,D.useRef)(),o=(0,D.useState)(!0),Ee=B()(o,2),ce=Ee[0],Se=Ee[1],Ie=(0,D.useState)(),Me=B()(Ie,2),se=Me[0],je=Me[1],Ue=(0,D.useState)(!1),pe=B()(Ue,2),_=pe[0],fe=pe[1],Re=(0,Oe.Z)(),xe=Re.translateString,oe=(0,M.u)(function(v){return v.currentOrg}),W=(0,ie.j)(function(v){return v.currentKbase}),H=(0,X.v)(function(v){return v.currentCategory}),be=(0,D.useState)(!1),Fe=B()(be,2),Ze=Fe[0],De=Fe[1],Ae=function(){var v=y()(u()().mark(function C(t){var a;return u()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return console.log(t),A.next=3,G(t);case 3:a=A.sent,console.log("delete response:",a),a.code===200?(j==null||j.current.reload(),h.yw.success(d.formatMessage({id:"delete.success",defaultMessage:"Delete Success"}))):h.yw.error(d.formatMessage({id:"delete.error",defaultMessage:"Delete Error"}));case 6:case"end":return A.stop()}},C)}));return function(t){return v.apply(this,arguments)}}(),we=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,l.jsx)(x.FormattedMessage,{id:"title",defaultMessage:"Title"}),dataIndex:"title",copyable:!0,render:function(C,t){return xe(t==null?void 0:t.title)}},{title:(0,l.jsx)(x.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",render:function(C,t){return xe(t==null?void 0:t.content)}},{title:(0,l.jsx)(x.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",hideInSearch:!0,render:function(C,t){return(0,l.jsx)(l.Fragment,{children:d.formatMessage({id:t==null?void 0:t.type,defaultMessage:t==null?void 0:t.type})})}},{title:(0,l.jsx)(x.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0,width:180},{title:d.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:100,render:function(C,t,a,U){return[(0,l.jsx)("a",{onClick:function(){Be(t)},children:d.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,l.jsx)(w.Z,{title:d.formatMessage({id:"deleteTip",defaultMessage:"Delete Tip"}),description:"".concat(d.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"\u3010").concat(t==null?void 0:t.title,"\u3011\uFF1F"),onConfirm:function(){return Ae(t)},okText:d.formatMessage({id:"ok"}),cancelText:d.formatMessage({id:"cancel"}),children:(0,l.jsx)(k.ZP,{size:"small",type:"link",danger:!0,children:d.formatMessage({id:"delete",defaultMessage:"Delete"})})},"delete")]}}],ve=function(){je(void 0),Se(!1),fe(!0)},Be=function(C){je(C),Se(!0),fe(!0)},Te=function(){var v=y()(u()().mark(function C(t){var a,U;return u()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(console.log("handleSubmitDrawer",t),ce?h.yw.loading(d.formatMessage({id:"updating"})):h.yw.loading(d.formatMessage({id:"creating"})),!ce){b.next=8;break}return b.next=5,ne(t);case 5:b.t0=b.sent,b.next=11;break;case 8:return b.next=10,V(t);case 10:b.t0=b.sent;case 11:a=b.t0,console.log("createQuickreply response:",t,a),a.code===200?(h.yw.destroy(),h.yw.loading(d.formatMessage({id:"create.success"})),fe(!1),(U=j.current)===null||U===void 0||U.reloadAndRest()):(h.yw.destroy(),h.yw.error(a.message));case 14:case"end":return b.stop()}},C)}));return function(t){return v.apply(this,arguments)}}(),ee=function(){var v=y()(u()().mark(function C(){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:De(!0);case 1:case"end":return a.stop()}},C)}));return function(){return v.apply(this,arguments)}}(),We=function(){var v=y()(u()().mark(function C(){var t;return u()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:console.log("handleExport"),t=localStorage.getItem(n.LA8),window.open("/api/v1/quickreply/export?categoryUid="+(H==null?void 0:H.uid)+"&kbUid="+(W==null?void 0:W.uid)+"&orgUid="+(oe==null?void 0:oe.uid)+"&pageNumber=0&pageSize=20&accessToken="+t);case 3:case"end":return U.stop()}},C)}));return function(){return v.apply(this,arguments)}}();(0,D.useEffect)(function(){var v;(v=j.current)===null||v===void 0||v.reloadAndRest()},[W,H]);var _e=function(){console.log("handleUploadDragSubmit"),De(!1),j==null||j.current.reload()},Le=function(){console.log("handleUploadDragCancel"),De(!1),j==null||j.current.reload()},Ce=(0,D.useMemo)(function(){return(W==null?void 0:W.type)===n._FS?(W==null?void 0:W.uid)==="":!0},[W]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p.Z,{columns:we,actionRef:j,cardBordered:!0,request:function(){var v=y()(u()().mark(function C(t,a,U){var A,b,Pe,me;return u()().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return console.log("request:",t,a,U),h.yw.loading(d.formatMessage({id:"loading",defaultMessage:"Loading"})),A=t.current,b=T()(t,$e),Pe=i()({pageNumber:t.current-1,categoryUid:(H==null?void 0:H.uid)==="all"?"":H==null?void 0:H.uid,kbUid:W==null?void 0:W.uid,orgUid:oe==null?void 0:oe.uid},b),ge.next=6,ae(Pe);case 6:return me=ge.sent,console.log("getAllQuickreplys response:",Pe,me),h.yw.destroy(),me.code===200||h.yw.error(me.message),ge.abrupt("return",{data:me.data.content,success:!0,total:me.data.totalElements});case 11:case"end":return ge.stop()}},C)}));return function(C,t,a){return v.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(C){console.log("page:",C)}},dateFormatter:"string",headerTitle:"\u5FEB\u6377\u56DE\u590D",toolBarRender:function(){return[(0,l.jsx)(k.ZP,{icon:(0,l.jsx)(c.Z,{}),type:"primary",onClick:ve,disabled:Ce,children:d.formatMessage({id:"create",defaultMessage:"Create"})},"button"),(0,l.jsx)(k.ZP,{icon:(0,l.jsx)(r.Z,{}),type:"primary",onClick:ee,disabled:Ce,children:d.formatMessage({id:"import",defaultMessage:"Import"})},"button"),(0,l.jsx)(k.ZP,{icon:(0,l.jsx)(s.Z,{}),type:"primary",onClick:We,disabled:Ce,children:d.formatMessage({id:"export",defaultMessage:"Export"})},"button"),(0,l.jsx)(k.ZP,{icon:(0,l.jsx)(g.Z,{}),type:"link",onClick:function(){window.open("https://www.weiyuai.cn/download/excel/quick_reply.xlsx")},children:d.formatMessage({id:"download.template",defaultMessage:"Download Template"})},"download")]}}),(0,l.jsx)(Qe,{isEdit:ce,open:_,quickreply:se,onClose:function(){return fe(!1)},onSubmit:Te}),(0,l.jsx)(Ve.Z,{type:n._FS,acceptType:".xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",isModalOpen:Ze,handleOk:_e,handleCancel:Le})]})},ke=ze,He=m.Z.Sider,Ye=m.Z.Content,Ge=function(){var d=(0,f.Z)(),j=d.leftSiderStyle,o=d.contentStyle;return(0,l.jsx)("div",{children:(0,l.jsxs)(m.Z,{children:[(0,l.jsx)(He,{style:j,children:(0,l.jsx)(S.Z,{type:n._FS})}),(0,l.jsx)(m.Z,{children:(0,l.jsx)(Ye,{style:o,children:(0,l.jsx)(ke,{})})})]})})},Ne=Ge},86250:function(te,F,e){e.d(F,{Z:function(){return c}});var f=e(67294),m=e(93967),S=e.n(m),P=e(98423),i=e(98065),O=e(53124),T=e(27036),R=e(45503);const u=["wrap","nowrap","wrap-reverse"],I=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],y=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Z=(r,s)=>{const g=s.wrap===!0?"wrap":s.wrap;return{[`${r}-wrap-${g}`]:g&&u.includes(g)}},B=(r,s)=>{const g={};return y.forEach(p=>{g[`${r}-align-${p}`]=s.align===p}),g[`${r}-align-stretch`]=!s.align&&!!s.vertical,g},h=(r,s)=>{const g={};return I.forEach(p=>{g[`${r}-justify-${p}`]=s.justify===p}),g};function n(r,s){return S()(Object.assign(Object.assign(Object.assign({},Z(r,s)),B(r,s)),h(r,s)))}var x=n;const ae=r=>{const{componentCls:s}=r;return{[s]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},J=r=>{const{componentCls:s}=r;return{[s]:{"&-gap-small":{gap:r.flexGapSM},"&-gap-middle":{gap:r.flexGap},"&-gap-large":{gap:r.flexGapLG}}}},V=r=>{const{componentCls:s}=r,g={};return u.forEach(p=>{g[`${s}-wrap-${p}`]={flexWrap:p}}),g},L=r=>{const{componentCls:s}=r,g={};return y.forEach(p=>{g[`${s}-align-${p}`]={alignItems:p}}),g},ne=r=>{const{componentCls:s}=r,g={};return I.forEach(p=>{g[`${s}-justify-${p}`]={justifyContent:p}}),g},Y=()=>({});var G=(0,T.I$)("Flex",r=>{const{paddingXS:s,padding:g,paddingLG:p}=r,w=(0,R.TS)(r,{flexGapSM:s,flexGap:g,flexGapLG:p});return[ae(w),J(w),V(w),L(w),ne(w)]},Y,{resetStyle:!1}),K=function(r,s){var g={};for(var p in r)Object.prototype.hasOwnProperty.call(r,p)&&s.indexOf(p)<0&&(g[p]=r[p]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,p=Object.getOwnPropertySymbols(r);w{const{prefixCls:g,rootClassName:p,className:w,style:k,flex:D,gap:X,children:ie,vertical:q=!1,component:ue="div"}=r,de=K(r,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:$,direction:ye,getPrefixCls:N}=f.useContext(O.E_),E=N("flex",g),[re,z,le]=G(E),Oe=q!=null?q:$==null?void 0:$.vertical,l=S()(w,p,$==null?void 0:$.className,E,z,le,x(E,r),{[`${E}-rtl`]:ye==="rtl",[`${E}-gap-${X}`]:(0,i.n)(X),[`${E}-vertical`]:Oe}),he=Object.assign(Object.assign({},$==null?void 0:$.style),k);return D&&(he.flex=D),X&&!(0,i.n)(X)&&(he.gap=X),re(f.createElement(ue,Object.assign({ref:s,className:l,style:he},(0,P.Z)(de,["justify","wrap","align"])),ie))})}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__QuickReplyStatistic.2ae9b72c.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__QuickReplyStatistic.2ae9b72c.async.js deleted file mode 100644 index 4857fd64..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__QuickReplyStatistic.2ae9b72c.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3656],{67381:function(u,i,c){c.r(i);var n=c(85615),a=c(86745),s=c(85893),t=function(){var e=(0,a.useAccess)();return e.canDebug&&console.log("TabQuickReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(a.Access,{accessible:e.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a.FormattedMessage,{id:n.h5w})}),children:"QuickStatistic"})})})};i.default=t}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__QuickReplyStatistic.c1f6878c.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__QuickReplyStatistic.c1f6878c.async.js new file mode 100644 index 00000000..cd2a1a71 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__QuickReplyStatistic.c1f6878c.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3656],{67381:function(e,c,s){s.r(c);var a=s(85615),n=s(86745),i=s(85893);c.default=function(){var e=(0,n.useAccess)();return e.canDebug&&console.log("TabQuickReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(n.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.FormattedMessage,{id:a.h5w})}),children:"QuickStatistic"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__index.2c19be32.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__index.2c19be32.async.js new file mode 100644 index 00000000..28cd8f6d --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__index.2c19be32.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6037],{57397:function(e,n,t){t.r(n);var s=t(77154),l=t(21612),r=(t(67294),t(96974)),i=t(85615),c=t(65383),d=t(85893),u=l.Z.Sider,a=l.Z.Content;n.default=function(){var e=(0,s.Z)(),n=e.leftSiderStyle,t=e.contentStyle;return(0,d.jsxs)(l.Z,{children:[(0,d.jsx)(u,{style:n,children:(0,d.jsx)(c.Z,{type:i._FS})}),(0,d.jsx)(l.Z,{children:(0,d.jsx)(a,{style:t,children:(0,d.jsx)(r.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__index.d4d8d195.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__index.d4d8d195.async.js deleted file mode 100644 index 7cbb4294..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__QuickReply__index.d4d8d195.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6037],{57397:function(i,s,t){t.r(s);var l=t(77154),_=t(21612),o=t(67294),E=t(96974),a=t(85615),d=t(65383),n=t(85893),D=_.Z.Sider,M=_.Z.Content,O=function(){var e=(0,l.Z)(),P=e.leftSiderStyle,r=e.contentStyle;return(0,n.jsxs)(_.Z,{children:[(0,n.jsx)(D,{style:P,children:(0,n.jsx)(d.Z,{type:a._FS})}),(0,n.jsx)(_.Z,{children:(0,n.jsx)(M,{style:r,children:(0,n.jsx)(E.j3,{})})})]})};s.default=O}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__TabooData.4454dade.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__TabooData.4454dade.async.js deleted file mode 100644 index 7e3b6b19..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__TabooData.4454dade.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[7445],{69753:function(ee,M,e){var d=e(1413),c=e(67294),P=e(49495),n=e(89099),D=function(o,j){return c.createElement(n.Z,(0,d.Z)((0,d.Z)({},o),{},{ref:j,icon:P.Z}))},E=c.forwardRef(D);M.Z=E},11475:function(ee,M,e){e.d(M,{Z:function(){return o}});var d=e(1413),c=e(67294),P={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"},n=P,D=e(89099),E=function(h,x){return c.createElement(D.Z,(0,d.Z)((0,d.Z)({},h),{},{ref:x,icon:n}))},T=c.forwardRef(E),o=T},58638:function(ee,M,e){e.d(M,{Z:function(){return o}});var d=e(1413),c=e(67294),P={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},n=P,D=e(89099),E=function(h,x){return c.createElement(D.Z,(0,d.Z)((0,d.Z)({},h),{},{ref:x,icon:n}))},T=c.forwardRef(E),o=T},57546:function(ee,M,e){e.d(M,{Z:function(){return o}});var d=e(1413),c=e(67294),P={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},n=P,D=e(89099),E=function(h,x){return c.createElement(D.Z,(0,d.Z)((0,d.Z)({},h),{},{ref:x,icon:n}))},T=c.forwardRef(E),o=T},64082:function(ee,M,e){e.d(M,{Z:function(){return o}});var d=e(1413),c=e(67294),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},n=P,D=e(89099),E=function(h,x){return c.createElement(D.Z,(0,d.Z)((0,d.Z)({},h),{},{ref:x,icon:n}))},T=c.forwardRef(E),o=T},64317:function(ee,M,e){var d=e(1413),c=e(91),P=e(22270),n=e(67294),D=e(66758),E=e(24809),T=e(85893),o=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],j=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],h=function(I,N){var re=I.fieldProps,F=I.children,L=I.params,Y=I.proFieldProps,te=I.mode,$=I.valueEnum,V=I.request,S=I.showSearch,s=I.options,t=(0,c.Z)(I,o),r=(0,n.useContext)(D.Z);return(0,T.jsx)(E.Z,(0,d.Z)((0,d.Z)({valueEnum:(0,P.h)($),request:V,params:L,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,d.Z)({options:s,mode:te,showSearch:S,getPopupContainer:r.getPopupContainer},re),ref:N,proFieldProps:Y},t),{},{children:F}))},x=n.forwardRef(function(v,I){var N=v.fieldProps,re=v.children,F=v.params,L=v.proFieldProps,Y=v.mode,te=v.valueEnum,$=v.request,V=v.options,S=(0,c.Z)(v,j),s=(0,d.Z)({options:V,mode:Y||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},N),t=(0,n.useContext)(D.Z);return(0,T.jsx)(E.Z,(0,d.Z)((0,d.Z)({valueEnum:(0,P.h)(te),request:$,params:F,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,d.Z)({getPopupContainer:t.getPopupContainer},s),ref:I,proFieldProps:L},S),{},{children:re}))}),C=n.forwardRef(h),b=x,A=C;A.SearchSelect=b,A.displayName="ProFormComponent",M.Z=A},90672:function(ee,M,e){var d=e(1413),c=e(91),P=e(67294),n=e(24809),D=e(85893),E=["fieldProps","proFieldProps"],T=function(j,h){var x=j.fieldProps,C=j.proFieldProps,b=(0,c.Z)(j,E);return(0,D.jsx)(n.Z,(0,d.Z)({ref:h,valueType:"textarea",fieldProps:x,proFieldProps:C},b))};M.Z=P.forwardRef(T)},68256:function(ee,M,e){var d=e(97857),c=e.n(d),P=e(5574),n=e.n(P),D=e(85576),E=e(67294),T=e(64082),o=e(64121),j=e(27484),h=e.n(j),x=e(85615),C=e(80049),b=e(38302),A=e(89102),v=e(85893),I=o.Z.Dragger,N=function(F){var L=F.type,Y=F.acceptType,te=F.isModalOpen,$=F.handleOk,V=F.handleCancel,S=(0,b.j)(function(a){return a.currentKbase}),s=(0,A.v)(function(a){return a.currentCategory}),t=(0,E.useState)("\u5F53\u524D\u652F\u6301\u4E0A\u4F20pdf/txt/markdown/docx\u7B49"),r=n()(t,2),p=r[0],i=r[1],y=(0,E.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:L,category_uid:(s==null?void 0:s.uid)==="all"?"":(s==null?void 0:s.uid)||"",kb_uid:(S==null?void 0:S.uid)||"",client:x.bVn}),z=n()(y,2),U=z[0],ae=z[1],se=function(f){var ne=h()(new Date).format("YYYYMMDDHHmmss")+"_"+f.name,H=new FormData;H.append("file",f),H.append("file_name",ne),H.append("file_type",f.type),H.append("is_avatar","false"),H.append("kb_type",L),H.append("category_uid",(s==null?void 0:s.uid)==="all"?"":(s==null?void 0:s.uid)||""),H.append("kb_uid",(S==null?void 0:S.uid)||""),H.append("client",x.bVn),fetch("/api/v1/upload/file",{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(x.LA8)},body:H}).then(function(oe){return oe.json()}).then(function(oe){console.log("upload data:",oe),oe.code===200?(C.yw.destroy(),C.yw.success("".concat(ne," \u4E0A\u4F20\u6210\u529F")),$()):(C.yw.destroy(),C.yw.error("".concat(ne," \u4E0A\u4F20\u5931\u8D25")),V())})},Q={name:"file",accept:Y,action:"/api/v1/upload/file",headers:{Authorization:"Bearer "+localStorage.getItem(x.LA8)},data:U,showUploadList:!1,beforeUpload:function(f){console.log("beforeUpload",f);var ne=h()(new Date).format("YYMMDDHHmmss")+"_"+f.name;U.file=f,U.file_name=ne,U.file_type=f.type,U.kb_type=L,U.category_uid=(s==null?void 0:s.uid)==="all"?"":s==null?void 0:s.uid,U.kb_uid=S==null?void 0:S.uid,console.log("beforeUpload",U)},onChange:function(f){f.file.status==="uploading"&&C.yw.loading("".concat(f.file.name," \u4E0A\u4F20\u4E2D")),f.file.status==="done"?(console.log("response: ",f.file.response),f.file.response.code===200?(C.yw.destroy(),C.yw.success("".concat(f.file.name," \u4E0A\u4F20\u6210\u529F")),$()):(C.yw.destroy(),C.yw.error("".concat(f.file.name," \u4E0A\u4F20\u5931\u8D25")),V())):f.file.status==="error"&&(C.yw.error("".concat(f.file.name," \u4E0A\u4F20\u5931\u8D25")),V())},onDrop:function(f){console.log("Dropped files",f.dataTransfer.files),se(f.dataTransfer.files[0])}},ie=(0,E.useState)(Q),de=n()(ie,2),G=de[0],ve=de[1];return(0,E.useEffect)(function(){L!=x.QPQ&&(Q.accept="application/vnd.ms-excel",ve(Q),i("\u5F53\u524D\u652F\u6301\u4E0A\u4F20excel\u6587\u4EF6")),ae(c()(c()({},U),{},{kb_type:L,category_uid:(s==null?void 0:s.uid)==="all"?"":s==null?void 0:s.uid,kb_uid:S==null?void 0:S.uid}))},[L,s,S]),(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(D.Z,{title:"\u4E0A\u4F20\u6587\u4EF6",open:te,onOk:$,onCancel:V,children:(0,v.jsxs)(I,c()(c()({},G),{},{children:[(0,v.jsx)("p",{className:"ant-upload-drag-icon",children:(0,v.jsx)(T.Z,{})}),(0,v.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u81F3\u6B64\u5904\u5B9E\u73B0\u4E0A\u4F20"}),(0,v.jsx)("p",{className:"ant-upload-hint",children:p})]}))})})};M.Z=N},48984:function(ee,M,e){e.r(M),e.d(M,{default:function(){return Fe}});var d=e(77154),c=e(21612),P=e(97857),n=e.n(P),D=e(13769),E=e.n(D),T=e(15009),o=e.n(T),j=e(99289),h=e.n(j),x=e(5574),C=e.n(x),b=e(80049),A=e(85615),v=e(86745);function I(_){return N.apply(this,arguments)}function N(){return N=h()(o()().mark(function _(l){return o()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.request)("/api/v1/taboo/query/org",{method:"GET",params:n()(n()({},l),{},{client:A.bVn})}));case 1:case"end":return u.stop()}},_)})),N.apply(this,arguments)}function re(_){return F.apply(this,arguments)}function F(){return F=h()(o()().mark(function _(l){return o()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.request)("/api/v1/taboo/create",{method:"POST",data:n()(n()({},l),{},{client:A.bVn})}));case 1:case"end":return u.stop()}},_)})),F.apply(this,arguments)}function L(_){return Y.apply(this,arguments)}function Y(){return Y=h()(o()().mark(function _(l){return o()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.request)("/api/v1/taboo/update",{method:"POST",data:n()(n()({},l),{},{client:A.bVn})}));case 1:case"end":return u.stop()}},_)})),Y.apply(this,arguments)}function te(_){return $.apply(this,arguments)}function $(){return $=h()(o()().mark(function _(l){return o()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.request)("/api/v1/taboo/delete",{method:"POST",data:n()(n()({},l),{},{client:A.bVn})}));case 1:case"end":return u.stop()}},_)})),$.apply(this,arguments)}var V=e(87676),S=e(51042),s=e(57546),t=e(58638),r=e(69753),p=e(57482),i=e(86738),y=e(14726),z=e(67294),U=e(89102),ae=e(73803),se=e(38302),Q=e(34994),ie=e(64317),de=e(90672),G=e(85265),ve=e(42075),a=e(85893),f=function(l){var X=l.isEdit,u=l.taboo,R=l.open,he=l.onClose,ye=l.onSubmit,ge=Q.A.useForm(),Ee=C()(ge,1),ue=Ee[0],ce=(0,V.u)(function(W){return W.currentOrg}),le=(0,se.j)(function(W){return W.currentKbase}),xe=(0,U.v)(function(W){return W.categorySelectOptions});(0,z.useEffect)(function(){X?ue.setFieldsValue({content:u==null?void 0:u.content,categoryUid:u==null?void 0:u.categoryUid,kbUid:le==null?void 0:le.uid}):ue.resetFields()},[R]);var Oe=function(B){console.log("category selected ".concat(B))},Ce=function(B){console.log("type selected ".concat(B))},Me=function(){console.log("handleSubmit"),ue.validateFields().then(function(B){console.log(B),ye(n()(n()(n()({},u),B),{},{kbUid:le==null?void 0:le.uid,orgUid:ce==null?void 0:ce.uid}))}).catch(function(B){console.log("Form errors:",B),b.yw.error("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199")})};return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(G.Z,{title:X?"\u4FEE\u6539":"\u65B0\u5EFA",onClose:he,open:R,extra:(0,a.jsxs)(ve.Z,{children:[(0,a.jsx)(y.ZP,{onClick:he,children:"\u53D6\u6D88"}),(0,a.jsx)(y.ZP,{onClick:Me,type:"primary",children:"\u4FDD\u5B58"})]}),children:(0,a.jsxs)(Q.A,{form:ue,initialValues:n()({},u),submitter:{render:function(){return null}},children:[(0,a.jsx)(ie.Z,{label:"\u5206\u7C7B",name:"categoryUid",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u7C7B"}],options:xe,fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5206\u7C7B",onChange:Oe}}),(0,a.jsx)(ie.Z,{label:"\u7C7B\u578B",name:"type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}],options:[{label:"\u6587\u672C",value:A.PYi}],fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B",onChange:Ce}}),(0,a.jsx)(de.Z,{label:"\u5185\u5BB9",name:"content"})]})})})},ne=f,H=e(68256),oe=["current"],Pe=function(){var l=(0,v.useIntl)(),X=(0,ae.Z)(),u=X.translateStringTranct,R=(0,z.useRef)(),he=(0,z.useState)(!0),ye=C()(he,2),ge=ye[0],Ee=ye[1],ue=(0,z.useState)(),ce=C()(ue,2),le=ce[0],xe=ce[1],Oe=(0,z.useState)(!1),Ce=C()(Oe,2),Me=Ce[0],W=Ce[1],B=(0,V.u)(function(g){return g.currentOrg}),K=(0,se.j)(function(g){return g.currentKbase}),k=(0,U.v)(function(g){return g.currentCategory}),Ue=(0,z.useState)(!1),je=C()(Ue,2),Re=je[0],be=je[1],Be=function(){var g=h()(o()().mark(function O(m){var Z;return o()().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return console.log(m),q.next=3,te(m);case 3:Z=q.sent,console.log("delete response:",Z),Z.code===200?(R==null||R.current.reload(),b.yw.success(l.formatMessage({id:"delete.success",defaultMessage:"Delete Success"}))):b.yw.error(l.formatMessage({id:"delete.failed",defaultMessage:"Delete Error"}));case 6:case"end":return q.stop()}},O)}));return function(m){return g.apply(this,arguments)}}(),we=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,a.jsx)(v.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",render:function(O,m){return u(m==null?void 0:m.content)}},{title:(0,a.jsx)(v.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0,width:180},{title:l.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:100,render:function(O,m,Z,J){return[(0,a.jsx)("a",{onClick:function(){_e(m)},children:l.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,a.jsx)(i.Z,{title:l.formatMessage({id:"deleteTip",defaultMessage:"Delete Tip"}),description:"".concat(l.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"\u3010").concat(m==null?void 0:m.content,"\u3011\uFF1F"),onConfirm:function(){return Be(m)},okText:l.formatMessage({id:"ok"}),cancelText:l.formatMessage({id:"cancel"}),children:(0,a.jsx)(y.ZP,{size:"small",type:"link",danger:!0,children:l.formatMessage({id:"delete",defaultMessage:"Delete"})})},"delete")]}}],Le=function(){xe(void 0),Ee(!1),W(!0)},_e=function(O){xe(O),Ee(!0),W(!0)},We=function(){var g=h()(o()().mark(function O(m){var Z,J;return o()().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(console.log("handleSubmitDrawer",m),ge?b.yw.loading(l.formatMessage({id:"updating"})):b.yw.loading(l.formatMessage({id:"creating"})),!ge){w.next=8;break}return w.next=5,L(m);case 5:w.t0=w.sent,w.next=11;break;case 8:return w.next=10,re(m);case 10:w.t0=w.sent;case 11:Z=w.t0,console.log("createTaboo response:",m,Z),Z.code===200?(b.yw.destroy(),b.yw.success(l.formatMessage({id:"create.success",defaultMessage:"create success"})),W(!1),(J=R.current)===null||J===void 0||J.reloadAndRest()):(b.yw.destroy(),b.yw.error(Z.message));case 14:case"end":return w.stop()}},O)}));return function(m){return g.apply(this,arguments)}}(),Ke=function(){var g=h()(o()().mark(function O(){return o()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:be(!0);case 1:case"end":return Z.stop()}},O)}));return function(){return g.apply(this,arguments)}}(),$e=function(){var g=h()(o()().mark(function O(){var m;return o()().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:console.log("handleExport"),m=localStorage.getItem(A.LA8),window.open("/api/v1/taboo/export?categoryUid="+(k==null?void 0:k.uid)+"&kbUid="+(K==null?void 0:K.uid)+"&orgUid="+(B==null?void 0:B.uid)+"&pageNumber=0&pageSize=20&accessToken="+m);case 3:case"end":return J.stop()}},O)}));return function(){return g.apply(this,arguments)}}();(0,z.useEffect)(function(){var g;(g=R.current)===null||g===void 0||g.reloadAndRest()},[K,k]);var Ve=function(){console.log("handleUploadDragSubmit"),be(!1),R==null||R.current.reload()},ze=function(){console.log("handleUploadDragCancel"),be(!1),R==null||R.current.reload()},Se=(0,z.useMemo)(function(){return(K==null?void 0:K.type)===A.R8f?(K==null?void 0:K.uid)==="":!0},[K]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.Z,{columns:we,actionRef:R,cardBordered:!0,request:function(){var g=h()(o()().mark(function O(m,Z,J){var q,w,Te,pe;return o()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return console.log("request:",m,Z,J),b.yw.loading(l.formatMessage({id:"loading",defaultMessage:"Loading"})),q=m.current,w=E()(m,oe),Te=n()({pageNumber:m.current-1,categoryUid:(k==null?void 0:k.uid)==="all"?"":k==null?void 0:k.uid,kbUid:K==null?void 0:K.uid,orgUid:B==null?void 0:B.uid},w),fe.next=6,I(Te);case 6:return pe=fe.sent,console.log("getAllTaboos response:",Te,pe),b.yw.destroy(),pe.code===200||b.yw.error(pe.message),fe.abrupt("return",{data:pe.data.content,success:!0,total:pe.data.totalElements});case 11:case"end":return fe.stop()}},O)}));return function(O,m,Z){return g.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(O){console.log("page:",O)}},dateFormatter:"string",headerTitle:"\u654F\u611F\u8BCD",toolBarRender:function(){return[(0,a.jsx)(y.ZP,{icon:(0,a.jsx)(S.Z,{}),type:"primary",onClick:Le,disabled:Se,children:l.formatMessage({id:"create",defaultMessage:"Create"})},"button"),(0,a.jsx)(y.ZP,{icon:(0,a.jsx)(s.Z,{}),type:"primary",onClick:Ke,disabled:Se,children:l.formatMessage({id:"import",defaultMessage:"Import"})},"button"),(0,a.jsx)(y.ZP,{icon:(0,a.jsx)(t.Z,{}),type:"primary",onClick:$e,disabled:Se,children:l.formatMessage({id:"export",defaultMessage:"Export"})},"button"),(0,a.jsx)(y.ZP,{icon:(0,a.jsx)(r.Z,{}),type:"link",onClick:function(){window.open("https://www.weiyuai.cn/download/excel/taboo.xlsx")},children:l.formatMessage({id:"download.template",defaultMessage:"Download Template"})},"download")]}}),(0,a.jsx)(ne,{isEdit:ge,open:Me,taboo:le,onClose:function(){return W(!1)},onSubmit:We}),(0,a.jsx)(H.Z,{type:A.R8f,acceptType:".xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",isModalOpen:Re,handleOk:Ve,handleCancel:ze})]})},De=Pe,me=e(52670),Ie=c.Z.Sider,Ae=c.Z.Content,Ze=function(){var l=(0,d.Z)(),X=l.leftSiderStyle,u=l.contentStyle;return(0,a.jsx)("div",{children:(0,a.jsxs)(c.Z,{children:[(0,a.jsx)(Ie,{style:X,children:(0,a.jsx)(me.Z,{type:A.R8f})}),(0,a.jsx)(c.Z,{children:(0,a.jsx)(Ae,{style:u,children:(0,a.jsx)(De,{})})})]})})},Fe=Ze},86250:function(ee,M,e){e.d(M,{Z:function(){return s}});var d=e(67294),c=e(93967),P=e.n(c),n=e(98423),D=e(98065),E=e(53124),T=e(27036),o=e(45503);const j=["wrap","nowrap","wrap-reverse"],h=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],x=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],C=(t,r)=>{const p=r.wrap===!0?"wrap":r.wrap;return{[`${t}-wrap-${p}`]:p&&j.includes(p)}},b=(t,r)=>{const p={};return x.forEach(i=>{p[`${t}-align-${i}`]=r.align===i}),p[`${t}-align-stretch`]=!r.align&&!!r.vertical,p},A=(t,r)=>{const p={};return h.forEach(i=>{p[`${t}-justify-${i}`]=r.justify===i}),p};function v(t,r){return P()(Object.assign(Object.assign(Object.assign({},C(t,r)),b(t,r)),A(t,r)))}var I=v;const N=t=>{const{componentCls:r}=t;return{[r]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},re=t=>{const{componentCls:r}=t;return{[r]:{"&-gap-small":{gap:t.flexGapSM},"&-gap-middle":{gap:t.flexGap},"&-gap-large":{gap:t.flexGapLG}}}},F=t=>{const{componentCls:r}=t,p={};return j.forEach(i=>{p[`${r}-wrap-${i}`]={flexWrap:i}}),p},L=t=>{const{componentCls:r}=t,p={};return x.forEach(i=>{p[`${r}-align-${i}`]={alignItems:i}}),p},Y=t=>{const{componentCls:r}=t,p={};return h.forEach(i=>{p[`${r}-justify-${i}`]={justifyContent:i}}),p},te=()=>({});var $=(0,T.I$)("Flex",t=>{const{paddingXS:r,padding:p,paddingLG:i}=t,y=(0,o.TS)(t,{flexGapSM:r,flexGap:p,flexGapLG:i});return[N(y),re(y),F(y),L(y),Y(y)]},te,{resetStyle:!1}),V=function(t,r){var p={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&r.indexOf(i)<0&&(p[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,i=Object.getOwnPropertySymbols(t);y{const{prefixCls:p,rootClassName:i,className:y,style:z,flex:U,gap:ae,children:se,vertical:Q=!1,component:ie="div"}=t,de=V(t,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:G,direction:ve,getPrefixCls:a}=d.useContext(E.E_),f=a("flex",p),[ne,H,oe]=$(f),Pe=Q!=null?Q:G==null?void 0:G.vertical,De=P()(y,i,G==null?void 0:G.className,f,H,oe,I(f,t),{[`${f}-rtl`]:ve==="rtl",[`${f}-gap-${ae}`]:(0,D.n)(ae),[`${f}-vertical`]:Pe}),me=Object.assign(Object.assign({},G==null?void 0:G.style),z);return U&&(me.flex=U),ae&&!(0,D.n)(ae)&&(me.gap=ae),ne(d.createElement(ie,Object.assign({ref:r,className:De,style:me},(0,n.Z)(de,["justify","wrap","align"])),se))})}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__TabooData.d160fa1c.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__TabooData.d160fa1c.async.js new file mode 100644 index 00000000..cabb9f7d --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__TabooData.d160fa1c.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[7445],{69753:function(e,t,n){var r=n(1413),a=n(67294),o=n(49495),l=n(89099),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o.Z}))},i=a.forwardRef(s);t.Z=i},11475:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(1413),a=n(67294),o={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"},l=n(89099),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(s)},58638:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},l=n(89099),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(s)},57546:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},l=n(89099),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(s)},64082:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},l=n(89099),s=function(e,t){return a.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(s)},64317:function(e,t,n){var r=n(1413),a=n(91),o=n(22270),l=n(67294),s=n(66758),i=n(29258),c=n(85893),u=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],f=function(e,t){var n=e.fieldProps,d=e.children,f=e.params,p=e.proFieldProps,g=e.mode,m=e.valueEnum,h=e.request,v=e.showSearch,x=e.options,y=(0,a.Z)(e,u),w=(0,l.useContext)(s.Z);return(0,c.jsx)(i.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,o.h)(m),request:h,params:f,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({options:x,mode:g,showSearch:v,getPopupContainer:w.getPopupContainer},n),ref:t,proFieldProps:p},y),{},{children:d}))},p=l.forwardRef((function(e,t){var n=e.fieldProps,u=e.children,f=e.params,p=e.proFieldProps,g=e.mode,m=e.valueEnum,h=e.request,v=e.options,x=(0,a.Z)(e,d),y=(0,r.Z)({options:v,mode:g||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),w=(0,l.useContext)(s.Z);return(0,c.jsx)(i.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,o.h)(m),request:h,params:f,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({getPopupContainer:w.getPopupContainer},y),ref:t,proFieldProps:p},x),{},{children:u}))})),g=l.forwardRef(f);g.SearchSelect=p,g.displayName="ProFormComponent",t.Z=g},90672:function(e,t,n){var r=n(1413),a=n(91),o=n(67294),l=n(29258),s=n(85893),i=["fieldProps","proFieldProps"],c=function(e,t){var n=e.fieldProps,o=e.proFieldProps,c=(0,a.Z)(e,i);return(0,s.jsx)(l.Z,(0,r.Z)({ref:t,valueType:"textarea",fieldProps:n,proFieldProps:o},c))};t.Z=o.forwardRef(c)},68256:function(e,t,n){var r=n(97857),a=n.n(r),o=n(5574),l=n.n(o),s=n(85576),i=n(67294),c=n(64082),u=n(64121),d=n(27484),f=n.n(d),p=n(85615),g=n(80049),m=n(38302),h=n(89102),v=n(17634),x=n(85893),y=u.Z.Dragger;t.Z=function(e){var t=e.type,n=e.acceptType,r=e.isModalOpen,o=e.handleOk,u=e.handleCancel,d=(0,m.j)((function(e){return e.currentKbase})),w=(0,i.useState)((null==d?void 0:d.uid)||""),b=l()(w,2),Z=b[0],j=b[1],C=(0,h.v)((function(e){return e.currentCategory})),M=(0,i.useState)("当前支持上传pdf/txt/markdown/docx等"),S=l()(M,2),k=S[0],P=S[1],E=(0,i.useState)({file:void 0,file_name:"test.pdf",file_type:"application/pdf",is_avatar:"false",kb_type:t,category_uid:"all"===(null==C?void 0:C.uid)?"":(null==C?void 0:C.uid)||"",kb_uid:(null==d?void 0:d.uid)||"",client:p.bVn}),O=l()(E,2),F=O[0],T=O[1],V={name:"file",accept:n,action:(0,v.M$)(),headers:{Authorization:"Bearer "+localStorage.getItem(p.LA8)},data:F,showUploadList:!1,beforeUpload:function(e){console.log("beforeUpload before",e,Z,d);var n=f()(new Date).format("YYMMDDHHmmss")+"_"+e.name;F.file=e,F.file_name=n,F.file_type=e.type,F.kb_type=t,F.kb_uid=Z,console.log("beforeUpload after",F)},onChange:function(e){"uploading"===e.file.status&&g.yw.loading("".concat(e.file.name," 上传中")),"done"===e.file.status?(console.log("response: ",e.file.response),200===e.file.response.code?(g.yw.destroy(),g.yw.success("".concat(e.file.name," 上传成功")),o()):(g.yw.destroy(),g.yw.error("".concat(e.file.name," 上传失败")),u())):"error"===e.file.status&&(g.yw.error("".concat(e.file.name," 上传失败")),u())},onDrop:function(e){console.log("Dropped files",e.dataTransfer.files)}},$=(0,i.useState)(V),U=l()($,2),R=U[0],D=U[1];return(0,i.useEffect)((function(){m.j.subscribe((function(e,t){var n,r;console.log("useKbaseStore changed:",null==e||null===(n=e.currentKbase)||void 0===n?void 0:n.uid),j(null==e||null===(r=e.currentKbase)||void 0===r?void 0:r.uid),D(V)}))}),[d]),(0,i.useEffect)((function(){t!=p.QPQ&&(V.accept="application/vnd.ms-excel",D(V),P("当前支持上传excel文件")),T(a()(a()({},F),{},{kb_type:t,category_uid:"all"===(null==C?void 0:C.uid)?"":null==C?void 0:C.uid})),D(V)}),[t,C]),(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(s.Z,{title:"上传文件",open:r,onOk:o,onCancel:u,children:(0,x.jsxs)(y,a()(a()({},R),{},{children:[(0,x.jsx)("p",{className:"ant-upload-drag-icon",children:(0,x.jsx)(c.Z,{})}),(0,x.jsx)("p",{className:"ant-upload-text",children:"点击或拖拽文件至此处实现上传"}),(0,x.jsx)("p",{className:"ant-upload-hint",children:k})]}))})})}},48984:function(e,t,n){n.r(t),n.d(t,{default:function(){return X}});var r=n(77154),a=n(21612),o=n(97857),l=n.n(o),s=n(13769),i=n.n(s),c=n(15009),u=n.n(c),d=n(99289),f=n.n(d),p=n(5574),g=n.n(p),m=n(80049),h=n(85615),v=n(86745);function x(e){return y.apply(this,arguments)}function y(){return(y=f()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,v.request)("/api/v1/taboo/query/org",{method:"GET",params:l()(l()({},t),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e){return b.apply(this,arguments)}function b(){return(b=f()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,v.request)("/api/v1/taboo/create",{method:"POST",data:l()(l()({},t),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e){return j.apply(this,arguments)}function j(){return(j=f()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,v.request)("/api/v1/taboo/update",{method:"POST",data:l()(l()({},t),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return M.apply(this,arguments)}function M(){return(M=f()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,v.request)("/api/v1/taboo/delete",{method:"POST",data:l()(l()({},t),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var S=n(87676),k=n(51042),P=n(57546),E=n(58638),O=n(69753),F=n(74190),T=n(86738),V=n(14726),$=n(67294),U=n(89102),R=n(73803),D=n(38302),q=n(34994),z=n(64317),A=n(90672),I=n(85265),_=n(42075),L=n(85893),N=function(e){var t=e.isEdit,n=e.taboo,r=e.open,a=e.onClose,o=e.onSubmit,s=q.A.useForm(),i=g()(s,1)[0],c=(0,S.u)((function(e){return e.currentOrg})),u=(0,D.j)((function(e){return e.currentKbase})),d=(0,U.v)((function(e){return e.categorySelectOptions}));(0,$.useEffect)((function(){t?i.setFieldsValue({content:null==n?void 0:n.content,categoryUid:null==n?void 0:n.categoryUid,kbUid:null==u?void 0:u.uid}):i.resetFields()}),[r]);return(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(I.Z,{title:t?"修改":"新建",onClose:a,open:r,extra:(0,L.jsxs)(_.Z,{children:[(0,L.jsx)(V.ZP,{onClick:a,children:"取消"}),(0,L.jsx)(V.ZP,{onClick:function(){console.log("handleSubmit"),i.validateFields().then((function(e){console.log(e),o(l()(l()(l()({},n),e),{},{kbUid:null==u?void 0:u.uid,orgUid:null==c?void 0:c.uid}))})).catch((function(e){console.log("Form errors:",e),m.yw.error("请检查表单填写")}))},type:"primary",children:"保存"})]}),children:(0,L.jsxs)(q.A,{form:i,initialValues:l()({},n),submitter:{render:function(){return null}},children:[(0,L.jsx)(z.Z,{label:"分类",name:"categoryUid",rules:[{required:!0,message:"请选择分类"}],options:d,fieldProps:{allowClear:!0,placeholder:"请选择分类",onChange:function(e){console.log("category selected ".concat(e))}}}),(0,L.jsx)(z.Z,{label:"类型",name:"type",rules:[{required:!0,message:"请选择类型"}],options:[{label:"文本",value:h.PYi}],fieldProps:{allowClear:!0,placeholder:"请选择类型",onChange:function(e){console.log("type selected ".concat(e))}}}),(0,L.jsx)(A.Z,{label:"内容",name:"content"})]})})})},G=n(68256),H=n(17634),B=["current"],K=function(){var e=(0,v.useIntl)(),t=(0,R.Z)().translateStringTranct,n=(0,$.useRef)(),r=(0,$.useState)(!0),a=g()(r,2),o=a[0],s=a[1],c=(0,$.useState)(),d=g()(c,2),p=d[0],y=d[1],b=(0,$.useState)(!1),j=g()(b,2),M=j[0],q=j[1],z=(0,S.u)((function(e){return e.currentOrg})),A=(0,D.j)((function(e){return e.currentKbase})),I=(0,U.v)((function(e){return e.currentCategory})),_=(0,$.useState)(!1),K=g()(_,2),Q=K[0],Y=K[1],W=function(){var t=f()(u()().mark((function t(r){var a;return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log(r),t.next=3,C(r);case 3:a=t.sent,console.log("delete response:",a),200===a.code?(null==n||n.current.reload(),m.yw.success(e.formatMessage({id:"delete.success",defaultMessage:"Delete Success"}))):m.yw.error(e.formatMessage({id:"delete.failed",defaultMessage:"Delete Error"}));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),X=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,L.jsx)(v.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",render:function(e,n){return t(null==n?void 0:n.content)}},{title:(0,L.jsx)(v.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0,width:180},{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:100,render:function(t,n,r,a){return[(0,L.jsx)("a",{onClick:function(){ee(n)},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,L.jsx)(T.Z,{title:e.formatMessage({id:"deleteTip",defaultMessage:"Delete Tip"}),description:"".concat(e.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"【").concat(null==n?void 0:n.content,"】?"),onConfirm:function(){return W(n)},okText:e.formatMessage({id:"ok"}),cancelText:e.formatMessage({id:"cancel"}),children:(0,L.jsx)(V.ZP,{size:"small",type:"link",danger:!0,children:e.formatMessage({id:"delete",defaultMessage:"Delete"})})},"delete")]}}],J=function(){y(void 0),s(!1),q(!0)},ee=function(e){y(e),s(!0),q(!0)},te=function(){var t=f()(u()().mark((function t(r){var a,l;return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log("handleSubmitDrawer",r),o?m.yw.loading(e.formatMessage({id:"updating"})):m.yw.loading(e.formatMessage({id:"creating"})),!o){t.next=8;break}return t.next=5,Z(r);case 5:t.t0=t.sent,t.next=11;break;case 8:return t.next=10,w(r);case 10:t.t0=t.sent;case 11:a=t.t0,console.log("createTaboo response:",r,a),200===a.code?(m.yw.destroy(),m.yw.success(e.formatMessage({id:"create.success",defaultMessage:"create success"})),q(!1),null===(l=n.current)||void 0===l||l.reloadAndRest()):(m.yw.destroy(),m.yw.error(a.message));case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ne=function(){var e=f()(u()().mark((function e(){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Y(!0);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),re=function(){var e=f()(u()().mark((function e(){var t;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleExport"),t=localStorage.getItem(h.LA8),window.open((0,H.SV)()+"/api/v1/taboo/export?categoryUid="+(null==I?void 0:I.uid)+"&kbUid="+(null==A?void 0:A.uid)+"&orgUid="+(null==z?void 0:z.uid)+"&pageNumber=0&pageSize=20&accessToken="+t);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,$.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.reloadAndRest()}),[A,I]);var ae=(0,$.useMemo)((function(){return(null==A?void 0:A.type)!==h.R8f||""===(null==A?void 0:A.uid)}),[A]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(F.Z,{columns:X,actionRef:n,cardBordered:!0,request:function(){var t=f()(u()().mark((function t(n,r,a){var o,s,c;return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("request:",n,r,a),m.yw.loading(e.formatMessage({id:"loading",defaultMessage:"Loading"})),n.current,o=i()(n,B),s=l()({pageNumber:n.current-1,categoryUid:"all"===(null==I?void 0:I.uid)?"":null==I?void 0:I.uid,kbUid:null==A?void 0:A.uid,orgUid:null==z?void 0:z.uid},o),t.next=6,x(s);case 6:return c=t.sent,console.log("getAllTaboos response:",s,c),m.yw.destroy(),200===c.code||m.yw.error(c.message),t.abrupt("return",{data:c.data.content,success:!0,total:c.data.totalElements});case 11:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"敏感词",toolBarRender:function(){return[(0,L.jsx)(V.ZP,{icon:(0,L.jsx)(k.Z,{}),type:"primary",onClick:J,disabled:ae,children:e.formatMessage({id:"create",defaultMessage:"Create"})},"button"),(0,L.jsx)(V.ZP,{icon:(0,L.jsx)(P.Z,{}),type:"primary",onClick:ne,disabled:ae,children:e.formatMessage({id:"import",defaultMessage:"Import"})},"button"),(0,L.jsx)(V.ZP,{icon:(0,L.jsx)(E.Z,{}),type:"primary",onClick:re,disabled:ae,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button"),(0,L.jsx)(V.ZP,{icon:(0,L.jsx)(O.Z,{}),type:"link",onClick:function(){window.open("https://www.weiyuai.cn/download/excel/taboo.xlsx")},children:e.formatMessage({id:"download.template",defaultMessage:"Download Template"})},"download")]}}),(0,L.jsx)(N,{isEdit:o,open:M,taboo:p,onClose:function(){return q(!1)},onSubmit:te}),(0,L.jsx)(G.Z,{type:h.R8f,acceptType:".xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",isModalOpen:Q,handleOk:function(){console.log("handleUploadDragSubmit"),Y(!1),null==n||n.current.reload()},handleCancel:function(){console.log("handleUploadDragCancel"),Y(!1),null==n||n.current.reload()}})]})},Q=n(52670),Y=a.Z.Sider,W=a.Z.Content,X=function(){var e=(0,r.Z)(),t=e.leftSiderStyle,n=e.contentStyle;return(0,L.jsx)("div",{children:(0,L.jsxs)(a.Z,{children:[(0,L.jsx)(Y,{style:t,children:(0,L.jsx)(Q.Z,{type:h.R8f})}),(0,L.jsx)(a.Z,{children:(0,L.jsx)(W,{style:n,children:(0,L.jsx)(K,{})})})]})})}},86250:function(e,t,n){n.d(t,{Z:function(){return j}});var r=n(67294),a=n(93967),o=n.n(a),l=n(98423),s=n(98065),i=n(53124),c=n(83559),u=n(83262);const d=["wrap","nowrap","wrap-reverse"],f=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],p=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var g=function(e,t){return o()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&d.includes(n)}})(e,t)),((e,t)=>{const n={};return p.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))};const m=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},h=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},v=e=>{const{componentCls:t}=e,n={};return d.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},x=e=>{const{componentCls:t}=e,n={};return p.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},y=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n};var w=(0,c.I$)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,a=(0,u.IX)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[m(a),h(a),v(a),x(a),y(a)]}),(()=>({})),{resetStyle:!1}),b=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,rootClassName:a,className:c,style:u,flex:d,gap:f,children:p,vertical:m=!1,component:h="div"}=e,v=b(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:x,direction:y,getPrefixCls:Z}=r.useContext(i.E_),j=Z("flex",n),[C,M,S]=w(j),k=null!=m?m:null==x?void 0:x.vertical,P=o()(c,a,null==x?void 0:x.className,j,M,S,g(j,e),{[`${j}-rtl`]:"rtl"===y,[`${j}-gap-${f}`]:(0,s.n)(f),[`${j}-vertical`]:k}),E=Object.assign(Object.assign({},null==x?void 0:x.style),u);return d&&(E.flex=d),f&&!(0,s.n)(f)&&(E.gap=f),C(r.createElement(h,Object.assign({ref:t,className:P,style:E},(0,l.Z)(v,["justify","wrap","align"])),p))}));var j=Z}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__TabooStatistic.1eab13a1.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__TabooStatistic.1eab13a1.async.js new file mode 100644 index 00000000..08004e9e --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__TabooStatistic.1eab13a1.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[319],{51357:function(e,s,c){c.r(s);var a=c(85615),n=c(86745),i=c(85893);s.default=function(){var e=(0,n.useAccess)();return e.canDebug&&console.log("TabFaqReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(n.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.FormattedMessage,{id:a.h5w})}),children:"FaqStatistic"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__TabooStatistic.223f7a29.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__TabooStatistic.223f7a29.async.js deleted file mode 100644 index f86ddd49..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__TabooStatistic.223f7a29.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[319],{51357:function(l,n,a){a.r(n);var e=a(85615),c=a(86745),s=a(85893),i=function(){var t=(0,c.useAccess)();return t.canDebug&&console.log("TabFaqReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(c.Access,{accessible:t.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.FormattedMessage,{id:e.h5w})}),children:"FaqStatistic"})})})};n.default=i}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__index.026faacc.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__index.026faacc.async.js deleted file mode 100644 index 3c9782a1..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__index.026faacc.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8158],{34832:function(o,_,t){t.r(_);var E=t(77154),s=t(21612),C=t(67294),l=t(96974),a=t(85615),d=t(65383),n=t(85893),D=s.Z.Sider,M=s.Z.Content,O=function(){var e=(0,E.Z)(),P=e.leftSiderStyle,r=e.contentStyle;return(0,n.jsxs)(s.Z,{children:[(0,n.jsx)(D,{style:P,children:(0,n.jsx)(d.Z,{type:a.R8f})}),(0,n.jsx)(s.Z,{children:(0,n.jsx)(M,{style:r,children:(0,n.jsx)(l.j3,{})})})]})};_.default=O}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__index.5ff17b1e.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__index.5ff17b1e.async.js new file mode 100644 index 00000000..71149bbf --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__Taboo__index.5ff17b1e.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8158],{34832:function(e,n,t){t.r(n);var s=t(77154),l=t(21612),r=(t(67294),t(96974)),i=t(85615),c=t(65383),d=t(85893),u=l.Z.Sider,a=l.Z.Content;n.default=function(){var e=(0,s.Z)(),n=e.leftSiderStyle,t=e.contentStyle;return(0,d.jsxs)(l.Z,{children:[(0,d.jsx)(u,{style:n,children:(0,d.jsx)(c.Z,{type:i.R8f})}),(0,d.jsx)(l.Z,{children:(0,d.jsx)(a,{style:t,children:(0,d.jsx)(r.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__index.7d9d31c0.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__index.7d9d31c0.async.js deleted file mode 100644 index 98e33f77..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__index.7d9d31c0.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[363],{93331:function(s,u,n){n.r(u);var a=n(86745),E=n(67294),t=n(85893),e=function(){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(a.Outlet,{})})};u.default=e}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__index.c0e7fadc.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__index.c0e7fadc.async.js new file mode 100644 index 00000000..a815a311 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Knowledge__index.c0e7fadc.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[363],{93331:function(n,e,t){t.r(e);var u=t(86745),a=(t(67294),t(85893));e.default=function(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(u.Outlet,{})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Category__index.04047b45.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Category__index.04047b45.async.js new file mode 100644 index 00000000..e4c40e5f --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Category__index.04047b45.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5522],{7420:function(e,t,n){n.d(t,{$T:function(){return p},A:function(){return y},Hf:function(){return v},P6:function(){return g},gx:function(){return f}});var r=n(15009),u=n.n(r),o=n(97857),a=n.n(o),s=n(99289),c=n.n(s),i=n(85615),d=n(86745);function f(e){return l.apply(this,arguments)}function l(){return(l=c()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/course/query/org",{method:"GET",params:a()(a()({},t),{},{client:i.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return h.apply(this,arguments)}function h(){return(h=c()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/course/query/user",{method:"GET",params:a()(a()({},t),{},{client:i.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return x.apply(this,arguments)}function x(){return(x=c()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/course/create",{method:"POST",data:a()(a()({},t),{},{client:i.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){return m.apply(this,arguments)}function m(){return(m=c()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/course/update",{method:"POST",data:a()(a()({},t),{},{client:i.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e){return b.apply(this,arguments)}function b(){return(b=c()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/course/delete",{method:"POST",data:a()(a()({},t),{},{client:i.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},77154:function(e,t,n){var r=n(39825);t.Z=function(){var e=(0,r.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},53363:function(e,t,n){n.r(t),n.d(t,{default:function(){return k}});var r=n(77154),u=n(21612),o=n(67294),a=n(15009),s=n.n(a),c=n(99289),i=n.n(c),d=n(5574),f=n.n(d),l=n(80049),p=n(7420),h=n(89333),g=n(60247),x=n(74190),v=n(85893),m=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"封面",dataIndex:"cover",render:function(e,t){return(0,v.jsx)("a",{href:t.cover,target:"_blank",children:(0,v.jsx)("img",{src:t.cover,width:"40",height:"40"})})}},{title:(0,v.jsx)(FormattedMessage,{id:"title",defaultMessage:"Title"}),dataIndex:"name",copyable:!0},{title:(0,v.jsx)(FormattedMessage,{id:"category",defaultMessage:"Category"}),key:"category",render:function(e,t){return"分类"}},{title:"发布人",copyable:!0,editable:!1,renderText:function(e,t,n,r){var u;return null===(u=t.user)||void 0===u?void 0:u.nickname}},{title:(0,v.jsx)(FormattedMessage,{id:"status",defaultMessage:"Status"}),key:"published",render:function(e,t){return t.published?"已发布":"未发布"}},{title:(0,v.jsx)(FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",editable:!1,sorter:!0,hideInSearch:!0},{title:intl.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(e,t,n,r){return[(0,v.jsx)("a",{onClick:function(){console.log("edit record:",t)},children:"修改"},"editable")]}}],y=function(){var e=(0,g.L)((function(e){return e.userInfo})),t=(0,o.useRef)(),n=(0,o.useState)(1),r=f()(n,2),u=r[0],a=r[1],c=(0,o.useState)(10),d=f()(c,2),y=d[0],b=d[1],k=(0,h.K)((function(e){return{courseResult:e.courseResult,setCourseResult:e.setCourseResult}})),w=k.courseResult,R=k.setCourseResult,C=function(){var t=i()(s()().mark((function t(){var n,r;return s()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n={pageNumber:u-1,pageSize:y},!e.superUser){t.next=7;break}return t.next=4,(0,p.gx)(n);case 4:t.t0=t.sent,t.next=10;break;case 7:return t.next=9,(0,p.$T)(n);case 9:t.t0=t.sent;case 10:r=t.t0,console.log("getAllCourses response:",n,r),200===r.code?R(r):l.yw.error(r.message);case 13:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){C()}),[]),(0,o.useEffect)((function(){C()}),[u,y]),(0,o.useEffect)((function(){console.log("courseResult:",w),t.current.reload()}),[w]),(0,v.jsx)(x.Z,{columns:m,actionRef:t,cardBordered:!0,request:function(){var e=i()(s()().mark((function e(t,n,r){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("request:",t,n,r),a(t.current),b(t.pageSize),e.abrupt("return",Promise.resolve({data:w.data.content,success:!0,total:w.data.totalElements}));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{pageSize:y,showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"管理类别",toolBarRender:function(){return[]}})},b=(u.Z.Sider,u.Z.Content),k=function(){var e=(0,r.Z)().contentStyle;return(0,v.jsx)(u.Z,{children:(0,v.jsx)(u.Z,{children:(0,v.jsx)(b,{style:e,children:(0,v.jsx)(y,{})})})})}},89333:function(e,t,n){n.d(t,{K:function(){return s}});var r=n(85615),u=n(73445),o=n(782),a=n(18753),s=(0,u.Ue)()((0,o.mW)((0,o.tJ)((0,a.n)((function(e,t){return{courseResult:{data:{content:[]}},insertCourseResult:function(t){e((function(e){e.courseResult.data.content.unshift(t)}))},updateCourseResult:function(t){e((function(e){var n=e.courseResult.data.content,r=n.findIndex((function(e){return e.uid===t.uid}));-1!==r?n[r]=t:console.warn("Course with uid ".concat(t.uid," not found."))}))},deleteCourseResult:function(t){e((function(e){var n=e.courseResult.data.content,r=n.findIndex((function(e){return e.uid===t.uid}));-1!==r?n.splice(r,1):console.warn("Course with uid ".concat(t.uid," not found."))}))},setCourseResult:function(t){e({courseResult:t})},deleteCourseCache:function(){return e({},!0)}}})),{name:r.vCH})))}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Category__index.29dea558.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Category__index.29dea558.async.js deleted file mode 100644 index e678867a..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Category__index.29dea558.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5522],{7420:function(U,C,e){e.d(C,{$T:function(){return p},A:function(){return x},Hf:function(){return l},P6:function(){return T},gx:function(){return u}});var E=e(15009),n=e.n(E),i=e(97857),r=e.n(i),f=e(99289),s=e.n(f),m=e(85615),o=e(86745);function u(a){return v.apply(this,arguments)}function v(){return v=s()(n()().mark(function a(c){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.request)("/api/v1/course/query/org",{method:"GET",params:r()(r()({},c),{},{client:m.bVn})}));case 1:case"end":return t.stop()}},a)})),v.apply(this,arguments)}function p(a){return h.apply(this,arguments)}function h(){return h=s()(n()().mark(function a(c){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.request)("/api/v1/course/query/user",{method:"GET",params:r()(r()({},c),{},{client:m.bVn})}));case 1:case"end":return t.stop()}},a)})),h.apply(this,arguments)}function T(a){return S.apply(this,arguments)}function S(){return S=s()(n()().mark(function a(c){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.request)("/api/v1/course/create",{method:"POST",data:r()(r()({},c),{},{client:m.bVn})}));case 1:case"end":return t.stop()}},a)})),S.apply(this,arguments)}function l(a){return P.apply(this,arguments)}function P(){return P=s()(n()().mark(function a(c){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.request)("/api/v1/course/update",{method:"POST",data:r()(r()({},c),{},{client:m.bVn})}));case 1:case"end":return t.stop()}},a)})),P.apply(this,arguments)}function x(a){return O.apply(this,arguments)}function O(){return O=s()(n()().mark(function a(c){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,o.request)("/api/v1/course/delete",{method:"POST",data:r()(r()({},c),{},{client:m.bVn})}));case 1:case"end":return t.stop()}},a)})),O.apply(this,arguments)}function $(a){return j.apply(this,arguments)}function j(){return j=_asyncToGenerator(_regeneratorRuntime().mark(function a(c){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/course/filter",{method:"GET",params:_objectSpread(_objectSpread({},c),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},a)})),j.apply(this,arguments)}},77154:function(U,C,e){var E=e(39825);function n(){var i=(0,E.Z)(),r=i.isDarkMode,f=250,s={borderRight:r?"1px solid #333":"1px solid #ccc",background:r?"#141414":"#f5f5f5"},m={background:r?"#141414":"#fff"},o={borderLeft:r?"1px solid #333":"1px solid #ccc",background:r?"#141414":"#f5f5f5"},u={minHeight:120,background:r?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:s,leftSiderWidth:f,headerStyle:m,rightSiderStyle:o,contentStyle:u}}C.Z=n},53363:function(U,C,e){e.r(C),e.d(C,{default:function(){return c}});var E=e(77154),n=e(21612),i=e(67294),r=e(15009),f=e.n(r),s=e(99289),m=e.n(s),o=e(5574),u=e.n(o),v=e(80049),p=e(7420),h=e(89333),T=e(60247),S=e(57482),l=e(85893),P=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"\u5C01\u9762",dataIndex:"cover",render:function(t,d){return(0,l.jsx)("a",{href:d.cover,target:"_blank",children:(0,l.jsx)("img",{src:d.cover,width:"40",height:"40"})})}},{title:(0,l.jsx)(FormattedMessage,{id:"title",defaultMessage:"Title"}),dataIndex:"name",copyable:!0},{title:(0,l.jsx)(FormattedMessage,{id:"category",defaultMessage:"Category"}),key:"category",render:function(t,d){return"\u5206\u7C7B"}},{title:"\u53D1\u5E03\u4EBA",copyable:!0,editable:!1,renderText:function(t,d,L,I){var D;return(D=d.user)===null||D===void 0?void 0:D.nickname}},{title:(0,l.jsx)(FormattedMessage,{id:"status",defaultMessage:"Status"}),key:"published",render:function(t,d){return d.published?"\u5DF2\u53D1\u5E03":"\u672A\u53D1\u5E03"}},{title:(0,l.jsx)(FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",editable:!1,sorter:!0,hideInSearch:!0},{title:intl.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(t,d,L,I){return[(0,l.jsx)("a",{onClick:function(){console.log("edit record:",d)},children:"\u4FEE\u6539"},"editable")]}}],x=function(){var t=(0,T.L)(function(y){return y.userInfo}),d=(0,i.useRef)(),L=(0,i.useState)(1),I=u()(L,2),D=I[0],G=I[1],Z=(0,i.useState)(10),K=u()(Z,2),W=K[0],F=K[1],k=(0,h.K)(function(y){return{courseResult:y.courseResult,setCourseResult:y.setCourseResult}}),A=k.courseResult,V=k.setCourseResult,w=function(){var y=m()(f()().mark(function M(){var b,R;return f()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(b={pageNumber:D-1,pageSize:W},!t.superUser){_.next=7;break}return _.next=4,(0,p.gx)(b);case 4:_.t0=_.sent,_.next=10;break;case 7:return _.next=9,(0,p.$T)(b);case 9:_.t0=_.sent;case 10:R=_.t0,console.log("getAllCourses response:",b,R),R.code===200?V(R):v.yw.error(R.message);case 13:case"end":return _.stop()}},M)}));return function(){return y.apply(this,arguments)}}();return(0,i.useEffect)(function(){w()},[]),(0,i.useEffect)(function(){w()},[D,W]),(0,i.useEffect)(function(){console.log("courseResult:",A),d.current.reload()},[A]),(0,l.jsx)(S.Z,{columns:P,actionRef:d,cardBordered:!0,request:function(){var y=m()(f()().mark(function M(b,R,z){return f()().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return console.log("request:",b,R,z),G(b.current),F(b.pageSize),B.abrupt("return",Promise.resolve({data:A.data.content,success:!0,total:A.data.totalElements}));case 4:case"end":return B.stop()}},M)}));return function(M,b,R){return y.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{pageSize:W,showQuickJumper:!0,onChange:function(M){console.log("page:",M)}},dateFormatter:"string",headerTitle:"\u7BA1\u7406\u7C7B\u522B",toolBarRender:function(){return[]}})},O=x,$=n.Z.Sider,j=n.Z.Content,a=function(){var t=(0,E.Z)(),d=t.contentStyle;return(0,l.jsx)(n.Z,{children:(0,l.jsx)(n.Z,{children:(0,l.jsx)(j,{style:d,children:(0,l.jsx)(O,{})})})})},c=a},89333:function(U,C,e){e.d(C,{K:function(){return f}});var E=e(85615),n=e(73445),i=e(782),r=e(18753),f=(0,n.Ue)()((0,i.mW)((0,i.tJ)((0,r.n)(function(s,m){return{courseResult:{data:{content:[]}},insertCourseResult:function(u){s(function(v){var p=v.courseResult.data.content;p.unshift(u)})},updateCourseResult:function(u){s(function(v){var p=v.courseResult.data.content,h=p.findIndex(function(T){return T.uid===u.uid});h!==-1?p[h]=u:console.warn("Course with uid ".concat(u.uid," not found."))})},deleteCourseResult:function(u){s(function(v){var p=v.courseResult.data.content,h=p.findIndex(function(T){return T.uid===u.uid});h!==-1?p.splice(h,1):console.warn("Course with uid ".concat(u.uid," not found."))})},setCourseResult:function(u){s({courseResult:u})},deleteCourseCache:function(){return s({},!0)}}}),{name:E.vCH})))},60247:function(U,C,e){e.d(C,{L:function(){return f}});var E=e(85615),n=e(73445),i=e(782),r=e(18753),f=(0,n.Ue)()((0,i.mW)((0,i.tJ)((0,r.n)(function(s,m){return{userInfo:{uid:""},deviceUid:"",setUserInfo:function(u){s({userInfo:u})},setDeviceUid:function(u){s({deviceUid:u})},deleteUserInfo:function(){return s({},!0)}}}),{name:E.EmD})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Course__index.2730344a.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Course__index.2730344a.async.js new file mode 100644 index 00000000..969160bd --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Course__index.2730344a.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1742],{11475:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(1413),a=n(67294),u={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"},o=n(89099),s=function(e,t){return a.createElement(o.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:u}))};var c=a.forwardRef(s)},30300:function(e,t,n){n.d(t,{FU:function(){return d},O7:function(){return v},k4:function(){return p},yr:function(){return g}});var r=n(15009),a=n.n(r),u=n(97857),o=n.n(u),s=n(99289),c=n.n(s),i=n(85615),l=n(86745);function d(e){return f.apply(this,arguments)}function f(){return(f=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/v1/category/query/org",{method:"GET",params:o()(o()({},t),{},{client:i.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return h.apply(this,arguments)}function h(){return(h=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/v1/category/create",{method:"POST",data:o()(o()({},t),{},{client:i.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return m.apply(this,arguments)}function m(){return(m=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/v1/category/update",{method:"POST",data:o()(o()({},t),{},{client:i.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(){return y.apply(this,arguments)}function y(){return(y=c()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/visitor/api/v1/category/query",{method:"GET",params:{client:i.bVn}}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},7420:function(e,t,n){n.d(t,{$T:function(){return p},A:function(){return x},Hf:function(){return v},P6:function(){return g},gx:function(){return d}});var r=n(15009),a=n.n(r),u=n(97857),o=n.n(u),s=n(99289),c=n.n(s),i=n(85615),l=n(86745);function d(e){return f.apply(this,arguments)}function f(){return(f=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/v1/course/query/org",{method:"GET",params:o()(o()({},t),{},{client:i.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return h.apply(this,arguments)}function h(){return(h=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/v1/course/query/user",{method:"GET",params:o()(o()({},t),{},{client:i.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return m.apply(this,arguments)}function m(){return(m=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/v1/course/create",{method:"POST",data:o()(o()({},t),{},{client:i.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){return y.apply(this,arguments)}function y(){return(y=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/v1/course/update",{method:"POST",data:o()(o()({},t),{},{client:i.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return C.apply(this,arguments)}function C(){return(C=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/v1/course/delete",{method:"POST",data:o()(o()({},t),{},{client:i.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},77154:function(e,t,n){var r=n(39825);t.Z=function(){var e=(0,r.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},83373:function(e,t,n){n.r(t),n.d(t,{default:function(){return I}});var r=n(77154),a=n(21612),u=n(67294),o=n(15009),s=n.n(o),c=n(99289),i=n.n(c),l=n(5574),d=n.n(l),f=n(80049),p=n(7420),h=n(89333),g=n(60247),m=n(11475),v=n(51042),y=n(74190),x=n(85576),C=n(14726),b=n(8232),w=n(85265),k=n(42075),R=n(55102),j=n(92648),S=n(17759),Z=n(89102),M=n(85893),T=function(e){var t=e.isEdit,n=e.course,r=e.open,a=e.onClose,o=e.onSubmit,s=b.Z.useForm(),c=d()(s,1)[0],i=(0,Z.v)((function(e){return e.categoryTreeOptions}));(0,u.useEffect)((function(){var e,r;n&&c?(c.setFieldsValue({name:null==n?void 0:n.name,description:null==n?void 0:n.description}),c.setFieldsValue({categories:[null==n||null===(e=n.mainCategory)||void 0===e?void 0:e.uid,null==n||null===(r=n.subCategory)||void 0===r?void 0:r.uid]})):null==c||t||(console.log("form resetFields"),c.resetFields())}),[n]);return(0,M.jsx)("div",{children:(0,M.jsx)(w.Z,{title:t?"修改课程":"新建课程",onClose:a,open:r,extra:(0,M.jsxs)(k.Z,{children:[(0,M.jsx)(C.ZP,{onClick:a,children:"取消"}),(0,M.jsx)(C.ZP,{onClick:function(){console.log("handleSubmit"),c.validateFields().then((function(e){console.log("Form values:",e);var t={uid:null==n?void 0:n.uid,name:e.name,cover:n.cover,description:e.description,detail:n.detail,price:n.price,mainCategory:{uid:e.categories[0]},subCategory:{uid:e.categories[1]},published:"true"===e.published};o(t)})).catch((function(e){console.log("Form errors:",e)}))},type:"primary",children:"保存"})]}),children:(0,M.jsxs)(b.Z,{form:c,children:[(0,M.jsx)(b.Z.Item,{name:"name",label:"课程名称",initialValue:null==n?void 0:n.name,children:(0,M.jsx)(R.Z,{placeholder:"请输入课程名称"})}),(0,M.jsx)(b.Z.Item,{name:"categories",label:"课程分类",children:(0,M.jsx)(j.Z,{options:i,onChange:function(e,t){console.log("Cascader value:",e),console.log("Cascader selectedData:",t)},placeholder:"选择分类"})}),(0,M.jsx)(b.Z.Item,{name:"description",label:"课程描述",initialValue:null==n?void 0:n.description,children:(0,M.jsx)(R.Z.TextArea,{placeholder:"请输入课程描述"})}),(0,M.jsx)(b.Z.Item,{name:"published",label:"课程状态",initialValue:null!=n&&n.published?"true":"false",children:(0,M.jsx)(S.default,{style:{width:120},onChange:function(e){console.log("selected ".concat(e))},options:[{value:"true",label:"已发布"},{value:"false",label:"未发布"}]})})]})})})},q=n(30300),E=n(86745),F=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"封面",dataIndex:"cover",render:function(e,t){return(0,M.jsx)("a",{href:t.cover,target:"_blank",children:(0,M.jsx)("img",{src:t.cover,width:"40",height:"40"})})}},{title:(0,M.jsx)(E.FormattedMessage,{id:"title",defaultMessage:"Title"}),dataIndex:"name",copyable:!0},{title:(0,M.jsx)(E.FormattedMessage,{id:"category",defaultMessage:"Category"}),key:"category",render:function(e,t){var n=t.mainCategory?t.mainCategory.name:"-",r=t.subCategory?t.subCategory.name:"-";return(0,M.jsxs)("span",{children:[n," / ",r]})}},{title:"城市",dataIndex:"city",render:function(e,t){return t.city?t.city.name:"-"}},{title:"发布人",editable:!1,renderText:function(e,t,n,r){var a;return null===(a=t.user)||void 0===a?void 0:a.nickname}},{title:(0,M.jsx)(E.FormattedMessage,{id:"status",defaultMessage:"Status"}),key:"published",render:function(e,t){return t.published?"已发布":"未发布"}},{title:(0,M.jsx)(E.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",editable:!1,sorter:!0,hideInSearch:!0}],V=function(){var e=(0,E.useIntl)(),t=(0,g.L)((function(e){return e.userInfo})),n=(0,u.useRef)(),r=(0,u.useState)(1),a=d()(r,2),o=a[0],c=a[1],l=(0,u.useState)(10),b=d()(l,2),w=b[0],k=b[1],R=(0,u.useState)(!0),j=d()(R,2),S=j[0],V=j[1],A=(0,u.useState)(),I=d()(A,2),O=I[0],P=I[1],z=(0,h.K)((function(e){return{courseResult:e.courseResult,insertCourseResult:e.insertCourseResult,updateCourseResult:e.updateCourseResult,deleteCourseResult:e.deleteCourseResult,setCourseResult:e.setCourseResult}})),D=z.courseResult,U=z.insertCourseResult,B=z.updateCourseResult,G=z.deleteCourseResult,H=z.setCourseResult,W=(0,Z.v)((function(e){return e.setCategoryResult})),J=(0,u.useState)(!1),K=d()(J,2),L=K[0],$=K[1],N=x.Z.useModal(),Q=d()(N,2),_=Q[0],X=Q[1],Y=function(){P(void 0),V(!1),$(!0)},ee=function(){$(!1)},te=function(){var t=i()(s()().mark((function t(n){var r,a;return s()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log("handleSubmitDrawer:",n),!S){t.next=9;break}return t.next=4,(0,p.Hf)(n);case 4:r=t.sent,console.log("updateCourse:",r),200===r.code?(f.yw.success("更新成功"),B(r.data),ee()):f.yw.error(r.message),t.next=14;break;case 9:return t.next=11,(0,p.P6)(n);case 11:a=t.sent,console.log("createCourse:",a),200===a.code?(f.yw.success(e.formatMessage({id:"create.success",defaultMessage:"create success"})),U(a.data),ee()):f.yw.error(a.message);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ne=function(){var e=i()(s()().mark((function e(t){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("handleDeleteCourse:",t),e.next=3,(0,p.A)(t);case 3:200===(n=e.sent).code?G(t):f.yw.error(n.message);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),re=[].concat(F,[{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(t,n,r,a){return[(0,M.jsx)("a",{onClick:function(){console.log("edit record:",n),function(e){P(e),V(!0),$(!0)}(n)},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,M.jsx)(C.ZP,{size:"small",type:"link",onClick:function(){return function(t){_.confirm({title:e.formatMessage({id:"deleteTip"}),icon:(0,M.jsx)(m.Z,{}),content:"".concat(e.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"【").concat(t.name,"】?"),onOk:function(){ne(t)},onCancel:function(){},okText:e.formatMessage({id:"ok"}),cancelText:e.formatMessage({id:"cancel"})})}(n)},danger:!0,children:"删除"},"delete")]}}]),ae=function(){var e=i()(s()().mark((function e(){var n,r;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={pageNumber:o-1,pageSize:w},!t.superUser){e.next=7;break}return e.next=4,(0,p.gx)(n);case 4:e.t0=e.sent,e.next=10;break;case 7:return e.next=9,(0,p.$T)(n);case 9:e.t0=e.sent;case 10:r=e.t0,console.log("getAllCourses response:",n,r),200===r.code?H(r):f.yw.error(r.message);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ue=function(){var e=i()(s()().mark((function e(){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,q.O7)();case 2:t=e.sent,console.log("getAllCategories response:",t),200===t.code?W(t):f.yw.error(t.message);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,u.useEffect)((function(){ae(),ue()}),[]),(0,u.useEffect)((function(){ae()}),[o,w]),(0,u.useEffect)((function(){console.log("courseResult:",D),n.current.reload()}),[D]),(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(y.Z,{columns:re,actionRef:n,cardBordered:!0,request:function(){var e=i()(s()().mark((function e(t,n,r){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("request:",t,n,r),c(t.current),k(t.pageSize),e.abrupt("return",Promise.resolve({data:D.data.content,success:!0,total:D.data.totalElements}));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{pageSize:w,showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"课程",toolBarRender:function(){return[(0,M.jsxs)(C.ZP,{type:"primary",onClick:Y,children:[(0,M.jsx)(v.Z,{}),e.formatMessage({id:"create",defaultMessage:"Create"})]})]}}),(0,M.jsx)(T,{isEdit:S,course:O,open:L,onClose:ee,onSubmit:te}),X]})},A=(a.Z.Sider,a.Z.Content),I=function(){var e=(0,r.Z)().contentStyle;return(0,M.jsx)(a.Z,{children:(0,M.jsx)(a.Z,{children:(0,M.jsx)(A,{style:e,children:(0,M.jsx)(V,{})})})})}},89102:function(e,t,n){n.d(t,{v:function(){return d}});var r=n(19632),a=n.n(r),u=n(97857),o=n.n(u),s=n(85615),c=n(73445),i=n(782),l=n(18753),d=(0,c.Ue)()((0,i.mW)((0,i.tJ)((0,l.n)((function(e,t){return{categoryResult:{data:{content:[]}},categoryTreeOptions:[],categorySelectOptions:[],currentCategory:{uid:""},setCategoryResult:function(t){var n,r=function(e){var t=[];return e.data.content.forEach((function(e){var n={label:e.name,value:e.uid};t.push(n)})),t}(t),u=o()(o()({},t),{},{data:{content:[{uid:"all",name:"All"}].concat(a()(t.data.content))}}),s=function(e){var t=[];return e.data.content.forEach((function(e){var n={title:e.name,key:e.uid,children:[]};e.children&&Array.isArray(e.children)&&(n.children=e.children.map((function(e){return{title:e.name,key:e.uid,children:[]}}))),t.push(n)})),t}(u);e({categoryResult:u,categoryTreeOptions:s,categorySelectOptions:r}),(null===(n=t.data)||void 0===n||null===(n=n.content)||void 0===n?void 0:n.length)>0?e({currentCategory:t.data.content[0]}):e({currentCategory:{uid:""}})},setCurrentCategoryUid:function(n){var r=t().categoryResult.data.content.find((function(e){return e.uid===n}));e({currentCategory:r})},deleteCategoryCache:function(){return e({},!0)}}})),{name:s.OMm})))},89333:function(e,t,n){n.d(t,{K:function(){return s}});var r=n(85615),a=n(73445),u=n(782),o=n(18753),s=(0,a.Ue)()((0,u.mW)((0,u.tJ)((0,o.n)((function(e,t){return{courseResult:{data:{content:[]}},insertCourseResult:function(t){e((function(e){e.courseResult.data.content.unshift(t)}))},updateCourseResult:function(t){e((function(e){var n=e.courseResult.data.content,r=n.findIndex((function(e){return e.uid===t.uid}));-1!==r?n[r]=t:console.warn("Course with uid ".concat(t.uid," not found."))}))},deleteCourseResult:function(t){e((function(e){var n=e.courseResult.data.content,r=n.findIndex((function(e){return e.uid===t.uid}));-1!==r?n.splice(r,1):console.warn("Course with uid ".concat(t.uid," not found."))}))},setCourseResult:function(t){e({courseResult:t})},deleteCourseCache:function(){return e({},!0)}}})),{name:r.vCH})))}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Course__index.2bc0e11f.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Course__index.2bc0e11f.async.js deleted file mode 100644 index 5fa2fdad..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Course__index.2bc0e11f.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1742],{11475:function(Z,S,e){e.d(S,{Z:function(){return c}});var A=e(1413),n=e(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"},a=d,v=e(89099),l=function(p,y){return n.createElement(v.Z,(0,A.Z)((0,A.Z)({},p),{},{ref:y,icon:a}))},m=n.forwardRef(l),c=m},30300:function(Z,S,e){e.d(S,{FU:function(){return o},O7:function(){return x},k4:function(){return y},yr:function(){return R}});var A=e(15009),n=e.n(A),d=e(97857),a=e.n(d),v=e(99289),l=e.n(v),m=e(85615),c=e(86745);function o(r){return p.apply(this,arguments)}function p(){return p=l()(n()().mark(function r(g){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c.request)("/api/v1/category/query/org",{method:"GET",params:a()(a()({},g),{},{client:m.bVn})}));case 1:case"end":return t.stop()}},r)})),p.apply(this,arguments)}function y(r){return f.apply(this,arguments)}function f(){return f=l()(n()().mark(function r(g){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c.request)("/api/v1/category/create",{method:"POST",data:a()(a()({},g),{},{client:m.bVn})}));case 1:case"end":return t.stop()}},r)})),f.apply(this,arguments)}function R(r){return E.apply(this,arguments)}function E(){return E=l()(n()().mark(function r(g){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c.request)("/api/v1/category/update",{method:"POST",data:a()(a()({},g),{},{client:m.bVn})}));case 1:case"end":return t.stop()}},r)})),E.apply(this,arguments)}function T(r){return b.apply(this,arguments)}function b(){return b=_asyncToGenerator(_regeneratorRuntime().mark(function r(g){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/category/delete",{method:"POST",data:_objectSpread(_objectSpread({},g),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),b.apply(this,arguments)}function K(r){return B.apply(this,arguments)}function B(){return B=_asyncToGenerator(_regeneratorRuntime().mark(function r(g){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/category/all",{method:"GET",params:_objectSpread(_objectSpread({},g),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),B.apply(this,arguments)}function x(){return L.apply(this,arguments)}function L(){return L=l()(n()().mark(function r(){return n()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",(0,c.request)("/visitor/api/v1/category/query",{method:"GET",params:{client:m.bVn}}));case 1:case"end":return P.stop()}},r)})),L.apply(this,arguments)}},7420:function(Z,S,e){e.d(S,{$T:function(){return y},A:function(){return K},Hf:function(){return T},P6:function(){return R},gx:function(){return o}});var A=e(15009),n=e.n(A),d=e(97857),a=e.n(d),v=e(99289),l=e.n(v),m=e(85615),c=e(86745);function o(r){return p.apply(this,arguments)}function p(){return p=l()(n()().mark(function r(g){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c.request)("/api/v1/course/query/org",{method:"GET",params:a()(a()({},g),{},{client:m.bVn})}));case 1:case"end":return t.stop()}},r)})),p.apply(this,arguments)}function y(r){return f.apply(this,arguments)}function f(){return f=l()(n()().mark(function r(g){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c.request)("/api/v1/course/query/user",{method:"GET",params:a()(a()({},g),{},{client:m.bVn})}));case 1:case"end":return t.stop()}},r)})),f.apply(this,arguments)}function R(r){return E.apply(this,arguments)}function E(){return E=l()(n()().mark(function r(g){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c.request)("/api/v1/course/create",{method:"POST",data:a()(a()({},g),{},{client:m.bVn})}));case 1:case"end":return t.stop()}},r)})),E.apply(this,arguments)}function T(r){return b.apply(this,arguments)}function b(){return b=l()(n()().mark(function r(g){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c.request)("/api/v1/course/update",{method:"POST",data:a()(a()({},g),{},{client:m.bVn})}));case 1:case"end":return t.stop()}},r)})),b.apply(this,arguments)}function K(r){return B.apply(this,arguments)}function B(){return B=l()(n()().mark(function r(g){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c.request)("/api/v1/course/delete",{method:"POST",data:a()(a()({},g),{},{client:m.bVn})}));case 1:case"end":return t.stop()}},r)})),B.apply(this,arguments)}function x(r){return L.apply(this,arguments)}function L(){return L=_asyncToGenerator(_regeneratorRuntime().mark(function r(g){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/course/filter",{method:"GET",params:_objectSpread(_objectSpread({},g),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),L.apply(this,arguments)}},77154:function(Z,S,e){var A=e(39825);function n(){var d=(0,A.Z)(),a=d.isDarkMode,v=250,l={borderRight:a?"1px solid #333":"1px solid #ccc",background:a?"#141414":"#f5f5f5"},m={background:a?"#141414":"#fff"},c={borderLeft:a?"1px solid #333":"1px solid #ccc",background:a?"#141414":"#f5f5f5"},o={minHeight:120,background:a?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:l,leftSiderWidth:v,headerStyle:m,rightSiderStyle:c,contentStyle:o}}S.Z=n},83373:function(Z,S,e){e.r(S),e.d(S,{default:function(){return ve}});var A=e(77154),n=e(21612),d=e(67294),a=e(15009),v=e.n(a),l=e(99289),m=e.n(l),c=e(5574),o=e.n(c),p=e(80049),y=e(7420),f=e(89333),R=e(60247),E=e(11475),T=e(51042),b=e(57482),K=e(85576),B=e(14726),x=e(8232),L=e(85265),r=e(42075),g=e(55102),P=e(3303),t=e(34041),ne=e(89102),u=e(85893),le=function(D){var O=D.isEdit,s=D.course,$=D.open,w=D.onClose,H=D.onSubmit,Y=x.Z.useForm(),q=o()(Y,1),W=q[0],G=(0,ne.v)(function(F){return F.categoryTreeOptions});(0,d.useEffect)(function(){if(s&&W){var F,M;W.setFieldsValue({name:s==null?void 0:s.name,description:s==null?void 0:s.description}),W.setFieldsValue({categories:[s==null||(F=s.mainCategory)===null||F===void 0?void 0:F.uid,s==null||(M=s.subCategory)===null||M===void 0?void 0:M.uid]})}else W!=null&&!O&&(console.log("form resetFields"),W.resetFields())},[s]);var ae=function(M){console.log("handleNameChange:",M)},ee=function(M,z){console.log("Cascader value:",M),console.log("Cascader selectedData:",z)},J=function(M){console.log("selected ".concat(M))},Q=function(){console.log("handleSubmit"),W.validateFields().then(function(M){console.log("Form values:",M);var z={uid:s==null?void 0:s.uid,name:M.name,cover:s.cover,description:M.description,detail:s.detail,price:s.price,mainCategory:{uid:M.categories[0]},subCategory:{uid:M.categories[1]},published:M.published==="true"};H(z)}).catch(function(M){console.log("Form errors:",M)})};return(0,u.jsx)("div",{children:(0,u.jsx)(L.Z,{title:O?"\u4FEE\u6539\u8BFE\u7A0B":"\u65B0\u5EFA\u8BFE\u7A0B",onClose:w,open:$,extra:(0,u.jsxs)(r.Z,{children:[(0,u.jsx)(B.ZP,{onClick:w,children:"\u53D6\u6D88"}),(0,u.jsx)(B.ZP,{onClick:Q,type:"primary",children:"\u4FDD\u5B58"})]}),children:(0,u.jsxs)(x.Z,{form:W,children:[(0,u.jsx)(x.Z.Item,{name:"name",label:"\u8BFE\u7A0B\u540D\u79F0",initialValue:s==null?void 0:s.name,children:(0,u.jsx)(g.Z,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0"})}),(0,u.jsx)(x.Z.Item,{name:"categories",label:"\u8BFE\u7A0B\u5206\u7C7B",children:(0,u.jsx)(P.Z,{options:G,onChange:ee,placeholder:"\u9009\u62E9\u5206\u7C7B"})}),(0,u.jsx)(x.Z.Item,{name:"description",label:"\u8BFE\u7A0B\u63CF\u8FF0",initialValue:s==null?void 0:s.description,children:(0,u.jsx)(g.Z.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u63CF\u8FF0"})}),(0,u.jsx)(x.Z.Item,{name:"published",label:"\u8BFE\u7A0B\u72B6\u6001",initialValue:s!=null&&s.published?"true":"false",children:(0,u.jsx)(t.default,{style:{width:120},onChange:J,options:[{value:"true",label:"\u5DF2\u53D1\u5E03"},{value:"false",label:"\u672A\u53D1\u5E03"}]})})]})})})},de=le,ce=e(30300),V=e(86745),_e=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"\u5C01\u9762",dataIndex:"cover",render:function(D,O){return(0,u.jsx)("a",{href:O.cover,target:"_blank",children:(0,u.jsx)("img",{src:O.cover,width:"40",height:"40"})})}},{title:(0,u.jsx)(V.FormattedMessage,{id:"title",defaultMessage:"Title"}),dataIndex:"name",copyable:!0},{title:(0,u.jsx)(V.FormattedMessage,{id:"category",defaultMessage:"Category"}),key:"category",render:function(D,O){var s=O.mainCategory?O.mainCategory.name:"-",$=O.subCategory?O.subCategory.name:"-";return(0,u.jsxs)("span",{children:[s," / ",$]})}},{title:"\u57CE\u5E02",dataIndex:"city",render:function(D,O){return O.city?O.city.name:"-"}},{title:"\u53D1\u5E03\u4EBA",editable:!1,renderText:function(D,O,s,$){var w;return(w=O.user)===null||w===void 0?void 0:w.nickname}},{title:(0,u.jsx)(V.FormattedMessage,{id:"status",defaultMessage:"Status"}),key:"published",render:function(D,O){return O.published?"\u5DF2\u53D1\u5E03":"\u672A\u53D1\u5E03"}},{title:(0,u.jsx)(V.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",editable:!1,sorter:!0,hideInSearch:!0}],me=function(){var D=(0,V.useIntl)(),O=(0,R.L)(function(_){return _.userInfo}),s=(0,d.useRef)(),$=(0,d.useState)(1),w=o()($,2),H=w[0],Y=w[1],q=(0,d.useState)(10),W=o()(q,2),G=W[0],ae=W[1],ee=(0,d.useState)(!0),J=o()(ee,2),Q=J[0],F=J[1],M=(0,d.useState)(),z=o()(M,2),he=z[0],se=z[1],N=(0,f.K)(function(_){return{courseResult:_.courseResult,insertCourseResult:_.insertCourseResult,updateCourseResult:_.updateCourseResult,deleteCourseResult:_.deleteCourseResult,setCourseResult:_.setCourseResult}}),X=N.courseResult,Ce=N.insertCourseResult,ye=N.updateCourseResult,Ee=N.deleteCourseResult,be=N.setCourseResult,De=(0,ne.v)(function(_){return _.setCategoryResult}),Oe=(0,d.useState)(!1),ue=o()(Oe,2),Me=ue[0],te=ue[1],je=K.Z.useModal(),oe=o()(je,2),Re=oe[0],Te=oe[1],Pe=function(h){Re.confirm({title:D.formatMessage({id:"deleteTip"}),icon:(0,u.jsx)(E.Z,{}),content:"".concat(D.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"\u3010").concat(h.name,"\u3011\uFF1F"),onOk:function(){Be(h)},onCancel:function(){},okText:D.formatMessage({id:"ok"}),cancelText:D.formatMessage({id:"cancel"})})},Se=function(){se(void 0),F(!1),te(!0)},Ae=function(h){se(h),F(!0),te(!0)},re=function(){te(!1)},Ue=function(){var _=m()(v()().mark(function h(i){var j,U;return v()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(console.log("handleSubmitDrawer:",i),!Q){I.next=9;break}return I.next=4,(0,y.Hf)(i);case 4:j=I.sent,console.log("updateCourse:",j),j.code===200?(p.yw.success("\u66F4\u65B0\u6210\u529F"),ye(j.data),re()):p.yw.error(j.message),I.next=14;break;case 9:return I.next=11,(0,y.P6)(i);case 11:U=I.sent,console.log("createCourse:",U),U.code===200?(p.yw.success(D.formatMessage({id:"create.success",defaultMessage:"create success"})),Ce(U.data),re()):p.yw.error(U.message);case 14:case"end":return I.stop()}},h)}));return function(i){return _.apply(this,arguments)}}(),Be=function(){var _=m()(v()().mark(function h(i){var j;return v()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return console.log("handleDeleteCourse:",i),C.next=3,(0,y.A)(i);case 3:j=C.sent,j.code===200?Ee(i):p.yw.error(j.message);case 5:case"end":return C.stop()}},h)}));return function(i){return _.apply(this,arguments)}}(),Ie=[].concat(_e,[{title:D.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(h,i,j,U){return[(0,u.jsx)("a",{onClick:function(){console.log("edit record:",i),Ae(i)},children:D.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,u.jsx)(B.ZP,{size:"small",type:"link",onClick:function(){return Pe(i)},danger:!0,children:"\u5220\u9664"},"delete")]}}]),ie=function(){var _=m()(v()().mark(function h(){var i,j;return v()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(i={pageNumber:H-1,pageSize:G},!O.superUser){C.next=7;break}return C.next=4,(0,y.gx)(i);case 4:C.t0=C.sent,C.next=10;break;case 7:return C.next=9,(0,y.$T)(i);case 9:C.t0=C.sent;case 10:j=C.t0,console.log("getAllCourses response:",i,j),j.code===200?be(j):p.yw.error(j.message);case 13:case"end":return C.stop()}},h)}));return function(){return _.apply(this,arguments)}}(),xe=function(){var _=m()(v()().mark(function h(){var i;return v()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,(0,ce.O7)();case 2:i=U.sent,console.log("getAllCategories response:",i),i.code===200?De(i):p.yw.error(i.message);case 5:case"end":return U.stop()}},h)}));return function(){return _.apply(this,arguments)}}();return(0,d.useEffect)(function(){ie(),xe()},[]),(0,d.useEffect)(function(){ie()},[H,G]),(0,d.useEffect)(function(){console.log("courseResult:",X),s.current.reload()},[X]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(b.Z,{columns:Ie,actionRef:s,cardBordered:!0,request:function(){var _=m()(v()().mark(function h(i,j,U){return v()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return console.log("request:",i,j,U),Y(i.current),ae(i.pageSize),I.abrupt("return",Promise.resolve({data:X.data.content,success:!0,total:X.data.totalElements}));case 4:case"end":return I.stop()}},h)}));return function(h,i,j){return _.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{pageSize:G,showQuickJumper:!0,onChange:function(h){console.log("page:",h)}},dateFormatter:"string",headerTitle:"\u8BFE\u7A0B",toolBarRender:function(){return[(0,u.jsxs)(B.ZP,{type:"primary",onClick:Se,children:[(0,u.jsx)(T.Z,{}),D.formatMessage({id:"create",defaultMessage:"Create"})]})]}}),(0,u.jsx)(de,{isEdit:Q,course:he,open:Me,onClose:re,onSubmit:Ue}),Te]})},pe=me,Fe=n.Z.Sider,fe=n.Z.Content,ge=function(){var D=(0,A.Z)(),O=D.contentStyle;return(0,u.jsx)(n.Z,{children:(0,u.jsx)(n.Z,{children:(0,u.jsx)(fe,{style:O,children:(0,u.jsx)(pe,{})})})})},ve=ge},89102:function(Z,S,e){e.d(S,{v:function(){return o}});var A=e(19632),n=e.n(A),d=e(97857),a=e.n(d),v=e(85615),l=e(73445),m=e(782),c=e(18753),o=(0,l.Ue)()((0,m.mW)((0,m.tJ)((0,c.n)(function(f,R){return{categoryResult:{data:{content:[]}},categoryTreeOptions:[],categorySelectOptions:[],currentCategory:{uid:""},setCategoryResult:function(T){var b,K=y(T),B={uid:"all",name:"All"},x=a()(a()({},T),{},{data:{content:[B].concat(n()(T.data.content))}}),L=p(x);f({categoryResult:x,categoryTreeOptions:L,categorySelectOptions:K}),((b=T.data)===null||b===void 0||(b=b.content)===null||b===void 0?void 0:b.length)>0?f({currentCategory:T.data.content[0]}):f({currentCategory:{uid:""}})},setCurrentCategoryUid:function(T){var b=R().categoryResult.data.content.find(function(K){return K.uid===T});f({currentCategory:b})},deleteCategoryCache:function(){return f({},!0)}}}),{name:v.OMm})));function p(f){var R=[];return f.data.content.forEach(function(E){var T={title:E.name,key:E.uid,children:[]};E.children&&Array.isArray(E.children)&&(T.children=E.children.map(function(b){return{title:b.name,key:b.uid,children:[]}})),R.push(T)}),R}function y(f){var R=[];return f.data.content.forEach(function(E){var T={label:E.name,value:E.uid};R.push(T)}),R}},89333:function(Z,S,e){e.d(S,{K:function(){return v}});var A=e(85615),n=e(73445),d=e(782),a=e(18753),v=(0,n.Ue)()((0,d.mW)((0,d.tJ)((0,a.n)(function(l,m){return{courseResult:{data:{content:[]}},insertCourseResult:function(o){l(function(p){var y=p.courseResult.data.content;y.unshift(o)})},updateCourseResult:function(o){l(function(p){var y=p.courseResult.data.content,f=y.findIndex(function(R){return R.uid===o.uid});f!==-1?y[f]=o:console.warn("Course with uid ".concat(o.uid," not found."))})},deleteCourseResult:function(o){l(function(p){var y=p.courseResult.data.content,f=y.findIndex(function(R){return R.uid===o.uid});f!==-1?y.splice(f,1):console.warn("Course with uid ".concat(o.uid," not found."))})},setCourseResult:function(o){l({courseResult:o})},deleteCourseCache:function(){return l({},!0)}}}),{name:A.vCH})))},60247:function(Z,S,e){e.d(S,{L:function(){return v}});var A=e(85615),n=e(73445),d=e(782),a=e(18753),v=(0,n.Ue)()((0,d.mW)((0,d.tJ)((0,a.n)(function(l,m){return{userInfo:{uid:""},deviceUid:"",setUserInfo:function(o){l({userInfo:o})},setDeviceUid:function(o){l({deviceUid:o})},deleteUserInfo:function(){return l({},!0)}}}),{name:A.EmD})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Media__index.e4e343b3.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Media__index.e4e343b3.async.js new file mode 100644 index 00000000..67ae9c83 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Media__index.e4e343b3.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3165],{77154:function(e,t,n){var r=n(39825);t.Z=function(){var e=(0,r.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},70628:function(e,t,n){n.r(t),n.d(t,{default:function(){return A}});var r=n(77154),a=n(21612),i=n(67294),u=n(15009),s=n.n(u),o=n(99289),c=n.n(o),d=n(5574),l=n.n(d),f=n(80049),p=n(97857),h=n.n(p),g=n(85615),m=n(86745);function x(e){return y.apply(this,arguments)}function y(){return(y=c()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.request)("/api/v1/media/query/org",{method:"GET",params:h()(h()({},t),{},{client:g.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return k.apply(this,arguments)}function k(){return(k=c()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.request)("/api/v1/media/query/user",{method:"GET",params:h()(h()({},t),{},{client:g.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var v=n(73445),S=n(782),M=n(18753),w=(0,v.Ue)()((0,S.mW)((0,S.tJ)((0,M.n)((function(e,t){return{mediaResult:{data:{content:[]}},setMediaResult:function(t){e({mediaResult:t})},deleteMediaCache:function(){return e({},!0)}}})),{name:g.hS2}))),R=n(60247),j=n(74190),Z=n(85893);var C=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"标题",dataIndex:"title",copyable:!0},{title:(0,Z.jsx)(FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",render:function(e,t){return"image"===t.type?"图片":"视频"}},{title:(0,Z.jsx)(FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",ellipsis:!0,render:function(e,t){return function(e){return"image"===e.type?(0,Z.jsx)(Z.Fragment,{children:e.content.split(",").map((function(e,t){return(0,Z.jsxs)("a",{href:e,target:"_blank",children:["查看图片 ",t+1]},t)}))}):(0,Z.jsx)("a",{href:e.content,target:"_blank",children:"播放视频"})}(t)}},{title:(0,Z.jsx)(FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0},{title:intl.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(e,t,n,r){return[(0,Z.jsx)("a",{onClick:function(){console.log("edit record:",t)},children:"修改"},"editable")]}}],I=function(){var e=(0,R.L)((function(e){return e.userInfo})),t=(0,i.useRef)(),n=(0,i.useState)(1),r=l()(n,2),a=r[0],u=r[1],o=(0,i.useState)(10),d=l()(o,2),p=d[0],h=d[1],g=w((function(e){return{mediaResult:e.mediaResult,setMediaResult:e.setMediaResult}})),m=g.mediaResult,y=g.setMediaResult,k=function(){var t=c()(s()().mark((function t(){var n,r;return s()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n={pageNumber:a-1,pageSize:p},!e.superUser){t.next=7;break}return t.next=4,x(n);case 4:t.t0=t.sent,t.next=10;break;case 7:return t.next=9,b(n);case 9:t.t0=t.sent;case 10:r=t.t0,console.log("getAllMedias response:",n,r),200===r.code?y(r):f.yw.error(r.message);case 13:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,i.useEffect)((function(){k()}),[]),(0,i.useEffect)((function(){k()}),[a,p]),(0,i.useEffect)((function(){console.log("mediaResult:",m),t.current.reload()}),[m]),(0,Z.jsx)(j.Z,{columns:C,actionRef:t,cardBordered:!0,request:function(){var e=c()(s()().mark((function e(t,n,r){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("request:",t,n,r),u(t.current),h(t.pageSize),e.abrupt("return",Promise.resolve({data:m.data.content,success:!0,total:m.data.totalElements}));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{pageSize:p,showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"视频/图片",toolBarRender:function(){return[]}})},q=(a.Z.Sider,a.Z.Content),A=function(){var e=(0,r.Z)(),t=(e.leftSiderStyle,e.contentStyle);return(0,Z.jsx)(a.Z,{children:(0,Z.jsx)(a.Z,{children:(0,Z.jsx)(q,{style:t,children:(0,Z.jsx)(I,{})})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Media__index.f1a3347e.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Media__index.f1a3347e.async.js deleted file mode 100644 index 7dd674a8..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Liangshibao__Media__index.f1a3347e.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3165],{77154:function(w,y,t){var S=t(39825);function f(){var d=(0,S.Z)(),l=d.isDarkMode,s=250,g={borderRight:l?"1px solid #333":"1px solid #ccc",background:l?"#141414":"#f5f5f5"},h={background:l?"#141414":"#fff"},M={borderLeft:l?"1px solid #333":"1px solid #ccc",background:l?"#141414":"#f5f5f5"},m={minHeight:120,background:l?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:g,leftSiderWidth:s,headerStyle:h,rightSiderStyle:M,contentStyle:m}}y.Z=f},70628:function(w,y,t){t.r(y),t.d(y,{default:function(){return ne}});var S=t(77154),f=t(21612),d=t(67294),l=t(15009),s=t.n(l),g=t(99289),h=t.n(g),M=t(5574),m=t.n(M),$=t(80049),k=t(97857),T=t.n(k),I=t(85615),B=t(86745);function N(r){return P.apply(this,arguments)}function P(){return P=h()(s()().mark(function r(n){return s()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.request)("/api/v1/media/query/org",{method:"GET",params:T()(T()({},n),{},{client:I.bVn})}));case 1:case"end":return e.stop()}},r)})),P.apply(this,arguments)}function K(r){return b.apply(this,arguments)}function b(){return b=h()(s()().mark(function r(n){return s()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.request)("/api/v1/media/query/user",{method:"GET",params:T()(T()({},n),{},{client:I.bVn})}));case 1:case"end":return e.stop()}},r)})),b.apply(this,arguments)}function se(r){return A.apply(this,arguments)}function A(){return A=_asyncToGenerator(_regeneratorRuntime().mark(function r(n){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/api/v1/media/create",{method:"POST",data:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return e.stop()}},r)})),A.apply(this,arguments)}function de(r){return U.apply(this,arguments)}function U(){return U=_asyncToGenerator(_regeneratorRuntime().mark(function r(n){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/api/v1/media/update",{method:"POST",data:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return e.stop()}},r)})),U.apply(this,arguments)}function le(r){return D.apply(this,arguments)}function D(){return D=_asyncToGenerator(_regeneratorRuntime().mark(function r(n){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/api/v1/media/delete",{method:"POST",data:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return e.stop()}},r)})),D.apply(this,arguments)}function oe(r){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark(function r(n){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/api/v1/media/filter",{method:"GET",params:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return e.stop()}},r)})),O.apply(this,arguments)}var H=t(73445),G=t(782),J=t(18753),V=(0,H.Ue)()((0,G.mW)((0,G.tJ)((0,J.n)(function(r,n){return{mediaResult:{data:{content:[]}},setMediaResult:function(e){r({mediaResult:e})},deleteMediaCache:function(){return r({},!0)}}}),{name:I.hS2}))),Q=t(60247),X=t(57482),u=t(85893);function Y(r){return r.type==="image"?(0,u.jsx)(u.Fragment,{children:r.content.split(",").map(function(n,a){return(0,u.jsxs)("a",{href:n,target:"_blank",children:["\u67E5\u770B\u56FE\u7247 ",a+1]},a)})}):(0,u.jsx)("a",{href:r.content,target:"_blank",children:"\u64AD\u653E\u89C6\u9891"})}var q=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"\u6807\u9898",dataIndex:"title",copyable:!0},{title:(0,u.jsx)(FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",render:function(n,a){return a.type==="image"?"\u56FE\u7247":"\u89C6\u9891"}},{title:(0,u.jsx)(FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",ellipsis:!0,render:function(n,a){return Y(a)}},{title:(0,u.jsx)(FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0},{title:intl.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(n,a,e,R){return[(0,u.jsx)("a",{onClick:function(){console.log("edit record:",a)},children:"\u4FEE\u6539"},"editable")]}}],_=function(){var n=(0,Q.L)(function(o){return o.userInfo}),a=(0,d.useRef)(),e=(0,d.useState)(1),R=m()(e,2),E=R[0],x=R[1],ae=(0,d.useState)(10),W=m()(ae,2),L=W[0],ue=W[1],z=V(function(o){return{mediaResult:o.mediaResult,setMediaResult:o.setMediaResult}}),C=z.mediaResult,ie=z.setMediaResult,F=function(){var o=h()(s()().mark(function v(){var c,p;return s()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(c={pageNumber:E-1,pageSize:L},!n.superUser){i.next=7;break}return i.next=4,N(c);case 4:i.t0=i.sent,i.next=10;break;case 7:return i.next=9,K(c);case 9:i.t0=i.sent;case 10:p=i.t0,console.log("getAllMedias response:",c,p),p.code===200?ie(p):$.yw.error(p.message);case 13:case"end":return i.stop()}},v)}));return function(){return o.apply(this,arguments)}}();return(0,d.useEffect)(function(){F()},[]),(0,d.useEffect)(function(){F()},[E,L]),(0,d.useEffect)(function(){console.log("mediaResult:",C),a.current.reload()},[C]),(0,u.jsx)(X.Z,{columns:q,actionRef:a,cardBordered:!0,request:function(){var o=h()(s()().mark(function v(c,p,Z){return s()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return console.log("request:",c,p,Z),x(c.current),ue(c.pageSize),j.abrupt("return",Promise.resolve({data:C.data.content,success:!0,total:C.data.totalElements}));case 4:case"end":return j.stop()}},v)}));return function(v,c,p){return o.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{pageSize:L,showQuickJumper:!0,onChange:function(v){console.log("page:",v)}},dateFormatter:"string",headerTitle:"\u89C6\u9891/\u56FE\u7247",toolBarRender:function(){return[]}})},ee=_,ce=f.Z.Sider,te=f.Z.Content,re=function(){var n=(0,S.Z)(),a=n.leftSiderStyle,e=n.contentStyle,R=function(x){console.log("menu click ",x)};return(0,u.jsx)(f.Z,{children:(0,u.jsx)(f.Z,{children:(0,u.jsx)(te,{style:e,children:(0,u.jsx)(ee,{})})})})},ne=re},60247:function(w,y,t){t.d(y,{L:function(){return s}});var S=t(85615),f=t(73445),d=t(782),l=t(18753),s=(0,f.Ue)()((0,d.mW)((0,d.tJ)((0,l.n)(function(g,h){return{userInfo:{uid:""},deviceUid:"",setUserInfo:function(m){g({userInfo:m})},setDeviceUid:function(m){g({deviceUid:m})},deleteUserInfo:function(){return g({},!0)}}}),{name:S.EmD})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__BlogData.8b675503.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__BlogData.8b675503.async.js new file mode 100644 index 00000000..8bec2fd3 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__BlogData.8b675503.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2647],{11475:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(1413),o=n(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 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"},l=n(89099),s=function(e,t){return o.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};var i=o.forwardRef(s)},64317:function(e,t,n){var r=n(1413),o=n(91),a=n(22270),l=n(67294),s=n(66758),i=n(29258),u=n(85893),c=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],p=function(e,t){var n=e.fieldProps,d=e.children,p=e.params,f=e.proFieldProps,g=e.mode,h=e.valueEnum,m=e.request,v=e.showSearch,x=e.options,y=(0,o.Z)(e,c),Z=(0,l.useContext)(s.Z);return(0,u.jsx)(i.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,a.h)(h),request:m,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({options:x,mode:g,showSearch:v,getPopupContainer:Z.getPopupContainer},n),ref:t,proFieldProps:f},y),{},{children:d}))},f=l.forwardRef((function(e,t){var n=e.fieldProps,c=e.children,p=e.params,f=e.proFieldProps,g=e.mode,h=e.valueEnum,m=e.request,v=e.options,x=(0,o.Z)(e,d),y=(0,r.Z)({options:v,mode:g||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),Z=(0,l.useContext)(s.Z);return(0,u.jsx)(i.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,a.h)(h),request:m,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({getPopupContainer:Z.getPopupContainer},y),ref:t,proFieldProps:f},x),{},{children:c}))})),g=l.forwardRef(p);g.SearchSelect=f,g.displayName="ProFormComponent",t.Z=g},5966:function(e,t,n){var r=n(97685),o=n(1413),a=n(91),l=n(21770),s=n(8232),i=n(55241),u=n(97435),c=n(67294),d=n(29258),p=n(85893),f=["fieldProps","proFieldProps"],g=["fieldProps","proFieldProps"],h="text",m=function(e){var t=(0,l.Z)(e.open||!1,{value:e.open,onChange:e.onOpenChange}),n=(0,r.Z)(t,2),a=n[0],u=n[1];return(0,p.jsx)(s.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(t){var n,r=t.getFieldValue(e.name||[]);return(0,p.jsx)(i.Z,(0,o.Z)((0,o.Z)({getPopupContainer:function(e){return e&&e.parentNode?e.parentNode:e},onOpenChange:function(e){return u(e)},content:(0,p.jsxs)("div",{style:{padding:"4px 0"},children:[null===(n=e.statusRender)||void 0===n?void 0:n.call(e,r),e.strengthText?(0,p.jsx)("div",{style:{marginTop:10},children:(0,p.jsx)("span",{children:e.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},e.popoverProps),{},{open:a,children:e.children}))}})},v=function(e){var t=e.fieldProps,n=e.proFieldProps,r=(0,a.Z)(e,f);return(0,p.jsx)(d.Z,(0,o.Z)({valueType:h,fieldProps:t,filedConfig:{valueType:h},proFieldProps:n},r))};v.Password=function(e){var t=e.fieldProps,n=e.proFieldProps,l=(0,a.Z)(e,g),s=(0,c.useState)(!1),i=(0,r.Z)(s,2),f=i[0],v=i[1];return null!=t&&t.statusRender&&l.name?(0,p.jsx)(m,{name:l.name,statusRender:null==t?void 0:t.statusRender,popoverProps:null==t?void 0:t.popoverProps,strengthText:null==t?void 0:t.strengthText,open:f,onOpenChange:v,children:(0,p.jsx)("div",{children:(0,p.jsx)(d.Z,(0,o.Z)({valueType:"password",fieldProps:(0,o.Z)((0,o.Z)({},(0,u.Z)(t,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(e){var n;null==t||null===(n=t.onBlur)||void 0===n||n.call(t,e),v(!1)},onClick:function(e){var n;null==t||null===(n=t.onClick)||void 0===n||n.call(t,e),v(!0)}}),proFieldProps:n,filedConfig:{valueType:h}},l))})}):(0,p.jsx)(d.Z,(0,o.Z)({valueType:"password",fieldProps:t,proFieldProps:n,filedConfig:{valueType:h}},l))},v.displayName="ProFormComponent",t.Z=v},90672:function(e,t,n){var r=n(1413),o=n(91),a=n(67294),l=n(29258),s=n(85893),i=["fieldProps","proFieldProps"],u=function(e,t){var n=e.fieldProps,a=e.proFieldProps,u=(0,o.Z)(e,i);return(0,s.jsx)(l.Z,(0,r.Z)({ref:t,valueType:"textarea",fieldProps:n,proFieldProps:a},u))};t.Z=a.forwardRef(u)},49664:function(e,t,n){n.r(t),n.d(t,{default:function(){return Q}});var r=n(77154),o=n(21612),a=n(97857),l=n.n(a),s=n(13769),i=n.n(s),u=n(15009),c=n.n(u),d=n(99289),p=n.n(d),f=n(5574),g=n.n(f),h=n(80049),m=n(85615),v=n(86745);function x(e){return y.apply(this,arguments)}function y(){return(y=p()(c()().mark((function e(t){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,v.request)("/api/v1/blog/query/org",{method:"GET",params:l()(l()({},t),{},{client:m.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(e){return w.apply(this,arguments)}function w(){return(w=p()(c()().mark((function e(t){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,v.request)("/api/v1/blog/create",{method:"POST",data:l()(l()({},t),{},{client:m.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return P.apply(this,arguments)}function P(){return(P=p()(c()().mark((function e(t){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,v.request)("/api/v1/blog/update",{method:"POST",data:l()(l()({},t),{},{client:m.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var j=n(87676),C=n(51042),S=n(74190),F=n(14726),M=n(67294),T=n(89102),E=n(34994),O=n(64317),k=n(5966),$=n(90672),I=n(8232),q=n(85265),R=n(42075),N=n(85893),A=function(e){var t=e.isEdit,n=e.blog,r=e.open,o=e.onClose,a=e.onSubmit,s=I.Z.useForm(),i=g()(s,1)[0],u=(0,j.u)((function(e){return e.currentOrg})),c=(0,T.v)((function(e){return e.categorySelectOptions}));(0,M.useEffect)((function(){var e;t?i.setFieldsValue({type:null==n?void 0:n.type,title:null==n?void 0:n.title,content:null==n?void 0:n.content,categoryUid:null==n||null===(e=n.category)||void 0===e?void 0:e.uid}):i.resetFields()}),[r]);return(0,N.jsx)(N.Fragment,{children:(0,N.jsx)(q.Z,{title:t?"修改":"新建",onClose:o,open:r,extra:(0,N.jsxs)(R.Z,{children:[(0,N.jsx)(F.ZP,{onClick:o,children:"取消"}),(0,N.jsx)(F.ZP,{onClick:function(){console.log("handleSubmit"),i.validateFields().then((function(e){console.log(e),a(l()(l()(l()({},n),e),{},{orgUid:null==u?void 0:u.uid}))})).catch((function(e){console.log("Form errors:",e),h.yw.error("请检查表单填写")}))},type:"primary",children:"保存"})]}),children:(0,N.jsxs)(E.A,{form:i,initialValues:l()({},n),submitter:{render:function(){return null}},children:[(0,N.jsx)(O.Z,{label:"分类",name:"categoryUid",rules:[{required:!0,message:"请选择分类"}],options:c,fieldProps:{allowClear:!0,placeholder:"请选择分类",onChange:function(e){console.log("category selected ".concat(e))}}}),(0,N.jsx)(O.Z,{label:"类型",name:"type",rules:[{required:!0,message:"请选择类型"}],options:[{label:"文本",value:m.PYi},{label:"图片",value:m.Qm,disabled:!0},{label:"视频",value:m.tVi,disabled:!0},{label:"音频",value:m.Yu1,disabled:!0},{label:"文件",value:m.Qn,disabled:!0}],fieldProps:{allowClear:!0,placeholder:"请选择类型",onChange:function(e){console.log("type selected ".concat(e))}}}),(0,N.jsx)(k.Z,{label:"标题",name:"title",rules:[{required:!0,message:"请输入标题"}]}),(0,N.jsx)($.Z,{label:"内容",name:"content"})]})})})},G=["current"],V=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,N.jsx)(v.FormattedMessage,{id:"title",defaultMessage:"Title"}),dataIndex:"title",copyable:!0},{title:(0,N.jsx)(v.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content"},{title:(0,N.jsx)(v.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",hideInSearch:!0},{title:(0,N.jsx)(v.FormattedMessage,{id:"category",defaultMessage:"Category"}),dataIndex:"category",hideInSearch:!0,render:function(e,t){var n;return null===(n=t.category)||void 0===n?void 0:n.name}},{title:(0,N.jsx)(v.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0,width:180}],B=function(){var e=(0,v.useIntl)(),t=(0,M.useRef)(),n=(0,M.useState)(!0),r=g()(n,2),o=r[0],a=r[1],s=(0,M.useState)(),u=g()(s,2),d=u[0],f=u[1],m=(0,M.useState)(!1),y=g()(m,2),w=y[0],P=y[1],E=(0,j.u)((function(e){return e.currentOrg})),O=[].concat(V,[{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:100,render:function(t,n,r,o){return[(0,N.jsx)("a",{onClick:function(){$(n)},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),k=(0,T.v)((function(e){return e.currentCategory})),$=function(e){f(e),a(!0),P(!0)},I=function(){var n=p()(c()().mark((function n(r){var a,l;return c()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(console.log("handleSubmitDrawer",r),o?h.yw.loading(e.formatMessage({id:"updating"})):h.yw.loading(e.formatMessage({id:"creating"})),!o){n.next=8;break}return n.next=5,b(r);case 5:n.t0=n.sent,n.next=11;break;case 8:return n.next=10,Z(r);case 10:n.t0=n.sent;case 11:a=n.t0,console.log("createBlog response:",r,a),200===a.code?(h.yw.destroy(),h.yw.loading(e.formatMessage({id:"create.success"})),P(!1),null===(l=t.current)||void 0===l||l.reloadAndRest()):(h.yw.destroy(),h.yw.error(a.message));case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();(0,M.useEffect)((function(){var e;console.log("currentCategory:",k),null===(e=t.current)||void 0===e||e.reloadAndRest()}),[k]);var q=function(){console.log("handleRichEditor"),window.open("/admin/doceditor")};return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(S.Z,{columns:O,actionRef:t,cardBordered:!0,request:function(){var t=p()(c()().mark((function t(n,r,o){var a,s,u;return c()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("request:",n,r,o),h.yw.loading(e.formatMessage({id:"loading",defaultMessage:"Loading"})),n.current,a=i()(n,G),s=l()({pageNumber:n.current-1,orgUid:E.uid,categoryUid:"all"===k.uid?"":k.uid},a),t.next=6,x(s);case 6:return u=t.sent,console.log("getAllBlogs response:",s,u),h.yw.destroy(),200===u.code||h.yw.error(u.message),t.abrupt("return",{data:u.data.content,success:!0,total:u.data.totalElements});case 11:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"博客",toolBarRender:function(){return[(0,N.jsx)(F.ZP,{icon:(0,N.jsx)(C.Z,{}),type:"primary",onClick:q,children:e.formatMessage({id:"create",defaultMessage:"Create"})},"button")]}}),(0,N.jsx)(A,{isEdit:o,open:w,blog:d,onClose:function(){P(!1)},onSubmit:I})]})},L=n(52670),U=o.Z.Sider,z=o.Z.Content,Q=function(){var e=(0,r.Z)(),t=e.leftSiderStyle,n=e.contentStyle;return(0,N.jsx)("div",{children:(0,N.jsxs)(o.Z,{children:[(0,N.jsx)(U,{style:t,children:(0,N.jsx)(L.Z,{type:m.qAy})}),(0,N.jsx)(o.Z,{children:(0,N.jsx)(z,{style:n,children:(0,N.jsx)(B,{})})})]})})}},86250:function(e,t,n){n.d(t,{Z:function(){return P}});var r=n(67294),o=n(93967),a=n.n(o),l=n(98423),s=n(98065),i=n(53124),u=n(83559),c=n(83262);const d=["wrap","nowrap","wrap-reverse"],p=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],f=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var g=function(e,t){return a()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&d.includes(n)}})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return p.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))};const h=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},m=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},v=e=>{const{componentCls:t}=e,n={};return d.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},x=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},y=e=>{const{componentCls:t}=e,n={};return p.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n};var Z=(0,u.I$)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=(0,c.IX)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[h(o),m(o),v(o),x(o),y(o)]}),(()=>({})),{resetStyle:!1}),w=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,rootClassName:o,className:u,style:c,flex:d,gap:p,children:f,vertical:h=!1,component:m="div"}=e,v=w(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:x,direction:y,getPrefixCls:b}=r.useContext(i.E_),P=b("flex",n),[j,C,S]=Z(P),F=null!=h?h:null==x?void 0:x.vertical,M=a()(u,o,null==x?void 0:x.className,P,C,S,g(P,e),{[`${P}-rtl`]:"rtl"===y,[`${P}-gap-${p}`]:(0,s.n)(p),[`${P}-vertical`]:F}),T=Object.assign(Object.assign({},null==x?void 0:x.style),c);return d&&(T.flex=d),p&&!(0,s.n)(p)&&(T.gap=p),j(r.createElement(m,Object.assign({ref:t,className:M,style:T},(0,l.Z)(v,["justify","wrap","align"])),f))}));var P=b}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__BlogData.dc132c7f.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__BlogData.dc132c7f.async.js deleted file mode 100644 index 12f0bcce..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__BlogData.dc132c7f.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2647],{11475:function(te,I,e){e.d(I,{Z:function(){return m}});var f=e(1413),v=e(67294),T={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"},c=T,F=e(89099),b=function(d,w){return v.createElement(F.Z,(0,f.Z)((0,f.Z)({},d),{},{ref:w,icon:c}))},W=v.forwardRef(b),m=W},64317:function(te,I,e){var f=e(1413),v=e(91),T=e(22270),c=e(67294),F=e(66758),b=e(24809),W=e(85893),m=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],E=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],d=function(h,B){var K=h.fieldProps,i=h.children,o=h.params,C=h.proFieldProps,S=h.mode,Z=h.valueEnum,$=h.request,V=h.showSearch,O=h.options,t=(0,v.Z)(h,m),n=(0,c.useContext)(F.Z);return(0,W.jsx)(b.Z,(0,f.Z)((0,f.Z)({valueEnum:(0,T.h)(Z),request:$,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,f.Z)({options:O,mode:S,showSearch:V,getPopupContainer:n.getPopupContainer},K),ref:B,proFieldProps:C},t),{},{children:i}))},w=c.forwardRef(function(p,h){var B=p.fieldProps,K=p.children,i=p.params,o=p.proFieldProps,C=p.mode,S=p.valueEnum,Z=p.request,$=p.options,V=(0,v.Z)(p,E),O=(0,f.Z)({options:$,mode:C||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},B),t=(0,c.useContext)(F.Z);return(0,W.jsx)(b.Z,(0,f.Z)((0,f.Z)({valueEnum:(0,T.h)(S),request:Z,params:i,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,f.Z)({getPopupContainer:t.getPopupContainer},O),ref:h,proFieldProps:o},V),{},{children:K}))}),L=c.forwardRef(d),g=w,y=L;y.SearchSelect=g,y.displayName="ProFormComponent",I.Z=y},5966:function(te,I,e){var f=e(97685),v=e(1413),T=e(91),c=e(21770),F=e(8232),b=e(55241),W=e(97435),m=e(67294),E=e(24809),d=e(85893),w=["fieldProps","proFieldProps"],L=["fieldProps","proFieldProps"],g="text",y=function(i){var o=i.fieldProps,C=i.proFieldProps,S=(0,T.Z)(i,w);return(0,d.jsx)(E.Z,(0,v.Z)({valueType:g,fieldProps:o,filedConfig:{valueType:g},proFieldProps:C},S))},p=function(i){var o=(0,c.Z)(i.open||!1,{value:i.open,onChange:i.onOpenChange}),C=(0,f.Z)(o,2),S=C[0],Z=C[1];return(0,d.jsx)(F.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(V){var O,t=V.getFieldValue(i.name||[]);return(0,d.jsx)(b.Z,(0,v.Z)((0,v.Z)({getPopupContainer:function(r){return r&&r.parentNode?r.parentNode:r},onOpenChange:function(r){return Z(r)},content:(0,d.jsxs)("div",{style:{padding:"4px 0"},children:[(O=i.statusRender)===null||O===void 0?void 0:O.call(i,t),i.strengthText?(0,d.jsx)("div",{style:{marginTop:10},children:(0,d.jsx)("span",{children:i.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},i.popoverProps),{},{open:S,children:i.children}))}})},h=function(i){var o=i.fieldProps,C=i.proFieldProps,S=(0,T.Z)(i,L),Z=(0,m.useState)(!1),$=(0,f.Z)(Z,2),V=$[0],O=$[1];return o!=null&&o.statusRender&&S.name?(0,d.jsx)(p,{name:S.name,statusRender:o==null?void 0:o.statusRender,popoverProps:o==null?void 0:o.popoverProps,strengthText:o==null?void 0:o.strengthText,open:V,onOpenChange:O,children:(0,d.jsx)("div",{children:(0,d.jsx)(E.Z,(0,v.Z)({valueType:"password",fieldProps:(0,v.Z)((0,v.Z)({},(0,W.Z)(o,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(n){var r;o==null||(r=o.onBlur)===null||r===void 0||r.call(o,n),O(!1)},onClick:function(n){var r;o==null||(r=o.onClick)===null||r===void 0||r.call(o,n),O(!0)}}),proFieldProps:C,filedConfig:{valueType:g}},S))})}):(0,d.jsx)(E.Z,(0,v.Z)({valueType:"password",fieldProps:o,proFieldProps:C,filedConfig:{valueType:g}},S))},B=y;B.Password=h,B.displayName="ProFormComponent",I.Z=B},90672:function(te,I,e){var f=e(1413),v=e(91),T=e(67294),c=e(24809),F=e(85893),b=["fieldProps","proFieldProps"],W=function(E,d){var w=E.fieldProps,L=E.proFieldProps,g=(0,v.Z)(E,b);return(0,F.jsx)(c.Z,(0,f.Z)({ref:d,valueType:"textarea",fieldProps:w,proFieldProps:L},g))};I.Z=T.forwardRef(W)},49664:function(te,I,e){e.r(I),e.d(I,{default:function(){return ne}});var f=e(77154),v=e(21612),T=e(97857),c=e.n(T),F=e(13769),b=e.n(F),W=e(15009),m=e.n(W),E=e(99289),d=e.n(E),w=e(5574),L=e.n(w),g=e(80049),y=e(85615),p=e(86745);function h(j){return B.apply(this,arguments)}function B(){return B=d()(m()().mark(function j(u){return m()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,p.request)("/api/v1/blog/query/org",{method:"GET",params:c()(c()({},u),{},{client:y.bVn})}));case 1:case"end":return a.stop()}},j)})),B.apply(this,arguments)}function K(j){return i.apply(this,arguments)}function i(){return i=d()(m()().mark(function j(u){return m()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,p.request)("/api/v1/blog/create",{method:"POST",data:c()(c()({},u),{},{client:y.bVn})}));case 1:case"end":return a.stop()}},j)})),i.apply(this,arguments)}function o(j){return C.apply(this,arguments)}function C(){return C=d()(m()().mark(function j(u){return m()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,p.request)("/api/v1/blog/update",{method:"POST",data:c()(c()({},u),{},{client:y.bVn})}));case 1:case"end":return a.stop()}},j)})),C.apply(this,arguments)}function S(j){return Z.apply(this,arguments)}function Z(){return Z=_asyncToGenerator(_regeneratorRuntime().mark(function j(u){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/v1/blog/delete",{method:"POST",data:_objectSpread(_objectSpread({},u),{},{client:HTTP_CLIENT})}));case 1:case"end":return a.stop()}},j)})),Z.apply(this,arguments)}var $=e(87676),V=e(51042),O=e(57482),t=e(14726),n=e(67294),r=e(89102),s=e(34994),x=e(64317),ue=e(5966),oe=e(90672),Q=e(8232),ce=e(85265),re=e(42075),l=e(85893),pe=function(u){var D=u.isEdit,a=u.blog,ae=u.open,H=u.onClose,le=u.onSubmit,Ce=Q.Z.useForm(),se=L()(Ce,1),Y=se[0],X=(0,$.u)(function(R){return R.currentOrg}),xe=(0,r.v)(function(R){return R.categorySelectOptions});(0,n.useEffect)(function(){if(D){var R;Y.setFieldsValue({type:a==null?void 0:a.type,title:a==null?void 0:a.title,content:a==null?void 0:a.content,categoryUid:a==null||(R=a.category)===null||R===void 0?void 0:R.uid})}else Y.resetFields()},[ae]);var ie=function(G){console.log("category selected ".concat(G))},Ee=function(G){console.log("type selected ".concat(G))},k=function(){console.log("handleSubmit"),Y.validateFields().then(function(G){console.log(G),le(c()(c()(c()({},a),G),{},{orgUid:X==null?void 0:X.uid}))}).catch(function(G){console.log("Form errors:",G),g.yw.error("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199")})};return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(ce.Z,{title:D?"\u4FEE\u6539":"\u65B0\u5EFA",onClose:H,open:ae,extra:(0,l.jsxs)(re.Z,{children:[(0,l.jsx)(t.ZP,{onClick:H,children:"\u53D6\u6D88"}),(0,l.jsx)(t.ZP,{onClick:k,type:"primary",children:"\u4FDD\u5B58"})]}),children:(0,l.jsxs)(s.A,{form:Y,initialValues:c()({},a),submitter:{render:function(){return null}},children:[(0,l.jsx)(x.Z,{label:"\u5206\u7C7B",name:"categoryUid",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u7C7B"}],options:xe,fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5206\u7C7B",onChange:ie}}),(0,l.jsx)(x.Z,{label:"\u7C7B\u578B",name:"type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}],options:[{label:"\u6587\u672C",value:y.PYi},{label:"\u56FE\u7247",value:y.Qm,disabled:!0},{label:"\u89C6\u9891",value:y.tVi,disabled:!0},{label:"\u97F3\u9891",value:y.Yu1,disabled:!0},{label:"\u6587\u4EF6",value:y.Qn,disabled:!0}],fieldProps:{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B",onChange:Ee}}),(0,l.jsx)(ue.Z,{label:"\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]}),(0,l.jsx)(oe.Z,{label:"\u5185\u5BB9",name:"content"})]})})})},U=pe,ve=["current"],fe=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,l.jsx)(p.FormattedMessage,{id:"title",defaultMessage:"Title"}),dataIndex:"title",copyable:!0},{title:(0,l.jsx)(p.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content"},{title:(0,l.jsx)(p.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",hideInSearch:!0},{title:(0,l.jsx)(p.FormattedMessage,{id:"category",defaultMessage:"Category"}),dataIndex:"category",hideInSearch:!0,render:function(u,D){var a;return(a=D.category)===null||a===void 0?void 0:a.name}},{title:(0,l.jsx)(p.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0,width:180}],z=function(){var u=(0,p.useIntl)(),D=(0,n.useRef)(),a=(0,n.useState)(!0),ae=L()(a,2),H=ae[0],le=ae[1],Ce=(0,n.useState)(),se=L()(Ce,2),Y=se[0],X=se[1],xe=(0,n.useState)(!1),ie=L()(xe,2),Ee=ie[0],k=ie[1],R=(0,$.u)(function(P){return P.currentOrg}),G=[].concat(fe,[{title:u.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",width:100,render:function(N,A,J,q){return[(0,l.jsx)("a",{onClick:function(){je(A)},children:u.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),de=(0,r.v)(function(P){return P.currentCategory}),Fe=function(){X(void 0),le(!1),k(!0)},je=function(N){X(N),le(!0),k(!0)},Me=function(){var P=d()(m()().mark(function N(A){var J,q;return m()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(console.log("handleSubmitDrawer",A),H?g.yw.loading(u.formatMessage({id:"updating"})):g.yw.loading(u.formatMessage({id:"creating"})),!H){M.next=8;break}return M.next=5,o(A);case 5:M.t0=M.sent,M.next=11;break;case 8:return M.next=10,K(A);case 10:M.t0=M.sent;case 11:J=M.t0,console.log("createBlog response:",A,J),J.code===200?(g.yw.destroy(),g.yw.loading(u.formatMessage({id:"create.success"})),k(!1),(q=D.current)===null||q===void 0||q.reloadAndRest()):(g.yw.destroy(),g.yw.error(J.message));case 14:case"end":return M.stop()}},N)}));return function(A){return P.apply(this,arguments)}}(),Te=function(){k(!1)};(0,n.useEffect)(function(){var P;console.log("currentCategory:",de),(P=D.current)===null||P===void 0||P.reloadAndRest()},[de]);var De=function(){console.log("handleRichEditor"),window.open("/admin/doceditor")};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(O.Z,{columns:G,actionRef:D,cardBordered:!0,request:function(){var P=d()(m()().mark(function N(A,J,q){var Se,M,Oe,_;return m()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return console.log("request:",A,J,q),g.yw.loading(u.formatMessage({id:"loading",defaultMessage:"Loading"})),Se=A.current,M=b()(A,ve),Oe=c()({pageNumber:A.current-1,orgUid:R.uid,categoryUid:de.uid==="all"?"":de.uid},M),ee.next=6,h(Oe);case 6:return _=ee.sent,console.log("getAllBlogs response:",Oe,_),g.yw.destroy(),_.code===200||g.yw.error(_.message),ee.abrupt("return",{data:_.data.content,success:!0,total:_.data.totalElements});case 11:case"end":return ee.stop()}},N)}));return function(N,A,J){return P.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(N){console.log("page:",N)}},dateFormatter:"string",headerTitle:"\u535A\u5BA2",toolBarRender:function(){return[(0,l.jsx)(t.ZP,{icon:(0,l.jsx)(V.Z,{}),type:"primary",onClick:De,children:u.formatMessage({id:"create",defaultMessage:"Create"})},"button")]}}),(0,l.jsx)(U,{isEdit:H,open:Ee,blog:Y,onClose:Te,onSubmit:Me})]})},ge=z,me=e(52670),he=v.Z.Sider,Pe=v.Z.Content,ye=function(){var u=(0,f.Z)(),D=u.leftSiderStyle,a=u.contentStyle;return(0,l.jsx)("div",{children:(0,l.jsxs)(v.Z,{children:[(0,l.jsx)(he,{style:D,children:(0,l.jsx)(me.Z,{type:y.qAy})}),(0,l.jsx)(v.Z,{children:(0,l.jsx)(Pe,{style:a,children:(0,l.jsx)(ge,{})})})]})})},ne=ye},86250:function(te,I,e){e.d(I,{Z:function(){return O}});var f=e(67294),v=e(93967),T=e.n(v),c=e(98423),F=e(98065),b=e(53124),W=e(27036),m=e(45503);const E=["wrap","nowrap","wrap-reverse"],d=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],w=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],L=(t,n)=>{const r=n.wrap===!0?"wrap":n.wrap;return{[`${t}-wrap-${r}`]:r&&E.includes(r)}},g=(t,n)=>{const r={};return w.forEach(s=>{r[`${t}-align-${s}`]=n.align===s}),r[`${t}-align-stretch`]=!n.align&&!!n.vertical,r},y=(t,n)=>{const r={};return d.forEach(s=>{r[`${t}-justify-${s}`]=n.justify===s}),r};function p(t,n){return T()(Object.assign(Object.assign(Object.assign({},L(t,n)),g(t,n)),y(t,n)))}var h=p;const B=t=>{const{componentCls:n}=t;return{[n]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},K=t=>{const{componentCls:n}=t;return{[n]:{"&-gap-small":{gap:t.flexGapSM},"&-gap-middle":{gap:t.flexGap},"&-gap-large":{gap:t.flexGapLG}}}},i=t=>{const{componentCls:n}=t,r={};return E.forEach(s=>{r[`${n}-wrap-${s}`]={flexWrap:s}}),r},o=t=>{const{componentCls:n}=t,r={};return w.forEach(s=>{r[`${n}-align-${s}`]={alignItems:s}}),r},C=t=>{const{componentCls:n}=t,r={};return d.forEach(s=>{r[`${n}-justify-${s}`]={justifyContent:s}}),r},S=()=>({});var Z=(0,W.I$)("Flex",t=>{const{paddingXS:n,padding:r,paddingLG:s}=t,x=(0,m.TS)(t,{flexGapSM:n,flexGap:r,flexGapLG:s});return[B(x),K(x),i(x),o(x),C(x)]},S,{resetStyle:!1}),$=function(t,n){var r={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&n.indexOf(s)<0&&(r[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,s=Object.getOwnPropertySymbols(t);x{const{prefixCls:r,rootClassName:s,className:x,style:ue,flex:oe,gap:Q,children:ce,vertical:re=!1,component:l="div"}=t,pe=$(t,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:U,direction:ve,getPrefixCls:fe}=f.useContext(b.E_),z=fe("flex",r),[ge,me,he]=Z(z),Pe=re!=null?re:U==null?void 0:U.vertical,ye=T()(x,s,U==null?void 0:U.className,z,me,he,h(z,t),{[`${z}-rtl`]:ve==="rtl",[`${z}-gap-${Q}`]:(0,F.n)(Q),[`${z}-vertical`]:Pe}),ne=Object.assign(Object.assign({},U==null?void 0:U.style),ue);return oe&&(ne.flex=oe),Q&&!(0,F.n)(Q)&&(ne.gap=Q),ge(f.createElement(l,Object.assign({ref:n,className:ye,style:ne},(0,c.Z)(pe,["justify","wrap","align"])),ce))})}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__BlogStatistic.17754336.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__BlogStatistic.17754336.async.js new file mode 100644 index 00000000..3a2cc8f4 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__BlogStatistic.17754336.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[510],{99197:function(e,s,c){c.r(s);var a=c(85615),n=c(86745),i=c(85893);s.default=function(){var e=(0,n.useAccess)();return e.canDebug&&console.log("TabBlogReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(n.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.FormattedMessage,{id:a.h5w})}),children:"BlogStatistic"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__BlogStatistic.83e95c78.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__BlogStatistic.83e95c78.async.js deleted file mode 100644 index 3990e238..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__BlogStatistic.83e95c78.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[510],{99197:function(l,n,a){a.r(n);var e=a(85615),c=a(86745),s=a(85893),i=function(){var t=(0,c.useAccess)();return t.canDebug&&console.log("TabBlogReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(c.Access,{accessible:t.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.FormattedMessage,{id:e.h5w})}),children:"BlogStatistic"})})})};n.default=i}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__index.1b0684b6.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__index.1b0684b6.async.js new file mode 100644 index 00000000..bcfc5228 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__index.1b0684b6.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1312],{13440:function(e,n,t){t.r(n);var s=t(77154),l=t(21612),r=(t(67294),t(96974)),i=t(85615),c=t(65383),d=t(85893),u=l.Z.Sider,a=l.Z.Content;n.default=function(){var e=(0,s.Z)(),n=e.leftSiderStyle,t=e.contentStyle;return(0,d.jsxs)(l.Z,{children:[(0,d.jsx)(u,{style:n,children:(0,d.jsx)(c.Z,{type:i.qAy})}),(0,d.jsx)(l.Z,{children:(0,d.jsx)(a,{style:t,children:(0,d.jsx)(r.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__index.9e32f264.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__index.9e32f264.async.js deleted file mode 100644 index a29470c1..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Blog__index.9e32f264.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1312],{13440:function(o,s,t){t.r(s);var E=t(77154),_=t(21612),K=t(67294),l=t(96974),a=t(85615),d=t(65383),n=t(85893),D=_.Z.Sider,M=_.Z.Content,O=function(){var e=(0,E.Z)(),P=e.leftSiderStyle,r=e.contentStyle;return(0,n.jsxs)(_.Z,{children:[(0,n.jsx)(D,{style:P,children:(0,n.jsx)(d.Z,{type:a.qAy})}),(0,n.jsx)(_.Z,{children:(0,n.jsx)(M,{style:r,children:(0,n.jsx)(l.j3,{})})})]})};s.default=O}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__EmailData.5799d75a.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__EmailData.5799d75a.async.js deleted file mode 100644 index 1010404d..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__EmailData.5799d75a.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9590],{11475:function(V,T,e){e.d(T,{Z:function(){return P}});var d=e(1413),i=e(67294),h={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"},g=h,y=e(89099),C=function(c,E){return i.createElement(y.Z,(0,d.Z)((0,d.Z)({},c),{},{ref:E,icon:g}))},O=i.forwardRef(C),P=O},58638:function(V,T,e){e.d(T,{Z:function(){return P}});var d=e(1413),i=e(67294),h={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},g=h,y=e(89099),C=function(c,E){return i.createElement(y.Z,(0,d.Z)((0,d.Z)({},c),{},{ref:E,icon:g}))},O=i.forwardRef(C),P=O},64317:function(V,T,e){var d=e(1413),i=e(91),h=e(22270),g=e(67294),y=e(66758),C=e(24809),O=e(85893),P=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],x=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],c=function(f,v){var u=f.fieldProps,s=f.children,t=f.params,a=f.proFieldProps,_=f.mode,Z=f.valueEnum,b=f.request,W=f.showSearch,j=f.options,n=(0,i.Z)(f,P),o=(0,g.useContext)(y.Z);return(0,O.jsx)(C.Z,(0,d.Z)((0,d.Z)({valueEnum:(0,h.h)(Z),request:b,params:t,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,d.Z)({options:j,mode:_,showSearch:W,getPopupContainer:o.getPopupContainer},u),ref:v,proFieldProps:a},n),{},{children:s}))},E=g.forwardRef(function(m,f){var v=m.fieldProps,u=m.children,s=m.params,t=m.proFieldProps,a=m.mode,_=m.valueEnum,Z=m.request,b=m.options,W=(0,i.Z)(m,x),j=(0,d.Z)({options:b,mode:a||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},v),n=(0,g.useContext)(y.Z);return(0,O.jsx)(C.Z,(0,d.Z)((0,d.Z)({valueEnum:(0,h.h)(_),request:Z,params:s,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,d.Z)({getPopupContainer:n.getPopupContainer},j),ref:f,proFieldProps:t},W),{},{children:u}))}),B=g.forwardRef(c),M=E,R=B;R.SearchSelect=M,R.displayName="ProFormComponent",T.Z=R},5966:function(V,T,e){var d=e(97685),i=e(1413),h=e(91),g=e(21770),y=e(8232),C=e(55241),O=e(97435),P=e(67294),x=e(24809),c=e(85893),E=["fieldProps","proFieldProps"],B=["fieldProps","proFieldProps"],M="text",R=function(s){var t=s.fieldProps,a=s.proFieldProps,_=(0,h.Z)(s,E);return(0,c.jsx)(x.Z,(0,i.Z)({valueType:M,fieldProps:t,filedConfig:{valueType:M},proFieldProps:a},_))},m=function(s){var t=(0,g.Z)(s.open||!1,{value:s.open,onChange:s.onOpenChange}),a=(0,d.Z)(t,2),_=a[0],Z=a[1];return(0,c.jsx)(y.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(W){var j,n=W.getFieldValue(s.name||[]);return(0,c.jsx)(C.Z,(0,i.Z)((0,i.Z)({getPopupContainer:function(r){return r&&r.parentNode?r.parentNode:r},onOpenChange:function(r){return Z(r)},content:(0,c.jsxs)("div",{style:{padding:"4px 0"},children:[(j=s.statusRender)===null||j===void 0?void 0:j.call(s,n),s.strengthText?(0,c.jsx)("div",{style:{marginTop:10},children:(0,c.jsx)("span",{children:s.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},s.popoverProps),{},{open:_,children:s.children}))}})},f=function(s){var t=s.fieldProps,a=s.proFieldProps,_=(0,h.Z)(s,B),Z=(0,P.useState)(!1),b=(0,d.Z)(Z,2),W=b[0],j=b[1];return t!=null&&t.statusRender&&_.name?(0,c.jsx)(m,{name:_.name,statusRender:t==null?void 0:t.statusRender,popoverProps:t==null?void 0:t.popoverProps,strengthText:t==null?void 0:t.strengthText,open:W,onOpenChange:j,children:(0,c.jsx)("div",{children:(0,c.jsx)(x.Z,(0,i.Z)({valueType:"password",fieldProps:(0,i.Z)((0,i.Z)({},(0,O.Z)(t,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(o){var r;t==null||(r=t.onBlur)===null||r===void 0||r.call(t,o),j(!1)},onClick:function(o){var r;t==null||(r=t.onClick)===null||r===void 0||r.call(t,o),j(!0)}}),proFieldProps:a,filedConfig:{valueType:M}},_))})}):(0,c.jsx)(x.Z,(0,i.Z)({valueType:"password",fieldProps:t,proFieldProps:a,filedConfig:{valueType:M}},_))},v=R;v.Password=f,v.displayName="ProFormComponent",T.Z=v},14101:function(V,T,e){e.d(T,{Nm:function(){return B},fk:function(){return P}});var d=e(15009),i=e.n(d),h=e(97857),g=e.n(h),y=e(99289),C=e.n(y),O=e(86745);function P(u){return x.apply(this,arguments)}function x(){return x=C()(i()().mark(function u(s){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,O.request)("/api/v1/thread/query/org",{method:"GET",params:g()({},s)}));case 1:case"end":return a.stop()}},u)})),x.apply(this,arguments)}function c(u){return E.apply(this,arguments)}function E(){return E=_asyncToGenerator(_regeneratorRuntime().mark(function u(s){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/v1/thread/update",{method:"POST",data:_objectSpread({},s)}));case 1:case"end":return a.stop()}},u)})),E.apply(this,arguments)}function B(u){return M.apply(this,arguments)}function M(){return M=C()(i()().mark(function u(s){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,O.request)("/api/v1/thread/close",{method:"POST",data:g()({},s)}));case 1:case"end":return a.stop()}},u)})),M.apply(this,arguments)}function R(u){return m.apply(this,arguments)}function m(){return m=_asyncToGenerator(_regeneratorRuntime().mark(function u(s){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/v1/thread/delete",{method:"POST",data:_objectSpread({},s)}));case 1:case"end":return a.stop()}},u)})),m.apply(this,arguments)}function f(u){return v.apply(this,arguments)}function v(){return v=_asyncToGenerator(_regeneratorRuntime().mark(function u(s){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/v1/thread/export",{method:"GET",params:_objectSpread({},s)}));case 1:case"end":return a.stop()}},u)})),v.apply(this,arguments)}},33209:function(V,T,e){e.r(T),e.d(T,{default:function(){return r}});var d=e(77154),i=e(21612),h=e(97857),g=e.n(h),y=e(13769),C=e.n(y),O=e(15009),P=e.n(O),x=e(99289),c=e.n(x),E=e(80049),B=e(14101),M=e(87676),R=e(85615),m=e(58638),f=e(57482),v=e(86745),u=e(14726),s=e(67294),t=e(85893),a=["current"],_=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,t.jsx)(v.FormattedMessage,{id:"nickname",defaultMessage:"Nickname"}),dataIndex:"user",render:function(p,G){var I;return(I=G.user)===null||I===void 0?void 0:I.nickname}},{title:(0,t.jsx)(v.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",hideInSearch:!0},{title:"\u672A\u8BFB\u6570",dataIndex:"unreadCount",hideInSearch:!0},{title:(0,t.jsx)(v.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",copyable:!0},{title:(0,t.jsx)(v.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client"},{title:(0,t.jsx)(v.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0}],Z=function(){var p=(0,v.useIntl)(),G=(0,s.useRef)(),I=(0,M.u)(function(D){return D.currentOrg}),N=[].concat(_,[{title:p.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(A,F,S,L){return[(0,t.jsx)("a",{onClick:function(){},children:p.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),H=function(){var D=c()(P()().mark(function A(){var F;return P()().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:console.log("handleExportExcel"),F=localStorage.getItem(R.LA8),window.open("/api/v1/thread/export?uid="+I.uid+"pageNumber=0&pageSize=20&accessToken="+F);case 3:case"end":return L.stop()}},A)}));return function(){return D.apply(this,arguments)}}();return(0,t.jsx)(f.Z,{columns:N,actionRef:G,cardBordered:!0,request:function(){var D=c()(P()().mark(function A(F,S,L){var z,U,w,$;return P()().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return console.log("request:",F,S,L),z=F.current,U=C()(F,a),w=g()({pageNumber:F.current-1,orgUid:I.uid},U),K.next=5,(0,B.fk)(w);case 5:return $=K.sent,console.log("getAllThreads response:",w,$),$.code===200||E.yw.error($.message),K.abrupt("return",{data:$.data.content,success:!0,total:$.data.totalElements});case 9:case"end":return K.stop()}},A)}));return function(A,F,S){return D.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(A){console.log("page:",A)}},dateFormatter:"string",headerTitle:p.formatMessage({id:"email",defaultMessage:"Email"}),toolBarRender:function(){return[(0,t.jsx)(u.ZP,{icon:(0,t.jsx)(m.Z,{}),type:"primary",onClick:H,children:p.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})},b=Z,W=e(52670),j=i.Z.Sider,n=i.Z.Content,o=function(){var p=(0,d.Z)(),G=p.leftSiderStyle,I=p.contentStyle;return(0,t.jsx)("div",{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsx)(j,{style:G,children:(0,t.jsx)(W.Z,{type:R.X6W})}),(0,t.jsx)(i.Z,{children:(0,t.jsx)(n,{style:I,children:(0,t.jsx)(b,{})})})]})})},r=o},86250:function(V,T,e){e.d(T,{Z:function(){return j}});var d=e(67294),i=e(93967),h=e.n(i),g=e(98423),y=e(98065),C=e(53124),O=e(27036),P=e(45503);const x=["wrap","nowrap","wrap-reverse"],c=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],E=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],B=(n,o)=>{const r=o.wrap===!0?"wrap":o.wrap;return{[`${n}-wrap-${r}`]:r&&x.includes(r)}},M=(n,o)=>{const r={};return E.forEach(l=>{r[`${n}-align-${l}`]=o.align===l}),r[`${n}-align-stretch`]=!o.align&&!!o.vertical,r},R=(n,o)=>{const r={};return c.forEach(l=>{r[`${n}-justify-${l}`]=o.justify===l}),r};function m(n,o){return h()(Object.assign(Object.assign(Object.assign({},B(n,o)),M(n,o)),R(n,o)))}var f=m;const v=n=>{const{componentCls:o}=n;return{[o]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},u=n=>{const{componentCls:o}=n;return{[o]:{"&-gap-small":{gap:n.flexGapSM},"&-gap-middle":{gap:n.flexGap},"&-gap-large":{gap:n.flexGapLG}}}},s=n=>{const{componentCls:o}=n,r={};return x.forEach(l=>{r[`${o}-wrap-${l}`]={flexWrap:l}}),r},t=n=>{const{componentCls:o}=n,r={};return E.forEach(l=>{r[`${o}-align-${l}`]={alignItems:l}}),r},a=n=>{const{componentCls:o}=n,r={};return c.forEach(l=>{r[`${o}-justify-${l}`]={justifyContent:l}}),r},_=()=>({});var Z=(0,O.I$)("Flex",n=>{const{paddingXS:o,padding:r,paddingLG:l}=n,p=(0,P.TS)(n,{flexGapSM:o,flexGap:r,flexGapLG:l});return[v(p),u(p),s(p),t(p),a(p)]},_,{resetStyle:!1}),b=function(n,o){var r={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&o.indexOf(l)<0&&(r[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,l=Object.getOwnPropertySymbols(n);p{const{prefixCls:r,rootClassName:l,className:p,style:G,flex:I,gap:N,children:H,vertical:D=!1,component:A="div"}=n,F=b(n,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:S,direction:L,getPrefixCls:z}=d.useContext(C.E_),U=z("flex",r),[w,$,X]=Z(U),K=D!=null?D:S==null?void 0:S.vertical,Q=h()(p,l,S==null?void 0:S.className,U,$,X,f(U,n),{[`${U}-rtl`]:L==="rtl",[`${U}-gap-${N}`]:(0,y.n)(N),[`${U}-vertical`]:K}),J=Object.assign(Object.assign({},S==null?void 0:S.style),G);return I&&(J.flex=I),N&&!(0,y.n)(N)&&(J.gap=N),w(d.createElement(A,Object.assign({ref:o,className:Q,style:J},(0,g.Z)(F,["justify","wrap","align"])),H))})}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__EmailData.c4192c9b.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__EmailData.c4192c9b.async.js new file mode 100644 index 00000000..84096615 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__EmailData.c4192c9b.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9590],{11475:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(1413),a=n(67294),o={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"},s=n(89099),l=function(e,t){return a.createElement(s.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(l)},58638:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},s=n(89099),l=function(e,t){return a.createElement(s.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(l)},64317:function(e,t,n){var r=n(1413),a=n(91),o=n(22270),s=n(67294),l=n(66758),i=n(29258),u=n(85893),c=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],p=function(e,t){var n=e.fieldProps,d=e.children,p=e.params,f=e.proFieldProps,h=e.mode,g=e.valueEnum,m=e.request,v=e.showSearch,x=e.options,y=(0,a.Z)(e,c),Z=(0,s.useContext)(l.Z);return(0,u.jsx)(i.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,o.h)(g),request:m,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({options:x,mode:h,showSearch:v,getPopupContainer:Z.getPopupContainer},n),ref:t,proFieldProps:f},y),{},{children:d}))},f=s.forwardRef((function(e,t){var n=e.fieldProps,c=e.children,p=e.params,f=e.proFieldProps,h=e.mode,g=e.valueEnum,m=e.request,v=e.options,x=(0,a.Z)(e,d),y=(0,r.Z)({options:v,mode:h||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),Z=(0,s.useContext)(l.Z);return(0,u.jsx)(i.Z,(0,r.Z)((0,r.Z)({valueEnum:(0,o.h)(g),request:m,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,r.Z)({getPopupContainer:Z.getPopupContainer},y),ref:t,proFieldProps:f},x),{},{children:c}))})),h=s.forwardRef(p);h.SearchSelect=f,h.displayName="ProFormComponent",t.Z=h},5966:function(e,t,n){var r=n(97685),a=n(1413),o=n(91),s=n(21770),l=n(8232),i=n(55241),u=n(97435),c=n(67294),d=n(29258),p=n(85893),f=["fieldProps","proFieldProps"],h=["fieldProps","proFieldProps"],g="text",m=function(e){var t=(0,s.Z)(e.open||!1,{value:e.open,onChange:e.onOpenChange}),n=(0,r.Z)(t,2),o=n[0],u=n[1];return(0,p.jsx)(l.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(t){var n,r=t.getFieldValue(e.name||[]);return(0,p.jsx)(i.Z,(0,a.Z)((0,a.Z)({getPopupContainer:function(e){return e&&e.parentNode?e.parentNode:e},onOpenChange:function(e){return u(e)},content:(0,p.jsxs)("div",{style:{padding:"4px 0"},children:[null===(n=e.statusRender)||void 0===n?void 0:n.call(e,r),e.strengthText?(0,p.jsx)("div",{style:{marginTop:10},children:(0,p.jsx)("span",{children:e.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},e.popoverProps),{},{open:o,children:e.children}))}})},v=function(e){var t=e.fieldProps,n=e.proFieldProps,r=(0,o.Z)(e,f);return(0,p.jsx)(d.Z,(0,a.Z)({valueType:g,fieldProps:t,filedConfig:{valueType:g},proFieldProps:n},r))};v.Password=function(e){var t=e.fieldProps,n=e.proFieldProps,s=(0,o.Z)(e,h),l=(0,c.useState)(!1),i=(0,r.Z)(l,2),f=i[0],v=i[1];return null!=t&&t.statusRender&&s.name?(0,p.jsx)(m,{name:s.name,statusRender:null==t?void 0:t.statusRender,popoverProps:null==t?void 0:t.popoverProps,strengthText:null==t?void 0:t.strengthText,open:f,onOpenChange:v,children:(0,p.jsx)("div",{children:(0,p.jsx)(d.Z,(0,a.Z)({valueType:"password",fieldProps:(0,a.Z)((0,a.Z)({},(0,u.Z)(t,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(e){var n;null==t||null===(n=t.onBlur)||void 0===n||n.call(t,e),v(!1)},onClick:function(e){var n;null==t||null===(n=t.onClick)||void 0===n||n.call(t,e),v(!0)}}),proFieldProps:n,filedConfig:{valueType:g}},s))})}):(0,p.jsx)(d.Z,(0,a.Z)({valueType:"password",fieldProps:t,proFieldProps:n,filedConfig:{valueType:g}},s))},v.displayName="ProFormComponent",t.Z=v},14101:function(e,t,n){n.d(t,{Nm:function(){return p},fk:function(){return c}});var r=n(15009),a=n.n(r),o=n(97857),s=n.n(o),l=n(99289),i=n.n(l),u=n(86745);function c(e){return d.apply(this,arguments)}function d(){return(d=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/thread/query/org",{method:"GET",params:s()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return f.apply(this,arguments)}function f(){return(f=i()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/thread/close",{method:"POST",data:s()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},33209:function(e,t,n){n.r(t),n.d(t,{default:function(){return T}});var r=n(77154),a=n(21612),o=n(97857),s=n.n(o),l=n(13769),i=n.n(l),u=n(15009),c=n.n(u),d=n(99289),p=n.n(d),f=n(80049),h=n(14101),g=n(87676),m=n(85615),v=n(17634),x=n(58638),y=n(74190),Z=n(86745),P=n(14726),w=n(67294),j=n(85893),C=["current"],b=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,j.jsx)(Z.FormattedMessage,{id:"nickname",defaultMessage:"Nickname"}),dataIndex:"user",render:function(e,t){var n;return null===(n=t.user)||void 0===n?void 0:n.nickname}},{title:(0,j.jsx)(Z.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",hideInSearch:!0},{title:"未读数",dataIndex:"unreadCount",hideInSearch:!0},{title:(0,j.jsx)(Z.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",copyable:!0},{title:(0,j.jsx)(Z.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client"},{title:(0,j.jsx)(Z.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0}],S=function(){var e=(0,Z.useIntl)(),t=(0,w.useRef)(),n=(0,g.u)((function(e){return e.currentOrg})),r=[].concat(b,[{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(t,n,r,a){return[(0,j.jsx)("a",{onClick:function(){},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),a=function(){var e=p()(c()().mark((function e(){var t;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleExportExcel"),t=localStorage.getItem(m.LA8),window.open((0,v.SV)()+"/api/v1/thread/export?uid="+n.uid+"pageNumber=0&pageSize=20&accessToken="+t);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,j.jsx)(y.Z,{columns:r,actionRef:t,cardBordered:!0,request:function(){var e=p()(c()().mark((function e(t,r,a){var o,l,u;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("request:",t,r,a),t.current,o=i()(t,C),l=s()({pageNumber:t.current-1,orgUid:n.uid},o),e.next=5,(0,h.fk)(l);case 5:return u=e.sent,console.log("getAllThreads response:",l,u),200===u.code||f.yw.error(u.message),e.abrupt("return",{data:u.data.content,success:!0,total:u.data.totalElements});case 9:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:e.formatMessage({id:"email",defaultMessage:"Email"}),toolBarRender:function(){return[(0,j.jsx)(P.ZP,{icon:(0,j.jsx)(x.Z,{}),type:"primary",onClick:a,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})},M=n(52670),E=a.Z.Sider,F=a.Z.Content,T=function(){var e=(0,r.Z)(),t=e.leftSiderStyle,n=e.contentStyle;return(0,j.jsx)("div",{children:(0,j.jsxs)(a.Z,{children:[(0,j.jsx)(E,{style:t,children:(0,j.jsx)(M.Z,{type:m.X6W})}),(0,j.jsx)(a.Z,{children:(0,j.jsx)(F,{style:n,children:(0,j.jsx)(S,{})})})]})})}},86250:function(e,t,n){n.d(t,{Z:function(){return j}});var r=n(67294),a=n(93967),o=n.n(a),s=n(98423),l=n(98065),i=n(53124),u=n(83559),c=n(83262);const d=["wrap","nowrap","wrap-reverse"],p=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],f=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var h=function(e,t){return o()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&d.includes(n)}})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return p.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))};const g=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},m=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},v=e=>{const{componentCls:t}=e,n={};return d.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},x=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},y=e=>{const{componentCls:t}=e,n={};return p.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n};var Z=(0,u.I$)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,a=(0,c.IX)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[g(a),m(a),v(a),x(a),y(a)]}),(()=>({})),{resetStyle:!1}),P=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,rootClassName:a,className:u,style:c,flex:d,gap:p,children:f,vertical:g=!1,component:m="div"}=e,v=P(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:x,direction:y,getPrefixCls:w}=r.useContext(i.E_),j=w("flex",n),[C,b,S]=Z(j),M=null!=g?g:null==x?void 0:x.vertical,E=o()(u,a,null==x?void 0:x.className,j,b,S,h(j,e),{[`${j}-rtl`]:"rtl"===y,[`${j}-gap-${p}`]:(0,l.n)(p),[`${j}-vertical`]:M}),F=Object.assign(Object.assign({},null==x?void 0:x.style),c);return d&&(F.flex=d),p&&!(0,l.n)(p)&&(F.gap=p),C(r.createElement(m,Object.assign({ref:t,className:E,style:F},(0,s.Z)(v,["justify","wrap","align"])),f))}));var j=w}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__EmailStatistic.232780d0.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__EmailStatistic.232780d0.async.js deleted file mode 100644 index 1473c3ff..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__EmailStatistic.232780d0.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3151],{49205:function(l,i,a){a.r(i);var t=a(85615),c=a(86745),s=a(85893),e=function(){var n=(0,c.useAccess)();return n.canDebug&&console.log("TabEmailReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(c.Access,{accessible:n.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.FormattedMessage,{id:t.h5w})}),children:"EmailStatistic"})})})};i.default=e}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__EmailStatistic.ff507dde.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__EmailStatistic.ff507dde.async.js new file mode 100644 index 00000000..8f814d51 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__EmailStatistic.ff507dde.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3151],{49205:function(e,s,c){c.r(s);var a=c(85615),n=c(86745),i=c(85893);s.default=function(){var e=(0,n.useAccess)();return e.canDebug&&console.log("TabEmailReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(n.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.FormattedMessage,{id:a.h5w})}),children:"EmailStatistic"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__index.70e9be1a.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__index.70e9be1a.async.js new file mode 100644 index 00000000..4be03b03 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__index.70e9be1a.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8873],{69377:function(e,n,t){t.r(n);var r=t(77154),s=t(21612),l=(t(67294),t(96974)),i=t(85615),c=t(65383),d=t(85893),a=(s.Z.Header,s.Z.Footer,s.Z.Sider),u=s.Z.Content;n.default=function(){var e=(0,r.Z)(),n=e.leftSiderStyle,t=e.contentStyle;return(0,d.jsxs)(s.Z,{children:[(0,d.jsx)(a,{style:n,children:(0,d.jsx)(c.Z,{type:i.X6W})}),(0,d.jsx)(s.Z,{children:(0,d.jsx)(u,{style:t,children:(0,d.jsx)(l.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__index.d939dc27.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__index.d939dc27.async.js deleted file mode 100644 index 7fa28a23..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__Email__index.d939dc27.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8873],{69377:function(P,_,t){t.r(_);var E=t(77154),e=t(21612),K=t(67294),l=t(96974),a=t(85615),d=t(65383),n=t(85893),C=e.Z.Header,v=e.Z.Footer,r=e.Z.Sider,o=e.Z.Content,D=function(){var s=(0,E.Z)(),M=s.leftSiderStyle,O=s.contentStyle;return(0,n.jsxs)(e.Z,{children:[(0,n.jsx)(r,{style:M,children:(0,n.jsx)(d.Z,{type:a.X6W})}),(0,n.jsx)(e.Z,{children:(0,n.jsx)(o,{style:O,children:(0,n.jsx)(l.j3,{})})})]})};_.default=D}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__index.aa330265.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__index.aa330265.async.js deleted file mode 100644 index 4ec0c391..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__index.aa330265.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8164],{52952:function(E,a,n){n.r(a);var u=n(86745),_=n(67294),t=n(85893),s=function(){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(u.Outlet,{})})};a.default=s}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__index.b139ca0e.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__index.b139ca0e.async.js new file mode 100644 index 00000000..96e23243 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Marketing__index.b139ca0e.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8164],{52952:function(n,e,t){t.r(e);var u=t(86745),a=(t(67294),t(85893));e.default=function(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(u.Outlet,{})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Meiyu__index.12ddf2a0.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Meiyu__index.12ddf2a0.async.js new file mode 100644 index 00000000..df5178eb --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Meiyu__index.12ddf2a0.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5306],{77154:function(e,t,n){var r=n(39825);t.Z=function(){var e=(0,r.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},71456:function(e,t,n){n.r(t),n.d(t,{default:function(){return F}});var r=n(77154),u=n(21612),i=n(67294),a=n(15009),c=n.n(a),s=n(99289),o=n.n(s),l=n(5574),d=n.n(l),f=n(80049),p=n(97857),y=n.n(p),h=n(85615),g=n(86745);function m(e){return x.apply(this,arguments)}function x(){return(x=o()(c()().mark((function e(t){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,g.request)("/api/v1/meiyu/query",{method:"GET",params:y()(y()({},t),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var k=n(73445),v=n(782),b=n(18753),T=(0,k.Ue)()((0,v.mW)((0,v.tJ)((0,b.n)((function(e,t){return{currentType:"",meiyuResult:{data:{content:[]}},setCurrentType:function(t){e({currentType:t})},setMeiyuResult:function(t){e({meiyuResult:t})},deleteMeiyuCache:function(){e({currentType:"",meiyuResult:{data:{content:[]}}})}}})),{name:h.z3B}))),S=n(74190),j=n(85893),R=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"标题",dataIndex:"title",copyable:!0},{title:(0,j.jsx)(FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0},{title:"URL",dataIndex:"url",copyable:!0},{title:(0,j.jsx)(FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),dataIndex:"createdAt",sorter:!0,hideInSearch:!0},{title:intl.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(e,t,n,r){return[(0,j.jsx)("a",{onClick:function(){var e;null==r||null===(e=r.startEditable)||void 0===e||e.call(r,t.uid)},children:"修改"},"editable")]}}],M=function(){var e=(0,i.useRef)(),t=(0,i.useState)(1),n=d()(t,2),r=n[0],u=n[1],a=(0,i.useState)(10),s=d()(a,2),l=s[0],p=s[1],y=T((function(e){return{currentType:e.currentType,meiyuResult:e.meiyuResult,setMeiyuResult:e.setMeiyuResult}})),h=y.currentType,g=y.meiyuResult,x=y.setMeiyuResult,k=function(){var e=o()(c()().mark((function e(){var t,n;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={pageNumber:r-1,pageSize:l,type:h},e.next=3,m(t);case 3:n=e.sent,console.log("queryMeiyus response:",t,n),200===n.code?x(n):f.yw.error(n.message);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,i.useEffect)((function(){k()}),[]),(0,i.useEffect)((function(){k()}),[r,l,h]),(0,i.useEffect)((function(){e.current.reload()}),[g]),(0,j.jsx)(S.Z,{columns:R,actionRef:e,cardBordered:!0,request:function(){var e=o()(c()().mark((function e(t,n,r){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("request:",t,n,r),u(t.current),p(t.pageSize),e.abrupt("return",Promise.resolve({data:g.data.content,success:!0,total:g.data.totalElements}));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{pageSize:l,showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"今日美语",toolBarRender:function(){return[]}})},w=n(42811),C=n(2487),Z=[{title:"全部",key:""},{title:"VOA慢速英语",key:"voa_special_english"},{title:"VOA视频",key:"voa_videos"},{title:"VOA英语教学",key:"voa_english_learning"}],A=function(){var e=T((function(e){return{currentType:e.currentType,setCurrentType:e.setCurrentType}})),t=(e.currentType,e.setCurrentType);return(0,j.jsx)(j.Fragment,{children:(0,j.jsx)(w.Z,{defaultExpandAll:!0,treeData:Z,titleRender:function(e){return(0,j.jsx)(C.Z.Item,{onClick:function(){return function(e){console.log("handleMeiyuTtpeClick:",e),t(e.key)}(e)},children:(0,j.jsx)(C.Z.Item.Meta,{title:(0,j.jsx)(j.Fragment,{children:e.title}),description:(0,j.jsx)(j.Fragment,{children:e.key})})})},blockNode:!0})})},I=u.Z.Sider,E=u.Z.Content,F=function(){var e=(0,r.Z)(),t=e.leftSiderStyle,n=e.contentStyle;return(0,j.jsxs)(u.Z,{children:[(0,j.jsx)(I,{style:t,children:(0,j.jsx)(A,{})}),(0,j.jsx)(u.Z,{children:(0,j.jsx)(E,{style:n,children:(0,j.jsx)(M,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Meiyu__index.7db6b79b.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Meiyu__index.7db6b79b.async.js deleted file mode 100644 index 2bfb5ccf..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Meiyu__index.7db6b79b.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5306],{77154:function(z,T,t){var R=t(39825);function h(){var o=(0,R.Z)(),c=o.isDarkMode,d=250,C={borderRight:c?"1px solid #333":"1px solid #ccc",background:c?"#141414":"#f5f5f5"},g={background:c?"#141414":"#fff"},j={borderLeft:c?"1px solid #333":"1px solid #ccc",background:c?"#141414":"#f5f5f5"},S={minHeight:120,background:c?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:C,leftSiderWidth:d,headerStyle:g,rightSiderStyle:j,contentStyle:S}}T.Z=h},71456:function(z,T,t){t.r(T),t.d(T,{default:function(){return ie}});var R=t(77154),h=t(21612),o=t(67294),c=t(15009),d=t.n(c),C=t(99289),g=t.n(C),j=t(5574),S=t.n(j),H=t(80049),W=t(97857),D=t.n(W),F=t(85615),V=t(86745);function U(r){return x.apply(this,arguments)}function x(){return x=g()(d()().mark(function r(n){return d()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,V.request)("/api/v1/meiyu/query",{method:"GET",params:D()(D()({},n),{},{client:F.bVn})}));case 1:case"end":return e.stop()}},r)})),x.apply(this,arguments)}function oe(r){return b.apply(this,arguments)}function b(){return b=_asyncToGenerator(_regeneratorRuntime().mark(function r(n){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/api/v1/meiyu/create",{method:"POST",data:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return e.stop()}},r)})),b.apply(this,arguments)}function ce(r){return E.apply(this,arguments)}function E(){return E=_asyncToGenerator(_regeneratorRuntime().mark(function r(n){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/api/v1/meiyu/update",{method:"POST",data:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return e.stop()}},r)})),E.apply(this,arguments)}function de(r){return k.apply(this,arguments)}function k(){return k=_asyncToGenerator(_regeneratorRuntime().mark(function r(n){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/api/v1/meiyu/delete",{method:"POST",data:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return e.stop()}},r)})),k.apply(this,arguments)}function ye(r){return A.apply(this,arguments)}function A(){return A=_asyncToGenerator(_regeneratorRuntime().mark(function r(n){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/api/v1/meiyu/filter",{method:"GET",params:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return e.stop()}},r)})),A.apply(this,arguments)}var J=t(73445),N=t(782),K=t(18753),O=(0,J.Ue)()((0,N.mW)((0,N.tJ)((0,K.n)(function(r,n){return{currentType:"",meiyuResult:{data:{content:[]}},setCurrentType:function(e){r({currentType:e})},setMeiyuResult:function(e){r({meiyuResult:e})},deleteMeiyuCache:function(){r({currentType:"",meiyuResult:{data:{content:[]}}})}}}),{name:F.z3B}))),Q=t(57482),a=t(85893),X=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"\u6807\u9898",dataIndex:"title",copyable:!0},{title:(0,a.jsx)(FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0},{title:"URL",dataIndex:"url",copyable:!0},{title:(0,a.jsx)(FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),dataIndex:"createdAt",sorter:!0,hideInSearch:!0},{title:intl.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(n,u,e,l){return[(0,a.jsx)("a",{onClick:function(){var i;l==null||(i=l.startEditable)===null||i===void 0||i.call(l,u.uid)},children:"\u4FEE\u6539"},"editable")]}}],Y=function(){var n=(0,o.useRef)(),u=(0,o.useState)(1),e=S()(u,2),l=e[0],y=e[1],i=(0,o.useState)(10),I=S()(i,2),P=I[0],le=I[1],Z=O(function(s){return{currentType:s.currentType,meiyuResult:s.meiyuResult,setMeiyuResult:s.setMeiyuResult}}),w=Z.currentType,G=Z.meiyuResult,se=Z.setMeiyuResult,B=function(){var s=g()(d()().mark(function m(){var p,f;return d()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return p={pageNumber:l-1,pageSize:P,type:w},v.next=3,U(p);case 3:f=v.sent,console.log("queryMeiyus response:",p,f),f.code===200?se(f):H.yw.error(f.message);case 6:case"end":return v.stop()}},m)}));return function(){return s.apply(this,arguments)}}();return(0,o.useEffect)(function(){B()},[]),(0,o.useEffect)(function(){B()},[l,P,w]),(0,o.useEffect)(function(){n.current.reload()},[G]),(0,a.jsx)(Q.Z,{columns:X,actionRef:n,cardBordered:!0,request:function(){var s=g()(d()().mark(function m(p,f,L){return d()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return console.log("request:",p,f,L),y(p.current),le(p.pageSize),M.abrupt("return",Promise.resolve({data:G.data.content,success:!0,total:G.data.totalElements}));case 4:case"end":return M.stop()}},m)}));return function(m,p,f){return s.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{pageSize:P,showQuickJumper:!0,onChange:function(m){console.log("page:",m)}},dateFormatter:"string",headerTitle:"\u4ECA\u65E5\u7F8E\u8BED",toolBarRender:function(){return[]}})},q=Y,_=t(14e3),$=t(2487),ee=[{title:"\u5168\u90E8",key:""},{title:"VOA\u6162\u901F\u82F1\u8BED",key:"voa_special_english"},{title:"VOA\u89C6\u9891",key:"voa_videos"},{title:"VOA\u82F1\u8BED\u6559\u5B66",key:"voa_english_learning"}],te=function(){var n=O(function(y){return{currentType:y.currentType,setCurrentType:y.setCurrentType}}),u=n.currentType,e=n.setCurrentType,l=function(i){console.log("handleMeiyuTtpeClick:",i),e(i.key)};return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(_.Z,{defaultExpandAll:!0,treeData:ee,titleRender:function(i){return(0,a.jsx)($.Z.Item,{onClick:function(){return l(i)},children:(0,a.jsx)($.Z.Item.Meta,{title:(0,a.jsx)(a.Fragment,{children:i.title}),description:(0,a.jsx)(a.Fragment,{children:i.key})})})},blockNode:!0})})},re=te,ne=h.Z.Sider,ae=h.Z.Content,ue=function(){var n=(0,R.Z)(),u=n.leftSiderStyle,e=n.contentStyle,l=function(i){console.log("menu click ",i)};return(0,a.jsxs)(h.Z,{children:[(0,a.jsx)(ne,{style:u,children:(0,a.jsx)(re,{})}),(0,a.jsx)(h.Z,{children:(0,a.jsx)(ae,{style:e,children:(0,a.jsx)(q,{})})})]})},ie=ue}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Plugins__index.086b9994.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Plugins__index.086b9994.async.js new file mode 100644 index 00000000..01a389ac --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Plugins__index.086b9994.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2494],{77154:function(e,t,l){var i=l(39825);t.Z=function(){var e=(0,i.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},90675:function(e,t,l){l.r(t);var i=l(77154),n=l(21612),r=l(50136),c=(l(67294),l(85893)),d=n.Z.Sider,f=n.Z.Content,o=[{label:"文章",key:"article"},{label:"文件",key:"file"}];t.default=function(){var e=(0,i.Z)(),t=e.leftSiderStyle,l=e.contentStyle;return(0,c.jsxs)(n.Z,{children:[(0,c.jsx)(d,{style:t,children:(0,c.jsx)(r.Z,{mode:"inline",onClick:function(e){console.log("menu click ",e.key)},defaultSelectedKeys:["article"],defaultOpenKeys:["article","file"],items:o})}),(0,c.jsx)(n.Z,{children:(0,c.jsx)(f,{style:l,children:"插件"})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Plugins__index.513c2e0c.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Plugins__index.513c2e0c.async.js deleted file mode 100644 index ac99dffc..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Plugins__index.513c2e0c.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2494],{77154:function(f,i,e){var r=e(39825);function n(){var d=(0,r.Z)(),t=d.isDarkMode,l=250,a={borderRight:t?"1px solid #333":"1px solid #ccc",background:t?"#141414":"#f5f5f5"},c={background:t?"#141414":"#fff"},s={borderLeft:t?"1px solid #333":"1px solid #ccc",background:t?"#141414":"#f5f5f5"},o={minHeight:120,background:t?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:a,leftSiderWidth:l,headerStyle:c,rightSiderStyle:s,contentStyle:o}}i.Z=n},90675:function(f,i,e){e.r(i);var r=e(77154),n=e(21612),d=e(50136),t=e(67294),l=e(85893),a=n.Z.Sider,c=n.Z.Content,s=[{label:"\u6587\u7AE0",key:"article"},{label:"\u6587\u4EF6",key:"file"}],o=function(){var u=(0,r.Z)(),_=u.leftSiderStyle,S=u.contentStyle,y=function(h){console.log("menu click ",h.key)};return(0,l.jsxs)(n.Z,{children:[(0,l.jsx)(a,{style:_,children:(0,l.jsx)(d.Z,{mode:"inline",onClick:y,defaultSelectedKeys:["article"],defaultOpenKeys:["article","file"],items:s})}),(0,l.jsx)(n.Z,{children:(0,l.jsx)(c,{style:S,children:"\u63D2\u4EF6"})})]})};i.default=o}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Quartz__index.3150a858.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Quartz__index.3150a858.async.js deleted file mode 100644 index 333087f6..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Quartz__index.3150a858.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3848],{77154:function(Wt,fe,S){var we=S(39825);function ne(){var me=(0,we.Z)(),u=me.isDarkMode,Oe=250,D={borderRight:u?"1px solid #333":"1px solid #ccc",background:u?"#141414":"#f5f5f5"},Ne={background:u?"#141414":"#fff"},F={borderLeft:u?"1px solid #333":"1px solid #ccc",background:u?"#141414":"#f5f5f5"},ke={minHeight:120,background:u?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:D,leftSiderWidth:Oe,headerStyle:Ne,rightSiderStyle:F,contentStyle:ke}}fe.Z=ne},29771:function(Wt,fe,S){S.r(fe),S.d(fe,{default:function(){return dr}});var we=S(77154),ne=S(21612),me=S(50136),u=S(67294),Oe=S(15009),D=S.n(Oe),Ne=S(99289),F=S.n(Ne),ke=S(5574),Pe=S.n(ke),oe=S(80049),In=S(97857),re=S.n(In),he=S(85615),ae=S(86745);function Qn(e){return $e.apply(this,arguments)}function $e(){return $e=F()(D()().mark(function e(n){return D()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,ae.request)("/api/v1/quartz/org",{method:"GET",params:re()(re()({},n),{},{client:he.bVn})}));case 1:case"end":return t.stop()}},e)})),$e.apply(this,arguments)}function hr(e){return Ge.apply(this,arguments)}function Ge(){return Ge=_asyncToGenerator(_regeneratorRuntime().mark(function e(n){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/quartz/create",{method:"POST",data:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},e)})),Ge.apply(this,arguments)}function yr(e){return Ke.apply(this,arguments)}function Ke(){return Ke=_asyncToGenerator(_regeneratorRuntime().mark(function e(n){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/quartz/update",{method:"POST",data:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},e)})),Ke.apply(this,arguments)}function gr(e){return Ye.apply(this,arguments)}function Ye(){return Ye=_asyncToGenerator(_regeneratorRuntime().mark(function e(n){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/quartz/delete",{method:"POST",data:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},e)})),Ye.apply(this,arguments)}function br(e){return qe.apply(this,arguments)}function qe(){return qe=_asyncToGenerator(_regeneratorRuntime().mark(function e(n){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/quartz/filter",{method:"GET",params:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},e)})),qe.apply(this,arguments)}function Vn(e){return Xe.apply(this,arguments)}function Xe(){return Xe=F()(D()().mark(function e(n){return D()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,ae.request)("/api/v1/quartz/startJob",{method:"POST",data:re()(re()({},n),{},{client:he.bVn})}));case 1:case"end":return t.stop()}},e)})),Xe.apply(this,arguments)}function Zn(e){return _e.apply(this,arguments)}function _e(){return _e=F()(D()().mark(function e(n){return D()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,ae.request)("/api/v1/quartz/pauseJob",{method:"POST",data:re()(re()({},n),{},{client:he.bVn})}));case 1:case"end":return t.stop()}},e)})),_e.apply(this,arguments)}function Wn(e){return et.apply(this,arguments)}function et(){return et=F()(D()().mark(function e(n){return D()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,ae.request)("/api/v1/quartz/resumeJob",{method:"POST",data:re()(re()({},n),{},{client:he.bVn})}));case 1:case"end":return t.stop()}},e)})),et.apply(this,arguments)}function Ln(e){return tt.apply(this,arguments)}function tt(){return tt=F()(D()().mark(function e(n){return D()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,ae.request)("/api/v1/quartz/deleteJob",{method:"POST",data:re()(re()({},n),{},{client:he.bVn})}));case 1:case"end":return t.stop()}},e)})),tt.apply(this,arguments)}var Hn=S(87676),Un=S(73445),Lt=S(782),Bn=S(18753),$n=(0,Un.Ue)()((0,Lt.mW)((0,Lt.tJ)((0,Bn.n)(function(e,n){return{quartzResult:{data:{content:[]}},updateQuartz:function(t){var r=n().quartzResult.data.content,s=r.findIndex(function(d){return d.uid===t.uid});s!==-1?r[s]=t:r.unshift(t),e({quartzResult:{data:{content:r}}})},deleteQuartz:function(t){var r=n().quartzResult.data.content,s=r.findIndex(function(d){return d.uid===t.uid});s!==-1&&r.splice(s,1),e({quartzResult:{data:{content:r}}})},setQuartzResult:function(t){e({quartzResult:t})},deleteQuartzCache:function(){return e({},!0)}}}),{name:he.wAM}))),Ht=S(51042),Gn=S(57482),ce=S(14726),Kn=S(85576),o=S(85893),Ut=S(34041),W=function(){return W=Object.assign||function(e){for(var n,a=1,t=arguments.length;a2)throw new Error('Invalid value "'.concat(I,' for "').concat(A.type,'"'));var L=V[0],ie=V[1];U=L==="*"?$t(A.min,A.max):function(g,C,P){var y=g.split("-");if(y.length===1){var w=Re(y[0]);if(isNaN(w))throw new Error('Invalid value "'.concat(C,'" for ').concat(P.type));return[w]}if(y.length===2){var b=Re(y[0]),h=Re(y[1]);if(isNaN(b)||isNaN(h))throw new Error('Invalid value "'.concat(C,'" for ').concat(P.type));if(h0?"year":N[2].length>0?"month":N[4].length>0?"week":N[1].length>0?"day":N[0].length>0?"hour":"minute"}(E);z(T),c(E[0]),v(E[1]),f(E[2]),j(E[3]),x(E[4])}catch(N){p=!0}}p&&(r.current=e,n(!0),Kt(a,d))}function rt(e,n,a,t,r,s,d,i){if(e==="reboot")return"@reboot";var c=function(v,f,j){return v.map(function(x,z){var p,m=ve[z],E=lt(x,m),T=j==null?void 0:j[m.type];return at(E,m,(p=T==null?void 0:T.humanizeValue)!==null&&p!==void 0?p:f)})}([e!=="minute"&&s?s:[],e!=="minute"&&e!=="hour"&&r?r:[],e!=="year"&&e!=="month"||!a?[]:a,e==="year"&&n?n:[],e!=="year"&&e!=="month"&&e!=="week"||!t?[]:t],d,i);return c.join(" ")}function at(e,n,a,t,r){var s="";if(function(i,c){return i.length===c.max-c.min+1}(e,n)||e.length===0)s="*";else{var d=function(i){if(i.length>2){var c=i[1]-i[0];if(c>1)return c}}(e);s=d&&function(i,c){for(var v=1;vc.max&&x)}(e,n,d)?"*/".concat(d):"".concat(pe(Xt(e),n,a,t,r),"-").concat(pe(_t(e),n,a,t,r),"/").concat(d):function(i){var c=[],v=null;return i.forEach(function(f,j,x){f!==x[j+1]-1?v!==null?(c.push([v,f]),v=null):c.push(f):v===null&&(v=f)}),c}(e).map(function(i){return Array.isArray(i)?"".concat(pe(i[0],n,a,t,r),"-").concat(pe(i[1],n,a,t,r)):pe(i,n,a,t,r)}).join(",")}return s}function pe(e,n,a,t,r){var s=e.toString(),d=n.type,i=n.alt,c=n.min,v=t&&(t===!0||t.includes(d)),f=r==="24-hour-clock"&&(d==="hours"||d==="minutes");if(a&&d==="week-days"||a&&d==="months"?s=i[e-c]:e<10&&(v||f)&&(s=s.padStart(2,"0")),d==="hours"&&r==="12-hour-clock"){var j=e>=12?"PM":"AM",x=e%12||12;x<10&&v&&(x=x.toString().padStart(2,"0")),s="".concat(x).concat(j)}return s}function lt(e,n){var a=Te(Gt(Yt(e,n)));if(a.length===0)return a;var t=qt(a,n);if(t!==void 0)throw new Error('Value "'.concat(t,'" out of range for ').concat(n.type));return a}function Yt(e,n){return n.type==="week-days"&&(e=e.map(function(a){return a===7?0:a})),e}function qt(e,n){var a=e[0],t=e[e.length-1];return an.max?t:void 0}function Xt(e){return e[0]}function _t(e){return e[e.length-1]}var wr=Object.freeze({__proto__:null,setValuesFromCronString:nt,getCronStringFromValues:rt,partToString:at,formatValue:pe,parsePartArray:lt});function xe(e){var n=e.value,a=e.grid,t=a===void 0||a,r=e.optionsList,s=e.setValue,d=e.locale,i=e.className,c=e.humanizeLabels,v=e.disabled,f=e.readOnly,j=e.leadingZero,x=e.clockFormat,z=e.period,p=e.unit,m=e.periodicityOnDoubleClick,E=e.mode,T=e.allowClear,N=e.filterOption,B=N===void 0?function(){return!0}:N,Y=Bt(e,["value","grid","optionsList","setValue","locale","className","humanizeLabels","disabled","readOnly","leadingZero","clockFormat","period","unit","periodicityOnDoubleClick","mode","allowClear","filterOption"]),$=(0,u.useMemo)(function(){if(n&&Array.isArray(n))return n.map(function(O){return O.toString()})},[n]),I=(0,u.useMemo)(function(){return r?r.map(function(O,g){return{value:(p.min===0?g:g+1).toString(),label:O}}).filter(B):Ee([],Array(p.total),!0).map(function(O,g){var C=p.min===0?g:g+1;return{value:C.toString(),label:pe(C,p,c,j,x)}}).filter(B)},[r,j,c,x]),A=JSON.stringify(d),G=(0,u.useCallback)(function(O){var g=O.value;if(!n||n[0]!==Number(g))return(0,o.jsx)(o.Fragment,{});var C=at(lt(n,p),p,c,j,x),P=C.match(/^\*\/([0-9]+),?/)||[];return(0,o.jsx)("div",{children:P[1]?"".concat(d.everyText||M.everyText," ").concat(P[1]):C})},[n,A,c,j,x]),q=(0,u.useCallback)(function(O){var g=Array.isArray(O)?Te(O):[O],C=g;n&&(C=E==="single"?[]:Ee([],n,!0),g.forEach(function(P){var y=Number(P);C=n.some(function(w){return w===y})?C.filter(function(w){return w!==y}):Te(Ee(Ee([],C,!0),[y],!1))})),C.length===p.total?s([]):s(C)},[s,n]),Q=(0,u.useCallback)(function(O){if(O!==0&&O!==1){for(var g=p.total+p.min,C=[],P=p.min;P1&&g[g.length-1].time-g[g.length-2].time<300?g[g.length-1].value===g[g.length-2].value?Q(Number(O)):q([g[g.length-2].value,g[g.length-1].value]):q(Number(O)),U.current=[]},300);return function(){window.clearTimeout(C)}}},[U,q,Q,f,m]),L=(0,u.useCallback)(function(){f||s([])},[s,f]),ie=(0,u.useMemo)(function(){var O;return K(((O={"react-js-cron-select":!0,"react-js-cron-custom-select":!0})["".concat(i,"-select")]=!!i,O))},[i]),ue=(0,u.useMemo)(function(){var O;return K(((O={"react-js-cron-select-dropdown":!0})["react-js-cron-select-dropdown-".concat(p.type)]=!0,O["react-js-cron-custom-select-dropdown"]=!0,O["react-js-cron-custom-select-dropdown-".concat(p.type)]=!0,O["react-js-cron-custom-select-dropdown-minutes-large"]=p.type==="minutes"&&z!=="hour"&&z!=="day",O["react-js-cron-custom-select-dropdown-minutes-medium"]=p.type==="minutes"&&(z==="day"||z==="hour"),O["react-js-cron-custom-select-dropdown-hours-twelve-hour-clock"]=p.type==="hours"&&x==="12-hour-clock",O["react-js-cron-custom-select-dropdown-grid"]=!!t,O["".concat(i,"-select-dropdown")]=!!i,O["".concat(i,"-select-dropdown-").concat(p.type)]=!!i,O))},[i,t,x,z]);return(0,o.jsx)(Ut.default,W({mode:E!=="single"||m?"multiple":void 0,allowClear:T!=null?T:!f,virtual:!1,open:!f&&void 0,value:$,onClear:L,tagRender:G,className:ie,popupClassName:ue,options:I,showSearch:!1,suffixIcon:f?null:void 0,menuItemSelectedIcon:null,popupMatchSelectWidth:!1,onSelect:V,onDeselect:V,disabled:v,dropdownAlign:p.type!=="minutes"&&p.type!=="hours"||z==="day"||z==="hour"?void 0:{points:["tr","br"]},"data-testid":"custom-select-".concat(p.type)},Y))}function qn(e){var n=e.value,a=e.setValue,t=e.locale,r=e.className,s=e.disabled,d=e.readOnly,i=e.leadingZero,c=e.clockFormat,v=e.period,f=e.periodicityOnDoubleClick,j=e.mode,x=e.allowClear,z=e.filterOption,p=(0,u.useMemo)(function(){var m;return K(((m={"react-js-cron-field":!0,"react-js-cron-hours":!0})["".concat(r,"-field")]=!!r,m["".concat(r,"-hours")]=!!r,m))},[r]);return(0,o.jsxs)("div",W({className:p},{children:[t.prefixHours!==""&&(0,o.jsx)("span",{children:t.prefixHours||M.prefixHours}),(0,o.jsx)(xe,{placeholder:t.emptyHours||M.emptyHours,value:n,unit:ve[1],setValue:a,locale:t,className:r,disabled:s,readOnly:d,leadingZero:i,clockFormat:c,period:v,periodicityOnDoubleClick:f,mode:j,allowClear:x,filterOption:z})]}))}function Xn(e){var n=e.value,a=e.setValue,t=e.locale,r=e.className,s=e.disabled,d=e.readOnly,i=e.leadingZero,c=e.clockFormat,v=e.period,f=e.periodicityOnDoubleClick,j=e.mode,x=e.allowClear,z=e.filterOption,p=(0,u.useMemo)(function(){var m;return K(((m={"react-js-cron-field":!0,"react-js-cron-minutes":!0})["".concat(r,"-field")]=!!r,m["".concat(r,"-minutes")]=!!r,m))},[r]);return(0,o.jsxs)("div",W({className:p},{children:[v==="hour"?t.prefixMinutesForHourPeriod!==""&&(0,o.jsx)("span",{children:t.prefixMinutesForHourPeriod||M.prefixMinutesForHourPeriod}):t.prefixMinutes!==""&&(0,o.jsx)("span",{children:t.prefixMinutes||M.prefixMinutes}),(0,o.jsx)(xe,{placeholder:v==="hour"?t.emptyMinutesForHourPeriod||M.emptyMinutesForHourPeriod:t.emptyMinutes||M.emptyMinutes,value:n,unit:ve[0],setValue:a,locale:t,className:r,disabled:s,readOnly:d,leadingZero:i,clockFormat:c,period:v,periodicityOnDoubleClick:f,mode:j,allowClear:x,filterOption:z}),v==="hour"&&t.suffixMinutesForHourPeriod!==""&&(0,o.jsx)("span",{children:t.suffixMinutesForHourPeriod||M.suffixMinutesForHourPeriod})]}))}function _n(e){var n=e.value,a=e.setValue,t=e.locale,r=e.className,s=e.weekDays,d=e.disabled,i=e.readOnly,c=e.leadingZero,v=e.period,f=e.periodicityOnDoubleClick,j=e.mode,x=e.allowClear,z=e.filterOption,p=!s||s.length===0,m=(0,u.useMemo)(function(){var N;return K(((N={"react-js-cron-field":!0,"react-js-cron-month-days":!0,"react-js-cron-month-days-placeholder":!p})["".concat(r,"-field")]=!!r,N["".concat(r,"-month-days")]=!!r,N))},[r,p]),E=JSON.stringify(t),T=(0,u.useMemo)(function(){return p?t.emptyMonthDays||M.emptyMonthDays:t.emptyMonthDaysShort||M.emptyMonthDaysShort},[p,E]);return!i||n&&n.length>0||(!n||n.length===0)&&(!s||s.length===0)?(0,o.jsxs)("div",W({className:m},{children:[t.prefixMonthDays!==""&&(0,o.jsx)("span",{children:t.prefixMonthDays||M.prefixMonthDays}),(0,o.jsx)(xe,{placeholder:T,value:n,setValue:a,unit:ve[2],locale:t,className:r,disabled:d,readOnly:i,leadingZero:c,period:v,periodicityOnDoubleClick:f,mode:j,allowClear:x,filterOption:z})]})):null}function er(e){var n=e.value,a=e.setValue,t=e.locale,r=e.className,s=e.humanizeLabels,d=e.disabled,i=e.readOnly,c=e.period,v=e.periodicityOnDoubleClick,f=e.mode,j=e.allowClear,x=e.filterOption,z=t.months||M.months,p=(0,u.useMemo)(function(){var m;return K(((m={"react-js-cron-field":!0,"react-js-cron-months":!0})["".concat(r,"-field")]=!!r,m["".concat(r,"-months")]=!!r,m))},[r]);return(0,o.jsxs)("div",W({className:p},{children:[t.prefixMonths!==""&&(0,o.jsx)("span",{children:t.prefixMonths||M.prefixMonths}),(0,o.jsx)(xe,{placeholder:t.emptyMonths||M.emptyMonths,optionsList:z,grid:!1,value:n,unit:W(W({},ve[3]),{alt:t.altMonths||M.altMonths}),setValue:a,locale:t,className:r,humanizeLabels:s,disabled:d,readOnly:i,period:c,periodicityOnDoubleClick:v,mode:f,allowClear:j,filterOption:x})]}))}function tr(e){var n=e.value,a=e.setValue,t=e.locale,r=e.className,s=e.disabled,d=e.readOnly,i=e.shortcuts,c=e.allowedPeriods,v=e.allowClear,f=[];c.includes("year")&&f.push({value:"year",label:t.yearOption||M.yearOption}),c.includes("month")&&f.push({value:"month",label:t.monthOption||M.monthOption}),c.includes("week")&&f.push({value:"week",label:t.weekOption||M.weekOption}),c.includes("day")&&f.push({value:"day",label:t.dayOption||M.dayOption}),c.includes("hour")&&f.push({value:"hour",label:t.hourOption||M.hourOption}),c.includes("minute")&&f.push({value:"minute",label:t.minuteOption||M.minuteOption}),c.includes("reboot")&&i&&(i===!0||i.includes("@reboot"))&&f.push({value:"reboot",label:t.rebootOption||M.rebootOption});var j=(0,u.useCallback)(function(m){d||a(m)},[a,d]),x=(0,u.useMemo)(function(){var m;return K(((m={"react-js-cron-field":!0,"react-js-cron-period":!0})["".concat(r,"-field")]=!!r,m["".concat(r,"-period")]=!!r,m))},[r]),z=(0,u.useMemo)(function(){var m;return K(((m={"react-js-cron-select":!0,"react-js-cron-select-no-prefix":t.prefixPeriod===""})["".concat(r,"-select")]=!!r,m))},[r,t.prefixPeriod]),p=(0,u.useMemo)(function(){var m;return K(((m={"react-js-cron-select-dropdown":!0,"react-js-cron-select-dropdown-period":!0})["".concat(r,"-select-dropdown")]=!!r,m["".concat(r,"-select-dropdown-period")]=!!r,m))},[r]);return(0,o.jsxs)("div",W({className:x},{children:[t.prefixPeriod!==""&&(0,o.jsx)("span",{children:t.prefixPeriod||M.prefixPeriod}),(0,o.jsx)(Ut.default,{defaultValue:n,value:n,onChange:j,options:f,className:z,popupClassName:p,disabled:s,suffixIcon:d?null:void 0,open:!d&&void 0,"data-testid":"select-period",allowClear:v},JSON.stringify(t))]}))}function nr(e){var n=e.value,a=e.setValue,t=e.locale,r=e.className,s=e.humanizeLabels,d=e.monthDays,i=e.disabled,c=e.readOnly,v=e.period,f=e.periodicityOnDoubleClick,j=e.mode,x=e.allowClear,z=e.filterOption,p=t.weekDays||M.weekDays,m=v==="week"||!d||d.length===0,E=(0,u.useMemo)(function(){var $;return K((($={"react-js-cron-field":!0,"react-js-cron-week-days":!0,"react-js-cron-week-days-placeholder":!m})["".concat(r,"-field")]=!!r,$["".concat(r,"-week-days")]=!!r,$))},[r,m]),T=JSON.stringify(t),N=(0,u.useMemo)(function(){return m?t.emptyWeekDays||M.emptyWeekDays:t.emptyWeekDaysShort||M.emptyWeekDaysShort},[m,T]),B=v==="week"||!c||n&&n.length>0||(!n||n.length===0)&&(!d||d.length===0),Y=!c||d&&d.length>0||(!d||d.length===0)&&(!n||n.length===0);return B?(0,o.jsxs)("div",W({className:E},{children:[t.prefixWeekDays!==""&&(v==="week"||!Y)&&(0,o.jsx)("span",{children:t.prefixWeekDays||M.prefixWeekDays}),t.prefixWeekDaysForMonthAndYearPeriod!==""&&v!=="week"&&Y&&(0,o.jsx)("span",{children:t.prefixWeekDaysForMonthAndYearPeriod||M.prefixWeekDaysForMonthAndYearPeriod}),(0,o.jsx)(xe,{placeholder:N,optionsList:p,grid:!1,value:n,unit:W(W({},ve[4]),{alt:t.altWeekDays||M.altWeekDays}),setValue:a,locale:t,className:r,humanizeLabels:s,disabled:i,readOnly:c,period:v,periodicityOnDoubleClick:f,mode:j,allowClear:x,filterOption:z})]})):null}function rr(e){var n,a,t,r,s,d,i,c,v,f,j,x,z,p,m,E,T,N,B,Y,$,I,A,G,q,Q,U,V,L,ie,ue,O,g,C,P,y,w,b,h,H,k,X,ot,it,ut,st,dt,ct,vt,pt,ft,mt,ht,yt,gt,bt,wt,Ot,kt,xt,Ct,St,jt,Mt,Dt,zt,Nt,Pt,Et,Tt,Rt,en=e.clearButton,tn=en===void 0||en,nn=e.clearButtonProps,rn=nn===void 0?{}:nn,an=e.clearButtonAction,At=an===void 0?"fill-with-every":an,ln=e.locale,_=ln===void 0?M:ln,on=e.value,Ce=on===void 0?"":on,Jt=e.setValue,un=e.displayError,Ft=un===void 0||un,de=e.onError,J=e.className,sn=e.defaultPeriod,cr=sn===void 0?"day":sn,dn=e.allowEmpty,Ae=dn===void 0?"for-default-value":dn,cn=e.humanizeLabels,vn=cn===void 0||cn,pn=e.humanizeValue,fn=pn!==void 0&&pn,mn=e.disabled,ee=mn!==void 0&&mn,hn=e.readOnly,te=hn!==void 0&&hn,yn=e.leadingZero,It=yn!==void 0&&yn,gn=e.shortcuts,Je=gn===void 0?["@yearly","@annually","@monthly","@weekly","@daily","@midnight","@hourly"]:gn,bn=e.clockFormat,wn=e.periodicityOnDoubleClick,Se=wn===void 0||wn,On=e.mode,je=On===void 0?"multiple":On,kn=e.allowedDropdowns,ye=kn===void 0?["period","months","month-days","week-days","hours","minutes"]:kn,xn=e.allowedPeriods,vr=xn===void 0?["year","month","week","day","hour","minute","reboot"]:xn,ge=e.allowClear,l=e.dropdownsConfig,be=(0,u.useRef)(Ce),Qt=(0,u.useRef)(cr),Cn=(0,u.useState)(),se=Cn[0],Fe=Cn[1],Sn=(0,u.useState)(),Me=Sn[0],Ie=Sn[1],jn=(0,u.useState)(),Qe=jn[0],Ve=jn[1],Mn=(0,u.useState)(),De=Mn[0],Ze=Mn[1],Dn=(0,u.useState)(),We=Dn[0],Le=Dn[1],zn=(0,u.useState)(),He=zn[0],Ue=zn[1],Nn=(0,u.useState)(!1),Vt=Nn[0],ze=Nn[1],Pn=(0,u.useState)(!1),Be=Pn[0],En=Pn[1],pr=function(R){var le=(0,u.useRef)(R);return(0,u.useEffect)(function(){le.current=R},[R]),le.current}(Be),Tn=JSON.stringify(_);(0,u.useEffect)(function(){nt(Ce,ze,de,Ae,be,!0,_,Je,Ue,Le,Ie,Ve,Ze,Fe)},[]),(0,u.useEffect)(function(){Ce!==be.current&&nt(Ce,ze,de,Ae,be,!1,_,Je,Ue,Le,Ie,Ve,Ze,Fe)},[Ce,be,Tn,Ae,Je]),(0,u.useEffect)(function(){if(!(se||He||Qe||Me||De||We)||Be||pr)Be&&En(!1);else{var R=se||Qt.current,le=rt(R,Qe,Me,De,We,He,fn,l);Jt(le,{selectedPeriod:R}),be.current=le,de&&de(void 0),ze(!1)}},[se,Me,Qe,De,We,He,fn,Be,l]);var Rn=(0,u.useCallback)(function(){Ie(void 0),Ve(void 0),Ze(void 0),Le(void 0),Ue(void 0);var R="",le=se!=="reboot"&&se?se:Qt.current;le!==se&&Fe(le),At==="fill-with-every"&&(R=rt(le,void 0,void 0,void 0,void 0,void 0,void 0,void 0)),Jt(R,{selectedPeriod:le}),be.current=R,En(!0),Ae==="never"&&At==="empty"?(ze(!0),Kt(de,_)):(de&&de(void 0),ze(!1))},[se,Jt,de,At]),fr=(0,u.useMemo)(function(){var R;return K(((R={"react-js-cron":!0,"react-js-cron-error":Vt&&Ft,"react-js-cron-disabled":ee,"react-js-cron-read-only":te})["".concat(J)]=!!J,R["".concat(J,"-error")]=Vt&&Ft&&!!J,R["".concat(J,"-disabled")]=ee&&!!J,R["".concat(J,"-read-only")]=te&&!!J,R))},[J,Vt,Ft,ee,te]),Zt=rn.className,An=Bt(rn,["className"]),Jn=(0,u.useMemo)(function(){var R;return K(((R={"react-js-cron-clear-button":!0})["".concat(J,"-clear-button")]=!!J,R["".concat(Zt)]=!!Zt,R))},[J,Zt]),mr=JSON.stringify(An),Fn=(0,u.useMemo)(function(){return tn&&!te?(0,o.jsx)(ce.ZP,W({className:Jn,danger:!0,type:"primary",disabled:ee},An,{onClick:Rn},{children:_.clearButtonText||M.clearButtonText})):null},[tn,te,Tn,Jn,ee,mr,Rn]),Z=se||Qt.current;return(0,o.jsxs)("div",W({className:fr},{children:[ye.includes("period")&&(0,o.jsx)(tr,{value:Z,setValue:Fe,locale:_,className:J,disabled:(a=(n=l==null?void 0:l.period)===null||n===void 0?void 0:n.disabled)!==null&&a!==void 0?a:ee,readOnly:(r=(t=l==null?void 0:l.period)===null||t===void 0?void 0:t.readOnly)!==null&&r!==void 0?r:te,shortcuts:Je,allowedPeriods:vr,allowClear:(d=(s=l==null?void 0:l.period)===null||s===void 0?void 0:s.allowClear)!==null&&d!==void 0?d:ge}),Z==="reboot"?Fn:(0,o.jsxs)(o.Fragment,{children:[Z==="year"&&ye.includes("months")&&(0,o.jsx)(er,{value:Qe,setValue:Ve,locale:_,className:J,humanizeLabels:(c=(i=l==null?void 0:l.months)===null||i===void 0?void 0:i.humanizeLabels)!==null&&c!==void 0?c:vn,disabled:(f=(v=l==null?void 0:l.months)===null||v===void 0?void 0:v.disabled)!==null&&f!==void 0?f:ee,readOnly:(x=(j=l==null?void 0:l.months)===null||j===void 0?void 0:j.readOnly)!==null&&x!==void 0?x:te,period:Z,periodicityOnDoubleClick:(p=(z=l==null?void 0:l.months)===null||z===void 0?void 0:z.periodicityOnDoubleClick)!==null&&p!==void 0?p:Se,mode:(E=(m=l==null?void 0:l.months)===null||m===void 0?void 0:m.mode)!==null&&E!==void 0?E:je,allowClear:(N=(T=l==null?void 0:l.months)===null||T===void 0?void 0:T.allowClear)!==null&&N!==void 0?N:ge,filterOption:(B=l==null?void 0:l.months)===null||B===void 0?void 0:B.filterOption}),(Z==="year"||Z==="month")&&ye.includes("month-days")&&(0,o.jsx)(_n,{value:Me,setValue:Ie,locale:_,className:J,weekDays:De,disabled:($=(Y=l==null?void 0:l["month-days"])===null||Y===void 0?void 0:Y.disabled)!==null&&$!==void 0?$:ee,readOnly:(A=(I=l==null?void 0:l["month-days"])===null||I===void 0?void 0:I.readOnly)!==null&&A!==void 0?A:te,leadingZero:(q=(G=l==null?void 0:l["month-days"])===null||G===void 0?void 0:G.leadingZero)!==null&&q!==void 0?q:It,period:Z,periodicityOnDoubleClick:(U=(Q=l==null?void 0:l["month-days"])===null||Q===void 0?void 0:Q.periodicityOnDoubleClick)!==null&&U!==void 0?U:Se,mode:(L=(V=l==null?void 0:l["month-days"])===null||V===void 0?void 0:V.mode)!==null&&L!==void 0?L:je,allowClear:(ue=(ie=l==null?void 0:l["month-days"])===null||ie===void 0?void 0:ie.allowClear)!==null&&ue!==void 0?ue:ge,filterOption:(O=l==null?void 0:l["month-days"])===null||O===void 0?void 0:O.filterOption}),(Z==="year"||Z==="month"||Z==="week")&&ye.includes("week-days")&&(0,o.jsx)(nr,{value:De,setValue:Ze,locale:_,className:J,humanizeLabels:(C=(g=l==null?void 0:l["week-days"])===null||g===void 0?void 0:g.humanizeLabels)!==null&&C!==void 0?C:vn,monthDays:Me,disabled:(y=(P=l==null?void 0:l["week-days"])===null||P===void 0?void 0:P.disabled)!==null&&y!==void 0?y:ee,readOnly:(b=(w=l==null?void 0:l["week-days"])===null||w===void 0?void 0:w.readOnly)!==null&&b!==void 0?b:te,period:Z,periodicityOnDoubleClick:(H=(h=l==null?void 0:l["week-days"])===null||h===void 0?void 0:h.periodicityOnDoubleClick)!==null&&H!==void 0?H:Se,mode:(X=(k=l==null?void 0:l["week-days"])===null||k===void 0?void 0:k.mode)!==null&&X!==void 0?X:je,allowClear:(it=(ot=l==null?void 0:l["week-days"])===null||ot===void 0?void 0:ot.allowClear)!==null&&it!==void 0?it:ge,filterOption:(ut=l==null?void 0:l["week-days"])===null||ut===void 0?void 0:ut.filterOption}),(0,o.jsxs)("div",{children:[Z!=="minute"&&Z!=="hour"&&ye.includes("hours")&&(0,o.jsx)(qn,{value:We,setValue:Le,locale:_,className:J,disabled:(dt=(st=l==null?void 0:l.hours)===null||st===void 0?void 0:st.disabled)!==null&&dt!==void 0?dt:ee,readOnly:(vt=(ct=l==null?void 0:l.hours)===null||ct===void 0?void 0:ct.readOnly)!==null&&vt!==void 0?vt:te,leadingZero:(ft=(pt=l==null?void 0:l.hours)===null||pt===void 0?void 0:pt.leadingZero)!==null&&ft!==void 0?ft:It,clockFormat:bn,period:Z,periodicityOnDoubleClick:(ht=(mt=l==null?void 0:l.hours)===null||mt===void 0?void 0:mt.periodicityOnDoubleClick)!==null&&ht!==void 0?ht:Se,mode:(gt=(yt=l==null?void 0:l.hours)===null||yt===void 0?void 0:yt.mode)!==null&>!==void 0?gt:je,allowClear:(wt=(bt=l==null?void 0:l.hours)===null||bt===void 0?void 0:bt.allowClear)!==null&&wt!==void 0?wt:ge,filterOption:(Ot=l==null?void 0:l.hours)===null||Ot===void 0?void 0:Ot.filterOption}),Z!=="minute"&&ye.includes("minutes")&&(0,o.jsx)(Xn,{value:He,setValue:Ue,locale:_,period:Z,className:J,disabled:(xt=(kt=l==null?void 0:l.minutes)===null||kt===void 0?void 0:kt.disabled)!==null&&xt!==void 0?xt:ee,readOnly:(St=(Ct=l==null?void 0:l.minutes)===null||Ct===void 0?void 0:Ct.readOnly)!==null&&St!==void 0?St:te,leadingZero:(Mt=(jt=l==null?void 0:l.minutes)===null||jt===void 0?void 0:jt.leadingZero)!==null&&Mt!==void 0?Mt:It,clockFormat:bn,periodicityOnDoubleClick:(zt=(Dt=l==null?void 0:l.minutes)===null||Dt===void 0?void 0:Dt.periodicityOnDoubleClick)!==null&&zt!==void 0?zt:Se,mode:(Pt=(Nt=l==null?void 0:l.minutes)===null||Nt===void 0?void 0:Nt.mode)!==null&&Pt!==void 0?Pt:je,allowClear:(Tt=(Et=l==null?void 0:l.minutes)===null||Et===void 0?void 0:Et.allowClear)!==null&&Tt!==void 0?Tt:ge,filterOption:(Rt=l==null?void 0:l.minutes)===null||Rt===void 0?void 0:Rt.filterOption}),Fn]})]})]}))}var ar=function(){var n=(0,ae.useIntl)(),a=(0,u.useRef)(),t=(0,u.useState)(1),r=Pe()(t,2),s=r[0],d=r[1],i=(0,u.useState)(10),c=Pe()(i,2),v=c[0],f=c[1],j=(0,u.useState)("*/5 * * * * ?"),x=Pe()(j,2),z=x[0],p=x[1],m=(0,Hn.u)(function(y){return y.currentOrg}),E=$n(function(y){return{quartzResult:y.quartzResult,updateQuartz:y.updateQuartz,deleteQuartz:y.deleteQuartz,setQuartzResult:y.setQuartzResult}}),T=E.quartzResult,N=E.updateQuartz,B=E.deleteQuartz,Y=E.setQuartzResult,$=(0,u.useState)(!1),I=Pe()($,2),A=I[0],G=I[1],q=function(){G(!0)},Q=function(){G(!1)},U=function(){G(!1)},V=function(){var y=F()(D()().mark(function w(){return D()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:console.log("handleNewJob");case 1:case"end":return h.stop()}},w)}));return function(){return y.apply(this,arguments)}}(),L=function(){var y=F()(D()().mark(function w(){return D()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:console.log("handleNewCron"),q();case 2:case"end":return h.stop()}},w)}));return function(){return y.apply(this,arguments)}}(),ie=function(){var y=F()(D()().mark(function w(b){var h;return D()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return console.log("handleStartJob",b),b.triggerState="started",k.next=4,Vn(b);case 4:h=k.sent,console.log("handleStartJob response",h),h.code===200?(oe.yw.success("\u542F\u52A8\u6210\u529F"),N(h.data)):oe.yw.error("\u542F\u52A8\u5931\u8D25");case 7:case"end":return k.stop()}},w)}));return function(b){return y.apply(this,arguments)}}(),ue=function(){var y=F()(D()().mark(function w(b){var h;return D()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return console.log("handlePauseJob",b),b.triggerState="paused",k.next=4,Zn(b);case 4:h=k.sent,console.log("handlePauseJob response",h),h.code===200?(oe.yw.success("\u6682\u505C\u6210\u529F"),N(h.data)):oe.yw.error("\u6682\u505C\u5931\u8D25");case 7:case"end":return k.stop()}},w)}));return function(b){return y.apply(this,arguments)}}(),O=function(){var y=F()(D()().mark(function w(b){var h;return D()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return console.log("handleResumeJob",b),b.triggerState="resumed",k.next=4,Wn(b);case 4:h=k.sent,console.log("handleResumeJob response",h),h.code===200?(oe.yw.success("\u91CD\u542F\u6210\u529F"),N(h.data)):oe.yw.error("\u91CD\u542F\u5931\u8D25");case 7:case"end":return k.stop()}},w)}));return function(b){return y.apply(this,arguments)}}(),g=function(){var y=F()(D()().mark(function w(b){var h;return D()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return console.log("handleDeleteJob",b),b.triggerState="deleted",k.next=4,Ln(b);case 4:h=k.sent,console.log("handleDeleteJob response",h),h.code===200?(oe.yw.success(n.formatMessage({id:"delete.success",defaultMessage:"Delete success"})),B(h.data)):oe.yw.error(h.message);case 7:case"end":return k.stop()}},w)}));return function(b){return y.apply(this,arguments)}}(),C=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"jobName",copyable:!0},{title:"\u4EFB\u52A1\u7EC4\u540D",dataIndex:"jobGroup",copyable:!0},{title:"\u63CF\u8FF0",dataIndex:"description",copyable:!0},{title:"\u65B9\u6CD5\u540D",dataIndex:"jobMethodName",copyable:!0},{title:"Cron",dataIndex:"cronExpression",copyable:!0},{title:(0,o.jsx)(ae.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"triggerState",copyable:!0},{title:(0,o.jsx)(ae.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0},{title:n.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(w,b,h,H){return[(0,o.jsx)("a",{onClick:function(){var X;H==null||(X=H.startEditable)===null||X===void 0||X.call(H,b.uid)},children:n.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,o.jsx)(ce.ZP,{size:"small",onClick:function(){return ie(b)},children:"\u542F\u52A8"},"start"),(0,o.jsx)(ce.ZP,{size:"small",onClick:function(){return ue(b)},children:"\u505C\u6B62"},"stop"),(0,o.jsx)(ce.ZP,{size:"small",onClick:function(){return O(b)},children:"\u91CD\u542F"},"resume"),(0,o.jsx)(ce.ZP,{size:"small",onClick:function(){return g(b)},children:n.formatMessage({id:"delete",defaultMessage:"Delete"})},"delete")]}}],P=function(){var y=F()(D()().mark(function w(){var b,h;return D()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return b={pageNumber:s-1,pageSize:v,orgUid:m.uid},k.next=3,Qn(b);case 3:h=k.sent,console.log("queryQuartzs response:",b,h),h.code===200?Y(h):oe.yw.error(h.message);case 6:case"end":return k.stop()}},w)}));return function(){return y.apply(this,arguments)}}();return(0,u.useEffect)(function(){P()},[]),(0,u.useEffect)(function(){P()},[s,v]),(0,u.useEffect)(function(){console.log("quartzResult:",T),a.current.reload()},[T]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Gn.Z,{columns:C,actionRef:a,cardBordered:!0,request:function(){var y=F()(D()().mark(function w(b,h,H){return D()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return console.log("request:",b,h,H),d(b.current),f(b.pageSize),X.abrupt("return",Promise.resolve({data:T.data.content,success:!0,total:T.data.totalElements}));case 4:case"end":return X.stop()}},w)}));return function(w,b,h){return y.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{pageSize:v,showQuickJumper:!0,onChange:function(w){console.log("page:",w)}},dateFormatter:"string",headerTitle:"\u5B9A\u65F6\u4EFB\u52A1",toolBarRender:function(){return[(0,o.jsxs)(ce.ZP,{type:"primary",onClick:function(){return V()},children:[(0,o.jsx)(Ht.Z,{}),n.formatMessage({id:"create",defaultMessage:"Create"})]}),(0,o.jsxs)(ce.ZP,{type:"primary",onClick:function(){return L()},children:[(0,o.jsx)(Ht.Z,{}),"Cron"]})]}}),(0,o.jsxs)(Kn.Z,{title:"Cron\u4FEE\u6539\u5668",open:A,onOk:Q,onCancel:U,children:[(0,o.jsx)(rr,{value:z,setValue:p}),(0,o.jsx)("p",{children:z})]})]})},lr=ar,Or=ne.Z.Header,kr=ne.Z.Footer,or=ne.Z.Sider,ir=ne.Z.Content,ur=[{label:(0,o.jsx)(ae.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"},{label:(0,o.jsx)(ae.FormattedMessage,{id:"statistic",defaultMessage:"Statistic"}),key:"statistic"}],sr=function(){var n=(0,we.Z)(),a=n.leftSiderStyle,t=n.contentStyle,r=function(d){console.log("menu click ",d.key)};return(0,o.jsxs)(ne.Z,{children:[(0,o.jsx)(or,{style:a,children:(0,o.jsx)(me.Z,{mode:"inline",onClick:r,defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:ur})}),(0,o.jsx)(ne.Z,{children:(0,o.jsx)(ir,{style:t,children:(0,o.jsx)(lr,{})})})]})},dr=sr},87676:function(Wt,fe,S){S.d(fe,{u:function(){return Oe}});var we=S(85615),ne=S(73445),me=S(782),u=S(18753),Oe=(0,ne.Ue)()((0,me.mW)((0,me.tJ)((0,u.n)(function(D,Ne){return{currentOrg:{uid:"",name:"",description:""},setCurrentOrg:function(ke){D({currentOrg:ke})},deleteOrg:function(){return D({},!0)}}}),{name:we.eRd})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Quartz__index.fca4d630.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Quartz__index.fca4d630.async.js new file mode 100644 index 00000000..d6ae5e8c --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Quartz__index.fca4d630.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3848],{77154:function(e,t,n){var r=n(39825);t.Z=function(){var e=(0,r.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},29771:function(e,t,n){n.r(t),n.d(t,{default:function(){return ge}});var r=n(77154),o=n(21612),a=n(50136),l=n(67294),i=n(15009),u=n.n(i),s=n(99289),c=n.n(s),d=n(5574),p=n.n(d),f=n(80049),v=n(97857),m=n.n(v),h=n(85615),y=n(86745);function g(e){return b.apply(this,arguments)}function b(){return(b=c()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,y.request)("/api/v1/quartz/org",{method:"GET",params:m()(m()({},t),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e){return x.apply(this,arguments)}function x(){return(x=c()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,y.request)("/api/v1/quartz/startJob",{method:"POST",data:m()(m()({},t),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e){return O.apply(this,arguments)}function O(){return(O=c()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,y.request)("/api/v1/quartz/pauseJob",{method:"POST",data:m()(m()({},t),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return C.apply(this,arguments)}function C(){return(C=c()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,y.request)("/api/v1/quartz/resumeJob",{method:"POST",data:m()(m()({},t),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(e){return S.apply(this,arguments)}function S(){return(S=c()(u()().mark((function e(t){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,y.request)("/api/v1/quartz/deleteJob",{method:"POST",data:m()(m()({},t),{},{client:h.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var N=n(87676),D=n(73445),P=n(782),z=n(18753),F=(0,D.Ue)()((0,P.mW)((0,P.tJ)((0,z.n)((function(e,t){return{quartzResult:{data:{content:[]}},updateQuartz:function(n){var r=t().quartzResult.data.content,o=r.findIndex((function(e){return e.uid===n.uid}));-1!==o?r[o]=n:r.unshift(n),e({quartzResult:{data:{content:r}}})},deleteQuartz:function(n){var r=t().quartzResult.data.content,o=r.findIndex((function(e){return e.uid===n.uid}));-1!==o&&r.splice(o,1),e({quartzResult:{data:{content:r}}})},setQuartzResult:function(t){e({quartzResult:t})},deleteQuartzCache:function(){return e({},!0)}}})),{name:h.wAM}))),E=n(51042),A=n(74190),V=n(14726),Z=n(85576),I=n(85893),R=n(17759),J=function(){return J=Object.assign||function(e){for(var t,n=1,r=arguments.length;n2)throw new Error('Invalid value "'.concat(e,' for "').concat(t.type,'"'));var a=o[0],l=o[1];r="*"===a?Q(t.min,t.max):function(e,t,n){var r=e.split("-");if(1===r.length){var o=G(r[0]);if(isNaN(o))throw new Error('Invalid value "'.concat(t,'" for ').concat(n.type));return[o]}if(2===r.length){var a=G(r[0]),l=G(r[1]);if(isNaN(a)||isNaN(l))throw new Error('Invalid value "'.concat(t,'" for ').concat(n.type));if(l0?"year":e[2].length>0?"month":e[4].length>0?"week":e[1].length>0?"day":e[0].length>0?"hour":"minute"}(h);f(y),u(h[0]),s(h[1]),c(h[2]),d(h[3]),p(h[4])}catch(e){v=!0}}v&&(o.current=e,t(!0),_(n,l))}function X(e,t,n,r,o,a,l,i){if("reboot"===e)return"@reboot";var u=function(e,t,n){return e.map((function(e,r){var o,a=H[r],l=te(e,a),i=null==n?void 0:n[a.type];return $(l,a,null!==(o=null==i?void 0:i.humanizeValue)&&void 0!==o?o:t)}))}(["minute"!==e&&a?a:[],"minute"!==e&&"hour"!==e&&o?o:[],"year"!==e&&"month"!==e||!n?[]:n,"year"===e&&t?t:[],"year"!==e&&"month"!==e&&"week"!==e||!r?[]:r],l,i);return u.join(" ")}function $(e,t,n,r,o){var a="";if(function(e,t){return e.length===t.max-t.min+1}(e,t)||0===e.length)a="*";else{var l=function(e){if(e.length>2){var t=e[1]-e[0];if(t>1)return t}}(e);a=l&&function(e,t){for(var n=1;nt.max&&a)}(e,t,l)?"*/".concat(l):"".concat(ee(oe(e),t,n,r,o),"-").concat(ee(ae(e),t,n,r,o),"/").concat(l):function(e){var t=[],n=null;return e.forEach((function(e,r,o){e!==o[r+1]-1?null!==n?(t.push([n,e]),n=null):t.push(e):null===n&&(n=e)})),t}(e).map((function(e){return Array.isArray(e)?"".concat(ee(e[0],t,n,r,o),"-").concat(ee(e[1],t,n,r,o)):ee(e,t,n,r,o)})).join(",")}return a}function ee(e,t,n,r,o){var a=e.toString(),l=t.type,i=t.alt,u=t.min,s=r&&(!0===r||r.includes(l)),c="24-hour-clock"===o&&("hours"===l||"minutes"===l);if(n&&"week-days"===l||n&&"months"===l?a=i[e-u]:e<10&&(s||c)&&(a=a.padStart(2,"0")),"hours"===l&&"12-hour-clock"===o){var d=e>=12?"PM":"AM",p=e%12||12;p<10&&s&&(p=p.toString().padStart(2,"0")),a="".concat(p).concat(d)}return a}function te(e,t){var n=U(B(ne(e,t)));if(0===n.length)return n;var r=re(n,t);if(void 0!==r)throw new Error('Value "'.concat(r,'" out of range for ').concat(t.type));return n}function ne(e,t){return"week-days"===t.type&&(e=e.map((function(e){return 7===e?0:e}))),e}function re(e,t){var n=e[0],r=e[e.length-1];return nt.max?r:void 0}function oe(e){return e[0]}function ae(e){return e[e.length-1]}Object.freeze({__proto__:null,setValuesFromCronString:K,getCronStringFromValues:X,partToString:$,formatValue:ee,parsePartArray:te});function le(e){var t=e.value,n=e.grid,r=void 0===n||n,o=e.optionsList,a=e.setValue,i=e.locale,u=e.className,s=e.humanizeLabels,c=e.disabled,d=e.readOnly,p=e.leadingZero,f=e.clockFormat,v=e.period,m=e.unit,h=e.periodicityOnDoubleClick,y=e.mode,g=e.allowClear,b=e.filterOption,w=void 0===b?function(){return!0}:b,x=T(e,["value","grid","optionsList","setValue","locale","className","humanizeLabels","disabled","readOnly","leadingZero","clockFormat","period","unit","periodicityOnDoubleClick","mode","allowClear","filterOption"]),k=(0,l.useMemo)((function(){if(t&&Array.isArray(t))return t.map((function(e){return e.toString()}))}),[t]),O=(0,l.useMemo)((function(){return o?o.map((function(e,t){return{value:(0===m.min?t:t+1).toString(),label:e}})).filter(w):W([],Array(m.total),!0).map((function(e,t){var n=0===m.min?t:t+1;return{value:n.toString(),label:ee(n,m,s,p,f)}})).filter(w)}),[o,p,s,f]),j=JSON.stringify(i),C=(0,l.useCallback)((function(e){var n=e.value;if(!t||t[0]!==Number(n))return(0,I.jsx)(I.Fragment,{});var r=$(te(t,m),m,s,p,f),o=r.match(/^\*\/([0-9]+),?/)||[];return(0,I.jsx)("div",{children:o[1]?"".concat(i.everyText||L.everyText," ").concat(o[1]):r})}),[t,j,s,p,f]),M=(0,l.useCallback)((function(e){var n=Array.isArray(e)?U(e):[e],r=n;t&&(r="single"===y?[]:W([],t,!0),n.forEach((function(e){var n=Number(e);r=t.some((function(e){return e===n}))?r.filter((function(e){return e!==n})):U(W(W([],r,!0),[n],!1))}))),r.length===m.total?a([]):a(r)}),[a,t]),S=(0,l.useCallback)((function(e){if(0!==e&&1!==e){for(var n=m.total+m.min,r=[],o=m.min;o1&&t[t.length-1].time-t[t.length-2].time<300?t[t.length-1].value===t[t.length-2].value?S(Number(e)):M([t[t.length-2].value,t[t.length-1].value]):M(Number(e)),N.current=[]}),300);return function(){window.clearTimeout(n)}}}),[N,M,S,d,h]),P=(0,l.useCallback)((function(){d||a([])}),[a,d]),z=(0,l.useMemo)((function(){var e;return Y(((e={"react-js-cron-select":!0,"react-js-cron-custom-select":!0})["".concat(u,"-select")]=!!u,e))}),[u]),F=(0,l.useMemo)((function(){var e;return Y(((e={"react-js-cron-select-dropdown":!0})["react-js-cron-select-dropdown-".concat(m.type)]=!0,e["react-js-cron-custom-select-dropdown"]=!0,e["react-js-cron-custom-select-dropdown-".concat(m.type)]=!0,e["react-js-cron-custom-select-dropdown-minutes-large"]="minutes"===m.type&&"hour"!==v&&"day"!==v,e["react-js-cron-custom-select-dropdown-minutes-medium"]="minutes"===m.type&&("day"===v||"hour"===v),e["react-js-cron-custom-select-dropdown-hours-twelve-hour-clock"]="hours"===m.type&&"12-hour-clock"===f,e["react-js-cron-custom-select-dropdown-grid"]=!!r,e["".concat(u,"-select-dropdown")]=!!u,e["".concat(u,"-select-dropdown-").concat(m.type)]=!!u,e))}),[u,r,f,v]);return(0,I.jsx)(R.default,J({mode:"single"!==y||h?"multiple":void 0,allowClear:null!=g?g:!d,virtual:!1,open:!d&&void 0,value:k,onClear:P,tagRender:C,className:z,popupClassName:F,options:O,showSearch:!1,suffixIcon:d?null:void 0,menuItemSelectedIcon:null,popupMatchSelectWidth:!1,onSelect:D,onDeselect:D,disabled:c,dropdownAlign:"minutes"!==m.type&&"hours"!==m.type||"day"===v||"hour"===v?void 0:{points:["tr","br"]},"data-testid":"custom-select-".concat(m.type)},x))}function ie(e){var t=e.value,n=e.setValue,r=e.locale,o=e.className,a=e.disabled,i=e.readOnly,u=e.leadingZero,s=e.clockFormat,c=e.period,d=e.periodicityOnDoubleClick,p=e.mode,f=e.allowClear,v=e.filterOption,m=(0,l.useMemo)((function(){var e;return Y(((e={"react-js-cron-field":!0,"react-js-cron-hours":!0})["".concat(o,"-field")]=!!o,e["".concat(o,"-hours")]=!!o,e))}),[o]);return(0,I.jsxs)("div",J({className:m},{children:[""!==r.prefixHours&&(0,I.jsx)("span",{children:r.prefixHours||L.prefixHours}),(0,I.jsx)(le,{placeholder:r.emptyHours||L.emptyHours,value:t,unit:H[1],setValue:n,locale:r,className:o,disabled:a,readOnly:i,leadingZero:u,clockFormat:s,period:c,periodicityOnDoubleClick:d,mode:p,allowClear:f,filterOption:v})]}))}function ue(e){var t=e.value,n=e.setValue,r=e.locale,o=e.className,a=e.disabled,i=e.readOnly,u=e.leadingZero,s=e.clockFormat,c=e.period,d=e.periodicityOnDoubleClick,p=e.mode,f=e.allowClear,v=e.filterOption,m=(0,l.useMemo)((function(){var e;return Y(((e={"react-js-cron-field":!0,"react-js-cron-minutes":!0})["".concat(o,"-field")]=!!o,e["".concat(o,"-minutes")]=!!o,e))}),[o]);return(0,I.jsxs)("div",J({className:m},{children:["hour"===c?""!==r.prefixMinutesForHourPeriod&&(0,I.jsx)("span",{children:r.prefixMinutesForHourPeriod||L.prefixMinutesForHourPeriod}):""!==r.prefixMinutes&&(0,I.jsx)("span",{children:r.prefixMinutes||L.prefixMinutes}),(0,I.jsx)(le,{placeholder:"hour"===c?r.emptyMinutesForHourPeriod||L.emptyMinutesForHourPeriod:r.emptyMinutes||L.emptyMinutes,value:t,unit:H[0],setValue:n,locale:r,className:o,disabled:a,readOnly:i,leadingZero:u,clockFormat:s,period:c,periodicityOnDoubleClick:d,mode:p,allowClear:f,filterOption:v}),"hour"===c&&""!==r.suffixMinutesForHourPeriod&&(0,I.jsx)("span",{children:r.suffixMinutesForHourPeriod||L.suffixMinutesForHourPeriod})]}))}function se(e){var t=e.value,n=e.setValue,r=e.locale,o=e.className,a=e.weekDays,i=e.disabled,u=e.readOnly,s=e.leadingZero,c=e.period,d=e.periodicityOnDoubleClick,p=e.mode,f=e.allowClear,v=e.filterOption,m=!a||0===a.length,h=(0,l.useMemo)((function(){var e;return Y(((e={"react-js-cron-field":!0,"react-js-cron-month-days":!0,"react-js-cron-month-days-placeholder":!m})["".concat(o,"-field")]=!!o,e["".concat(o,"-month-days")]=!!o,e))}),[o,m]),y=JSON.stringify(r),g=(0,l.useMemo)((function(){return m?r.emptyMonthDays||L.emptyMonthDays:r.emptyMonthDaysShort||L.emptyMonthDaysShort}),[m,y]);return u&&!(t&&t.length>0)&&(t&&0!==t.length||a&&0!==a.length)?null:(0,I.jsxs)("div",J({className:h},{children:[""!==r.prefixMonthDays&&(0,I.jsx)("span",{children:r.prefixMonthDays||L.prefixMonthDays}),(0,I.jsx)(le,{placeholder:g,value:t,setValue:n,unit:H[2],locale:r,className:o,disabled:i,readOnly:u,leadingZero:s,period:c,periodicityOnDoubleClick:d,mode:p,allowClear:f,filterOption:v})]}))}function ce(e){var t=e.value,n=e.setValue,r=e.locale,o=e.className,a=e.humanizeLabels,i=e.disabled,u=e.readOnly,s=e.period,c=e.periodicityOnDoubleClick,d=e.mode,p=e.allowClear,f=e.filterOption,v=r.months||L.months,m=(0,l.useMemo)((function(){var e;return Y(((e={"react-js-cron-field":!0,"react-js-cron-months":!0})["".concat(o,"-field")]=!!o,e["".concat(o,"-months")]=!!o,e))}),[o]);return(0,I.jsxs)("div",J({className:m},{children:[""!==r.prefixMonths&&(0,I.jsx)("span",{children:r.prefixMonths||L.prefixMonths}),(0,I.jsx)(le,{placeholder:r.emptyMonths||L.emptyMonths,optionsList:v,grid:!1,value:t,unit:J(J({},H[3]),{alt:r.altMonths||L.altMonths}),setValue:n,locale:r,className:o,humanizeLabels:a,disabled:i,readOnly:u,period:s,periodicityOnDoubleClick:c,mode:d,allowClear:p,filterOption:f})]}))}function de(e){var t=e.value,n=e.setValue,r=e.locale,o=e.className,a=e.disabled,i=e.readOnly,u=e.shortcuts,s=e.allowedPeriods,c=e.allowClear,d=[];s.includes("year")&&d.push({value:"year",label:r.yearOption||L.yearOption}),s.includes("month")&&d.push({value:"month",label:r.monthOption||L.monthOption}),s.includes("week")&&d.push({value:"week",label:r.weekOption||L.weekOption}),s.includes("day")&&d.push({value:"day",label:r.dayOption||L.dayOption}),s.includes("hour")&&d.push({value:"hour",label:r.hourOption||L.hourOption}),s.includes("minute")&&d.push({value:"minute",label:r.minuteOption||L.minuteOption}),s.includes("reboot")&&u&&(!0===u||u.includes("@reboot"))&&d.push({value:"reboot",label:r.rebootOption||L.rebootOption});var p=(0,l.useCallback)((function(e){i||n(e)}),[n,i]),f=(0,l.useMemo)((function(){var e;return Y(((e={"react-js-cron-field":!0,"react-js-cron-period":!0})["".concat(o,"-field")]=!!o,e["".concat(o,"-period")]=!!o,e))}),[o]),v=(0,l.useMemo)((function(){var e;return Y(((e={"react-js-cron-select":!0,"react-js-cron-select-no-prefix":""===r.prefixPeriod})["".concat(o,"-select")]=!!o,e))}),[o,r.prefixPeriod]),m=(0,l.useMemo)((function(){var e;return Y(((e={"react-js-cron-select-dropdown":!0,"react-js-cron-select-dropdown-period":!0})["".concat(o,"-select-dropdown")]=!!o,e["".concat(o,"-select-dropdown-period")]=!!o,e))}),[o]);return(0,I.jsxs)("div",J({className:f},{children:[""!==r.prefixPeriod&&(0,I.jsx)("span",{children:r.prefixPeriod||L.prefixPeriod}),(0,I.jsx)(R.default,{defaultValue:t,value:t,onChange:p,options:d,className:v,popupClassName:m,disabled:a,suffixIcon:i?null:void 0,open:!i&&void 0,"data-testid":"select-period",allowClear:c},JSON.stringify(r))]}))}function pe(e){var t=e.value,n=e.setValue,r=e.locale,o=e.className,a=e.humanizeLabels,i=e.monthDays,u=e.disabled,s=e.readOnly,c=e.period,d=e.periodicityOnDoubleClick,p=e.mode,f=e.allowClear,v=e.filterOption,m=r.weekDays||L.weekDays,h="week"===c||!i||0===i.length,y=(0,l.useMemo)((function(){var e;return Y(((e={"react-js-cron-field":!0,"react-js-cron-week-days":!0,"react-js-cron-week-days-placeholder":!h})["".concat(o,"-field")]=!!o,e["".concat(o,"-week-days")]=!!o,e))}),[o,h]),g=JSON.stringify(r),b=(0,l.useMemo)((function(){return h?r.emptyWeekDays||L.emptyWeekDays:r.emptyWeekDaysShort||L.emptyWeekDaysShort}),[h,g]),w="week"===c||!s||t&&t.length>0||(!t||0===t.length)&&(!i||0===i.length),x=!s||i&&i.length>0||(!i||0===i.length)&&(!t||0===t.length);return w?(0,I.jsxs)("div",J({className:y},{children:[""!==r.prefixWeekDays&&("week"===c||!x)&&(0,I.jsx)("span",{children:r.prefixWeekDays||L.prefixWeekDays}),""!==r.prefixWeekDaysForMonthAndYearPeriod&&"week"!==c&&x&&(0,I.jsx)("span",{children:r.prefixWeekDaysForMonthAndYearPeriod||L.prefixWeekDaysForMonthAndYearPeriod}),(0,I.jsx)(le,{placeholder:b,optionsList:m,grid:!1,value:t,unit:J(J({},H[4]),{alt:r.altWeekDays||L.altWeekDays}),setValue:n,locale:r,className:o,humanizeLabels:a,disabled:u,readOnly:s,period:c,periodicityOnDoubleClick:d,mode:p,allowClear:f,filterOption:v})]})):null}function fe(e){var t,n,r,o,a,i,u,s,c,d,p,f,v,m,h,y,g,b,w,x,k,O,j,C,M,S,N,D,P,z,F,E,A,Z,R,W,q,H,Q,U,B,G,$,ee,te,ne,re,oe,ae,le,fe,ve,me,he,ye,ge,be,we,xe,ke,Oe,je,Ce,Me,Se,Ne,De,Pe,ze,Fe,Ee,Ae,Ve,Ze=e.clearButton,Ie=void 0===Ze||Ze,Re=e.clearButtonProps,Je=void 0===Re?{}:Re,Te=e.clearButtonAction,We=void 0===Te?"fill-with-every":Te,qe=e.locale,He=void 0===qe?L:qe,Le=e.value,Qe=void 0===Le?"":Le,Ue=e.setValue,Be=e.displayError,Ye=void 0===Be||Be,_e=e.onError,Ge=e.className,Ke=e.defaultPeriod,Xe=void 0===Ke?"day":Ke,$e=e.allowEmpty,et=void 0===$e?"for-default-value":$e,tt=e.humanizeLabels,nt=void 0===tt||tt,rt=e.humanizeValue,ot=void 0!==rt&&rt,at=e.disabled,lt=void 0!==at&&at,it=e.readOnly,ut=void 0!==it&&it,st=e.leadingZero,ct=void 0!==st&&st,dt=e.shortcuts,pt=void 0===dt?["@yearly","@annually","@monthly","@weekly","@daily","@midnight","@hourly"]:dt,ft=e.clockFormat,vt=e.periodicityOnDoubleClick,mt=void 0===vt||vt,ht=e.mode,yt=void 0===ht?"multiple":ht,gt=e.allowedDropdowns,bt=void 0===gt?["period","months","month-days","week-days","hours","minutes"]:gt,wt=e.allowedPeriods,xt=void 0===wt?["year","month","week","day","hour","minute","reboot"]:wt,kt=e.allowClear,Ot=e.dropdownsConfig,jt=(0,l.useRef)(Qe),Ct=(0,l.useRef)(Xe),Mt=(0,l.useState)(),St=Mt[0],Nt=Mt[1],Dt=(0,l.useState)(),Pt=Dt[0],zt=Dt[1],Ft=(0,l.useState)(),Et=Ft[0],At=Ft[1],Vt=(0,l.useState)(),Zt=Vt[0],It=Vt[1],Rt=(0,l.useState)(),Jt=Rt[0],Tt=Rt[1],Wt=(0,l.useState)(),qt=Wt[0],Ht=Wt[1],Lt=(0,l.useState)(!1),Qt=Lt[0],Ut=Lt[1],Bt=(0,l.useState)(!1),Yt=Bt[0],_t=Bt[1],Gt=(Ae=Yt,Ve=(0,l.useRef)(Ae),(0,l.useEffect)((function(){Ve.current=Ae}),[Ae]),Ve.current),Kt=JSON.stringify(He);(0,l.useEffect)((function(){K(Qe,Ut,_e,et,jt,!0,He,pt,Ht,Tt,zt,At,It,Nt)}),[]),(0,l.useEffect)((function(){Qe!==jt.current&&K(Qe,Ut,_e,et,jt,!1,He,pt,Ht,Tt,zt,At,It,Nt)}),[Qe,jt,Kt,et,pt]),(0,l.useEffect)((function(){if(!(St||qt||Et||Pt||Zt||Jt)||Yt||Gt)Yt&&_t(!1);else{var e=St||Ct.current,t=X(e,Et,Pt,Zt,Jt,qt,ot,Ot);Ue(t,{selectedPeriod:e}),jt.current=t,_e&&_e(void 0),Ut(!1)}}),[St,Pt,Et,Zt,Jt,qt,ot,Yt,Ot]);var Xt=(0,l.useCallback)((function(){zt(void 0),At(void 0),It(void 0),Tt(void 0),Ht(void 0);var e="",t="reboot"!==St&&St?St:Ct.current;t!==St&&Nt(t),"fill-with-every"===We&&(e=X(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0)),Ue(e,{selectedPeriod:t}),jt.current=e,_t(!0),"never"===et&&"empty"===We?(Ut(!0),_(_e,He)):(_e&&_e(void 0),Ut(!1))}),[St,Ue,_e,We]),$t=(0,l.useMemo)((function(){var e;return Y(((e={"react-js-cron":!0,"react-js-cron-error":Qt&&Ye,"react-js-cron-disabled":lt,"react-js-cron-read-only":ut})["".concat(Ge)]=!!Ge,e["".concat(Ge,"-error")]=Qt&&Ye&&!!Ge,e["".concat(Ge,"-disabled")]=lt&&!!Ge,e["".concat(Ge,"-read-only")]=ut&&!!Ge,e))}),[Ge,Qt,Ye,lt,ut]),en=Je.className,tn=T(Je,["className"]),nn=(0,l.useMemo)((function(){var e;return Y(((e={"react-js-cron-clear-button":!0})["".concat(Ge,"-clear-button")]=!!Ge,e["".concat(en)]=!!en,e))}),[Ge,en]),rn=JSON.stringify(tn),on=(0,l.useMemo)((function(){return Ie&&!ut?(0,I.jsx)(V.ZP,J({className:nn,danger:!0,type:"primary",disabled:lt},tn,{onClick:Xt},{children:He.clearButtonText||L.clearButtonText})):null}),[Ie,ut,Kt,nn,lt,rn,Xt]),an=St||Ct.current;return(0,I.jsxs)("div",J({className:$t},{children:[bt.includes("period")&&(0,I.jsx)(de,{value:an,setValue:Nt,locale:He,className:Ge,disabled:null!==(n=null===(t=null==Ot?void 0:Ot.period)||void 0===t?void 0:t.disabled)&&void 0!==n?n:lt,readOnly:null!==(o=null===(r=null==Ot?void 0:Ot.period)||void 0===r?void 0:r.readOnly)&&void 0!==o?o:ut,shortcuts:pt,allowedPeriods:xt,allowClear:null!==(i=null===(a=null==Ot?void 0:Ot.period)||void 0===a?void 0:a.allowClear)&&void 0!==i?i:kt}),"reboot"===an?on:(0,I.jsxs)(I.Fragment,{children:["year"===an&&bt.includes("months")&&(0,I.jsx)(ce,{value:Et,setValue:At,locale:He,className:Ge,humanizeLabels:null!==(s=null===(u=null==Ot?void 0:Ot.months)||void 0===u?void 0:u.humanizeLabels)&&void 0!==s?s:nt,disabled:null!==(d=null===(c=null==Ot?void 0:Ot.months)||void 0===c?void 0:c.disabled)&&void 0!==d?d:lt,readOnly:null!==(f=null===(p=null==Ot?void 0:Ot.months)||void 0===p?void 0:p.readOnly)&&void 0!==f?f:ut,period:an,periodicityOnDoubleClick:null!==(m=null===(v=null==Ot?void 0:Ot.months)||void 0===v?void 0:v.periodicityOnDoubleClick)&&void 0!==m?m:mt,mode:null!==(y=null===(h=null==Ot?void 0:Ot.months)||void 0===h?void 0:h.mode)&&void 0!==y?y:yt,allowClear:null!==(b=null===(g=null==Ot?void 0:Ot.months)||void 0===g?void 0:g.allowClear)&&void 0!==b?b:kt,filterOption:null===(w=null==Ot?void 0:Ot.months)||void 0===w?void 0:w.filterOption}),("year"===an||"month"===an)&&bt.includes("month-days")&&(0,I.jsx)(se,{value:Pt,setValue:zt,locale:He,className:Ge,weekDays:Zt,disabled:null!==(k=null===(x=null==Ot?void 0:Ot["month-days"])||void 0===x?void 0:x.disabled)&&void 0!==k?k:lt,readOnly:null!==(j=null===(O=null==Ot?void 0:Ot["month-days"])||void 0===O?void 0:O.readOnly)&&void 0!==j?j:ut,leadingZero:null!==(M=null===(C=null==Ot?void 0:Ot["month-days"])||void 0===C?void 0:C.leadingZero)&&void 0!==M?M:ct,period:an,periodicityOnDoubleClick:null!==(N=null===(S=null==Ot?void 0:Ot["month-days"])||void 0===S?void 0:S.periodicityOnDoubleClick)&&void 0!==N?N:mt,mode:null!==(P=null===(D=null==Ot?void 0:Ot["month-days"])||void 0===D?void 0:D.mode)&&void 0!==P?P:yt,allowClear:null!==(F=null===(z=null==Ot?void 0:Ot["month-days"])||void 0===z?void 0:z.allowClear)&&void 0!==F?F:kt,filterOption:null===(E=null==Ot?void 0:Ot["month-days"])||void 0===E?void 0:E.filterOption}),("year"===an||"month"===an||"week"===an)&&bt.includes("week-days")&&(0,I.jsx)(pe,{value:Zt,setValue:It,locale:He,className:Ge,humanizeLabels:null!==(Z=null===(A=null==Ot?void 0:Ot["week-days"])||void 0===A?void 0:A.humanizeLabels)&&void 0!==Z?Z:nt,monthDays:Pt,disabled:null!==(W=null===(R=null==Ot?void 0:Ot["week-days"])||void 0===R?void 0:R.disabled)&&void 0!==W?W:lt,readOnly:null!==(H=null===(q=null==Ot?void 0:Ot["week-days"])||void 0===q?void 0:q.readOnly)&&void 0!==H?H:ut,period:an,periodicityOnDoubleClick:null!==(U=null===(Q=null==Ot?void 0:Ot["week-days"])||void 0===Q?void 0:Q.periodicityOnDoubleClick)&&void 0!==U?U:mt,mode:null!==(G=null===(B=null==Ot?void 0:Ot["week-days"])||void 0===B?void 0:B.mode)&&void 0!==G?G:yt,allowClear:null!==(ee=null===($=null==Ot?void 0:Ot["week-days"])||void 0===$?void 0:$.allowClear)&&void 0!==ee?ee:kt,filterOption:null===(te=null==Ot?void 0:Ot["week-days"])||void 0===te?void 0:te.filterOption}),(0,I.jsxs)("div",{children:["minute"!==an&&"hour"!==an&&bt.includes("hours")&&(0,I.jsx)(ie,{value:Jt,setValue:Tt,locale:He,className:Ge,disabled:null!==(re=null===(ne=null==Ot?void 0:Ot.hours)||void 0===ne?void 0:ne.disabled)&&void 0!==re?re:lt,readOnly:null!==(ae=null===(oe=null==Ot?void 0:Ot.hours)||void 0===oe?void 0:oe.readOnly)&&void 0!==ae?ae:ut,leadingZero:null!==(fe=null===(le=null==Ot?void 0:Ot.hours)||void 0===le?void 0:le.leadingZero)&&void 0!==fe?fe:ct,clockFormat:ft,period:an,periodicityOnDoubleClick:null!==(me=null===(ve=null==Ot?void 0:Ot.hours)||void 0===ve?void 0:ve.periodicityOnDoubleClick)&&void 0!==me?me:mt,mode:null!==(ye=null===(he=null==Ot?void 0:Ot.hours)||void 0===he?void 0:he.mode)&&void 0!==ye?ye:yt,allowClear:null!==(be=null===(ge=null==Ot?void 0:Ot.hours)||void 0===ge?void 0:ge.allowClear)&&void 0!==be?be:kt,filterOption:null===(we=null==Ot?void 0:Ot.hours)||void 0===we?void 0:we.filterOption}),"minute"!==an&&bt.includes("minutes")&&(0,I.jsx)(ue,{value:qt,setValue:Ht,locale:He,period:an,className:Ge,disabled:null!==(ke=null===(xe=null==Ot?void 0:Ot.minutes)||void 0===xe?void 0:xe.disabled)&&void 0!==ke?ke:lt,readOnly:null!==(je=null===(Oe=null==Ot?void 0:Ot.minutes)||void 0===Oe?void 0:Oe.readOnly)&&void 0!==je?je:ut,leadingZero:null!==(Me=null===(Ce=null==Ot?void 0:Ot.minutes)||void 0===Ce?void 0:Ce.leadingZero)&&void 0!==Me?Me:ct,clockFormat:ft,periodicityOnDoubleClick:null!==(Ne=null===(Se=null==Ot?void 0:Ot.minutes)||void 0===Se?void 0:Se.periodicityOnDoubleClick)&&void 0!==Ne?Ne:mt,mode:null!==(Pe=null===(De=null==Ot?void 0:Ot.minutes)||void 0===De?void 0:De.mode)&&void 0!==Pe?Pe:yt,allowClear:null!==(Fe=null===(ze=null==Ot?void 0:Ot.minutes)||void 0===ze?void 0:ze.allowClear)&&void 0!==Fe?Fe:kt,filterOption:null===(Ee=null==Ot?void 0:Ot.minutes)||void 0===Ee?void 0:Ee.filterOption}),on]})]})]}))}var ve=function(){var e=(0,y.useIntl)(),t=(0,l.useRef)(),n=(0,l.useState)(1),r=p()(n,2),o=r[0],a=r[1],i=(0,l.useState)(10),s=p()(i,2),d=s[0],v=s[1],m=(0,l.useState)("*/5 * * * * ?"),h=p()(m,2),b=h[0],x=h[1],O=(0,N.u)((function(e){return e.currentOrg})),C=F((function(e){return{quartzResult:e.quartzResult,updateQuartz:e.updateQuartz,deleteQuartz:e.deleteQuartz,setQuartzResult:e.setQuartzResult}})),S=C.quartzResult,D=C.updateQuartz,P=C.deleteQuartz,z=C.setQuartzResult,R=(0,l.useState)(!1),J=p()(R,2),T=J[0],W=J[1],q=function(){var e=c()(u()().mark((function e(){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleNewJob");case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=function(){var e=c()(u()().mark((function e(){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleNewCron"),W(!0);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),L=function(){var e=c()(u()().mark((function e(t){var n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("handleStartJob",t),t.triggerState="started",e.next=4,w(t);case 4:n=e.sent,console.log("handleStartJob response",n),200===n.code?(f.yw.success("启动成功"),D(n.data)):f.yw.error("启动失败");case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Q=function(){var e=c()(u()().mark((function e(t){var n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("handlePauseJob",t),t.triggerState="paused",e.next=4,k(t);case 4:n=e.sent,console.log("handlePauseJob response",n),200===n.code?(f.yw.success("暂停成功"),D(n.data)):f.yw.error("暂停失败");case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),U=function(){var e=c()(u()().mark((function e(t){var n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("handleResumeJob",t),t.triggerState="resumed",e.next=4,j(t);case 4:n=e.sent,console.log("handleResumeJob response",n),200===n.code?(f.yw.success("重启成功"),D(n.data)):f.yw.error("重启失败");case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),B=function(){var t=c()(u()().mark((function t(n){var r;return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("handleDeleteJob",n),n.triggerState="deleted",t.next=4,M(n);case 4:r=t.sent,console.log("handleDeleteJob response",r),200===r.code?(f.yw.success(e.formatMessage({id:"delete.success",defaultMessage:"Delete success"})),P(r.data)):f.yw.error(r.message);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Y=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"任务名称",dataIndex:"jobName",copyable:!0},{title:"任务组名",dataIndex:"jobGroup",copyable:!0},{title:"描述",dataIndex:"description",copyable:!0},{title:"方法名",dataIndex:"jobMethodName",copyable:!0},{title:"Cron",dataIndex:"cronExpression",copyable:!0},{title:(0,I.jsx)(y.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"triggerState",copyable:!0},{title:(0,I.jsx)(y.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0},{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(t,n,r,o){return[(0,I.jsx)("a",{onClick:function(){var e;null==o||null===(e=o.startEditable)||void 0===e||e.call(o,n.uid)},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,I.jsx)(V.ZP,{size:"small",onClick:function(){return L(n)},children:"启动"},"start"),(0,I.jsx)(V.ZP,{size:"small",onClick:function(){return Q(n)},children:"停止"},"stop"),(0,I.jsx)(V.ZP,{size:"small",onClick:function(){return U(n)},children:"重启"},"resume"),(0,I.jsx)(V.ZP,{size:"small",onClick:function(){return B(n)},children:e.formatMessage({id:"delete",defaultMessage:"Delete"})},"delete")]}}],_=function(){var e=c()(u()().mark((function e(){var t,n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={pageNumber:o-1,pageSize:d,orgUid:O.uid},e.next=3,g(t);case 3:n=e.sent,console.log("queryQuartzs response:",t,n),200===n.code?z(n):f.yw.error(n.message);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,l.useEffect)((function(){_()}),[]),(0,l.useEffect)((function(){_()}),[o,d]),(0,l.useEffect)((function(){console.log("quartzResult:",S),t.current.reload()}),[S]),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(A.Z,{columns:Y,actionRef:t,cardBordered:!0,request:function(){var e=c()(u()().mark((function e(t,n,r){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("request:",t,n,r),a(t.current),v(t.pageSize),e.abrupt("return",Promise.resolve({data:S.data.content,success:!0,total:S.data.totalElements}));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{pageSize:d,showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"定时任务",toolBarRender:function(){return[(0,I.jsxs)(V.ZP,{type:"primary",onClick:function(){return q()},children:[(0,I.jsx)(E.Z,{}),e.formatMessage({id:"create",defaultMessage:"Create"})]}),(0,I.jsxs)(V.ZP,{type:"primary",onClick:function(){return H()},children:[(0,I.jsx)(E.Z,{}),"Cron"]})]}}),(0,I.jsxs)(Z.Z,{title:"Cron修改器",open:T,onOk:function(){W(!1)},onCancel:function(){W(!1)},children:[(0,I.jsx)(fe,{value:b,setValue:x}),(0,I.jsx)("p",{children:b})]})]})},me=(o.Z.Header,o.Z.Footer,o.Z.Sider),he=o.Z.Content,ye=[{label:(0,I.jsx)(y.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"},{label:(0,I.jsx)(y.FormattedMessage,{id:"statistic",defaultMessage:"Statistic"}),key:"statistic"}],ge=function(){var e=(0,r.Z)(),t=e.leftSiderStyle,n=e.contentStyle;return(0,I.jsxs)(o.Z,{children:[(0,I.jsx)(me,{style:t,children:(0,I.jsx)(a.Z,{mode:"inline",onClick:function(e){console.log("menu click ",e.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:ye})}),(0,I.jsx)(o.Z,{children:(0,I.jsx)(he,{style:n,children:(0,I.jsx)(ve,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__MessageStatistic.7b20d210.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__MessageStatistic.7b20d210.async.js deleted file mode 100644 index 62bdea30..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__MessageStatistic.7b20d210.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8523],{17167:function(i,a,n){var c=n(85615),s=n(86745),e=n(85893),_=function(){var t=(0,s.useAccess)();return t.canDebug&&console.log("Developing canDebug"),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(s.Access,{accessible:t.canDebug(),fallback:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(s.FormattedMessage,{id:c.h5w})}),children:"can debug"})})};a.Z=_},91711:function(i,a,n){n.r(a);var c=n(17167),s=n(85893),e=function(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.Z,{})})};a.default=e}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__MessageStatistic.89eeecfd.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__MessageStatistic.89eeecfd.async.js new file mode 100644 index 00000000..f63ddcd5 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__MessageStatistic.89eeecfd.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8523],{17167:function(e,n,c){var s=c(85615),a=c(86745),r=c(85893);n.Z=function(){var e=(0,a.useAccess)();return e.canDebug&&console.log("Developing canDebug"),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.Access,{accessible:e.canDebug(),fallback:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.FormattedMessage,{id:s.h5w})}),children:"can debug"})})}},91711:function(e,n,c){c.r(n);var s=c(17167),a=c(85893);n.default=function(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.Z,{})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__MessageTable.1377e453.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__MessageTable.1377e453.async.js deleted file mode 100644 index 67b9b752..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__MessageTable.1377e453.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9199],{61480:function(u,s,e){e.r(s);var a=e(12801),n=e(85893),t=function(){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.Z,{type:"robot"})})};s.default=t}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__MessageTable.80f23984.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__MessageTable.80f23984.async.js new file mode 100644 index 00000000..3255988a --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__MessageTable.80f23984.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9199],{58638:function(e,t,n){n.d(t,{Z:function(){return u}});var a=n(1413),r=n(67294),s={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},o=n(89099),i=function(e,t){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:t,icon:s}))};var u=r.forwardRef(i)},70150:function(e,t,n){n.d(t,{W5:function(){return d}});var a=n(15009),r=n.n(a),s=n(97857),o=n.n(s),i=n(99289),u=n.n(i),c=(n(85615),n(86745));function d(e){return l.apply(this,arguments)}function l(){return(l=u()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.request)("/api/v1/message/query/org",{method:"GET",params:o()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},12801:function(e,t,n){var a=n(15009),r=n.n(a),s=n(97857),o=n.n(s),i=n(13769),u=n.n(i),c=n(99289),d=n.n(c),l=n(80049),g=n(70150),p=n(73803),f=n(87676),h=n(85615),m=n(17634),x=n(58638),v=n(74190),M=n(86745),w=n(14726),y=n(67294),b=n(85893),k=["current"];t.Z=function(e){e.type;var t=(0,M.useIntl)(),n=(0,y.useRef)(),a=(0,p.Z)().translateString,s=(0,f.u)((function(e){return e.currentOrg})),i=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,b.jsx)(M.FormattedMessage,{id:"nickname",defaultMessage:"Nickname"}),dataIndex:"nickname",render:function(e,t){var n;return(0,b.jsx)(b.Fragment,{children:a(null==t||null===(n=t.user)||void 0===n?void 0:n.nickname)})}},{title:(0,b.jsx)(M.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",width:300,copyable:!0,render:function(e,t){var n;return(0,b.jsx)(b.Fragment,{children:(null==t?void 0:t.content.length)>50?null==t||null===(n=t.content)||void 0===n?void 0:n.substring(0,50):a(null==t?void 0:t.content)})}},{title:(0,b.jsx)(M.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",width:100,hideInSearch:!0},{title:(0,b.jsx)(M.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",width:100,copyable:!0},{title:(0,b.jsx)(M.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client",width:100,hideInSearch:!0,copyable:!0},{title:(0,b.jsx)(M.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",width:180,sorter:!0,hideInSearch:!0}],c=function(){console.log("handleExportExcel");var e=localStorage.getItem(h.LA8);window.open((0,m.SV)()+"/api/v1/message/export?uid="+s.uid+"&pageNumber=0&pageSize=20&accessToken="+e)};return(0,b.jsx)(v.Z,{columns:i,actionRef:n,cardBordered:!0,request:function(){var e=d()(r()().mark((function e(t,n,a){var i,c,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("request:",t,n,a),t.current,i=u()(t,k),c=o()({pageNumber:t.current-1,orgUid:s.uid},i),e.next=5,(0,g.W5)(c);case 5:return d=e.sent,console.log("getAllMessages response:",c,d),200===d.code||l.yw.error(d.message),e.abrupt("return",{data:d.data.content,success:!0,total:d.data.totalElements});case 9:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:t.formatMessage({id:"message",defaultMessage:"Message"}),toolBarRender:function(){return[(0,b.jsx)(w.ZP,{icon:(0,b.jsx)(x.Z,{}),type:"primary",onClick:c,children:t.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})}},61480:function(e,t,n){n.r(t);var a=n(12801),r=n(85893);t.default=function(){return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.Z,{type:"robot"})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__index.7c55b037.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__index.7c55b037.async.js new file mode 100644 index 00000000..a68bbe9b --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__index.7c55b037.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[294],{77154:function(e,t,d){var i=d(39825);t.Z=function(){var e=(0,i.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},60259:function(e,t,d){d.r(t);var i=d(77154),n=d(86745),a=d(21612),l=d(50136),r=(d(67294),d(96974)),s=d(85893),c=(a.Z.Header,a.Z.Footer,a.Z.Sider),f=a.Z.Content,o=[{label:(0,s.jsx)(n.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}];t.default=function(){var e=(0,r.s0)(),t=(0,i.Z)(),d=t.leftSiderStyle,n=t.contentStyle;return(0,s.jsxs)(a.Z,{children:[(0,s.jsx)(c,{style:d,children:(0,s.jsx)(l.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/ai/message/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:o})}),(0,s.jsx)(a.Z,{children:(0,s.jsx)(f,{style:n,children:(0,s.jsx)(r.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__index.db789046.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__index.db789046.async.js deleted file mode 100644 index b566eb9f..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Message__index.db789046.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[294],{77154:function(u,d,e){var r=e(39825);function s(){var a=(0,r.Z)(),n=a.isDarkMode,i=250,l={borderRight:n?"1px solid #333":"1px solid #ccc",background:n?"#141414":"#f5f5f5"},t={background:n?"#141414":"#fff"},o={borderLeft:n?"1px solid #333":"1px solid #ccc",background:n?"#141414":"#f5f5f5"},_={minHeight:120,background:n?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:l,leftSiderWidth:i,headerStyle:t,rightSiderStyle:o,contentStyle:_}}d.Z=s},60259:function(u,d,e){e.r(d);var r=e(77154),s=e(86745),a=e(21612),n=e(50136),i=e(67294),l=e(96974),t=e(85893),o=a.Z.Header,_=a.Z.Footer,S=a.Z.Sider,M=a.Z.Content,E=[{label:(0,t.jsx)(s.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}],v=function(){var y=(0,l.s0)(),c=(0,r.Z)(),h=c.leftSiderStyle,D=c.contentStyle,m=function(f){console.log("menu click ",f.key),y("/ai/message/"+f.key)};return(0,t.jsxs)(a.Z,{children:[(0,t.jsx)(S,{style:h,children:(0,t.jsx)(n.Z,{mode:"inline",onClick:m,defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:E})}),(0,t.jsx)(a.Z,{children:(0,t.jsx)(M,{style:D,children:(0,t.jsx)(l.j3,{})})})]})};d.default=v}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__ThreadStatistic.0b5bf792.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__ThreadStatistic.0b5bf792.async.js new file mode 100644 index 00000000..fcc2c073 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__ThreadStatistic.0b5bf792.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3031],{7389:function(e,c,s){s.r(c);var a=s(85615),n=s(86745),i=s(85893);c.default=function(){var e=(0,n.useAccess)();return e.canDebug&&console.log("TabQuickReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(n.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.FormattedMessage,{id:a.h5w})}),children:"ThreadStatistic"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__ThreadStatistic.dbcce3e8.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__ThreadStatistic.dbcce3e8.async.js deleted file mode 100644 index 62c01c9a..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__ThreadStatistic.dbcce3e8.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3031],{7389:function(u,e,a){a.r(e);var t=a(85615),c=a(86745),s=a(85893),i=function(){var n=(0,c.useAccess)();return n.canDebug&&console.log("TabQuickReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(c.Access,{accessible:n.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.FormattedMessage,{id:t.h5w})}),children:"ThreadStatistic"})})})};e.default=i}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__ThreadTable.622bc175.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__ThreadTable.622bc175.async.js new file mode 100644 index 00000000..465b5120 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__ThreadTable.622bc175.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3398],{96799:function(n,e,t){t.r(e);var r=t(60119),u=t(85893);e.default=function(){return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(r.Z,{type:"robot"})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__ThreadTable.90738549.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__ThreadTable.90738549.async.js deleted file mode 100644 index ec8cb168..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__ThreadTable.90738549.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3398],{96799:function(u,e,n){n.r(e);var t=n(60119),a=n(85893),r=function(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(t.Z,{type:"robot"})})};e.default=r}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__index.ea9b58ce.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__index.ea9b58ce.async.js new file mode 100644 index 00000000..4f506555 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__index.ea9b58ce.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[49],{77154:function(e,t,d){var i=d(39825);t.Z=function(){var e=(0,i.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},22734:function(e,t,d){d.r(t);var i=d(77154),n=d(21612),a=d(50136),r=(d(67294),d(96974)),l=d(86745),s=d(85893),c=(n.Z.Header,n.Z.Footer,n.Z.Sider),f=n.Z.Content,o=[{label:(0,s.jsx)(l.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}];t.default=function(){var e=(0,r.s0)(),t=(0,i.Z)(),d=t.leftSiderStyle,l=t.contentStyle;return(0,s.jsxs)(n.Z,{children:[(0,s.jsx)(c,{style:d,children:(0,s.jsx)(a.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/ai/thread/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:o})}),(0,s.jsx)(n.Z,{children:(0,s.jsx)(f,{style:l,children:(0,s.jsx)(r.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__index.ee9db518.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__index.ee9db518.async.js deleted file mode 100644 index a26703dc..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__Thread__index.ee9db518.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[49],{77154:function(u,n,e){var l=e(39825);function a(){var i=(0,l.Z)(),d=i.isDarkMode,r=250,s={borderRight:d?"1px solid #333":"1px solid #ccc",background:d?"#141414":"#f5f5f5"},t={background:d?"#141414":"#fff"},o={borderLeft:d?"1px solid #333":"1px solid #ccc",background:d?"#141414":"#f5f5f5"},_={minHeight:120,background:d?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:s,leftSiderWidth:r,headerStyle:t,rightSiderStyle:o,contentStyle:_}}n.Z=a},22734:function(u,n,e){e.r(n);var l=e(77154),a=e(21612),i=e(50136),d=e(67294),r=e(96974),s=e(86745),t=e(85893),o=a.Z.Header,_=a.Z.Footer,S=a.Z.Sider,h=a.Z.Content,E=[{label:(0,t.jsx)(s.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}],M=function(){var v=(0,r.s0)(),c=(0,l.Z)(),y=c.leftSiderStyle,D=c.contentStyle,O=function(f){console.log("menu click ",f.key),v("/ai/thread/"+f.key)};return(0,t.jsxs)(a.Z,{children:[(0,t.jsx)(S,{style:y,children:(0,t.jsx)(i.Z,{mode:"inline",onClick:O,defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:E})}),(0,t.jsx)(a.Z,{children:(0,t.jsx)(h,{style:D,children:(0,t.jsx)(r.j3,{})})})]})};n.default=M}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__index.5359e619.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__index.5359e619.async.js new file mode 100644 index 00000000..71b5ea55 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__index.5359e619.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6693],{10411:function(e,t,n){n.d(t,{AP:function(){return c},_J:function(){return b},t5:function(){return m},v_:function(){return g}});var s=n(15009),a=n.n(s),r=n(97857),o=n.n(r),i=n(99289),l=n.n(i),u=n(85615),d=n(86745);function c(e){return f.apply(this,arguments)}function f(){return(f=l()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/kbase/query/org",{method:"GET",params:o()(o()({},t),{},{client:u.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return p.apply(this,arguments)}function p(){return(p=l()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/kbase/create",{method:"POST",data:o()(o()({},t),{},{client:u.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return v.apply(this,arguments)}function v(){return(v=l()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/kbase/update",{method:"POST",data:o()(o()({},t),{},{client:u.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){return h.apply(this,arguments)}function h(){return(h=l()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/kbase/delete",{method:"POST",data:o()(o()({},t),{},{client:u.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},7674:function(e,t,n){n.r(t),n.d(t,{default:function(){return xe}});var s=n(21612),a=n(67294),r=n(15009),o=n.n(r),i=n(99289),l=n.n(i),u=n(5574),d=n.n(u),c=n(37326),f=n(85576),g=n(86250),p=n(14726),m=n(2487),v=n(7134),b=n(11475),h=n(64789),y=n(86745),x=n(39825),M=n(87676),w=n(85615),j=n(34994),k=n(5966),F=n(64317),q=n(85893),S=function(e){var t=e.open,n=e.onClose,s=e.onSubmit,a=(0,y.useIntl)(),r=j.A.useForm(),o=d()(r,1)[0],i=(0,M.u)((function(e){return e.currentOrg}));return(0,q.jsx)("div",{children:(0,q.jsx)(f.Z,{title:a.formatMessage({id:"pages.robot.new",defaultMessage:"New"}),open:t,forceRender:!0,okText:a.formatMessage({id:"save",defaultMessage:"Save"}),onOk:function(){console.log("handleSaveRobot"),o.validateFields().then((function(e){console.log("handleSaveRobot values:",e);var t={nickname:e.nickname,type:e.type,orgUid:i.uid};console.log("robotObject:",t),s(t)})).catch((function(e){console.log("Form errors:",e)}))},onCancel:function(){n()},children:(0,q.jsxs)(j.A,{form:o,name:"basic",style:{maxWidth:400},submitter:!1,children:[(0,q.jsx)(k.Z,{label:a.formatMessage({id:"nickname",defaultMessage:"Nickname"}),name:"nickname",rules:[{required:!0,message:a.formatMessage({id:"nickname",defaultMessage:"Nickname"})}]}),(0,q.jsx)(F.Z,{label:a.formatMessage({id:"type",defaultMessage:"Type"}),name:["type"],options:[{label:a.formatMessage({id:w.f4h,defaultMessage:"Service"}),value:w.f4h},{label:a.formatMessage({id:w.wG_,defaultMessage:"Marketing"}),value:w.wG_,disabled:!0},{label:a.formatMessage({id:w.MLd,defaultMessage:"Knowledgebase"}),value:w.MLd},{label:a.formatMessage({id:w.iu4,defaultMessage:"Qa"}),value:w.iu4},{label:a.formatMessage({id:w.xVG,defaultMessage:"AgentAsistant"}),value:w.xVG},{label:a.formatMessage({id:w.jam,defaultMessage:"TicketAsistant"}),value:w.jam}],rules:[{required:!0,message:a.formatMessage({id:"choose",defaultMessage:"Choose"})}],fieldProps:{placeholder:a.formatMessage({id:"choose",defaultMessage:"Choose"}),onChange:function(e){console.log("onTreeSelectChange:",e)},allowClear:!0}})]})})})},Z=n(76545),R=n(80049),C=n(73803),U=function(){var e=(0,x.Z)().isDarkMode,t=(0,y.useIntl)(),n=(0,a.useRef)(!1),s=(0,C.Z)(),r=s.translateString,i=s.translateStringTranct,u=(0,c.V)((function(e){return{robotResult:e.robotResult,currentRobot:e.currentRobot,insertRobot:e.insertRobot,deleteCurrentRobot:e.deleteCurrentRobot,setRobotResult:e.setRobotResult,setCurrentRobot:e.setCurrentRobot}})),w=u.robotResult,j=u.currentRobot,k=u.insertRobot,F=u.deleteCurrentRobot,U=u.setRobotResult,T=u.setCurrentRobot,A=(0,M.u)((function(e){return e.currentOrg})),P=f.Z.useModal(),V=d()(P,2),_=V[0],I=V[1],O=function(){var e=l()(o()().mark((function e(n){var s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("delete robot",n),R.yw.loading(t.formatMessage({id:"deleting",defaultMessage:"Deleting"})),e.next=4,(0,Z.gf)(n);case 4:s=e.sent,console.log("delete robot response",s),200===s.code?(R.yw.destroy(),R.yw.success(t.formatMessage({id:"delete.success",defaultMessage:"Delete success"})),F(n.uid)):(R.yw.destroy(),R.yw.error(s.message));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),X=function(){var e=l()(o()().mark((function e(){var t,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.current){e.next=3;break}return console.log("isLoading: 1",n.current),e.abrupt("return");case 3:return n.current=!0,R.yw.loading("loading"),t={pageNumber:0,pageSize:50,published:!1,orgUid:null==A?void 0:A.uid},e.next=8,(0,Z.p0)(t);case 8:s=e.sent,console.log("queryRobotsByOrg: ",s),200===s.code?(R.yw.destroy(),U(s)):(R.yw.destroy(),R.yw.error(s.message)),n.current=!1;case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,a.useEffect)((function(){X()}),[]);var L=(0,a.useState)(!1),E=d()(L,2),G=E[0],K=E[1],N=function(){var e=l()(o()().mark((function e(n){var s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R.yw.loading(t.formatMessage({id:"creating",defaultMessage:"Creating"})),e.next=3,(0,Z.lg)(n);case 3:s=e.sent,console.log("handleSaveRobot response:",s),200===s.code?(R.yw.destroy(),R.yw.success(t.formatMessage({id:"create.success"})),k(s.data),K(!1)):(R.yw.destroy(),K(!1),R.yw.error(s.message));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),B=function(e){return t.formatMessage({id:null==e?void 0:e.type,defaultMessage:null==e?void 0:e.type})};return(0,q.jsxs)("div",{children:[(0,q.jsx)("div",{style:{margin:10},children:(0,q.jsxs)(g.Z,{gap:"small",align:"flex-start",children:[(0,q.jsx)(p.ZP,{size:"small",type:"primary",icon:(0,q.jsx)(h.Z,{}),onClick:function(){K(!0)},children:t.formatMessage({id:"pages.robot.new",defaultMessage:"New"})}),(0,q.jsx)(p.ZP,{size:"small",onClick:X,children:t.formatMessage({id:"refresh",defaultMessage:"Refresh"})}),(0,q.jsx)(p.ZP,{onClick:function(){return function(e){_.confirm({title:t.formatMessage({id:"deleteTip"}),icon:(0,q.jsx)(b.Z,{}),content:"".concat(t.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"【").concat(r(e.nickname),"】?"),onOk:function(){O(e)},onCancel:function(){},okText:t.formatMessage({id:"ok"}),cancelText:t.formatMessage({id:"cancel"})})}(j)},size:"small",style:{float:"right"},danger:!0,disabled:""===(null==j?void 0:j.uid),children:t.formatMessage({id:"pages.robot.delete",defaultMessage:"Delete"})})]})}),(0,q.jsx)(m.Z,{itemLayout:"horizontal",dataSource:w.data.content,renderItem:function(t,n){return(0,q.jsx)(m.Z.Item,{style:(null==j?void 0:j.uid)===t.uid?{backgroundColor:e?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:function(){T(t)},children:(0,q.jsx)(m.Z.Item.Meta,{style:{marginLeft:"10px"},avatar:(0,q.jsx)(v.C,{src:t.avatar}),title:(0,q.jsx)(q.Fragment,{children:i(null==t?void 0:t.nickname)}),description:B(t)})})}}),(0,q.jsx)(S,{open:G,onClose:function(){K(!1)},onSubmit:N}),I]})},T=n(11941),A=n(38437),P=n(79964),V=n(64423),_=n(50748),I=n(99072),O=n(97857),X=n.n(O),L=n(52688),E=n(90672),G=n(31199),K=n(96074),N=function(){var e=(0,y.useIntl)(),t=j.A.useForm(),n=d()(t,1)[0],s=(0,C.Z)().translateString,r=(0,c.V)((function(e){return{currentRobot:e.currentRobot,setCurrentRobot:e.setCurrentRobot}})),i=r.currentRobot,u=r.setCurrentRobot;(0,a.useEffect)((function(){var e,t,a,r,o,l;n.setFieldValue("enabled",null==i||null===(e=i.llm)||void 0===e?void 0:e.enabled),n.setFieldValue("topK",null==i||null===(t=i.llm)||void 0===t?void 0:t.topK),n.setFieldValue("scoreThreshold",null==i||null===(a=i.llm)||void 0===a?void 0:a.scoreThreshold),n.setFieldValue("model",null==i||null===(r=i.llm)||void 0===r?void 0:r.model),n.setFieldValue("temperature",null==i||null===(o=i.llm)||void 0===o?void 0:o.temperature),n.setFieldValue("prompt",s(null==i||null===(l=i.llm)||void 0===l?void 0:l.prompt))}),[i]);var f=function(){var t=l()(o()().mark((function t(n){var s,a,r,l,d,c,f;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("TabKeyword handleEnableChange",n),R.yw.loading(e.formatMessage({id:"updating"})),c=X()(X()({},i),{},{serviceSettings:X()(X()({},null==i?void 0:i.serviceSettings),{},{faqUids:null==i||null===(s=i.serviceSettings)||void 0===s||null===(s=s.faqs)||void 0===s?void 0:s.map((function(e){return e.uid})),quickFaqUids:null==i||null===(a=i.serviceSettings)||void 0===a||null===(a=a.quickFaqs)||void 0===a?void 0:a.map((function(e){return e.uid})),guessFaqUids:null==i||null===(r=i.serviceSettings)||void 0===r||null===(r=r.guessFaqs)||void 0===r?void 0:r.map((function(e){return e.uid})),hotFaqUids:null==i||null===(l=i.serviceSettings)||void 0===l||null===(l=l.hotFaqs)||void 0===l?void 0:l.map((function(e){return e.uid})),shortcutFaqUids:null==i||null===(d=i.serviceSettings)||void 0===d||null===(d=d.shortcutFaqs)||void 0===d?void 0:d.map((function(e){return e.uid}))}),llm:X()(X()({},null==i?void 0:i.llm),{},{enabled:n})}),console.log("robotObject:",c),t.next=6,(0,Z.$l)(c);case 6:f=t.sent,console.log("updateRobot response:",f),200===f.code?(R.yw.destroy(),R.yw.success(e.formatMessage({id:"update.success"})),u(f.data)):(R.yw.destroy(),R.yw.error(f.message));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),g=function(){var t=l()(o()().mark((function t(n){var s,a,r,l,d,c,f;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("handleSubmit",n),R.yw.loading(e.formatMessage({id:"updating"})),c=X()(X()({},i),{},{serviceSettings:X()(X()({},i.serviceSettings),{},{faqUids:null===(s=i.serviceSettings)||void 0===s||null===(s=s.faqs)||void 0===s?void 0:s.map((function(e){return e.uid})),quickFaqUids:null==i||null===(a=i.serviceSettings)||void 0===a||null===(a=a.quickFaqs)||void 0===a?void 0:a.map((function(e){return e.uid})),guessFaqUids:null==i||null===(r=i.serviceSettings)||void 0===r||null===(r=r.guessFaqs)||void 0===r?void 0:r.map((function(e){return e.uid})),hotFaqUids:null==i||null===(l=i.serviceSettings)||void 0===l||null===(l=l.hotFaqs)||void 0===l?void 0:l.map((function(e){return e.uid})),shortcutFaqUids:null==i||null===(d=i.serviceSettings)||void 0===d||null===(d=d.shortcutFaqs)||void 0===d?void 0:d.map((function(e){return e.uid}))}),llm:n}),console.log("robotObject:",c),t.next=6,(0,Z.$l)(c);case 6:f=t.sent,console.log("updateRobot response:",f),200===f.code?(R.yw.destroy(),R.yw.success(e.formatMessage({id:"update.success"})),u(f.data)):(R.yw.destroy(),R.yw.error(f.message));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(A.Z,{message:"大模型暂未支持云服务,如需使用,可私有部署,并配置自有key使用",action:(0,q.jsx)(p.ZP,{type:"link",onClick:function(){window.open(w.rVq)},children:"docs"})}),(0,q.jsx)(K.Z,{}),(0,q.jsxs)(j.A,{form:n,size:"large",submitter:{render:function(e,t){return[(0,q.jsx)(p.ZP,{type:"default",onClick:function(){var t;null===(t=e.form)||void 0===t||t.resetFields()},children:"重置"},"reset"),(0,q.jsx)(p.ZP,{type:"primary",onClick:function(){var t;null===(t=e.form)||void 0===t||t.submit()},children:"保存"},"submit")]},submitButtonProps:{size:"large",htmlType:"button"}},onFinish:g,children:[(0,q.jsx)(L.Z,{width:"lg",name:"enabled",label:"enabled",tooltip:"启用大模型后,将会关闭关键词。用户在发送消息时,将会直接请求大模型。",fieldProps:{onChange:f}}),(0,q.jsx)(E.Z,{width:"lg",name:"prompt",label:"prompt",placeholder:"请输入prompt",rules:[{required:!0,message:"请输入prompt"}]}),(0,q.jsx)(F.Z,{width:"lg",name:"model",label:"model",allowClear:!0,options:[{value:"ZHIPUAI_GLM_3_TURBO",label:"智谱AI-GLM-3-Turbo"},{value:"ZHIPUAI_GLM_4",label:"智谱AI-GLM-4"},{value:"OLLAMA",label:"Ollama"},{value:"OPENAI",label:"OpenAi",disabled:!0}],rules:[{required:!0,message:"请选择大模型"}]}),(0,q.jsx)(G.Z,{width:"lg",label:"温度",name:"temperature",min:0,max:1,fieldProps:{precision:1,step:.1},rules:[{required:!0,message:"请输入温度"}]}),(0,q.jsx)(G.Z,{width:"lg",label:"上下文消息数",name:"contextMsgCount",min:0,max:10,fieldProps:{precision:0,step:1},rules:[{required:!0,message:"请输入上下文消息数"}]})]})]})},B=n(87603),D=function(){var e=(0,y.useIntl)(),t=(0,y.useNavigate)(),n=j.A.useForm(),s=d()(n,1)[0],r=((0,C.Z)().translateString,(0,c.V)((function(e){return{currentRobot:e.currentRobot,setCurrentRobot:e.setCurrentRobot}}))),i=r.currentRobot,u=r.setCurrentRobot;(0,a.useEffect)((function(){var e;s.setFieldValue("enabled",!(null!=i&&null!==(e=i.llm)&&void 0!==e&&e.enabled)),s.setFieldValue("defaultReply",null==i?void 0:i.defaultReply)}),[i]);var f=function(){var t=l()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s.validateFields().then(function(){var t=l()(o()().mark((function t(n){var s,a,r,l,d,c,f;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("TabKeyword handleSubmit",n),R.yw.loading(e.formatMessage({id:"updating"})),c=X()(X()({},i),{},{serviceSettings:X()(X()({},null==i?void 0:i.serviceSettings),{},{faqUids:null==i||null===(s=i.serviceSettings)||void 0===s||null===(s=s.faqs)||void 0===s?void 0:s.map((function(e){return e.uid})),quickFaqUids:null==i||null===(a=i.serviceSettings)||void 0===a||null===(a=a.quickFaqs)||void 0===a?void 0:a.map((function(e){return e.uid})),guessFaqUids:null==i||null===(r=i.serviceSettings)||void 0===r||null===(r=r.guessFaqs)||void 0===r?void 0:r.map((function(e){return e.uid})),hotFaqUids:null==i||null===(l=i.serviceSettings)||void 0===l||null===(l=l.hotFaqs)||void 0===l?void 0:l.map((function(e){return e.uid})),shortcutFaqUids:null==i||null===(d=i.serviceSettings)||void 0===d||null===(d=d.shortcutFaqs)||void 0===d?void 0:d.map((function(e){return e.uid}))}),llm:X()(X()({},null==i?void 0:i.llm),{},{enabled:!n.enabled}),defaultReply:n.defaultReply}),console.log("robotObject:",c),t.next=6,(0,Z.$l)(c);case 6:f=t.sent,console.log("updateRobot response:",f),200===f.code?(R.yw.destroy(),R.yw.success(e.formatMessage({id:"update.success"})),u(f.data)):(R.yw.destroy(),R.yw.error(f.message));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){console.log("Form errors:",e)}));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),g=function(){var t=l()(o()().mark((function t(n){var s,a,r,l,d,c,f;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("TabKeyword handleEnableChange",n),R.yw.loading(e.formatMessage({id:"updating"})),c=X()(X()({},i),{},{serviceSettings:X()(X()({},null==i?void 0:i.serviceSettings),{},{quickFaqUids:null==i||null===(s=i.serviceSettings)||void 0===s||null===(s=s.quickFaqs)||void 0===s?void 0:s.map((function(e){return e.uid})),faqUids:null==i||null===(a=i.serviceSettings)||void 0===a||null===(a=a.faqs)||void 0===a?void 0:a.map((function(e){return e.uid})),guessFaqUids:null==i||null===(r=i.serviceSettings)||void 0===r||null===(r=r.guessFaqs)||void 0===r?void 0:r.map((function(e){return e.uid})),hotFaqUids:null==i||null===(l=i.serviceSettings)||void 0===l||null===(l=l.hotFaqs)||void 0===l?void 0:l.map((function(e){return e.uid})),shortcutFaqUids:null==i||null===(d=i.serviceSettings)||void 0===d||null===(d=d.shortcutFaqs)||void 0===d?void 0:d.map((function(e){return e.uid}))}),llm:X()(X()({},null==i?void 0:i.llm),{},{enabled:!n})}),console.log("robotObject:",c),t.next=6,(0,Z.$l)(c);case 6:f=t.sent,console.log("updateRobot response:",f),200===f.code?(R.yw.destroy(),R.yw.success(e.formatMessage({id:"update.success"})),u(f.data)):(R.yw.destroy(),R.yw.error(f.message));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return(0,q.jsx)(q.Fragment,{children:(0,q.jsxs)(j.A,{form:s,onFinish:f,children:[(0,q.jsx)(L.Z,{label:"是否启用关键词",name:"enabled",tooltip:"启用关键字后,将会关闭大模型。用户在发送消息时,如果消息内容包含关键字,则机器人将匹配关键字并自动回复。",fieldProps:{onChange:g}}),(0,q.jsx)(j.A.Item,{children:(0,q.jsx)(p.ZP,{icon:(0,q.jsx)(B.Z,{}),onClick:function(){t("/kb/keyword/data")},children:"添加关键字"},"github")}),(0,q.jsx)(E.Z,{width:"lg",label:"未匹配回复语",name:"defaultReply"})]})})},z=function(e){e.type;return(0,q.jsx)("div",{children:"TODO: 对接fastgpt、dify等工具"})},H=n(17167),$=function(){return(0,q.jsx)("div",{children:(0,q.jsx)(H.Z,{})})},Q=n(23035),W=n(51364),J=n(54050),Y=n(10411),ee=function(){var e=(0,y.useIntl)(),t=(0,y.useNavigate)(),n=j.A.useForm(),s=d()(n,1)[0],r=(0,C.Z)().translateString,i=(0,a.useState)(),u=d()(i,2),f=u[0],g=u[1],m=(0,M.u)((function(e){return e.currentOrg})),v=(0,c.V)((function(e){return{currentRobot:e.currentRobot,setCurrentRobot:e.setCurrentRobot}})),b=v.currentRobot,h=v.setCurrentRobot,x=function(){var t=l()(o()().mark((function t(){var n,s;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return R.yw.loading(e.formatMessage({id:"loading",defaultMessage:"Loading"})),n={pageNumber:0,pageSize:50,type:w.QPQ,orgUid:m.uid},t.next=4,(0,Y.AP)(n);case 4:s=t.sent,console.log("getKeywordBase response:",n,s),R.yw.destroy(),200===s.code?g(s):R.yw.error(s.message);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();(0,a.useEffect)((function(){x()}),[]),(0,a.useEffect)((function(){s.setFieldValue("kbUid",null==b?void 0:b.kbUid)}),[b]);var k=function(){var t=l()(o()().mark((function t(n){var s,a,r,i,l,u,d;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("onFinish values:",n),u=X()(X()({},b),{},{serviceSettings:X()(X()({},b.serviceSettings),{},{faqUids:null==b||null===(s=b.serviceSettings)||void 0===s||null===(s=s.faqs)||void 0===s?void 0:s.map((function(e){return e.uid})),quickFaqUids:null==b||null===(a=b.serviceSettings)||void 0===a||null===(a=a.quickFaqs)||void 0===a?void 0:a.map((function(e){return e.uid})),guessFaqUids:null==b||null===(r=b.serviceSettings)||void 0===r||null===(r=r.guessFaqs)||void 0===r?void 0:r.map((function(e){return e.uid})),hotFaqUids:null==b||null===(i=b.serviceSettings)||void 0===i||null===(i=i.hotFaqs)||void 0===i?void 0:i.map((function(e){return e.uid})),shortcutFaqUids:null==b||null===(l=b.serviceSettings)||void 0===l||null===(l=l.shortcutFaqs)||void 0===l?void 0:l.map((function(e){return e.uid}))}),kbUid:n.kbUid}),console.log("robotObject:",u),t.next=5,(0,Z.$l)(u);case 5:d=t.sent,console.log("updateRobot response:",d),200===d.code?(R.yw.destroy(),R.yw.success(e.formatMessage({id:"update.success"})),h(d.data)):(R.yw.destroy(),R.yw.error(d.message));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return(0,q.jsx)("div",{children:(0,q.jsxs)(j.A,{form:s,onFinish:k,children:[(0,q.jsx)(F.Z,{width:"md",name:"kbUid",label:"知识库",options:null==f?void 0:f.data.content.map((function(e){return{value:e.uid,label:r(e.name)}})),fieldProps:{onChange:function(e){console.log("kbUid:",e)}}}),(0,q.jsx)(j.A.Item,{children:(0,q.jsx)(p.ZP,{icon:(0,q.jsx)(B.Z,{}),onClick:function(){t("/kb/llm/data")},children:"添加大模型知识库"},"github")})]})})},te=n(73453),ne=n(48489),se=n(91116),ae=n(35791),re=function(){var e=(0,y.useIntl)(),t=(0,a.useMemo)((function(){return!0}),[]),n=[{key:"kb",label:(0,q.jsx)(y.FormattedMessage,{id:"pages.robot.tab.kb",defaultMessage:"Knowledge Base"}),children:(0,q.jsx)(ee,{}),disabled:t},{key:"faq",label:(0,q.jsx)(y.FormattedMessage,{id:"menu.knowledge.faq",defaultMessage:"Faq"}),children:(0,q.jsx)(P.Z,{type:w._X4}),disabled:t},{key:"quickFaqs",label:(0,q.jsx)(y.FormattedMessage,{id:"menu.knowledge.quickbutton",defaultMessage:"QuickButton"}),children:(0,q.jsx)(W.Z,{type:w._X4}),disabled:t},{key:"faqGuess",label:(0,q.jsx)(y.FormattedMessage,{id:"menu.knowledge.faqGuess",defaultMessage:"FaqGuess"}),children:(0,q.jsx)(V.Z,{type:w._X4}),disabled:t},{key:"faqHot",label:(0,q.jsx)(y.FormattedMessage,{id:"menu.knowledge.faqHot",defaultMessage:"FaqHot"}),children:(0,q.jsx)(_.Z,{type:w._X4}),disabled:t},{key:"faqShortcut",label:(0,q.jsx)(y.FormattedMessage,{id:"menu.knowledge.faqShortcut",defaultMessage:"FaqShortcut"}),children:(0,q.jsx)(I.Z,{type:w._X4}),disabled:t},{key:"llm",label:(0,q.jsx)(y.FormattedMessage,{id:"llm",defaultMessage:"Llm"}),children:(0,q.jsx)(N,{}),disabled:t},{key:"keyword",label:(0,q.jsx)(y.FormattedMessage,{id:"keyword",defaultMessage:"Keyword"}),children:(0,q.jsx)(D,{}),disabled:t},{key:"third",label:(0,q.jsx)(y.FormattedMessage,{id:"third",defaultMessage:"Third"}),children:(0,q.jsx)(z,{type:w._X4}),disabled:t},{key:"transfer",label:(0,q.jsx)(y.FormattedMessage,{id:"transfer",defaultMessage:"Transfer"}),children:(0,q.jsx)($,{}),disabled:t},{key:"survey",label:(0,q.jsx)(y.FormattedMessage,{id:"survey",defaultMessage:"Survey"}),children:(0,q.jsx)(ae.Z,{type:w._X4}),disabled:t},{key:"history",label:(0,q.jsx)(y.FormattedMessage,{id:"history",defaultMessage:"History"}),children:(0,q.jsx)(te.Z,{type:w._X4}),disabled:t},{key:"inputassociation",label:(0,q.jsx)(y.FormattedMessage,{id:"inputassociation",defaultMessage:"Input Association"}),children:(0,q.jsx)(se.Z,{type:w._X4}),disabled:t},{key:"black",label:(0,q.jsx)(y.FormattedMessage,{id:"black",defaultMessage:"Black"}),children:(0,q.jsx)(J.Z,{type:w._X4}),disabled:t},{key:"antiharassment",label:(0,q.jsx)(y.FormattedMessage,{id:"antiharassment",defaultMessage:"Anti Harassment"}),children:(0,q.jsx)(Q.Z,{type:w._X4}),disabled:t}];return(0,q.jsxs)(q.Fragment,{children:[t&&(0,q.jsx)(q.Fragment,{children:(0,q.jsx)(A.Z,{message:"企业版-高级功能",style:{marginBottom:20},type:"warning",action:(0,q.jsx)(p.ZP,{type:"link",icon:(0,q.jsx)(ne.Z,{}),onClick:function(){return window.open(w.rVq)},children:e.formatMessage({id:"setting.helpdoc"})})})}),(0,q.jsx)(T.Z,{tabPosition:"left",items:n})]})},oe=n(36649),ie=n(31207),le=n(22268),ue=n(16737),de=n(53004),ce=n(88484),fe=n(8232),ge=function(){var e=j.A.useForm(),t=d()(e,1)[0],n=(0,y.useIntl)(),s=(0,C.Z)().translateString,r=(0,c.V)((function(e){return{currentRobot:e.currentRobot,setCurrentRobot:e.setCurrentRobot}})),i=r.currentRobot,u=r.setCurrentRobot,f=(0,a.useState)(""),g=d()(f,2),m=g[0],b=g[1];(0,a.useEffect)((function(){var e;i&&(t.setFieldValue("nickname",s(null==i?void 0:i.nickname)),t.setFieldValue("welcomeTip",s(null==i||null===(e=i.serviceSettings)||void 0===e?void 0:e.welcomeTip)),t.setFieldValue("description",s(null==i?void 0:i.description)))}),[i]);var h=function(){var e=l()(o()().mark((function e(t){var s,a,r,l,d,c,f;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("onFinish:",t),R.yw.loading(n.formatMessage({id:"updating"})),c=X()(X()({},i),{},{serviceSettings:X()(X()({},i.serviceSettings),{},{welcomeTip:t.welcomeTip,quickFaqUids:null==i||null===(s=i.serviceSettings)||void 0===s||null===(s=s.quickFaqs)||void 0===s?void 0:s.map((function(e){return e.uid})),faqUids:null==i||null===(a=i.serviceSettings)||void 0===a||null===(a=a.faqs)||void 0===a?void 0:a.map((function(e){return e.uid})),guessFaqUids:null==i||null===(r=i.serviceSettings)||void 0===r||null===(r=r.guessFaqs)||void 0===r?void 0:r.map((function(e){return e.uid})),hotFaqUids:null==i||null===(l=i.serviceSettings)||void 0===l||null===(l=l.hotFaqs)||void 0===l?void 0:l.map((function(e){return e.uid})),shortcutFaqUids:null==i||null===(d=i.serviceSettings)||void 0===d||null===(d=d.shortcutFaqs)||void 0===d?void 0:d.map((function(e){return e.uid}))}),nickname:t.nickname,description:t.description,avatar:m}),console.log("robotObject:",c),e.next=6,(0,Z.$l)(c);case 6:f=e.sent,console.log("updateRobot response:",f),200===f.code?(R.yw.success(n.formatMessage({id:"update.success"})),u(f.data)):R.yw.error(f.message),R.yw.destroy();case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){b(null==i?void 0:i.avatar)}),[i]),(0,q.jsxs)(j.A,{form:t,style:{marginLeft:"100px"},onFinish:h,children:[(0,q.jsx)(fe.Z.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:function(e){return console.log("Upload event:",e),Array.isArray(e)?e:null==e?void 0:e.fileList},label:n.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:(0,q.jsxs)(de.G,{onSuccess:function(e){console.log("handleUploadSuccess:",e),b(e)},onError:function(e){console.log("handleUploadError:",e)},children:[(0,q.jsx)(v.C,{src:m}),(0,q.jsx)(p.ZP,{icon:(0,q.jsx)(ce.Z,{}),children:n.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),(0,q.jsx)(k.Z,{width:"md",name:"nickname",label:n.formatMessage({id:"pages.robot.tab.title",defaultMessage:"Title"}),tooltip:n.formatMessage({id:"pages.robot.tab.title",defaultMessage:"Title"}),placeholder:n.formatMessage({id:"pages.robot.tab.title",defaultMessage:"Title"}),rules:[{required:!0,message:n.formatMessage({id:"pages.robot.tab.title",defaultMessage:"Title"})}]}),(0,q.jsx)(E.Z,{width:"md",name:"welcomeTip",label:n.formatMessage({id:"pages.robot.tab.welcomeTip",defaultMessage:"welcomeTip"}),tooltip:n.formatMessage({id:"pages.robot.tab.welcomeTip",defaultMessage:"welcomeTip"}),placeholder:n.formatMessage({id:"pages.robot.tab.welcomeTip",defaultMessage:"welcomeTip"}),rules:[{required:!0,message:n.formatMessage({id:"pages.robot.tab.welcomeTip",defaultMessage:"welcomeTip"})}]}),(0,q.jsx)(E.Z,{width:"md",name:"description",label:n.formatMessage({id:"pages.robot.tab.description",defaultMessage:"description"}),tooltip:n.formatMessage({id:"pages.robot.tab.description",defaultMessage:"description"}),placeholder:n.formatMessage({id:"pages.robot.tab.description",defaultMessage:"description"}),rules:[{required:!0,message:n.formatMessage({id:"pages.robot.tab.description",defaultMessage:"description"})}]})]})},pe=n(59518),me=function(e){var t=e.type;console.log("TabApi:",t);var n=(0,y.useAccess)();return n.canDebug&&console.log("TabApi canDebug"),(0,q.jsx)("div",{children:(0,q.jsx)("p",{children:(0,q.jsx)(y.Access,{accessible:n.canDebug(),fallback:(0,q.jsx)(q.Fragment,{children:(0,q.jsx)(y.FormattedMessage,{id:w.h5w})}),children:"开放api、权限控制、统计数据"})})})},ve=function(){var e=(0,y.useIntl)(),t=(0,a.useState)([]),n=d()(t,2),s=n[0],r=n[1],o=[{key:"basic",label:e.formatMessage({id:"pages.robot.tab.basic",defaultMessage:"Basic"}),children:(0,q.jsx)(ge,{})},{key:"serviceSettings",label:e.formatMessage({id:"pages.agent.service.settings",defaultMessage:"Service Settings"}),children:(0,q.jsx)(pe.Z,{type:w._X4})},{key:"advanced",label:e.formatMessage({id:"pages.robot.tab.advanced",defaultMessage:"Advanced"}),children:(0,q.jsx)(re,{})},{key:"channel",label:e.formatMessage({id:"pages.robot.tab.channel",defaultMessage:"Channel"}),children:(0,q.jsx)(oe.Z,{type:w._X4})},{key:"channelsocial",label:e.formatMessage({id:"channelsocial",defaultMessage:"Social Channel"}),children:(0,q.jsx)(ue.Z,{type:w._X4})},{key:"channelshop",label:e.formatMessage({id:"channelshop",defaultMessage:"Shop Channel"}),children:(0,q.jsx)(le.Z,{type:w._X4})},{key:"channelforeign",label:e.formatMessage({id:"channelforeign",defaultMessage:"Foreign Channel"}),children:(0,q.jsx)(ie.Z,{type:w._X4})},{key:"tabapi",label:"API",children:(0,q.jsx)(me,{type:w._X4})}];return(0,a.useEffect)((function(){r(o)}),[]),(0,q.jsx)(T.Z,{defaultActiveKey:"basic",items:s})},be=n(77154),he=s.Z.Sider,ye=s.Z.Content,xe=function(){var e=(0,be.Z)(),t=e.leftSiderStyle,n=e.leftSiderWidth,a=e.contentStyle;return(0,q.jsxs)(s.Z,{children:[(0,q.jsx)(he,{width:n,style:t,children:(0,q.jsx)(U,{})}),(0,q.jsx)(s.Z,{children:(0,q.jsx)(ye,{style:a,children:(0,q.jsx)(ve,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__index.53be8b4f.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__index.53be8b4f.async.js deleted file mode 100644 index bbda6f22..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__index.53be8b4f.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6693],{10411:function(Se,ie,n){n.d(ie,{AP:function(){return z},_J:function(){return ve},t5:function(){return ae},v_:function(){return ce}});var Y=n(15009),U=n.n(Y),ue=n(97857),C=n.n(ue),de=n(99289),B=n.n(de),J=n(85615),L=n(86745);function z(F){return ee.apply(this,arguments)}function ee(){return ee=B()(U()().mark(function F(H){return U()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,L.request)("/api/v1/kbase/query/org",{method:"GET",params:C()(C()({},H),{},{client:J.bVn})}));case 1:case"end":return g.stop()}},F)})),ee.apply(this,arguments)}function ce(F){return K.apply(this,arguments)}function K(){return K=B()(U()().mark(function F(H){return U()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,L.request)("/api/v1/kbase/create",{method:"POST",data:C()(C()({},H),{},{client:J.bVn})}));case 1:case"end":return g.stop()}},F)})),K.apply(this,arguments)}function ae(F){return te.apply(this,arguments)}function te(){return te=B()(U()().mark(function F(H){return U()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,L.request)("/api/v1/kbase/update",{method:"POST",data:C()(C()({},H),{},{client:J.bVn})}));case 1:case"end":return g.stop()}},F)})),te.apply(this,arguments)}function ve(F){return re.apply(this,arguments)}function re(){return re=B()(U()().mark(function F(H){return U()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,L.request)("/api/v1/kbase/delete",{method:"POST",data:C()(C()({},H),{},{client:J.bVn})}));case 1:case"end":return g.stop()}},F)})),re.apply(this,arguments)}},55595:function(Se,ie,n){n.r(ie),n.d(ie,{default:function(){return Ft}});var Y=n(21612),U=n(67294),ue=n(15009),C=n.n(ue),de=n(99289),B=n.n(de),J=n(5574),L=n.n(J),z=n(37326),ee=n(85576),ce=n(86250),K=n(14726),ae=n(2487),te=n(7134),ve=n(11475),re=n(64789),F=n(86745),H=n(39825),Q=n(87676),g=n(85615),G=n(34994),fe=n(5966),ge=n(64317),t=n(85893),Re=function(d){var v=d.open,l=d.onClose,o=d.onSubmit,S=(0,F.useIntl)(),O=G.A.useForm(),Z=L()(O,1),e=Z[0],a=(0,Q.u)(function(D){return D.currentOrg}),E=function(){console.log("handleSaveRobot"),e.validateFields().then(function(i){console.log("handleSaveRobot values:",i);var R={nickname:i.nickname,type:i.type,orgUid:a.uid};console.log("robotObject:",R),o(R)}).catch(function(i){console.log("Form errors:",i)})},A=function(){l()},q=function(i){console.log("onTreeSelectChange:",i)};return(0,t.jsx)("div",{children:(0,t.jsx)(ee.Z,{title:S.formatMessage({id:"pages.robot.new",defaultMessage:"New"}),open:v,forceRender:!0,okText:S.formatMessage({id:"save",defaultMessage:"Save"}),onOk:E,onCancel:A,children:(0,t.jsxs)(G.A,{form:e,name:"basic",style:{maxWidth:400},submitter:!1,children:[(0,t.jsx)(fe.Z,{label:S.formatMessage({id:"nickname",defaultMessage:"Nickname"}),name:"nickname",rules:[{required:!0,message:S.formatMessage({id:"nickname",defaultMessage:"Nickname"})}]}),(0,t.jsx)(ge.Z,{label:S.formatMessage({id:"type",defaultMessage:"Type"}),name:["type"],options:[{label:S.formatMessage({id:g.f4h,defaultMessage:"Service"}),value:g.f4h},{label:S.formatMessage({id:g.wG_,defaultMessage:"Marketing"}),value:g.wG_,disabled:!0},{label:S.formatMessage({id:g.MLd,defaultMessage:"Knowledgebase"}),value:g.MLd},{label:S.formatMessage({id:g.iu4,defaultMessage:"Qa"}),value:g.iu4}],rules:[{required:!0,message:S.formatMessage({id:"choose",defaultMessage:"Choose"})}],fieldProps:{placeholder:S.formatMessage({id:"choose",defaultMessage:"Choose"}),onChange:q,allowClear:!0}})]})})})},je=Re,X=n(76545),f=n(80049),oe=n(73803),xe=function(){var d=(0,H.Z)(),v=d.isDarkMode,l=(0,F.useIntl)(),o=(0,U.useRef)(!1),S=(0,oe.Z)(),O=S.translateString,Z=S.translateStringTranct,e=(0,z.V)(function(N){return{robotResult:N.robotResult,currentRobot:N.currentRobot,insertRobot:N.insertRobot,deleteCurrentRobot:N.deleteCurrentRobot,setRobotResult:N.setRobotResult,setCurrentRobot:N.setCurrentRobot}}),a=e.robotResult,E=e.currentRobot,A=e.insertRobot,q=e.deleteCurrentRobot,D=e.setRobotResult,i=e.setCurrentRobot,R=(0,Q.u)(function(N){return N.currentOrg}),j=ee.Z.useModal(),y=L()(j,2),r=y[0],u=y[1],m=function(P){r.confirm({title:l.formatMessage({id:"deleteTip"}),icon:(0,t.jsx)(ve.Z,{}),content:"".concat(l.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"\u3010").concat(O(P.nickname),"\u3011\uFF1F"),onOk:function(){c(P)},onCancel:function(){},okText:l.formatMessage({id:"ok"}),cancelText:l.formatMessage({id:"cancel"})})},c=function(){var N=B()(C()().mark(function P(V){var I;return C()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return console.log("delete robot",V),f.yw.loading(l.formatMessage({id:"deleting",defaultMessage:"Deleting"})),$.next=4,(0,X.gf)(V);case 4:I=$.sent,console.log("delete robot response",I),I.code===200?(f.yw.destroy(),f.yw.success(l.formatMessage({id:"delete.success",defaultMessage:"Delete success"})),q(V.uid)):(f.yw.destroy(),f.yw.error(I.message));case 7:case"end":return $.stop()}},P)}));return function(V){return N.apply(this,arguments)}}(),h=function(){var N=B()(C()().mark(function P(){var V,I;return C()().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(!o.current){$.next=3;break}return console.log("isLoading: 1",o.current),$.abrupt("return");case 3:return o.current=!0,f.yw.loading("loading"),V={pageNumber:0,pageSize:50,orgUid:R.uid},$.next=8,(0,X.p0)(V);case 8:I=$.sent,console.log("queryRobotsByOrg: ",I),I.code===200?(f.yw.destroy(),D(I)):(f.yw.destroy(),f.yw.error(I.message)),o.current=!1;case 12:case"end":return $.stop()}},P)}));return function(){return N.apply(this,arguments)}}();(0,U.useEffect)(function(){h()},[]);var b=(0,U.useState)(!1),x=L()(b,2),p=x[0],s=x[1],_=function(){s(!0)},W=function(){var N=B()(C()().mark(function P(V){var I;return C()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return f.yw.loading(l.formatMessage({id:"creating",defaultMessage:"Creating"})),$.next=3,(0,X.lg)(V);case 3:I=$.sent,console.log("handleSaveRobot response:",I),I.code===200?(f.yw.destroy(),f.yw.success(l.formatMessage({id:"create.success"})),A(I.data),s(!1)):(f.yw.destroy(),s(!1),f.yw.error(I.message));case 6:case"end":return $.stop()}},P)}));return function(V){return N.apply(this,arguments)}}(),k=function(){s(!1)},M=function(){_()},ne=function(P,V){i(P)},se=function(P){return l.formatMessage({id:P==null?void 0:P.type,defaultMessage:P==null?void 0:P.type})};return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{style:{margin:10},children:(0,t.jsxs)(ce.Z,{gap:"small",align:"flex-start",children:[(0,t.jsx)(K.ZP,{size:"small",type:"primary",icon:(0,t.jsx)(re.Z,{}),onClick:M,children:l.formatMessage({id:"pages.robot.new",defaultMessage:"New"})}),(0,t.jsx)(K.ZP,{size:"small",onClick:h,children:l.formatMessage({id:"refresh",defaultMessage:"Refresh"})}),(0,t.jsx)(K.ZP,{onClick:function(){return m(E)},size:"small",style:{float:"right"},danger:!0,disabled:(E==null?void 0:E.uid)==="",children:l.formatMessage({id:"pages.robot.delete",defaultMessage:"Delete"})})]})}),(0,t.jsx)(ae.Z,{itemLayout:"horizontal",dataSource:a.data.content,renderItem:function(P,V){return(0,t.jsx)(ae.Z.Item,{style:(E==null?void 0:E.uid)===P.uid?{backgroundColor:v?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:function(){return ne(P,V)},children:(0,t.jsx)(ae.Z.Item.Meta,{style:{marginLeft:"10px"},avatar:(0,t.jsx)(te.C,{src:P.avatar}),title:(0,t.jsx)(t.Fragment,{children:Z(P==null?void 0:P.nickname)}),description:se(P)})})}}),(0,t.jsx)(je,{open:p,onClose:k,onSubmit:W}),u]})},Ce=xe,me=n(11941),St=function(){var d=function(l,o){l.dataTransfer.setData("application/reactflow",o),l.dataTransfer.effectAllowed="move",console.log("onDragStart:",l,o)};return _jsxs("aside",{children:[_jsx("div",{className:"dndnode",onDragStart:function(l){return d(l,"nodeText")},draggable:!0,children:"Text"}),_jsx("div",{className:"dndnode",onDragStart:function(l){return d(l,"nodeImage")},draggable:!0,children:"Image"})]})},Rt=null,jt=n(23661),xt=n(66419);function Ct(w){var d=w.id,v=w.type,l=w.data,o=w.xPos,S=w.yPos,O=w.isConnectable,Z=useCallback(function(){var A=JSON.stringify({id:d,type:v,data:l});emitter.emit(EVENT_BUS_FLOW_NODE_RUN,A)},[]),e=useCallback(function(){var A=JSON.stringify({id:getUUid(),type:v,data:l,position:{x:o+10,y:S+10}});emitter.emit(EVENT_BUS_FLOW_NODE_COPY,A)},[]),a=useCallback(function(){emitter.emit(EVENT_BUS_FLOW_NODE_DELETE,d)},[]),E=useCallback(function(A){console.log(A.target.value)},[]);return _jsxs("div",{className:"node-text",children:[_jsxs(NodeToolbar,{isVisible:l.toolbarVisible,position:l.toolbarPosition,children:[_jsx("button",{onClick:Z,children:"run"}),_jsx("button",{onClick:e,children:"copy"}),_jsx("button",{onClick:a,children:"delete"})]}),_jsx(Handle,{type:"target",position:Position.Top,isConnectable:O}),_jsxs("div",{children:[_jsx("label",{htmlFor:"text",children:"Text:"}),_jsx("input",{id:"text",name:"text",onChange:E,className:"nodrag"})]}),_jsx(Handle,{type:"source",position:Position.Bottom,id:"b",isConnectable:O})]})}var Mt=null;function Tt(w){var d=w.data,v=w.isConnectable,l=useCallback(function(o){console.log(o.target.value)},[]);return _jsxs("div",{className:"node-image",children:[_jsx(Handle,{type:"target",position:Position.Top,isConnectable:v}),_jsx("div",{children:_jsx("label",{htmlFor:"text",children:"Image"})}),_jsx(Handle,{type:"source",position:Position.Bottom,id:"b",isConnectable:v})]})}var wt=null;function Et(w){var d=w.id,v=w.type,l=w.data,o=w.isConnectable,S=useCallback(function(){var O=JSON.stringify({id:d,type:v,data:l});emitter.emit(EVENT_BUS_FLOW_NODE_RUN,O)},[]);return _jsxs("div",{className:"node-start",children:[_jsx(NodeToolbar,{isVisible:l.toolbarVisible,position:l.toolbarPosition,children:_jsx("button",{onClick:S,children:"run"})}),_jsx("div",{children:_jsx("label",{htmlFor:"text",children:"Start"})}),_jsx(Handle,{type:"source",position:Position.Bottom,id:"b",isConnectable:o})]})}var Dt=null,Ot=function(d){var v=d.open,l=d.onClose,o=useRobotStore(function(R){return R.currentRobot}),S=useState(""),O=_slicedToArray(S,2),Z=O[0],e=O[1],a=useState(!1),E=_slicedToArray(a,2),A=E[0],q=E[1],D=function(){q(!0),console.log("Iframe loaded successfully!")};useEffect(function(){var R="http://127.0.0.1:9003/chat?t="+THREAD_TYPE_ROBOT+"&sid="+(o==null?void 0:o.uid)+"&"+new Date().getTime();e(R)},[o]);var i=function(){console.log("restart");var j="http://127.0.0.1:9003/chat?t="+THREAD_TYPE_ROBOT+"&sid="+(o==null?void 0:o.uid)+"&"+new Date().getTime();e(j)};return _jsx(_Fragment,{children:_jsxs(Drawer,{title:"Preview",onClose:l,open:v,extra:_jsxs(Space,{children:[_jsx(Button,{onClick:l,children:"Cancel"}),_jsx(Button,{onClick:i,type:"primary",children:"Restart"})]}),children:[_jsx(Spin,{spinning:!A,size:"large"}),_jsx("iframe",{id:"chat-iframe",src:Z,title:"demo",width:"100%",height:"100%",style:{border:0},"data-loaded":"true",onLoad:D})]})})},kt=null,Me={},Te={animated:!0},we={hideAttribution:!0},Ee=0,De=function(){return"dndnode_".concat(Ee++)},Pt=function(){var d=useRef(null),v=[{id:"1",type:"nodeStart",data:{label:"start"},position:{x:250,y:5}}],l=useState(v),o=_slicedToArray(l,2),S=o[0],O=o[1],Z=useState([]),e=_slicedToArray(Z,2),a=e[0],E=e[1],A=useMemo(function(){return{nodeStart:NodeStart,nodeText:NodeText,nodeImage:NodeImage}},[]),q=useCallback(function(s){return O(function(_){return applyNodeChanges(s,_)})},[O]),D=useCallback(function(s){return E(function(_){return applyEdgeChanges(s,_)})},[E]),i=useCallback(function(s){E(function(_){return addEdge(s,_)})},[E]),R=useReactFlow(),j=R.screenToFlowPosition,y=useCallback(function(s){s.preventDefault(),s.dataTransfer.dropEffect="move"},[]),r=useCallback(function(s){s.preventDefault();var _=s.dataTransfer.getData("application/reactflow");if(!(typeof _=="undefined"||!_)){var W=j({x:s.clientX,y:s.clientY}),k={id:De(),type:_,data:{label:"nodeText"},position:W};O(function(M){return M.concat(k)})}},[j]),u=function(){};useEffect(function(){var s=setInterval(u,1e4);return function(){clearInterval(s)}},[S,a]);var m=useState(!1),c=_slicedToArray(m,2),h=c[0],b=c[1],x=function(){b(!0)},p=function(){b(!1)};return useEffect(function(){var s=function(M){console.log("handleRunEvent:",M),x()};emitter.on(EVENT_BUS_FLOW_NODE_RUN,s);var _=function(M){var ne=JSON.parse(M);console.log("handleCopyEvent:",M,ne),O(function(se){return se.concat(ne)})};emitter.on(EVENT_BUS_FLOW_NODE_COPY,_);var W=function(M){console.log("handleDeleteEvent:",M),O(function(ne){return ne.filter(function(se){return se.id!==M})})};return emitter.on(EVENT_BUS_FLOW_NODE_DELETE,W),function(){emitter.off(EVENT_BUS_FLOW_NODE_RUN,s),emitter.off(EVENT_BUS_FLOW_NODE_COPY,_),emitter.off(EVENT_BUS_FLOW_NODE_DELETE,W)}},[]),_jsxs("div",{className:"dndflow",children:[_jsx(Sidebar,{}),_jsx("div",{ref:d,style:{width:"75vw",height:"80vh"},children:_jsx(ReactFlow,{nodeTypes:A,nodes:S,edges:a,onNodesChange:q,onEdgesChange:D,onConnect:i,onDrop:r,onDragOver:y,fitView:!0,proOptions:we,nodesDraggable:!0,style:Me,defaultEdgeOptions:Te,children:_jsx(Controls,{})})}),_jsx(Preview,{open:h,onClose:p})]})},_t=null,Ut=function(){var d=useAccess();return _jsx(_Fragment,{children:_jsx(Access,{accessible:d.canDebug(),fallback:_jsx(_Fragment,{children:_jsx(FormattedMessage,{id:UNDER_DEVELOPMENT})}),children:_jsx(ReactFlowProvider,{children:_jsx(Flow,{})})})})},At=null,be=n(40056),Oe=n(79964),ke=n(64423),Pe=n(50748),_e=n(99072),Ue=n(97857),T=n.n(Ue),pe=n(52688),le=n(90672),he=n(31199),Ae=n(96074),Ne=function(){var d=(0,F.useIntl)(),v=G.A.useForm(),l=L()(v,1),o=l[0],S=(0,oe.Z)(),O=S.translateString,Z=(0,z.V)(function(i){return{currentRobot:i.currentRobot,setCurrentRobot:i.setCurrentRobot}}),e=Z.currentRobot,a=Z.setCurrentRobot;(0,U.useEffect)(function(){var i,R,j,y,r,u;o.setFieldValue("enabled",e==null||(i=e.llm)===null||i===void 0?void 0:i.enabled),o.setFieldValue("topK",e==null||(R=e.llm)===null||R===void 0?void 0:R.topK),o.setFieldValue("scoreThreshold",e==null||(j=e.llm)===null||j===void 0?void 0:j.scoreThreshold),o.setFieldValue("model",e==null||(y=e.llm)===null||y===void 0?void 0:y.model),o.setFieldValue("temperature",e==null||(r=e.llm)===null||r===void 0?void 0:r.temperature),o.setFieldValue("prompt",O(e==null||(u=e.llm)===null||u===void 0?void 0:u.prompt))},[e]);var E=function(){var i=B()(C()().mark(function R(j){var y,r,u,m,c,h,b;return C()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return console.log("TabKeyword handleEnableChange",j),f.yw.loading(d.formatMessage({id:"updating"})),h=T()(T()({},e),{},{serviceSettings:T()(T()({},e==null?void 0:e.serviceSettings),{},{faqUids:e==null||(y=e.serviceSettings)===null||y===void 0||(y=y.faqs)===null||y===void 0?void 0:y.map(function(s){return s.uid}),quickFaqUids:e==null||(r=e.serviceSettings)===null||r===void 0||(r=r.quickFaqs)===null||r===void 0?void 0:r.map(function(s){return s.uid}),guessFaqUids:e==null||(u=e.serviceSettings)===null||u===void 0||(u=u.guessFaqs)===null||u===void 0?void 0:u.map(function(s){return s.uid}),hotFaqUids:e==null||(m=e.serviceSettings)===null||m===void 0||(m=m.hotFaqs)===null||m===void 0?void 0:m.map(function(s){return s.uid}),shortcutFaqUids:e==null||(c=e.serviceSettings)===null||c===void 0||(c=c.shortcutFaqs)===null||c===void 0?void 0:c.map(function(s){return s.uid})}),llm:T()(T()({},e==null?void 0:e.llm),{},{enabled:j})}),console.log("robotObject:",h),p.next=6,(0,X.$l)(h);case 6:b=p.sent,console.log("updateRobot response:",b),b.code===200?(f.yw.destroy(),f.yw.success(d.formatMessage({id:"update.success"})),a(b.data)):(f.yw.destroy(),f.yw.error(b.message));case 9:case"end":return p.stop()}},R)}));return function(j){return i.apply(this,arguments)}}(),A=function(){var i=B()(C()().mark(function R(j){var y,r,u,m,c,h,b;return C()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return console.log("handleSubmit",j),f.yw.loading(d.formatMessage({id:"updating"})),h=T()(T()({},e),{},{serviceSettings:T()(T()({},e.serviceSettings),{},{faqUids:(y=e.serviceSettings)===null||y===void 0||(y=y.faqs)===null||y===void 0?void 0:y.map(function(s){return s.uid}),quickFaqUids:e==null||(r=e.serviceSettings)===null||r===void 0||(r=r.quickFaqs)===null||r===void 0?void 0:r.map(function(s){return s.uid}),guessFaqUids:e==null||(u=e.serviceSettings)===null||u===void 0||(u=u.guessFaqs)===null||u===void 0?void 0:u.map(function(s){return s.uid}),hotFaqUids:e==null||(m=e.serviceSettings)===null||m===void 0||(m=m.hotFaqs)===null||m===void 0?void 0:m.map(function(s){return s.uid}),shortcutFaqUids:e==null||(c=e.serviceSettings)===null||c===void 0||(c=c.shortcutFaqs)===null||c===void 0?void 0:c.map(function(s){return s.uid})}),llm:j}),console.log("robotObject:",h),p.next=6,(0,X.$l)(h);case 6:b=p.sent,console.log("updateRobot response:",b),b.code===200?(f.yw.destroy(),f.yw.success(d.formatMessage({id:"update.success"})),a(b.data)):(f.yw.destroy(),f.yw.error(b.message));case 9:case"end":return p.stop()}},R)}));return function(j){return i.apply(this,arguments)}}(),q=function(){},D=function(R,j){return[(0,t.jsx)(K.ZP,{type:"default",onClick:function(){var r;(r=R.form)===null||r===void 0||r.resetFields()},children:"\u91CD\u7F6E"},"reset"),(0,t.jsx)(K.ZP,{type:"primary",onClick:function(){var r;(r=R.form)===null||r===void 0||r.submit()},children:"\u4FDD\u5B58"},"submit")]};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(be.Z,{message:"\u5927\u6A21\u578B\u6682\u672A\u652F\u6301\u4E91\u670D\u52A1\uFF0C\u5982\u9700\u4F7F\u7528\uFF0C\u53EF\u79C1\u6709\u90E8\u7F72\uFF0C\u5E76\u914D\u7F6E\u81EA\u6709key\u4F7F\u7528",action:(0,t.jsx)(K.ZP,{type:"link",onClick:function(){window.open(g.rVq)},children:"docs"})}),(0,t.jsx)(Ae.Z,{}),(0,t.jsxs)(G.A,{form:o,size:"large",submitter:{render:D,submitButtonProps:{size:"large",htmlType:"button"}},onFinish:A,children:[(0,t.jsx)(pe.Z,{width:"lg",name:"enabled",label:"enabled",tooltip:"\u542F\u7528\u5927\u6A21\u578B\u540E\uFF0C\u5C06\u4F1A\u5173\u95ED\u5173\u952E\u8BCD\u3002\u7528\u6237\u5728\u53D1\u9001\u6D88\u606F\u65F6\uFF0C\u5C06\u4F1A\u76F4\u63A5\u8BF7\u6C42\u5927\u6A21\u578B\u3002",fieldProps:{onChange:E}}),(0,t.jsx)(le.Z,{width:"lg",name:"prompt",label:"prompt",placeholder:"\u8BF7\u8F93\u5165prompt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165prompt"}]}),(0,t.jsx)(ge.Z,{width:"lg",name:"model",label:"model",allowClear:!0,options:[{value:"ZHIPUAI_GLM_3_TURBO",label:"\u667A\u8C31AI-GLM-3-Turbo"},{value:"ZHIPUAI_GLM_4",label:"\u667A\u8C31AI-GLM-4"},{value:"OLLAMA",label:"Ollama"},{value:"OPENAI",label:"OpenAi",disabled:!0}],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5927\u6A21\u578B"}]}),(0,t.jsx)(he.Z,{width:"lg",label:"\u6E29\u5EA6",name:"temperature",min:0,max:1,fieldProps:{precision:1,step:.1},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6E29\u5EA6"}]}),(0,t.jsx)(he.Z,{width:"lg",label:"\u4E0A\u4E0B\u6587\u6D88\u606F\u6570",name:"contextMsgCount",min:0,max:10,fieldProps:{precision:0,step:1},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0A\u4E0B\u6587\u6D88\u606F\u6570"}]})]})]})},Ze=Ne,ye=n(87603),$e=function(){var d=(0,F.useIntl)(),v=(0,F.useNavigate)(),l=G.A.useForm(),o=L()(l,1),S=o[0],O=(0,oe.Z)(),Z=O.translateString,e=(0,z.V)(function(D){return{currentRobot:D.currentRobot,setCurrentRobot:D.setCurrentRobot}}),a=e.currentRobot,E=e.setCurrentRobot;(0,U.useEffect)(function(){var D;S.setFieldValue("enabled",!(a!=null&&(D=a.llm)!==null&&D!==void 0&&D.enabled)),S.setFieldValue("defaultReply",a==null?void 0:a.defaultReply)},[a]);var A=function(){var D=B()(C()().mark(function i(){return C()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:S.validateFields().then(function(){var y=B()(C()().mark(function r(u){var m,c,h,b,x,p,s;return C()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return console.log("TabKeyword handleSubmit",u),f.yw.loading(d.formatMessage({id:"updating"})),p=T()(T()({},a),{},{serviceSettings:T()(T()({},a==null?void 0:a.serviceSettings),{},{faqUids:a==null||(m=a.serviceSettings)===null||m===void 0||(m=m.faqs)===null||m===void 0?void 0:m.map(function(k){return k.uid}),quickFaqUids:a==null||(c=a.serviceSettings)===null||c===void 0||(c=c.quickFaqs)===null||c===void 0?void 0:c.map(function(k){return k.uid}),guessFaqUids:a==null||(h=a.serviceSettings)===null||h===void 0||(h=h.guessFaqs)===null||h===void 0?void 0:h.map(function(k){return k.uid}),hotFaqUids:a==null||(b=a.serviceSettings)===null||b===void 0||(b=b.hotFaqs)===null||b===void 0?void 0:b.map(function(k){return k.uid}),shortcutFaqUids:a==null||(x=a.serviceSettings)===null||x===void 0||(x=x.shortcutFaqs)===null||x===void 0?void 0:x.map(function(k){return k.uid})}),llm:T()(T()({},a==null?void 0:a.llm),{},{enabled:!u.enabled}),defaultReply:u.defaultReply}),console.log("robotObject:",p),W.next=6,(0,X.$l)(p);case 6:s=W.sent,console.log("updateRobot response:",s),s.code===200?(f.yw.destroy(),f.yw.success(d.formatMessage({id:"update.success"})),E(s.data)):(f.yw.destroy(),f.yw.error(s.message));case 9:case"end":return W.stop()}},r)}));return function(r){return y.apply(this,arguments)}}()).catch(function(y){console.log("Form errors:",y)});case 1:case"end":return j.stop()}},i)}));return function(){return D.apply(this,arguments)}}(),q=function(){var D=B()(C()().mark(function i(R){var j,y,r,u,m,c,h;return C()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return console.log("TabKeyword handleEnableChange",R),f.yw.loading(d.formatMessage({id:"updating"})),c=T()(T()({},a),{},{serviceSettings:T()(T()({},a==null?void 0:a.serviceSettings),{},{quickFaqUids:a==null||(j=a.serviceSettings)===null||j===void 0||(j=j.quickFaqs)===null||j===void 0?void 0:j.map(function(p){return p.uid}),faqUids:a==null||(y=a.serviceSettings)===null||y===void 0||(y=y.faqs)===null||y===void 0?void 0:y.map(function(p){return p.uid}),guessFaqUids:a==null||(r=a.serviceSettings)===null||r===void 0||(r=r.guessFaqs)===null||r===void 0?void 0:r.map(function(p){return p.uid}),hotFaqUids:a==null||(u=a.serviceSettings)===null||u===void 0||(u=u.hotFaqs)===null||u===void 0?void 0:u.map(function(p){return p.uid}),shortcutFaqUids:a==null||(m=a.serviceSettings)===null||m===void 0||(m=m.shortcutFaqs)===null||m===void 0?void 0:m.map(function(p){return p.uid})}),llm:T()(T()({},a==null?void 0:a.llm),{},{enabled:!R})}),console.log("robotObject:",c),x.next=6,(0,X.$l)(c);case 6:h=x.sent,console.log("updateRobot response:",h),h.code===200?(f.yw.destroy(),f.yw.success(d.formatMessage({id:"update.success"})),E(h.data)):(f.yw.destroy(),f.yw.error(h.message));case 9:case"end":return x.stop()}},i)}));return function(R){return D.apply(this,arguments)}}();return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(G.A,{form:S,onFinish:A,children:[(0,t.jsx)(pe.Z,{label:"\u662F\u5426\u542F\u7528\u5173\u952E\u8BCD",name:"enabled",tooltip:"\u542F\u7528\u5173\u952E\u5B57\u540E\uFF0C\u5C06\u4F1A\u5173\u95ED\u5927\u6A21\u578B\u3002\u7528\u6237\u5728\u53D1\u9001\u6D88\u606F\u65F6\uFF0C\u5982\u679C\u6D88\u606F\u5185\u5BB9\u5305\u542B\u5173\u952E\u5B57\uFF0C\u5219\u673A\u5668\u4EBA\u5C06\u5339\u914D\u5173\u952E\u5B57\u5E76\u81EA\u52A8\u56DE\u590D\u3002",fieldProps:{onChange:q}}),(0,t.jsx)(G.A.Item,{children:(0,t.jsx)(K.ZP,{icon:(0,t.jsx)(ye.Z,{}),onClick:function(){v("/kb/keyword/data")},children:"\u6DFB\u52A0\u5173\u952E\u5B57"},"github")}),(0,t.jsx)(le.Z,{width:"lg",label:"\u672A\u5339\u914D\u56DE\u590D\u8BED",name:"defaultReply"})]})})},Ie=$e,Be=function(d){var v=d.type;return(0,t.jsx)("div",{children:"TODO: \u5BF9\u63A5fastgpt\u3001dify\u7B49\u5DE5\u5177"})},Le=Be,qe=n(17167),Ve=function(){return(0,t.jsx)("div",{children:(0,t.jsx)(qe.Z,{})})},Ke=Ve,We=n(23035),Ge=n(51364),He=n(54050),Xe=n(10411),ze=function(){var d=(0,F.useIntl)(),v=(0,F.useNavigate)(),l=G.A.useForm(),o=L()(l,1),S=o[0],O=(0,oe.Z)(),Z=O.translateString,e=(0,U.useState)(),a=L()(e,2),E=a[0],A=a[1],q=(0,Q.u)(function(r){return r.currentOrg}),D=(0,z.V)(function(r){return{currentRobot:r.currentRobot,setCurrentRobot:r.setCurrentRobot}}),i=D.currentRobot,R=D.setCurrentRobot,j=function(){var r=B()(C()().mark(function u(){var m,c;return C()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f.yw.loading(d.formatMessage({id:"loading",defaultMessage:"Loading"})),m={pageNumber:0,pageSize:50,type:g.QPQ,orgUid:q.uid},b.next=4,(0,Xe.AP)(m);case 4:c=b.sent,console.log("getKeywordBase response:",m,c),f.yw.destroy(),c.code===200?A(c):f.yw.error(c.message);case 8:case"end":return b.stop()}},u)}));return function(){return r.apply(this,arguments)}}();(0,U.useEffect)(function(){j()},[]),(0,U.useEffect)(function(){S.setFieldValue("kbUid",i==null?void 0:i.kbUid)},[i]);var y=function(){var r=B()(C()().mark(function u(m){var c,h,b,x,p,s,_;return C()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return console.log("onFinish values:",m),s=T()(T()({},i),{},{serviceSettings:T()(T()({},i.serviceSettings),{},{faqUids:i==null||(c=i.serviceSettings)===null||c===void 0||(c=c.faqs)===null||c===void 0?void 0:c.map(function(M){return M.uid}),quickFaqUids:i==null||(h=i.serviceSettings)===null||h===void 0||(h=h.quickFaqs)===null||h===void 0?void 0:h.map(function(M){return M.uid}),guessFaqUids:i==null||(b=i.serviceSettings)===null||b===void 0||(b=b.guessFaqs)===null||b===void 0?void 0:b.map(function(M){return M.uid}),hotFaqUids:i==null||(x=i.serviceSettings)===null||x===void 0||(x=x.hotFaqs)===null||x===void 0?void 0:x.map(function(M){return M.uid}),shortcutFaqUids:i==null||(p=i.serviceSettings)===null||p===void 0||(p=p.shortcutFaqs)===null||p===void 0?void 0:p.map(function(M){return M.uid})}),kbUid:m.kbUid}),console.log("robotObject:",s),k.next=5,(0,X.$l)(s);case 5:_=k.sent,console.log("updateRobot response:",_),_.code===200?(f.yw.destroy(),f.yw.success(d.formatMessage({id:"update.success"})),R(_.data)):(f.yw.destroy(),f.yw.error(_.message));case 8:case"end":return k.stop()}},u)}));return function(m){return r.apply(this,arguments)}}();return(0,t.jsx)("div",{children:(0,t.jsxs)(G.A,{form:S,onFinish:y,children:[(0,t.jsx)(ge.Z,{width:"md",name:"kbUid",label:"\u77E5\u8BC6\u5E93",options:E==null?void 0:E.data.content.map(function(r){return{value:r.uid,label:Z(r.name)}}),fieldProps:{onChange:function(u){console.log("kbUid:",u)}}}),(0,t.jsx)(G.A.Item,{children:(0,t.jsx)(K.ZP,{icon:(0,t.jsx)(ye.Z,{}),onClick:function(){v("/kb/llm/data")},children:"\u6DFB\u52A0\u5927\u6A21\u578B\u77E5\u8BC6\u5E93"},"github")})]})})},Qe=ze,Ye=n(73453),Je=n(48489),et=n(91116),tt=n(35791),nt=function(){var d=(0,F.useIntl)(),v=(0,U.useMemo)(function(){return!0},[]),l=[{key:"kb",label:(0,t.jsx)(F.FormattedMessage,{id:"pages.robot.tab.kb",defaultMessage:"Knowledge Base"}),children:(0,t.jsx)(Qe,{}),disabled:v},{key:"faq",label:(0,t.jsx)(F.FormattedMessage,{id:"menu.knowledge.faq",defaultMessage:"Faq"}),children:(0,t.jsx)(Oe.Z,{type:g._X4}),disabled:v},{key:"quickFaqs",label:(0,t.jsx)(F.FormattedMessage,{id:"menu.knowledge.quickbutton",defaultMessage:"QuickButton"}),children:(0,t.jsx)(Ge.Z,{type:g._X4}),disabled:v},{key:"faqGuess",label:(0,t.jsx)(F.FormattedMessage,{id:"menu.knowledge.faqGuess",defaultMessage:"FaqGuess"}),children:(0,t.jsx)(ke.Z,{type:g._X4}),disabled:v},{key:"faqHot",label:(0,t.jsx)(F.FormattedMessage,{id:"menu.knowledge.faqHot",defaultMessage:"FaqHot"}),children:(0,t.jsx)(Pe.Z,{type:g._X4}),disabled:v},{key:"faqShortcut",label:(0,t.jsx)(F.FormattedMessage,{id:"menu.knowledge.faqShortcut",defaultMessage:"FaqShortcut"}),children:(0,t.jsx)(_e.Z,{type:g._X4}),disabled:v},{key:"llm",label:(0,t.jsx)(F.FormattedMessage,{id:"llm",defaultMessage:"Llm"}),children:(0,t.jsx)(Ze,{}),disabled:v},{key:"keyword",label:(0,t.jsx)(F.FormattedMessage,{id:"keyword",defaultMessage:"Keyword"}),children:(0,t.jsx)(Ie,{}),disabled:v},{key:"third",label:(0,t.jsx)(F.FormattedMessage,{id:"third",defaultMessage:"Third"}),children:(0,t.jsx)(Le,{type:g._X4}),disabled:v},{key:"transfer",label:(0,t.jsx)(F.FormattedMessage,{id:"transfer",defaultMessage:"Transfer"}),children:(0,t.jsx)(Ke,{}),disabled:v},{key:"survey",label:(0,t.jsx)(F.FormattedMessage,{id:"survey",defaultMessage:"Survey"}),children:(0,t.jsx)(tt.Z,{type:g._X4}),disabled:v},{key:"history",label:(0,t.jsx)(F.FormattedMessage,{id:"history",defaultMessage:"History"}),children:(0,t.jsx)(Ye.Z,{type:g._X4}),disabled:v},{key:"inputassociation",label:(0,t.jsx)(F.FormattedMessage,{id:"inputassociation",defaultMessage:"Input Association"}),children:(0,t.jsx)(et.Z,{type:g._X4}),disabled:v},{key:"black",label:(0,t.jsx)(F.FormattedMessage,{id:"black",defaultMessage:"Black"}),children:(0,t.jsx)(He.Z,{type:g._X4}),disabled:v},{key:"antiharassment",label:(0,t.jsx)(F.FormattedMessage,{id:"antiharassment",defaultMessage:"Anti Harassment"}),children:(0,t.jsx)(We.Z,{type:g._X4}),disabled:v}];return(0,t.jsxs)(t.Fragment,{children:[v&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(be.Z,{message:"\u4F01\u4E1A\u7248-\u9AD8\u7EA7\u529F\u80FD",style:{marginBottom:20},type:"warning",action:(0,t.jsx)(K.ZP,{type:"link",icon:(0,t.jsx)(Je.Z,{}),onClick:function(){return window.open(g.rVq)},children:d.formatMessage({id:"setting.helpdoc"})})})}),(0,t.jsx)(me.Z,{tabPosition:"left",items:l})]})},at=nt,rt=n(36649),ot=n(31207),st=n(22268),it=n(16737),lt=n(53004),ut=n(88484),dt=n(8232),ct=function(){var d=G.A.useForm(),v=L()(d,1),l=v[0],o=(0,F.useIntl)(),S=(0,oe.Z)(),O=S.translateString,Z=(0,z.V)(function(r){return{currentRobot:r.currentRobot,setCurrentRobot:r.setCurrentRobot}}),e=Z.currentRobot,a=Z.setCurrentRobot,E=(0,U.useState)(""),A=L()(E,2),q=A[0],D=A[1];(0,U.useEffect)(function(){if(e){var r;l.setFieldValue("nickname",O(e==null?void 0:e.nickname)),l.setFieldValue("welcomeTip",O(e==null||(r=e.serviceSettings)===null||r===void 0?void 0:r.welcomeTip)),l.setFieldValue("description",O(e==null?void 0:e.description))}},[e]);var i=function(){var r=B()(C()().mark(function u(m){var c,h,b,x,p,s,_;return C()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return console.log("onFinish:",m),f.yw.loading(o.formatMessage({id:"updating"})),s=T()(T()({},e),{},{serviceSettings:T()(T()({},e.serviceSettings),{},{welcomeTip:m.welcomeTip,quickFaqUids:e==null||(c=e.serviceSettings)===null||c===void 0||(c=c.quickFaqs)===null||c===void 0?void 0:c.map(function(M){return M.uid}),faqUids:e==null||(h=e.serviceSettings)===null||h===void 0||(h=h.faqs)===null||h===void 0?void 0:h.map(function(M){return M.uid}),guessFaqUids:e==null||(b=e.serviceSettings)===null||b===void 0||(b=b.guessFaqs)===null||b===void 0?void 0:b.map(function(M){return M.uid}),hotFaqUids:e==null||(x=e.serviceSettings)===null||x===void 0||(x=x.hotFaqs)===null||x===void 0?void 0:x.map(function(M){return M.uid}),shortcutFaqUids:e==null||(p=e.serviceSettings)===null||p===void 0||(p=p.shortcutFaqs)===null||p===void 0?void 0:p.map(function(M){return M.uid})}),nickname:m.nickname,description:m.description,avatar:q}),console.log("robotObject:",s),k.next=6,(0,X.$l)(s);case 6:_=k.sent,console.log("updateRobot response:",_),_.code===200?(f.yw.success(o.formatMessage({id:"update.success"})),a(_.data)):f.yw.error(_.message),f.yw.destroy();case 10:case"end":return k.stop()}},u)}));return function(m){return r.apply(this,arguments)}}(),R=function(u){console.log("handleUploadSuccess:",u),D(u)},j=function(u){console.log("handleUploadError:",u)},y=function(u){return console.log("Upload event:",u),Array.isArray(u)?u:u==null?void 0:u.fileList};return(0,U.useEffect)(function(){D(e==null?void 0:e.avatar)},[e]),(0,t.jsxs)(G.A,{form:l,style:{marginLeft:"100px"},onFinish:i,children:[(0,t.jsx)(dt.Z.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:y,label:o.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:(0,t.jsxs)(lt.G,{onSuccess:R,onError:j,children:[(0,t.jsx)(te.C,{src:q}),(0,t.jsx)(K.ZP,{icon:(0,t.jsx)(ut.Z,{}),children:o.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),(0,t.jsx)(fe.Z,{width:"md",name:"nickname",label:o.formatMessage({id:"pages.robot.tab.title",defaultMessage:"Title"}),tooltip:o.formatMessage({id:"pages.robot.tab.title",defaultMessage:"Title"}),placeholder:o.formatMessage({id:"pages.robot.tab.title",defaultMessage:"Title"}),rules:[{required:!0,message:o.formatMessage({id:"pages.robot.tab.title",defaultMessage:"Title"})}]}),(0,t.jsx)(le.Z,{width:"md",name:"welcomeTip",label:o.formatMessage({id:"pages.robot.tab.welcomeTip",defaultMessage:"welcomeTip"}),tooltip:o.formatMessage({id:"pages.robot.tab.welcomeTip",defaultMessage:"welcomeTip"}),placeholder:o.formatMessage({id:"pages.robot.tab.welcomeTip",defaultMessage:"welcomeTip"}),rules:[{required:!0,message:o.formatMessage({id:"pages.robot.tab.welcomeTip",defaultMessage:"welcomeTip"})}]}),(0,t.jsx)(le.Z,{width:"md",name:"description",label:o.formatMessage({id:"pages.robot.tab.description",defaultMessage:"description"}),tooltip:o.formatMessage({id:"pages.robot.tab.description",defaultMessage:"description"}),placeholder:o.formatMessage({id:"pages.robot.tab.description",defaultMessage:"description"}),rules:[{required:!0,message:o.formatMessage({id:"pages.robot.tab.description",defaultMessage:"description"})}]})]})},vt=ct,gt=n(59518),ft=function(){var d=(0,F.useIntl)(),v=(0,U.useState)([]),l=L()(v,2),o=l[0],S=l[1],O=[{key:"basic",label:d.formatMessage({id:"pages.robot.tab.basic",defaultMessage:"Basic"}),children:(0,t.jsx)(vt,{})},{key:"serviceSettings",label:d.formatMessage({id:"pages.agent.service.settings",defaultMessage:"Service Settings"}),children:(0,t.jsx)(gt.Z,{type:g._X4})},{key:"advanced",label:d.formatMessage({id:"pages.robot.tab.advanced",defaultMessage:"Advanced"}),children:(0,t.jsx)(at,{})},{key:"channel",label:d.formatMessage({id:"pages.robot.tab.channel",defaultMessage:"Channel"}),children:(0,t.jsx)(rt.Z,{type:g._X4})},{key:"channelsocial",label:d.formatMessage({id:"channelsocial",defaultMessage:"Social Channel"}),children:(0,t.jsx)(it.Z,{type:g._X4})},{key:"channelshop",label:d.formatMessage({id:"channelshop",defaultMessage:"Shop Channel"}),children:(0,t.jsx)(st.Z,{type:g._X4})},{key:"channelforeign",label:d.formatMessage({id:"channelforeign",defaultMessage:"Foreign Channel"}),children:(0,t.jsx)(ot.Z,{type:g._X4})}];return(0,U.useEffect)(function(){if(0)var Z;S(O)},[]),(0,t.jsx)(me.Z,{defaultActiveKey:"basic",items:o})},mt=ft,bt=n(77154),pt=Y.Z.Sider,ht=Y.Z.Content,yt=function(){var d=(0,bt.Z)(),v=d.leftSiderStyle,l=d.leftSiderWidth,o=d.contentStyle;return(0,t.jsxs)(Y.Z,{children:[(0,t.jsx)(pt,{width:l,style:v,children:(0,t.jsx)(Ce,{})}),(0,t.jsx)(Y.Z,{children:(0,t.jsx)(ht,{style:o,children:(0,t.jsx)(mt,{})})})]})},Ft=yt}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__index.7416ad8a.chunk.css b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__index.7416ad8a.chunk.css deleted file mode 100644 index dca99724..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__index.7416ad8a.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.list-item{padding:5px;margin-bottom:0;height:60px}.list-item:hover,.active{background-color:#ddd}.list-item-dark{padding:5px;margin-bottom:0;height:60px}.list-item-dark:hover,.dark-active{background-color:#333}.list-item .avatar{border-radius:2px;margin-right:2px}li{list-style:none}.list-left{margin-top:4px;margin-left:2px;width:25px;height:25px;float:left}.list-right{margin-left:52px}.list-right .top{height:20px;margin-top:5px;text-align:left}.list-right-ticket{margin-left:5px}.list-right-ticket .top{margin-top:2px;text-align:left}span.nickname{display:inline-block;vertical-align:top;font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}span.timestamp{float:right;color:gray;font-size:12px;vertical-align:top;width:72px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list-right .bottom{text-align:left;margin-top:5px}.list-right-ticket .bottom{text-align:left}.list-right .bottom-queue{width:90%;text-align:left}.list-right .bottom .content{display:inline-block;vertical-align:top;font-size:12px;color:gray;width:calc(100% - 25px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list-right .bottom .star{font-size:14px;float:right}.list-right .unreadCount{margin-top:4px;float:right;font-size:10px;width:12px;height:12px;line-height:12px;text-align:center;border-radius:5px;color:#fff;background-color:red}.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:grab}.react-flow__node.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.dndflow{flex-direction:column;display:flex;flex-grow:1;height:100%;width:100%}.dndflow aside{border-right:1px solid #eee;padding:15px 10px;font-size:12px;background:#fcfcfc}.dndflow aside .description{margin-bottom:10px}.dndflow .dndnode{height:20px;padding:4px;border:1px solid #1a192b;border-radius:2px;margin-bottom:10px;display:flex;justify-content:center;align-items:center;cursor:grab}.dndflow .dndnode.input{border-color:#0041d0}.dndflow .dndnode.output{border-color:#ff0072}.dndflow .reactflow-wrapper{flex-grow:1;height:100%}.dndflow .selectall{margin-top:10px}@media screen and (min-width: 768px){.dndflow{flex-direction:row}.dndflow aside{width:20%;max-width:250px}}.node-text{height:70px;border:1px solid #eee;padding:5px;border-radius:5px;background:#fff}.node-text label{display:block;color:#777;font-size:12px}.node-image{border:1px solid #eee;padding:5px;border-radius:5px;background:#fff}.node-image label{display:block;color:#777;font-size:12px}.node-start{height:30px;border:1px solid #eee;padding:5px;border-radius:5px;background:#fff}.node-start label{display:block;color:#777;font-size:12px} diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Robot__index.cb670aa5.chunk.css b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__index.cb670aa5.chunk.css new file mode 100644 index 00000000..6cf52782 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Robot__index.cb670aa5.chunk.css @@ -0,0 +1 @@ +.list-item{padding:5px;margin-bottom:0;height:60px}.list-item:hover,.active{background-color:#ddd}.list-item-dark{padding:5px;margin-bottom:0;height:60px}.list-item-dark:hover,.dark-active{background-color:#333}.list-item .avatar{border-radius:2px;margin-right:2px}li{list-style:none}.list-left{margin-top:4px;margin-left:2px;width:25px;height:25px;float:left}.list-right{margin-left:52px}.list-right .top{height:20px;margin-top:5px;text-align:left}.list-right-ticket{margin-left:5px}.list-right-ticket .top{margin-top:2px;text-align:left}span.nickname{display:inline-block;vertical-align:top;font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}span.timestamp{float:right;color:gray;font-size:12px;vertical-align:top;width:72px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list-right .bottom{text-align:left;margin-top:5px}.list-right-ticket .bottom{text-align:left}.list-right .bottom-queue{width:90%;text-align:left}.list-right .bottom .content{display:inline-block;vertical-align:top;font-size:12px;color:gray;width:calc(100% - 25px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list-right .bottom .star{font-size:14px;float:right}.list-right .unreadCount{margin-top:4px;float:right;font-size:10px;width:12px;height:12px;line-height:12px;text-align:center;border-radius:5px;color:#fff;background-color:red} diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Agent__index.018eee53.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Agent__index.018eee53.async.js deleted file mode 100644 index bf4709ba..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Agent__index.018eee53.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1642],{19054:function(Ae,te,t){var G=t(1413),o=t(91),pe=t(67294),v=t(24809),ie=t(85893),Z=["fieldProps","request","params","proFieldProps"],h=function(x,W){var d=x.fieldProps,z=x.request,I=x.params,re=x.proFieldProps,l=(0,o.Z)(x,Z);return(0,ie.jsx)(v.Z,(0,G.Z)({valueType:"treeSelect",fieldProps:d,ref:W,request:z,params:I,filedConfig:{customLightMode:!0},proFieldProps:re},l))},B=pe.forwardRef(h);te.Z=B},952:function(Ae,te,t){var G=t(34994);te.ZP=G.A},36497:function(Ae,te,t){t.d(te,{O9:function(){return W},ZG:function(){return z},bN:function(){return re},p1:function(){return M}});var G=t(15009),o=t.n(G),pe=t(97857),v=t.n(pe),ie=t(99289),Z=t.n(ie),h=t(85615),B=t(86745);function M(A){return x.apply(this,arguments)}function x(){return x=Z()(o()().mark(function A(R){return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,B.request)("/api/v1/autoreply/query/org",{method:"GET",params:v()(v()({},R),{},{client:h.bVn})}));case 1:case"end":return c.stop()}},A)})),x.apply(this,arguments)}function W(A){return d.apply(this,arguments)}function d(){return d=Z()(o()().mark(function A(R){return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,B.request)("/api/v1/autoreply/create",{method:"POST",data:v()(v()({},R),{},{client:h.bVn})}));case 1:case"end":return c.stop()}},A)})),d.apply(this,arguments)}function z(A){return I.apply(this,arguments)}function I(){return I=Z()(o()().mark(function A(R){return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,B.request)("/api/v1/autoreply/update",{method:"POST",data:v()(v()({},R),{},{client:h.bVn})}));case 1:case"end":return c.stop()}},A)})),I.apply(this,arguments)}function re(A){return l.apply(this,arguments)}function l(){return l=Z()(o()().mark(function A(R){return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,B.request)("/api/v1/autoreply/delete",{method:"POST",data:v()(v()({},R),{},{client:h.bVn})}));case 1:case"end":return c.stop()}},A)})),l.apply(this,arguments)}},10411:function(Ae,te,t){t.d(te,{AP:function(){return M},_J:function(){return re},t5:function(){return z},v_:function(){return W}});var G=t(15009),o=t.n(G),pe=t(97857),v=t.n(pe),ie=t(99289),Z=t.n(ie),h=t(85615),B=t(86745);function M(A){return x.apply(this,arguments)}function x(){return x=Z()(o()().mark(function A(R){return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,B.request)("/api/v1/kbase/query/org",{method:"GET",params:v()(v()({},R),{},{client:h.bVn})}));case 1:case"end":return c.stop()}},A)})),x.apply(this,arguments)}function W(A){return d.apply(this,arguments)}function d(){return d=Z()(o()().mark(function A(R){return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,B.request)("/api/v1/kbase/create",{method:"POST",data:v()(v()({},R),{},{client:h.bVn})}));case 1:case"end":return c.stop()}},A)})),d.apply(this,arguments)}function z(A){return I.apply(this,arguments)}function I(){return I=Z()(o()().mark(function A(R){return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,B.request)("/api/v1/kbase/update",{method:"POST",data:v()(v()({},R),{},{client:h.bVn})}));case 1:case"end":return c.stop()}},A)})),I.apply(this,arguments)}function re(A){return l.apply(this,arguments)}function l(){return l=Z()(o()().mark(function A(R){return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,B.request)("/api/v1/kbase/delete",{method:"POST",data:v()(v()({},R),{},{client:h.bVn})}));case 1:case"end":return c.stop()}},A)})),l.apply(this,arguments)}},84125:function(Ae,te,t){t.d(te,{D$:function(){return z},EP:function(){return A},hS:function(){return re},z_:function(){return M}});var G=t(15009),o=t.n(G),pe=t(97857),v=t.n(pe),ie=t(99289),Z=t.n(ie),h=t(85615),B=t(86745);function M(w){return x.apply(this,arguments)}function x(){return x=Z()(o()().mark(function w(ne){return o()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",(0,B.request)("/api/v1/mem/query/org",{method:"GET",params:v()(v()({},ne),{},{client:h.bVn})}));case 1:case"end":return y.stop()}},w)})),x.apply(this,arguments)}function W(){return d.apply(this,arguments)}function d(){return d=_asyncToGenerator(_regeneratorRuntime().mark(function w(){return _regeneratorRuntime().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",request("/api/v1/mem/query",{method:"GET",params:{client:HTTP_CLIENT}}));case 1:case"end":return L.stop()}},w)})),d.apply(this,arguments)}function z(w){return I.apply(this,arguments)}function I(){return I=Z()(o()().mark(function w(ne){return o()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",(0,B.request)("/api/v1/mem/create",{method:"POST",data:v()(v()({},ne),{},{client:h.bVn})}));case 1:case"end":return y.stop()}},w)})),I.apply(this,arguments)}function re(w){return l.apply(this,arguments)}function l(){return l=Z()(o()().mark(function w(ne){return o()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",(0,B.request)("/api/v1/mem/update",{method:"POST",data:v()(v()({},ne),{},{client:h.bVn})}));case 1:case"end":return y.stop()}},w)})),l.apply(this,arguments)}function A(w){return R.apply(this,arguments)}function R(){return R=Z()(o()().mark(function w(ne){return o()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",(0,B.request)("/api/v1/member/delete",{method:"POST",data:v()(v()({},ne),{},{client:h.bVn})}));case 1:case"end":return y.stop()}},w)})),R.apply(this,arguments)}function ue(w){return c.apply(this,arguments)}function c(){return c=_asyncToGenerator(_regeneratorRuntime().mark(function w(ne){return _regeneratorRuntime().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",request("/api/v1/member/filter",{method:"GET",params:_objectSpread(_objectSpread({},ne),{},{client:HTTP_CLIENT})}));case 1:case"end":return y.stop()}},w)})),c.apply(this,arguments)}},45480:function(Ae,te,t){t.r(te),t.d(te,{default:function(){return Mt}});var G=t(21612),o=t(67294),pe=t(5574),v=t.n(pe),ie=t(11941),Z=t(15009),h=t.n(Z),B=t(97857),M=t.n(B),x=t(99289),W=t.n(x),d=t(80049),z=t(3418),I=t(73803),re=t(30694),l=t(85615),A=t(73445),R=t(782),ue=t(18753),c=(0,A.Ue)()((0,R.mW)((0,R.tJ)((0,ue.n)(function(ae,p){return{memberResult:{data:{content:[],totalElements:0}},insertMember:function(_){ae(function(S){var E=S.memberResult.data.content;E.unshift(_)})},updateMember:function(_){ae(function(S){var E=S.memberResult.data.content,K=E.findIndex(function(T){return T.uid===_.uid});K!==-1?E[K]=_:console.warn("Member with uid ".concat(_.uid," not found."))})},deleteMember:function(_){ae(function(S){var E=S.memberResult.data.content,K=E.findIndex(function(T){return T.uid===_.uid});K!==-1?E.splice(K,1):console.warn("Member with uid ".concat(_.uid," not found."))})},setMemberResult:function(_){ae({memberResult:_})},deleteMemberCache:function(){return ae({},!0)}}}),{name:l.PQL}))),w=t(53004),ne=t(88484),L=t(34994),y=t(5966),Ce=t(90672),Fe=t(19054),k=t(86745),Ue=t(8232),Re=t(7134),he=t(14726),e=t(85893),Oe=function(){var p,f=L.A.useForm(),_=v()(f,1),S=_[0],E=(0,k.useIntl)(),K=(0,I.Z)(),T=K.translateString,V=c(function(P){return P.memberResult}),H=(0,re.E)(function(P){return{currentAgent:P.currentAgent,setCurrentAgent:P.setCurrentAgent}}),a=H.currentAgent,oe=H.setCurrentAgent,fe=(0,o.useState)(""),Q=v()(fe,2),q=Q[0],$=Q[1],C=function(j,U){U.title=j.nickname,U.value=j.uid},D=(0,o.useMemo)(function(){for(var P=[],j=0;j50?null==t||null===(n=t.content)||void 0===n?void 0:n.substring(0,50):a(null==t?void 0:t.content)})}},{title:(0,b.jsx)(M.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",width:100,hideInSearch:!0},{title:(0,b.jsx)(M.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",width:100,copyable:!0},{title:(0,b.jsx)(M.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client",width:100,hideInSearch:!0,copyable:!0},{title:(0,b.jsx)(M.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",width:180,sorter:!0,hideInSearch:!0}],c=function(){console.log("handleExportExcel");var e=localStorage.getItem(h.LA8);window.open((0,m.SV)()+"/api/v1/message/export?uid="+s.uid+"&pageNumber=0&pageSize=20&accessToken="+e)};return(0,b.jsx)(v.Z,{columns:i,actionRef:n,cardBordered:!0,request:function(){var e=d()(r()().mark((function e(t,n,a){var i,c,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("request:",t,n,a),t.current,i=u()(t,k),c=o()({pageNumber:t.current-1,orgUid:s.uid},i),e.next=5,(0,g.W5)(c);case 5:return d=e.sent,console.log("getAllMessages response:",c,d),200===d.code||l.yw.error(d.message),e.abrupt("return",{data:d.data.content,success:!0,total:d.data.totalElements});case 9:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:t.formatMessage({id:"message",defaultMessage:"Message"}),toolBarRender:function(){return[(0,b.jsx)(w.ZP,{icon:(0,b.jsx)(x.Z,{}),type:"primary",onClick:c,children:t.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})}},61503:function(e,t,n){n.r(t);var a=n(12801),r=n(85893);t.default=function(){return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.Z,{type:"service"})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Message__MessageTable.3e20457d.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Message__MessageTable.3e20457d.async.js deleted file mode 100644 index cb9f6f60..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Message__MessageTable.3e20457d.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[7788],{61503:function(u,n,e){e.r(n);var a=e(12801),s=e(85893),t=function(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a.Z,{type:"service"})})};n.default=t}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Message__index.c8005d66.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Message__index.c8005d66.async.js deleted file mode 100644 index a6fa7d7d..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Message__index.c8005d66.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2949],{77154:function(u,d,e){var r=e(39825);function s(){var a=(0,r.Z)(),n=a.isDarkMode,i=250,l={borderRight:n?"1px solid #333":"1px solid #ccc",background:n?"#141414":"#f5f5f5"},t={background:n?"#141414":"#fff"},o={borderLeft:n?"1px solid #333":"1px solid #ccc",background:n?"#141414":"#f5f5f5"},_={minHeight:120,background:n?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:l,leftSiderWidth:i,headerStyle:t,rightSiderStyle:o,contentStyle:_}}d.Z=s},7910:function(u,d,e){e.r(d);var r=e(77154),s=e(86745),a=e(21612),n=e(50136),i=e(67294),l=e(96974),t=e(85893),o=a.Z.Header,_=a.Z.Footer,S=a.Z.Sider,M=a.Z.Content,E=[{label:(0,t.jsx)(s.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}],v=function(){var y=(0,l.s0)(),c=(0,r.Z)(),h=c.leftSiderStyle,D=c.contentStyle,m=function(f){console.log("menu click ",f.key),y("/cs/message/"+f.key)};return(0,t.jsxs)(a.Z,{children:[(0,t.jsx)(S,{style:h,children:(0,t.jsx)(n.Z,{mode:"inline",onClick:m,defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:E})}),(0,t.jsx)(a.Z,{children:(0,t.jsx)(M,{style:D,children:(0,t.jsx)(l.j3,{})})})]})};d.default=v}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Message__index.e32a4992.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Message__index.e32a4992.async.js new file mode 100644 index 00000000..38c841c2 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Message__index.e32a4992.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2949],{77154:function(e,t,d){var n=d(39825);t.Z=function(){var e=(0,n.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},7910:function(e,t,d){d.r(t);var n=d(77154),i=d(86745),a=d(21612),s=d(50136),l=(d(67294),d(96974)),r=d(85893),c=(a.Z.Header,a.Z.Footer,a.Z.Sider),f=a.Z.Content,o=[{label:(0,r.jsx)(i.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}];t.default=function(){var e=(0,l.s0)(),t=(0,n.Z)(),d=t.leftSiderStyle,i=t.contentStyle;return(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(c,{style:d,children:(0,r.jsx)(s.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/cs/message/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:o})}),(0,r.jsx)(a.Z,{children:(0,r.jsx)(f,{style:i,children:(0,r.jsx)(l.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Monitor__index.1eb0f8e4.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Monitor__index.1eb0f8e4.async.js new file mode 100644 index 00000000..cf28e8f6 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Monitor__index.1eb0f8e4.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[296],{77154:function(e,r,t){var n=t(39825);r.Z=function(){var e=(0,n.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},29788:function(e,r,t){t.r(r);var n=t(77154),i=t(21612),d=(t(67294),t(85893)),c=(i.Z.Header,i.Z.Footer,i.Z.Sider,i.Z.Content);r.default=function(){var e=(0,n.Z)().contentStyle;return(0,d.jsx)(i.Z,{children:(0,d.jsx)(i.Z,{children:(0,d.jsx)(c,{style:e,children:"实时监控"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Monitor__index.757dbf91.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Monitor__index.757dbf91.async.js deleted file mode 100644 index 5bc3de56..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Monitor__index.757dbf91.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[296],{77154:function(_,n,r){var d=r(39825);function t(){var o=(0,d.Z)(),e=o.isDarkMode,a=250,i={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},u={background:e?"#141414":"#fff"},l={borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},f={minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:i,leftSiderWidth:a,headerStyle:u,rightSiderStyle:l,contentStyle:f}}n.Z=t},29788:function(_,n,r){r.r(n);var d=r(77154),t=r(21612),o=r(67294),e=r(85893),a=t.Z.Header,i=t.Z.Footer,u=t.Z.Sider,l=t.Z.Content,f=[{label:"\u6587\u7AE0",key:"article"},{label:"\u89C6\u9891",key:"video"}],c=function(){var s=(0,d.Z)(),S=s.contentStyle;return(0,e.jsx)(t.Z,{children:(0,e.jsx)(t.Z,{children:(0,e.jsx)(l,{style:S,children:"\u5B9E\u65F6\u76D1\u63A7"})})})};n.default=c}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__QualityStatistic.859ea27c.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__QualityStatistic.859ea27c.async.js deleted file mode 100644 index a4bb6de9..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__QualityStatistic.859ea27c.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[13],{35451:function(u,n,a){a.r(n);var i=a(85615),c=a(86745),s=a(85893),t=function(){var e=(0,c.useAccess)();return e.canDebug&&console.log("TabQuickReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(c.Access,{accessible:e.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.FormattedMessage,{id:i.h5w})}),children:"can debug"})})})};n.default=t}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__QualityStatistic.9b30d1dc.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__QualityStatistic.9b30d1dc.async.js new file mode 100644 index 00000000..5bbe45db --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__QualityStatistic.9b30d1dc.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[13],{35451:function(e,c,s){s.r(c);var n=s(85615),a=s(86745),i=s(85893);c.default=function(){var e=(0,a.useAccess)();return e.canDebug&&console.log("TabQuickReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(a.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.FormattedMessage,{id:n.h5w})}),children:"can debug"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__QualityTable.83fcc4d5.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__QualityTable.83fcc4d5.async.js new file mode 100644 index 00000000..39705aaa --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__QualityTable.83fcc4d5.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2034],{58638:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(1413),r=n(67294),s={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},o=n(89099),c=function(e,t){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:t,icon:s}))};var i=r.forwardRef(c)},46743:function(e,t,n){n.d(t,{V3:function(){return l}});var a=n(15009),r=n.n(a),s=n(97857),o=n.n(s),c=n(99289),i=n.n(c),u=n(85615),d=n(86745);function l(e){return f.apply(this,arguments)}function f(){return(f=i()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/group/query/org",{method:"GET",params:o()(o()({},t),{},{client:u.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},8278:function(e,t,n){n.r(t);var a=n(15009),r=n.n(a),s=n(97857),o=n.n(s),c=n(13769),i=n.n(c),u=n(99289),d=n.n(u),l=n(80049),f=n(46743),p=n(87676),g=n(58638),h=n(74190),x=n(86745),m=n(14726),y=n(67294),v=n(85893),M=["current"],w=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,v.jsx)(x.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",copyable:!0},{title:(0,v.jsx)(x.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",hideInSearch:!0},{title:(0,v.jsx)(x.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0},{title:(0,v.jsx)(x.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client",hideInSearch:!0},{title:(0,v.jsx)(x.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0}];t.default=function(){var e=(0,x.useIntl)(),t=(0,y.useRef)(),n=(0,p.u)((function(e){return e.currentOrg})),a=[].concat(w,[{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(t,n,a,r){return[(0,v.jsx)("a",{onClick:function(){},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),s=function(){console.log("handleExportExcel"),l.yw.warning("即将上线,敬请期待")};return(0,v.jsx)(h.Z,{columns:a,actionRef:t,cardBordered:!0,request:function(){var e=d()(r()().mark((function e(t,a,s){var c,u,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.current,c=i()(t,M),u=o()({pageNumber:t.current-1,orgUid:n.uid},c),e.next=4,(0,f.V3)(u);case 4:return d=e.sent,console.log("queryGroupsByOrgUid response:",d,u),200===d.code||l.yw.error(d.message),e.abrupt("return",{data:d.data.content,success:!0,total:d.data.totalElements});case 8:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"质检记录",toolBarRender:function(){return[(0,v.jsx)(m.ZP,{icon:(0,v.jsx)(g.Z,{}),type:"primary",onClick:s,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__QualityTable.a4debddd.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__QualityTable.a4debddd.async.js deleted file mode 100644 index 3d18192d..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__QualityTable.a4debddd.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2034],{58638:function(T,u,e){e.d(u,{Z:function(){return m}});var i=e(1413),n=e(67294),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},d=o,p=e(89099),l=function(g,y){return n.createElement(p.Z,(0,i.Z)((0,i.Z)({},g),{},{ref:y,icon:d}))},v=n.forwardRef(l),m=v},46743:function(T,u,e){e.d(u,{V3:function(){return c}});var i=e(15009),n=e.n(i),o=e(97857),d=e.n(o),p=e(99289),l=e.n(p),v=e(85615),m=e(86745);function c(r){return g.apply(this,arguments)}function g(){return g=l()(n()().mark(function r(_){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,m.request)("/api/v1/group/query/org",{method:"GET",params:d()(d()({},_),{},{client:v.bVn})}));case 1:case"end":return t.stop()}},r)})),g.apply(this,arguments)}function y(r){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark(function r(_){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/group/query/uid",{method:"GET",params:_objectSpread(_objectSpread({},_),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),O.apply(this,arguments)}function R(r){return a.apply(this,arguments)}function a(){return a=_asyncToGenerator(_regeneratorRuntime().mark(function r(_){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/group/create",{method:"POST",data:_objectSpread(_objectSpread({},_),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),a.apply(this,arguments)}function C(r){return f.apply(this,arguments)}function f(){return f=_asyncToGenerator(_regeneratorRuntime().mark(function r(_){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/group/update",{method:"POST",data:_objectSpread(_objectSpread({},_),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),f.apply(this,arguments)}function s(r){return M.apply(this,arguments)}function M(){return M=_asyncToGenerator(_regeneratorRuntime().mark(function r(_){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/group/dismiss",{method:"POST",data:{uid:_,client:HTTP_CLIENT}}));case 1:case"end":return t.stop()}},r)})),M.apply(this,arguments)}},8278:function(T,u,e){e.r(u);var i=e(15009),n=e.n(i),o=e(97857),d=e.n(o),p=e(13769),l=e.n(p),v=e(99289),m=e.n(v),c=e(80049),g=e(46743),y=e(87676),O=e(58638),R=e(57482),a=e(86745),C=e(14726),f=e(67294),s=e(85893),M=["current"],r=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,s.jsx)(a.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",copyable:!0},{title:(0,s.jsx)(a.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",hideInSearch:!0},{title:(0,s.jsx)(a.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0},{title:(0,s.jsx)(a.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client",hideInSearch:!0},{title:(0,s.jsx)(a.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0}],_=function(){var t=(0,a.useIntl)(),W=(0,f.useRef)(),L=(0,y.u)(function(E){return E.currentOrg}),x=[].concat(r,[{title:t.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(P,j,I,G){return[(0,s.jsx)("a",{onClick:function(){},children:t.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),K=function(){console.log("handleExportExcel"),c.yw.warning("\u5373\u5C06\u4E0A\u7EBF\uFF0C\u656C\u8BF7\u671F\u5F85")};return(0,s.jsx)(R.Z,{columns:x,actionRef:W,cardBordered:!0,request:function(){var E=m()(n()().mark(function P(j,I,G){var B,A,U,b;return n()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return B=j.current,A=l()(j,M),U=d()({pageNumber:j.current-1,orgUid:L.uid},A),h.next=4,(0,g.V3)(U);case 4:return b=h.sent,console.log("queryGroupsByOrgUid response:",b,U),b.code===200||c.yw.error(b.message),h.abrupt("return",{data:b.data.content,success:!0,total:b.data.totalElements});case 8:case"end":return h.stop()}},P)}));return function(P,j,I){return E.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(P){console.log("page:",P)}},dateFormatter:"string",headerTitle:"\u8D28\u68C0\u8BB0\u5F55",toolBarRender:function(){return[(0,s.jsx)(C.ZP,{icon:(0,s.jsx)(O.Z,{}),type:"primary",onClick:K,children:t.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})};u.default=_},87676:function(T,u,e){e.d(u,{u:function(){return p}});var i=e(85615),n=e(73445),o=e(782),d=e(18753),p=(0,n.Ue)()((0,o.mW)((0,o.tJ)((0,d.n)(function(l,v){return{currentOrg:{uid:"",name:"",description:""},setCurrentOrg:function(c){l({currentOrg:c})},deleteOrg:function(){return l({},!0)}}}),{name:i.eRd})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__index.5332cc4f.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__index.5332cc4f.async.js deleted file mode 100644 index 3b74a293..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__index.5332cc4f.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9505],{77154:function(f,l,e){var r=e(39825);function n(){var i=(0,r.Z)(),a=i.isDarkMode,d=250,s={borderRight:a?"1px solid #333":"1px solid #ccc",background:a?"#141414":"#f5f5f5"},t={background:a?"#141414":"#fff"},o={borderLeft:a?"1px solid #333":"1px solid #ccc",background:a?"#141414":"#f5f5f5"},_={minHeight:120,background:a?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:s,leftSiderWidth:d,headerStyle:t,rightSiderStyle:o,contentStyle:_}}l.Z=n},23458:function(f,l,e){e.r(l);var r=e(77154),n=e(21612),i=e(50136),a=e(67294),d=e(96974),s=e(86745),t=e(85893),o=n.Z.Sider,_=n.Z.Content,S=[{label:(0,t.jsx)(s.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}],y=function(){var E=(0,d.s0)(),u=(0,r.Z)(),M=u.leftSiderStyle,v=u.contentStyle,h=function(c){console.log("menu click ",c.key),E("/cs/quality/"+c.key)};return(0,t.jsxs)(n.Z,{children:[(0,t.jsx)(o,{style:M,children:(0,t.jsx)(i.Z,{mode:"inline",onClick:h,defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:S})}),(0,t.jsx)(n.Z,{children:(0,t.jsx)(_,{style:v,children:(0,t.jsx)(d.j3,{})})})]})};l.default=y}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__index.beb017cd.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__index.beb017cd.async.js new file mode 100644 index 00000000..c8c6366c --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Quality__index.beb017cd.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9505],{77154:function(e,t,i){var n=i(39825);t.Z=function(){var e=(0,n.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},23458:function(e,t,i){i.r(t);var n=i(77154),d=i(21612),a=i(50136),l=(i(67294),i(96974)),s=i(86745),c=i(85893),r=d.Z.Sider,f=d.Z.Content,o=[{label:(0,c.jsx)(s.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}];t.default=function(){var e=(0,l.s0)(),t=(0,n.Z)(),i=t.leftSiderStyle,s=t.contentStyle;return(0,c.jsxs)(d.Z,{children:[(0,c.jsx)(r,{style:i,children:(0,c.jsx)(a.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/cs/quality/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:o})}),(0,c.jsx)(d.Z,{children:(0,c.jsx)(f,{style:s,children:(0,c.jsx)(l.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__QueueStatistic.41e814fe.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__QueueStatistic.41e814fe.async.js new file mode 100644 index 00000000..38d28e85 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__QueueStatistic.41e814fe.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1488],{91918:function(e,c,s){s.r(c);var a=s(85615),n=s(86745),i=s(85893);c.default=function(){var e=(0,n.useAccess)();return e.canDebug&&console.log("QueueStatistic canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(n.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.FormattedMessage,{id:a.h5w})}),children:"QueueStatistic"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__QueueStatistic.6daacee9.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__QueueStatistic.6daacee9.async.js deleted file mode 100644 index 361b09be..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__QueueStatistic.6daacee9.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1488],{91918:function(i,t,e){e.r(t);var u=e(85615),c=e(86745),s=e(85893),n=function(){var a=(0,c.useAccess)();return a.canDebug&&console.log("QueueStatistic canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(c.Access,{accessible:a.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.FormattedMessage,{id:u.h5w})}),children:"QueueStatistic"})})})};t.default=n}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__QueueTable.014c41d2.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__QueueTable.014c41d2.async.js deleted file mode 100644 index 4c682b78..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__QueueTable.014c41d2.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6668],{58638:function(M,l,e){e.d(l,{Z:function(){return f}});var s=e(1413),n=e(67294),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},o=i,d=e(89099),c=function(x,g){return n.createElement(d.Z,(0,s.Z)((0,s.Z)({},x),{},{ref:g,icon:o}))},v=n.forwardRef(c),f=v},73803:function(M,l,e){var s=e(85615),n=e(66419),i=e(86745);function o(){var d=(0,i.useIntl)(),c=function(r){return r&&r.startsWith(s.VoP)?d.formatMessage({id:r,defaultMessage:r}):r},v=function(r){return r!=null&&r.startsWith(s.VoP)?(0,n.aS)(d.formatMessage({id:r}),10):(0,n.aS)(r,10)};return{translateString:c,translateStringTranct:v}}l.Z=o},99450:function(M,l,e){e.r(l),e.d(l,{default:function(){return z}});var s=e(15009),n=e.n(s),i=e(97857),o=e.n(i),d=e(13769),c=e.n(d),v=e(99289),f=e.n(v),r=e(80049),x=e(85615),g=e(86745);function Q(a){return P.apply(this,arguments)}function P(){return P=f()(n()().mark(function a(u){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,g.request)("/api/v1/queue/query/org",{method:"GET",params:o()(o()({},u),{},{client:x.bVn})}));case 1:case"end":return t.stop()}},a)})),P.apply(this,arguments)}function N(a){return S.apply(this,arguments)}function S(){return S=_asyncToGenerator(_regeneratorRuntime().mark(function a(u){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/queue/create",{method:"POST",data:_objectSpread(_objectSpread({},u),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},a)})),S.apply(this,arguments)}function w(a){return R.apply(this,arguments)}function R(){return R=_asyncToGenerator(_regeneratorRuntime().mark(function a(u){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/queue/update",{method:"POST",data:_objectSpread(_objectSpread({},u),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},a)})),R.apply(this,arguments)}function J(a){return j.apply(this,arguments)}function j(){return j=_asyncToGenerator(_regeneratorRuntime().mark(function a(u){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/queue/delete",{method:"POST",data:_objectSpread(_objectSpread({},u),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},a)})),j.apply(this,arguments)}var W=e(73803),L=e(87676),U=e(58638),Z=e(57482),b=e(14726),K=e(67294),p=e(85893),F=["current"],G=function(){var u=(0,g.useIntl)(),O=(0,K.useRef)(),t=(0,W.Z)(),X=t.translateString,H=(0,L.u)(function(m){return m.currentOrg}),V=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,p.jsx)(g.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",hideInSearch:!0},{title:(0,p.jsx)(g.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0},{title:(0,p.jsx)(g.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client",copyable:!0},{title:(0,p.jsx)(g.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0},{title:u.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(y,h,C,A){return[(0,p.jsx)("a",{onClick:function(){},children:u.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}],$=function(){console.log("handleExportExcel"),r.yw.warning("\u5373\u5C06\u4E0A\u7EBF\uFF0C\u656C\u8BF7\u671F\u5F85")};return(0,p.jsx)(Z.Z,{columns:V,actionRef:O,cardBordered:!0,request:function(){var m=f()(n()().mark(function y(h,C,A){var B,D,I,E;return n()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return console.log("request:",h,C,A),B=h.current,D=c()(h,F),I=o()({pageNumber:h.current-1,orgUid:H.uid},D),T.next=5,Q(I);case 5:return E=T.sent,console.log("getAllQueues response:",I,E),E.code===200||r.yw.error(E.message),T.abrupt("return",{data:E.data.content,success:!0,total:E.data.totalElements});case 9:case"end":return T.stop()}},y)}));return function(y,h,C){return m.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(y){console.log("page:",y)}},dateFormatter:"string",headerTitle:"\u6392\u961F\u961F\u5217",toolBarRender:function(){return[(0,p.jsx)(b.ZP,{icon:(0,p.jsx)(U.Z,{}),type:"primary",onClick:$,children:u.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})},z=G},87676:function(M,l,e){e.d(l,{u:function(){return d}});var s=e(85615),n=e(73445),i=e(782),o=e(18753),d=(0,n.Ue)()((0,i.mW)((0,i.tJ)((0,o.n)(function(c,v){return{currentOrg:{uid:"",name:"",description:""},setCurrentOrg:function(r){c({currentOrg:r})},deleteOrg:function(){return c({},!0)}}}),{name:s.eRd})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__QueueTable.7fa3de1b.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__QueueTable.7fa3de1b.async.js new file mode 100644 index 00000000..f264d35c --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__QueueTable.7fa3de1b.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6668],{58638:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(1413),a=n(67294),s={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},o=n(89099),u=function(e,t){return a.createElement(o.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:s}))};var i=a.forwardRef(u)},99450:function(e,t,n){n.r(t),n.d(t,{default:function(){return j}});var r=n(15009),a=n.n(r),s=n(97857),o=n.n(s),u=n(13769),i=n.n(u),c=n(99289),d=n.n(c),l=n(80049),f=n(85615),p=n(86745);function g(e){return h.apply(this,arguments)}function h(){return(h=d()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,p.request)("/api/v1/queue/query/org",{method:"GET",params:o()(o()({},t),{},{client:f.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var m=n(73803),x=n(87676),y=n(58638),v=n(74190),M=n(14726),w=n(67294),b=n(85893),k=["current"],j=function(){var e=(0,p.useIntl)(),t=(0,w.useRef)(),n=((0,m.Z)().translateString,(0,x.u)((function(e){return e.currentOrg}))),r=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,b.jsx)(p.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",hideInSearch:!0},{title:(0,b.jsx)(p.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0},{title:(0,b.jsx)(p.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client",copyable:!0},{title:(0,b.jsx)(p.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0},{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(t,n,r,a){return[(0,b.jsx)("a",{onClick:function(){},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}],s=function(){console.log("handleExportExcel"),l.yw.warning("即将上线,敬请期待")};return(0,b.jsx)(v.Z,{columns:r,actionRef:t,cardBordered:!0,request:function(){var e=d()(a()().mark((function e(t,r,s){var u,c,d;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("request:",t,r,s),t.current,u=i()(t,k),c=o()({pageNumber:t.current-1,orgUid:n.uid},u),e.next=5,g(c);case 5:return d=e.sent,console.log("getAllQueues response:",c,d),200===d.code||l.yw.error(d.message),e.abrupt("return",{data:d.data.content,success:!0,total:d.data.totalElements});case 9:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"排队队列",toolBarRender:function(){return[(0,b.jsx)(M.ZP,{icon:(0,b.jsx)(y.Z,{}),type:"primary",onClick:s,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__index.2316e969.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__index.2316e969.async.js deleted file mode 100644 index 34f4ceff..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__index.2316e969.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9614],{77154:function(f,d,e){var s=e(39825);function r(){var n=(0,s.Z)(),a=n.isDarkMode,_=250,l={borderRight:a?"1px solid #333":"1px solid #ccc",background:a?"#141414":"#f5f5f5"},t={background:a?"#141414":"#fff"},i={borderLeft:a?"1px solid #333":"1px solid #ccc",background:a?"#141414":"#f5f5f5"},o={minHeight:120,background:a?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:l,leftSiderWidth:_,headerStyle:t,rightSiderStyle:i,contentStyle:o}}d.Z=r},36447:function(f,d,e){e.r(d);var s=e(77154),r=e(86745),n=e(21612),a=e(50136),_=e(67294),l=e(96974),t=e(85893),i=n.Z.Sider,o=n.Z.Content,S=[{label:(0,t.jsx)(r.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}],M=function(){var E=(0,l.s0)(),c=(0,s.Z)(),v=c.leftSiderStyle,y=c.contentStyle,h=function(u){console.log("menu click ",u.key),E("/cs/queue/"+u.key)};return(0,t.jsxs)(n.Z,{children:[(0,t.jsx)(i,{style:v,children:(0,t.jsx)(a.Z,{mode:"inline",onClick:h,defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:S})}),(0,t.jsx)(n.Z,{children:(0,t.jsx)(o,{style:y,children:(0,t.jsx)(l.j3,{})})})]})};d.default=M}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__index.8169dad2.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__index.8169dad2.async.js new file mode 100644 index 00000000..1e239532 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Queue__index.8169dad2.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9614],{77154:function(e,t,n){var d=n(39825);t.Z=function(){var e=(0,d.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},36447:function(e,t,n){n.r(t);var d=n(77154),i=n(86745),a=n(21612),l=n(50136),s=(n(67294),n(96974)),c=n(85893),r=a.Z.Sider,f=a.Z.Content,o=[{label:(0,c.jsx)(i.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}];t.default=function(){var e=(0,s.s0)(),t=(0,d.Z)(),n=t.leftSiderStyle,i=t.contentStyle;return(0,c.jsxs)(a.Z,{children:[(0,c.jsx)(r,{style:n,children:(0,c.jsx)(l.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/cs/queue/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:o})}),(0,c.jsx)(a.Z,{children:(0,c.jsx)(f,{style:i,children:(0,c.jsx)(s.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__RateStatistic.37f09ae9.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__RateStatistic.37f09ae9.async.js new file mode 100644 index 00000000..16bbc307 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__RateStatistic.37f09ae9.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9043],{51940:function(e,c,s){s.r(c);var n=s(85615),a=s(86745),i=s(85893);c.default=function(){var e=(0,a.useAccess)();return e.canDebug&&console.log("TabQuickReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(a.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.FormattedMessage,{id:n.h5w})}),children:"can debug"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__RateStatistic.620f2eb2.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__RateStatistic.620f2eb2.async.js deleted file mode 100644 index 73d9f166..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__RateStatistic.620f2eb2.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9043],{51940:function(u,e,a){a.r(e);var t=a(85615),c=a(86745),s=a(85893),i=function(){var n=(0,c.useAccess)();return n.canDebug&&console.log("TabQuickReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(c.Access,{accessible:n.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.FormattedMessage,{id:t.h5w})}),children:"can debug"})})})};e.default=i}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__RateTable.3cea85ec.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__RateTable.3cea85ec.async.js new file mode 100644 index 00000000..2f5f10e3 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__RateTable.3cea85ec.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6900],{58638:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},s=n(89099),c=function(e,t){return a.createElement(s.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};var i=a.forwardRef(c)},5325:function(e,t,n){n.r(t),n.d(t,{default:function(){return j}});var r=n(15009),a=n.n(r),o=n(97857),s=n.n(o),c=n(13769),i=n.n(c),u=n(99289),d=n.n(u),l=n(80049),f=n(85615),p=n(86745);function g(e){return h.apply(this,arguments)}function h(){return(h=d()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,p.request)("/api/v1/vip/rate/query/org",{method:"GET",params:s()(s()({},t),{},{client:f.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var m=n(87676),x=n(58638),y=n(74190),v=n(14726),M=n(67294),w=n(85893),b=["current"],k=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,w.jsx)(p.FormattedMessage,{id:"score",defaultMessage:"Score"}),dataIndex:"score"},{title:(0,w.jsx)(p.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",copyable:!0},{title:(0,w.jsx)(p.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",hideInSearch:!0},{title:(0,w.jsx)(p.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0}],j=function(){var e=(0,p.useIntl)(),t=(0,M.useRef)(),n=(0,m.u)((function(e){return e.currentOrg})),r=[].concat(k,[{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(t,n,r,a){return[(0,w.jsx)("a",{onClick:function(){},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),o=function(){console.log("handleExportExcel"),l.yw.warning("即将上线,敬请期待")};return(0,w.jsx)(y.Z,{columns:r,actionRef:t,cardBordered:!0,request:function(){var e=d()(a()().mark((function e(t,r,o){var c,u,d;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.current,c=i()(t,b),u=s()({pageNumber:t.current-1,orgUid:n.uid},c),e.next=4,g(u);case 4:return d=e.sent,console.log("queryRatesByOrgUid response:",d,u),200===d.code||l.yw.error(d.message),e.abrupt("return",{data:d.data.content,success:!0,total:d.data.totalElements});case 8:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"评价记录",toolBarRender:function(){return[(0,w.jsx)(v.ZP,{icon:(0,w.jsx)(x.Z,{}),type:"primary",onClick:o,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__RateTable.8231f033.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__RateTable.8231f033.async.js deleted file mode 100644 index 88fd7e48..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__RateTable.8231f033.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6900],{58638:function(B,d,e){e.d(d,{Z:function(){return f}});var l=e(1413),a=e(67294),c={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},o=c,h=e(89099),p=function(x,u){return a.createElement(h.Z,(0,l.Z)((0,l.Z)({},x),{},{ref:u,icon:o}))},T=a.forwardRef(p),f=T},5325:function(B,d,e){e.r(d),e.d(d,{default:function(){return H}});var l=e(15009),a=e.n(l),c=e(97857),o=e.n(c),h=e(13769),p=e.n(h),T=e(99289),f=e.n(T),y=e(80049),x=e(85615),u=e(86745);function b(r){return O.apply(this,arguments)}function O(){return O=f()(a()().mark(function r(n){return a()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.request)("/api/v1/vip/rate/query/org",{method:"GET",params:o()(o()({},n),{},{client:x.bVn})}));case 1:case"end":return t.stop()}},r)})),O.apply(this,arguments)}function V(r){return M.apply(this,arguments)}function M(){return M=_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/vip/rate/query/uid",{method:"GET",params:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),M.apply(this,arguments)}function J(r){return j.apply(this,arguments)}function j(){return j=_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/vip/rate/create",{method:"POST",data:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),j.apply(this,arguments)}function Q(r){return C.apply(this,arguments)}function C(){return C=_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/vip/rate/update",{method:"POST",data:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),C.apply(this,arguments)}function X(r){return P.apply(this,arguments)}function P(){return P=_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/vip/rate/dismiss",{method:"POST",data:{uid:n,client:HTTP_CLIENT}}));case 1:case"end":return t.stop()}},r)})),P.apply(this,arguments)}var G=e(87676),W=e(58638),D=e(57482),L=e(14726),w=e(67294),s=e(85893),F=["current"],Z=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,s.jsx)(u.FormattedMessage,{id:"score",defaultMessage:"Score"}),dataIndex:"score"},{title:(0,s.jsx)(u.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",copyable:!0},{title:(0,s.jsx)(u.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",hideInSearch:!0},{title:(0,s.jsx)(u.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0}],z=function(){var n=(0,u.useIntl)(),m=(0,w.useRef)(),t=(0,G.u)(function(i){return i.currentOrg}),$=[].concat(Z,[{title:n.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(R,E,S,N){return[(0,s.jsx)("a",{onClick:function(){},children:n.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),K=function(){console.log("handleExportExcel"),y.yw.warning("\u5373\u5C06\u4E0A\u7EBF\uFF0C\u656C\u8BF7\u671F\u5F85")};return(0,s.jsx)(D.Z,{columns:$,actionRef:m,cardBordered:!0,request:function(){var i=f()(a()().mark(function R(E,S,N){var A,U,I,g;return a()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return A=E.current,U=p()(E,F),I=o()({pageNumber:E.current-1,orgUid:t.uid},U),v.next=4,b(I);case 4:return g=v.sent,console.log("queryRatesByOrgUid response:",g,I),g.code===200||y.yw.error(g.message),v.abrupt("return",{data:g.data.content,success:!0,total:g.data.totalElements});case 8:case"end":return v.stop()}},R)}));return function(R,E,S){return i.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(R){console.log("page:",R)}},dateFormatter:"string",headerTitle:"\u8BC4\u4EF7\u8BB0\u5F55",toolBarRender:function(){return[(0,s.jsx)(L.ZP,{icon:(0,s.jsx)(W.Z,{}),type:"primary",onClick:K,children:n.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})},H=z},87676:function(B,d,e){e.d(d,{u:function(){return h}});var l=e(85615),a=e(73445),c=e(782),o=e(18753),h=(0,a.Ue)()((0,c.mW)((0,c.tJ)((0,o.n)(function(p,T){return{currentOrg:{uid:"",name:"",description:""},setCurrentOrg:function(y){p({currentOrg:y})},deleteOrg:function(){return p({},!0)}}}),{name:l.eRd})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__index.28fcf41c.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__index.28fcf41c.async.js new file mode 100644 index 00000000..e0839e58 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__index.28fcf41c.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5684],{77154:function(e,t,n){var d=n(39825);t.Z=function(){var e=(0,d.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},15877:function(e,t,n){n.r(t);var d=n(77154),i=n(21612),a=n(50136),l=(n(67294),n(96974)),r=n(86745),s=n(85893),c=i.Z.Sider,f=i.Z.Content,o=[{label:(0,s.jsx)(r.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}];t.default=function(){var e=(0,l.s0)(),t=(0,d.Z)(),n=t.leftSiderStyle,r=t.contentStyle;return(0,s.jsxs)(i.Z,{children:[(0,s.jsx)(c,{style:n,children:(0,s.jsx)(a.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/cs/rate/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:o})}),(0,s.jsx)(i.Z,{children:(0,s.jsx)(f,{style:r,children:(0,s.jsx)(l.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__index.922d615b.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__index.922d615b.async.js deleted file mode 100644 index 119e7b60..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Rate__index.922d615b.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5684],{77154:function(u,d,e){var r=e(39825);function n(){var s=(0,r.Z)(),a=s.isDarkMode,l=250,i={borderRight:a?"1px solid #333":"1px solid #ccc",background:a?"#141414":"#f5f5f5"},t={background:a?"#141414":"#fff"},o={borderLeft:a?"1px solid #333":"1px solid #ccc",background:a?"#141414":"#f5f5f5"},_={minHeight:120,background:a?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:i,leftSiderWidth:l,headerStyle:t,rightSiderStyle:o,contentStyle:_}}d.Z=n},15877:function(u,d,e){e.r(d);var r=e(77154),n=e(21612),s=e(50136),a=e(67294),l=e(96974),i=e(86745),t=e(85893),o=n.Z.Sider,_=n.Z.Content,S=[{label:(0,t.jsx)(i.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}],E=function(){var M=(0,l.s0)(),c=(0,r.Z)(),v=c.leftSiderStyle,y=c.contentStyle,h=function(f){console.log("menu click ",f.key),M("/cs/rate/"+f.key)};return(0,t.jsxs)(n.Z,{children:[(0,t.jsx)(o,{style:v,children:(0,t.jsx)(s.Z,{mode:"inline",onClick:h,defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:S})}),(0,t.jsx)(n.Z,{children:(0,t.jsx)(_,{style:y,children:(0,t.jsx)(l.j3,{})})})]})};d.default=E}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Statistic__index.c49e2169.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Statistic__index.c49e2169.async.js new file mode 100644 index 00000000..10ac8d7a --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Statistic__index.c49e2169.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9967],{77154:function(e,t,n){var r=n(39825);t.Z=function(){var e=(0,r.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},48256:function(e,t,n){n.r(t);var r=n(77154),i=n(21612),c=(n(67294),n(85893)),d=i.Z.Content;t.default=function(){var e=(0,r.Z)().contentStyle;return(0,c.jsx)(i.Z,{children:(0,c.jsx)(i.Z,{children:(0,c.jsx)(d,{style:e,children:"报表"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Statistic__index.ec12c20b.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Statistic__index.ec12c20b.async.js deleted file mode 100644 index f656b6e0..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Statistic__index.ec12c20b.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9967],{77154:function(f,r,t){var d=t(39825);function n(){var u=(0,d.Z)(),e=u.isDarkMode,l=250,i={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},_={background:e?"#141414":"#fff"},o={borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},a={minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:i,leftSiderWidth:l,headerStyle:_,rightSiderStyle:o,contentStyle:a}}r.Z=n},48256:function(f,r,t){t.r(r);var d=t(77154),n=t(21612),u=t(67294),e=t(85893),l=n.Z.Content,i=function(){var o=(0,d.Z)(),a=o.contentStyle;return(0,e.jsx)(n.Z,{children:(0,e.jsx)(n.Z,{children:(0,e.jsx)(l,{style:a,children:"\u62A5\u8868"})})})};r.default=i}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadMonitor.3b93433b.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadMonitor.3b93433b.async.js new file mode 100644 index 00000000..7529ffa7 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadMonitor.3b93433b.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[7270],{65057:function(e,c,s){s.r(c);var n=s(85615),a=s(86745),i=s(85893);c.default=function(){var e=(0,a.useAccess)();return e.canDebug&&console.log("TabQuickReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(a.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.FormattedMessage,{id:n.h5w})}),children:"ThreadMonitor"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadMonitor.ce3f973a.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadMonitor.ce3f973a.async.js deleted file mode 100644 index 64196223..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadMonitor.ce3f973a.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[7270],{65057:function(t,e,n){n.r(e);var i=n(85615),a=n(86745),s=n(85893),r=function(){var c=(0,a.useAccess)();return c.canDebug&&console.log("TabQuickReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(a.Access,{accessible:c.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a.FormattedMessage,{id:i.h5w})}),children:"ThreadMonitor"})})})};e.default=r}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadStatistic.e42b7425.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadStatistic.e42b7425.async.js new file mode 100644 index 00000000..0f8b4ddc --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadStatistic.e42b7425.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2097],{22301:function(e,c,s){s.r(c);var a=s(85615),n=s(86745),i=s(85893);c.default=function(){var e=(0,n.useAccess)();return e.canDebug&&console.log("TabQuickReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(n.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.FormattedMessage,{id:a.h5w})}),children:"ThreadStatistic"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadStatistic.eb97860e.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadStatistic.eb97860e.async.js deleted file mode 100644 index 08172025..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadStatistic.eb97860e.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2097],{22301:function(u,e,a){a.r(e);var t=a(85615),c=a(86745),s=a(85893),i=function(){var n=(0,c.useAccess)();return n.canDebug&&console.log("TabQuickReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(c.Access,{accessible:n.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.FormattedMessage,{id:t.h5w})}),children:"ThreadStatistic"})})})};e.default=i}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadSummary.5ea4c3bc.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadSummary.5ea4c3bc.async.js new file mode 100644 index 00000000..ff380484 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadSummary.5ea4c3bc.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8390],{58638:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(1413),a=n(67294),u={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},o=n(89099),s=function(e,t){return a.createElement(o.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:u}))};var c=a.forwardRef(s)},14101:function(e,t,n){n.d(t,{Nm:function(){return f},fk:function(){return d}});var r=n(15009),a=n.n(r),u=n(97857),o=n.n(u),s=n(99289),c=n.n(s),i=n(86745);function d(e){return l.apply(this,arguments)}function l(){return(l=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/v1/thread/query/org",{method:"GET",params:o()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return p.apply(this,arguments)}function p(){return(p=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/v1/thread/close",{method:"POST",data:o()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},96971:function(e,t,n){n.r(t);var r=n(15009),a=n.n(r),u=n(99289),o=n.n(u),s=n(5574),c=n.n(s),i=n(80049),d=n(14101),l=n(87676),f=n(15190),p=n(85615),h=n(17634),g=n(58638),m=n(74190),x=n(86745),v=n(14726),y=n(67294),w=n(85893),k=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,w.jsx)(x.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",copyable:!0},{title:(0,w.jsx)(x.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0},{title:"未读数",dataIndex:"unreadCount"},{title:(0,w.jsx)(x.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",copyable:!0},{title:"来源",dataIndex:"client",copyable:!0},{title:(0,w.jsx)(x.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0}];t.default=function(){var e=(0,x.useIntl)(),t=(0,y.useRef)(),n=(0,y.useState)(1),r=c()(n,2),u=r[0],s=r[1],M=(0,y.useState)(10),b=c()(M,2),R=b[0],T=b[1],S=(0,l.u)((function(e){return e.currentOrg})),E=(0,f.z)((function(e){return{threadResult:e.threadResult,setThreadResult:e.setThreadResult}})),I=E.threadResult,j=E.setThreadResult,z=[].concat(k,[{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(t,n,r,a){return[(0,w.jsx)("a",{onClick:function(){},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),C=function(){var e=o()(a()().mark((function e(){var t,n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={pageNumber:u-1,pageSize:R,orgUid:S.uid},e.next=3,(0,d.fk)(t);case 3:n=e.sent,console.log("getAllThreads response:",t,n),200===n.code?j(n):i.yw.error(n.message);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,y.useEffect)((function(){C()}),[]),(0,y.useEffect)((function(){C()}),[u,R]),(0,y.useEffect)((function(){console.log("threadResult:",I),t.current.reload()}),[I]);var Z=function(){var e=o()(a()().mark((function e(){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("handleExportExcel"),t=localStorage.getItem(p.LA8),window.open((0,h.SV)()+"/api/v1/thread/export?uid="+S.uid+"pageNumber=0&pageSize=20&accessToken="+t);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,w.jsx)(m.Z,{columns:z,actionRef:t,cardBordered:!0,request:function(){var e=o()(a()().mark((function e(t,n,r){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("request:",t,n,r),s(t.current),T(t.pageSize),e.abrupt("return",Promise.resolve({data:I.data.content,success:!0,total:I.data.totalElements}));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{pageSize:R,showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"会话列表",toolBarRender:function(){return[(0,w.jsx)(v.ZP,{icon:(0,w.jsx)(g.Z,{}),type:"primary",onClick:Z,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})}},15190:function(e,t,n){n.d(t,{z:function(){return s}});var r=n(85615),a=n(73445),u=n(782),o=n(18753),s=(0,a.Ue)()((0,u.mW)((0,u.tJ)((0,o.n)((function(e,t){return{threadResult:{data:{content:[]}},setThreadResult:function(t){e({threadResult:t})},deleteThreadCache:function(){return e({},!0)}}})),{name:r.DiZ})))}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadSummary.7e04770e.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadSummary.7e04770e.async.js deleted file mode 100644 index 9981c732..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadSummary.7e04770e.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8390],{58638:function(y,p,e){e.d(p,{Z:function(){return E}});var m=e(1413),r=e(67294),d={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},s=d,h=e(89099),a=function(j,f){return r.createElement(h.Z,(0,m.Z)((0,m.Z)({},j),{},{ref:f,icon:s}))},v=r.forwardRef(a),E=v},14101:function(y,p,e){e.d(p,{Nm:function(){return C},fk:function(){return E}});var m=e(15009),r=e.n(m),d=e(97857),s=e.n(d),h=e(99289),a=e.n(h),v=e(86745);function E(n){return c.apply(this,arguments)}function c(){return c=a()(r()().mark(function n(o){return r()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,v.request)("/api/v1/thread/query/org",{method:"GET",params:s()({},o)}));case 1:case"end":return t.stop()}},n)})),c.apply(this,arguments)}function j(n){return f.apply(this,arguments)}function f(){return f=_asyncToGenerator(_regeneratorRuntime().mark(function n(o){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/thread/update",{method:"POST",data:_objectSpread({},o)}));case 1:case"end":return t.stop()}},n)})),f.apply(this,arguments)}function C(n){return P.apply(this,arguments)}function P(){return P=a()(r()().mark(function n(o){return r()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,v.request)("/api/v1/thread/close",{method:"POST",data:s()({},o)}));case 1:case"end":return t.stop()}},n)})),P.apply(this,arguments)}function T(n){return b.apply(this,arguments)}function b(){return b=_asyncToGenerator(_regeneratorRuntime().mark(function n(o){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/thread/delete",{method:"POST",data:_objectSpread({},o)}));case 1:case"end":return t.stop()}},n)})),b.apply(this,arguments)}function O(n){return u.apply(this,arguments)}function u(){return u=_asyncToGenerator(_regeneratorRuntime().mark(function n(o){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/thread/export",{method:"GET",params:_objectSpread({},o)}));case 1:case"end":return t.stop()}},n)})),u.apply(this,arguments)}},96971:function(y,p,e){e.r(p);var m=e(15009),r=e.n(m),d=e(99289),s=e.n(d),h=e(5574),a=e.n(h),v=e(80049),E=e(14101),c=e(87676),j=e(15190),f=e(85615),C=e(58638),P=e(57482),T=e(86745),b=e(14726),O=e(67294),u=e(85893),n=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,u.jsx)(T.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",copyable:!0},{title:(0,u.jsx)(T.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0},{title:"\u672A\u8BFB\u6570",dataIndex:"unreadCount"},{title:(0,u.jsx)(T.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",copyable:!0},{title:"\u6765\u6E90",dataIndex:"client",copyable:!0},{title:(0,u.jsx)(T.FormattedMessage,{id:"updatedAt",defaultMessage:"updatedAt"}),key:"updatedAt",dataIndex:"updatedAt",sorter:!0,hideInSearch:!0}],o=function(){var t=(0,T.useIntl)(),B=(0,O.useRef)(),k=(0,O.useState)(1),W=a()(k,2),x=W[0],G=W[1],Z=(0,O.useState)(10),K=a()(Z,2),I=K[0],$=K[1],L=(0,c.u)(function(_){return _.currentOrg}),S=(0,j.z)(function(_){return{threadResult:_.threadResult,setThreadResult:_.setThreadResult}}),A=S.threadResult,w=S.setThreadResult,F=[].concat(n,[{title:t.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(l,i,g,M){return[(0,u.jsx)("a",{onClick:function(){},children:t.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),z=function(){var _=s()(r()().mark(function l(){var i,g;return r()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return i={pageNumber:x-1,pageSize:I,orgUid:L.uid},D.next=3,(0,E.fk)(i);case 3:g=D.sent,console.log("getAllThreads response:",i,g),g.code===200?w(g):v.yw.error(g.message);case 6:case"end":return D.stop()}},l)}));return function(){return _.apply(this,arguments)}}();(0,O.useEffect)(function(){z()},[]),(0,O.useEffect)(function(){z()},[x,I]),(0,O.useEffect)(function(){console.log("threadResult:",A),B.current.reload()},[A]);var N=function(){var _=s()(r()().mark(function l(){var i;return r()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:console.log("handleExportExcel"),i=localStorage.getItem(f.LA8),window.open("/api/v1/thread/export?uid="+L.uid+"pageNumber=0&pageSize=20&accessToken="+i);case 3:case"end":return M.stop()}},l)}));return function(){return _.apply(this,arguments)}}();return(0,u.jsx)(P.Z,{columns:F,actionRef:B,cardBordered:!0,request:function(){var _=s()(r()().mark(function l(i,g,M){return r()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return console.log("request:",i,g,M),G(i.current),$(i.pageSize),U.abrupt("return",Promise.resolve({data:A.data.content,success:!0,total:A.data.totalElements}));case 4:case"end":return U.stop()}},l)}));return function(l,i,g){return _.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{pageSize:I,showQuickJumper:!0,onChange:function(l){console.log("page:",l)}},dateFormatter:"string",headerTitle:"\u4F1A\u8BDD\u5217\u8868",toolBarRender:function(){return[(0,u.jsx)(b.ZP,{icon:(0,u.jsx)(C.Z,{}),type:"primary",onClick:N,children:t.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})};p.default=o},87676:function(y,p,e){e.d(p,{u:function(){return h}});var m=e(85615),r=e(73445),d=e(782),s=e(18753),h=(0,r.Ue)()((0,d.mW)((0,d.tJ)((0,s.n)(function(a,v){return{currentOrg:{uid:"",name:"",description:""},setCurrentOrg:function(c){a({currentOrg:c})},deleteOrg:function(){return a({},!0)}}}),{name:m.eRd})))},15190:function(y,p,e){e.d(p,{z:function(){return h}});var m=e(85615),r=e(73445),d=e(782),s=e(18753),h=(0,r.Ue)()((0,d.mW)((0,d.tJ)((0,s.n)(function(a,v){return{threadResult:{data:{content:[]}},setThreadResult:function(c){a({threadResult:c})},deleteThreadCache:function(){return a({},!0)}}}),{name:m.DiZ})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadTable.1434f560.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadTable.1434f560.async.js deleted file mode 100644 index 02bf891c..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadTable.1434f560.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3537],{54407:function(t,a,e){e.r(a);var r=e(60119),n=e(85893),s=function(){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.Z,{type:"service"})})};a.default=s}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadTable.ce1036c6.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadTable.ce1036c6.async.js new file mode 100644 index 00000000..54ce285b --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__ThreadTable.ce1036c6.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3537],{54407:function(e,n,r){r.r(n);var s=r(60119),t=r(85893);n.default=function(){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(s.Z,{type:"service"})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__index.9eb390c0.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__index.9eb390c0.async.js deleted file mode 100644 index a1f3af8f..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__index.9eb390c0.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2148],{77154:function(f,r,t){var n=t(39825);function a(){var i=(0,n.Z)(),d=i.isDarkMode,l=250,s={borderRight:d?"1px solid #333":"1px solid #ccc",background:d?"#141414":"#f5f5f5"},e={background:d?"#141414":"#fff"},o={borderLeft:d?"1px solid #333":"1px solid #ccc",background:d?"#141414":"#f5f5f5"},u={minHeight:120,background:d?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:s,leftSiderWidth:l,headerStyle:e,rightSiderStyle:o,contentStyle:u}}r.Z=a},45966:function(f,r,t){t.r(r);var n=t(77154),a=t(21612),i=t(50136),d=t(67294),l=t(96974),s=t(86745),e=t(85893),o=a.Z.Header,u=a.Z.Footer,M=a.Z.Sider,y=a.Z.Content,S=[{label:(0,e.jsx)(s.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"},{label:(0,e.jsx)(s.FormattedMessage,{id:"monitor",defaultMessage:"Monitor"}),key:"monitor"},{label:(0,e.jsx)(s.FormattedMessage,{id:"statistic",defaultMessage:"Statistic"}),key:"statistic"},{label:(0,e.jsx)(s.FormattedMessage,{id:"summary",defaultMessage:"Summary"}),key:"summary"}],m=function(){var h=(0,l.s0)(),c=(0,n.Z)(),E=c.leftSiderStyle,v=c.contentStyle,g=function(_){console.log("menu click ",_.key),h("/cs/thread/"+_.key)};return(0,e.jsxs)(a.Z,{children:[(0,e.jsx)(M,{style:E,children:(0,e.jsx)(i.Z,{mode:"inline",onClick:g,defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:S})}),(0,e.jsx)(a.Z,{children:(0,e.jsx)(y,{style:v,children:(0,e.jsx)(l.j3,{})})})]})};r.default=m}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__index.c02f8dab.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__index.c02f8dab.async.js new file mode 100644 index 00000000..886d091e --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Thread__index.c02f8dab.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2148],{77154:function(e,t,a){var s=a(39825);t.Z=function(){var e=(0,s.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},45966:function(e,t,a){a.r(t);var s=a(77154),i=a(21612),d=a(50136),r=(a(67294),a(96974)),l=a(86745),n=a(85893),o=(i.Z.Header,i.Z.Footer,i.Z.Sider),c=i.Z.Content,f=[{label:(0,n.jsx)(l.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"},{label:(0,n.jsx)(l.FormattedMessage,{id:"monitor",defaultMessage:"Monitor"}),key:"monitor"},{label:(0,n.jsx)(l.FormattedMessage,{id:"statistic",defaultMessage:"Statistic"}),key:"statistic"},{label:(0,n.jsx)(l.FormattedMessage,{id:"summary",defaultMessage:"Summary"}),key:"summary"}];t.default=function(){var e=(0,r.s0)(),t=(0,s.Z)(),a=t.leftSiderStyle,l=t.contentStyle;return(0,n.jsxs)(i.Z,{children:[(0,n.jsx)(o,{style:a,children:(0,n.jsx)(d.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/cs/thread/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:f})}),(0,n.jsx)(i.Z,{children:(0,n.jsx)(c,{style:l,children:(0,n.jsx)(r.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__TransferStatistic.3863898c.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__TransferStatistic.3863898c.async.js deleted file mode 100644 index 23dae91f..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__TransferStatistic.3863898c.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2001],{67413:function(u,n,a){a.r(n);var i=a(85615),c=a(86745),s=a(85893),t=function(){var e=(0,c.useAccess)();return e.canDebug&&console.log("TabQuickReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(c.Access,{accessible:e.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.FormattedMessage,{id:i.h5w})}),children:"can debug"})})})};n.default=t}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__TransferStatistic.6efe1c90.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__TransferStatistic.6efe1c90.async.js new file mode 100644 index 00000000..676cbc63 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__TransferStatistic.6efe1c90.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2001],{67413:function(e,c,s){s.r(c);var n=s(85615),a=s(86745),i=s(85893);c.default=function(){var e=(0,a.useAccess)();return e.canDebug&&console.log("TabQuickReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(a.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.FormattedMessage,{id:n.h5w})}),children:"can debug"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__TransferTable.6e740c7a.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__TransferTable.6e740c7a.async.js deleted file mode 100644 index 593dda2f..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__TransferTable.6e740c7a.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1048],{58638:function(y,u,e){e.d(u,{Z:function(){return m}});var i=e(1413),_=e(67294),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},d=o,p=e(89099),l=function(g,T){return _.createElement(p.Z,(0,i.Z)((0,i.Z)({},g),{},{ref:T,icon:d}))},v=_.forwardRef(l),m=v},46743:function(y,u,e){e.d(u,{V3:function(){return c}});var i=e(15009),_=e.n(i),o=e(97857),d=e.n(o),p=e(99289),l=e.n(p),v=e(85615),m=e(86745);function c(r){return g.apply(this,arguments)}function g(){return g=l()(_()().mark(function r(n){return _()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,m.request)("/api/v1/group/query/org",{method:"GET",params:d()(d()({},n),{},{client:v.bVn})}));case 1:case"end":return t.stop()}},r)})),g.apply(this,arguments)}function T(r){return f.apply(this,arguments)}function f(){return f=_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/group/query/uid",{method:"GET",params:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),f.apply(this,arguments)}function R(r){return a.apply(this,arguments)}function a(){return a=_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/group/create",{method:"POST",data:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),a.apply(this,arguments)}function C(r){return O.apply(this,arguments)}function O(){return O=_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/group/update",{method:"POST",data:_objectSpread(_objectSpread({},n),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),O.apply(this,arguments)}function s(r){return M.apply(this,arguments)}function M(){return M=_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/group/dismiss",{method:"POST",data:{uid:n,client:HTTP_CLIENT}}));case 1:case"end":return t.stop()}},r)})),M.apply(this,arguments)}},19714:function(y,u,e){e.r(u);var i=e(15009),_=e.n(i),o=e(97857),d=e.n(o),p=e(13769),l=e.n(p),v=e(99289),m=e.n(v),c=e(80049),g=e(46743),T=e(87676),f=e(58638),R=e(57482),a=e(86745),C=e(14726),O=e(67294),s=e(85893),M=["current"],r=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,s.jsx)(a.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",copyable:!0},{title:(0,s.jsx)(a.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",hideInSearch:!0},{title:(0,s.jsx)(a.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0},{title:(0,s.jsx)(a.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client",hideInSearch:!0},{title:(0,s.jsx)(a.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0}],n=function(){var t=(0,a.useIntl)(),W=(0,O.useRef)(),L=(0,T.u)(function(E){return E.currentOrg}),x=[].concat(r,[{title:t.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(P,j,I,G){return[(0,s.jsx)("a",{onClick:function(){},children:t.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),K=function(){console.log("handleExportExcel"),c.yw.warning("\u5373\u5C06\u4E0A\u7EBF\uFF0C\u656C\u8BF7\u671F\u5F85")};return(0,s.jsx)(R.Z,{columns:x,actionRef:W,cardBordered:!0,request:function(){var E=m()(_()().mark(function P(j,I,G){var B,A,U,b;return _()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return B=j.current,A=l()(j,M),U=d()({pageNumber:j.current-1,orgUid:L.uid},A),h.next=4,(0,g.V3)(U);case 4:return b=h.sent,console.log("queryGroupsByOrgUid response:",b,U),b.code===200||c.yw.error(b.message),h.abrupt("return",{data:b.data.content,success:!0,total:b.data.totalElements});case 8:case"end":return h.stop()}},P)}));return function(P,j,I){return E.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(P){console.log("page:",P)}},dateFormatter:"string",headerTitle:"\u8F6C\u63A5\u8BB0\u5F55",toolBarRender:function(){return[(0,s.jsx)(C.ZP,{icon:(0,s.jsx)(f.Z,{}),type:"primary",onClick:K,children:t.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})};u.default=n},87676:function(y,u,e){e.d(u,{u:function(){return p}});var i=e(85615),_=e(73445),o=e(782),d=e(18753),p=(0,_.Ue)()((0,o.mW)((0,o.tJ)((0,d.n)(function(l,v){return{currentOrg:{uid:"",name:"",description:""},setCurrentOrg:function(c){l({currentOrg:c})},deleteOrg:function(){return l({},!0)}}}),{name:i.eRd})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__TransferTable.b9d87a72.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__TransferTable.b9d87a72.async.js new file mode 100644 index 00000000..054870d6 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__TransferTable.b9d87a72.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1048],{58638:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(1413),r=n(67294),s={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},o=n(89099),c=function(e,t){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:t,icon:s}))};var i=r.forwardRef(c)},46743:function(e,t,n){n.d(t,{V3:function(){return l}});var a=n(15009),r=n.n(a),s=n(97857),o=n.n(s),c=n(99289),i=n.n(c),u=n(85615),d=n(86745);function l(e){return f.apply(this,arguments)}function f(){return(f=i()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/group/query/org",{method:"GET",params:o()(o()({},t),{},{client:u.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},19714:function(e,t,n){n.r(t);var a=n(15009),r=n.n(a),s=n(97857),o=n.n(s),c=n(13769),i=n.n(c),u=n(99289),d=n.n(u),l=n(80049),f=n(46743),p=n(87676),g=n(58638),h=n(74190),x=n(86745),m=n(14726),y=n(67294),v=n(85893),M=["current"],w=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,v.jsx)(x.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",copyable:!0},{title:(0,v.jsx)(x.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",hideInSearch:!0},{title:(0,v.jsx)(x.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0},{title:(0,v.jsx)(x.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client",hideInSearch:!0},{title:(0,v.jsx)(x.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0}];t.default=function(){var e=(0,x.useIntl)(),t=(0,y.useRef)(),n=(0,p.u)((function(e){return e.currentOrg})),a=[].concat(w,[{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(t,n,a,r){return[(0,v.jsx)("a",{onClick:function(){},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),s=function(){console.log("handleExportExcel"),l.yw.warning("即将上线,敬请期待")};return(0,v.jsx)(h.Z,{columns:a,actionRef:t,cardBordered:!0,request:function(){var e=d()(r()().mark((function e(t,a,s){var c,u,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.current,c=i()(t,M),u=o()({pageNumber:t.current-1,orgUid:n.uid},c),e.next=4,(0,f.V3)(u);case 4:return d=e.sent,console.log("queryGroupsByOrgUid response:",d,u),200===d.code||l.yw.error(d.message),e.abrupt("return",{data:d.data.content,success:!0,total:d.data.totalElements});case 8:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"转接记录",toolBarRender:function(){return[(0,v.jsx)(m.ZP,{icon:(0,v.jsx)(g.Z,{}),type:"primary",onClick:s,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__index.7aa80787.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__index.7aa80787.async.js new file mode 100644 index 00000000..5ed7ba51 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__index.7aa80787.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5906],{77154:function(e,t,n){var d=n(39825);t.Z=function(){var e=(0,d.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},87092:function(e,t,n){n.r(t);var d=n(77154),i=n(21612),a=n(50136),l=(n(67294),n(96974)),r=n(86745),s=n(85893),c=i.Z.Sider,f=i.Z.Content,o=[{label:(0,s.jsx)(r.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}];t.default=function(){var e=(0,l.s0)(),t=(0,d.Z)(),n=t.leftSiderStyle,r=t.contentStyle;return(0,s.jsxs)(i.Z,{children:[(0,s.jsx)(c,{style:n,children:(0,s.jsx)(a.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/cs/transfer/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:o})}),(0,s.jsx)(i.Z,{children:(0,s.jsx)(f,{style:r,children:(0,s.jsx)(l.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__index.887a6ac3.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__index.887a6ac3.async.js deleted file mode 100644 index af8a2a81..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Transfer__index.887a6ac3.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5906],{77154:function(u,r,e){var l=e(39825);function a(){var s=(0,l.Z)(),n=s.isDarkMode,d=250,i={borderRight:n?"1px solid #333":"1px solid #ccc",background:n?"#141414":"#f5f5f5"},t={background:n?"#141414":"#fff"},o={borderLeft:n?"1px solid #333":"1px solid #ccc",background:n?"#141414":"#f5f5f5"},_={minHeight:120,background:n?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:i,leftSiderWidth:d,headerStyle:t,rightSiderStyle:o,contentStyle:_}}r.Z=a},87092:function(u,r,e){e.r(r);var l=e(77154),a=e(21612),s=e(50136),n=e(67294),d=e(96974),i=e(86745),t=e(85893),o=a.Z.Sider,_=a.Z.Content,S=[{label:(0,t.jsx)(i.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}],E=function(){var M=(0,d.s0)(),f=(0,l.Z)(),v=f.leftSiderStyle,y=f.contentStyle,h=function(c){console.log("menu click ",c.key),M("/cs/transfer/"+c.key)};return(0,t.jsxs)(a.Z,{children:[(0,t.jsx)(o,{style:v,children:(0,t.jsx)(s.Z,{mode:"inline",onClick:h,defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:S})}),(0,t.jsx)(a.Z,{children:(0,t.jsx)(_,{style:y,children:(0,t.jsx)(d.j3,{})})})]})};r.default=E}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__VisitorStatistic.7c52a887.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__VisitorStatistic.7c52a887.async.js new file mode 100644 index 00000000..c275b24f --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__VisitorStatistic.7c52a887.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5206],{51341:function(e,c,s){s.r(c);var n=s(85615),a=s(86745),i=s(85893);c.default=function(){var e=(0,a.useAccess)();return e.canDebug&&console.log("VisitorStatistic canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(a.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.FormattedMessage,{id:n.h5w})}),children:"can debug"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__VisitorStatistic.a97c5723.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__VisitorStatistic.a97c5723.async.js deleted file mode 100644 index c3e27a72..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__VisitorStatistic.a97c5723.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[5206],{51341:function(u,t,c){c.r(t);var n=c(85615),i=c(86745),s=c(85893),e=function(){var a=(0,i.useAccess)();return a.canDebug&&console.log("VisitorStatistic canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(i.Access,{accessible:a.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(i.FormattedMessage,{id:n.h5w})}),children:"can debug"})})})};t.default=e}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__VisitorTable.1f610670.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__VisitorTable.1f610670.async.js new file mode 100644 index 00000000..b7b68caa --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__VisitorTable.1f610670.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[58],{58638:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(1413),r=n(67294),s={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},o=n(89099),c=function(e,t){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:t,icon:s}))};var i=r.forwardRef(c)},46743:function(e,t,n){n.d(t,{V3:function(){return l}});var a=n(15009),r=n.n(a),s=n(97857),o=n.n(s),c=n(99289),i=n.n(c),u=n(85615),d=n(86745);function l(e){return f.apply(this,arguments)}function f(){return(f=i()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/group/query/org",{method:"GET",params:o()(o()({},t),{},{client:u.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},56772:function(e,t,n){n.r(t);var a=n(15009),r=n.n(a),s=n(97857),o=n.n(s),c=n(13769),i=n.n(c),u=n(99289),d=n.n(u),l=n(80049),f=n(46743),p=n(87676),g=n(58638),h=n(74190),x=n(86745),m=n(14726),y=n(67294),v=n(85893),M=["current"],w=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,v.jsx)(x.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",copyable:!0},{title:(0,v.jsx)(x.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",hideInSearch:!0},{title:(0,v.jsx)(x.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0},{title:(0,v.jsx)(x.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client",hideInSearch:!0},{title:(0,v.jsx)(x.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0}];t.default=function(){var e=(0,x.useIntl)(),t=(0,y.useRef)(),n=(0,p.u)((function(e){return e.currentOrg})),a=[].concat(w,[{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(t,n,a,r){return[(0,v.jsx)("a",{onClick:function(){},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),s=function(){console.log("handleExportExcel"),l.yw.warning("即将上线,敬请期待")};return(0,v.jsx)(h.Z,{columns:a,actionRef:t,cardBordered:!0,request:function(){var e=d()(r()().mark((function e(t,a,s){var c,u,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.current,c=i()(t,M),u=o()({pageNumber:t.current-1,orgUid:n.uid},c),e.next=4,(0,f.V3)(u);case 4:return d=e.sent,console.log("queryGroupsByOrgUid response:",d,u),200===d.code||l.yw.error(d.message),e.abrupt("return",{data:d.data.content,success:!0,total:d.data.totalElements});case 8:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"访客列表",toolBarRender:function(){return[(0,v.jsx)(m.ZP,{icon:(0,v.jsx)(g.Z,{}),type:"primary",onClick:s,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__VisitorTable.7545698e.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__VisitorTable.7545698e.async.js deleted file mode 100644 index 6c57cde4..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__VisitorTable.7545698e.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[58],{58638:function(T,i,e){e.d(i,{Z:function(){return m}});var u=e(1413),n=e(67294),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},d=o,p=e(89099),l=function(g,y){return n.createElement(p.Z,(0,u.Z)((0,u.Z)({},g),{},{ref:y,icon:d}))},v=n.forwardRef(l),m=v},46743:function(T,i,e){e.d(i,{V3:function(){return c}});var u=e(15009),n=e.n(u),o=e(97857),d=e.n(o),p=e(99289),l=e.n(p),v=e(85615),m=e(86745);function c(r){return g.apply(this,arguments)}function g(){return g=l()(n()().mark(function r(_){return n()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,m.request)("/api/v1/group/query/org",{method:"GET",params:d()(d()({},_),{},{client:v.bVn})}));case 1:case"end":return t.stop()}},r)})),g.apply(this,arguments)}function y(r){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark(function r(_){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/group/query/uid",{method:"GET",params:_objectSpread(_objectSpread({},_),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),O.apply(this,arguments)}function R(r){return a.apply(this,arguments)}function a(){return a=_asyncToGenerator(_regeneratorRuntime().mark(function r(_){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/group/create",{method:"POST",data:_objectSpread(_objectSpread({},_),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),a.apply(this,arguments)}function C(r){return f.apply(this,arguments)}function f(){return f=_asyncToGenerator(_regeneratorRuntime().mark(function r(_){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/group/update",{method:"POST",data:_objectSpread(_objectSpread({},_),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},r)})),f.apply(this,arguments)}function s(r){return M.apply(this,arguments)}function M(){return M=_asyncToGenerator(_regeneratorRuntime().mark(function r(_){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/group/dismiss",{method:"POST",data:{uid:_,client:HTTP_CLIENT}}));case 1:case"end":return t.stop()}},r)})),M.apply(this,arguments)}},56772:function(T,i,e){e.r(i);var u=e(15009),n=e.n(u),o=e(97857),d=e.n(o),p=e(13769),l=e.n(p),v=e(99289),m=e.n(v),c=e(80049),g=e(46743),y=e(87676),O=e(58638),R=e(57482),a=e(86745),C=e(14726),f=e(67294),s=e(85893),M=["current"],r=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,s.jsx)(a.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",copyable:!0},{title:(0,s.jsx)(a.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",hideInSearch:!0},{title:(0,s.jsx)(a.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0},{title:(0,s.jsx)(a.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client",hideInSearch:!0},{title:(0,s.jsx)(a.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0}],_=function(){var t=(0,a.useIntl)(),W=(0,f.useRef)(),L=(0,y.u)(function(E){return E.currentOrg}),x=[].concat(r,[{title:t.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(P,j,I,G){return[(0,s.jsx)("a",{onClick:function(){},children:t.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),K=function(){console.log("handleExportExcel"),c.yw.warning("\u5373\u5C06\u4E0A\u7EBF\uFF0C\u656C\u8BF7\u671F\u5F85")};return(0,s.jsx)(R.Z,{columns:x,actionRef:W,cardBordered:!0,request:function(){var E=m()(n()().mark(function P(j,I,G){var B,A,U,b;return n()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return B=j.current,A=l()(j,M),U=d()({pageNumber:j.current-1,orgUid:L.uid},A),h.next=4,(0,g.V3)(U);case 4:return b=h.sent,console.log("queryGroupsByOrgUid response:",b,U),b.code===200||c.yw.error(b.message),h.abrupt("return",{data:b.data.content,success:!0,total:b.data.totalElements});case 8:case"end":return h.stop()}},P)}));return function(P,j,I){return E.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(P){console.log("page:",P)}},dateFormatter:"string",headerTitle:"\u8BBF\u5BA2\u5217\u8868",toolBarRender:function(){return[(0,s.jsx)(C.ZP,{icon:(0,s.jsx)(O.Z,{}),type:"primary",onClick:K,children:t.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})};i.default=_},87676:function(T,i,e){e.d(i,{u:function(){return p}});var u=e(85615),n=e(73445),o=e(782),d=e(18753),p=(0,n.Ue)()((0,o.mW)((0,o.tJ)((0,d.n)(function(l,v){return{currentOrg:{uid:"",name:"",description:""},setCurrentOrg:function(c){l({currentOrg:c})},deleteOrg:function(){return l({},!0)}}}),{name:u.eRd})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__index.20531929.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__index.20531929.async.js deleted file mode 100644 index d17310f7..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__index.20531929.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3675],{77154:function(u,d,e){var r=e(39825);function a(){var i=(0,r.Z)(),n=i.isDarkMode,l=250,s={borderRight:n?"1px solid #333":"1px solid #ccc",background:n?"#141414":"#f5f5f5"},t={background:n?"#141414":"#fff"},o={borderLeft:n?"1px solid #333":"1px solid #ccc",background:n?"#141414":"#f5f5f5"},_={minHeight:120,background:n?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:s,leftSiderWidth:l,headerStyle:t,rightSiderStyle:o,contentStyle:_}}d.Z=a},27162:function(u,d,e){e.r(d);var r=e(77154),a=e(21612),i=e(50136),n=e(67294),l=e(96974),s=e(86745),t=e(85893),o=a.Z.Sider,_=a.Z.Content,S=[{label:(0,t.jsx)(s.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}],E=function(){var v=(0,l.s0)(),c=(0,r.Z)(),M=c.leftSiderStyle,y=c.contentStyle,h=function(f){console.log("menu click ",f.key),v("/cs/visitor/"+f.key)};return(0,t.jsxs)(a.Z,{children:[(0,t.jsx)(o,{style:M,children:(0,t.jsx)(i.Z,{mode:"inline",onClick:h,defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:S})}),(0,t.jsx)(a.Z,{children:(0,t.jsx)(_,{style:y,children:(0,t.jsx)(l.j3,{})})})]})};d.default=E}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__index.c8c52b76.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__index.c8c52b76.async.js new file mode 100644 index 00000000..6872ce7f --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Visitor__index.c8c52b76.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3675],{77154:function(e,t,i){var n=i(39825);t.Z=function(){var e=(0,n.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},27162:function(e,t,i){i.r(t);var n=i(77154),d=i(21612),a=i(50136),l=(i(67294),i(96974)),s=i(86745),r=i(85893),c=d.Z.Sider,f=d.Z.Content,o=[{label:(0,r.jsx)(s.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}];t.default=function(){var e=(0,l.s0)(),t=(0,n.Z)(),i=t.leftSiderStyle,s=t.contentStyle;return(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(c,{style:i,children:(0,r.jsx)(a.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/cs/visitor/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:o})}),(0,r.jsx)(d.Z,{children:(0,r.jsx)(f,{style:s,children:(0,r.jsx)(l.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Workgroup__index.5a1a4c41.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Workgroup__index.5a1a4c41.async.js deleted file mode 100644 index 6c80a727..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Workgroup__index.5a1a4c41.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9828],{93428:function(Cr,se,r){r.r(se),r.d(se,{default:function(){return yr}});var ee=r(21612),h=r(67294),pe=r(15009),E=r.n(pe),me=r(99289),K=r.n(me),Fe=r(5574),P=r.n(Fe),g=r(80049),he=r(3418),q=r(21317),ye=r(39825),ue=r(30694),oe=r(87676),re=r(18678),Ce=r(11475),ke=r(64789),y=r(86745),le=r(85576),De=r(86250),X=r(14726),te=r(2487),ie=r(7134),ne=r(73803),Y=r(34994),de=r(5966),ce=r(64317),e=r(85893),xe=function(a){var t=a.open,f=a.onClose,x=a.onSubmit,B=Y.A.useForm(),o=P()(B,1),T=o[0],O=(0,ne.Z)(),u=O.translateString,I=(0,oe.u)(function(k){return k.currentOrg}),L=(0,ue.E)(function(k){return k.agentResult}),V=(0,h.useState)([]),j=P()(V,2),R=j[0],$=j[1],z=function(){console.log("handleOk"),T.validateFields().then(function(p){console.log("form values:",p);var m=T.getFieldValue("nickname"),w=T.getFieldValue("agents"),S={nickname:m,agentUids:w,orgUid:I.uid};console.log("workgroup:",S),x(S)}).catch(function(p){console.log("Form errors:",p)})},H=function(){console.log("handleCancel"),f()},N=function(p){console.log("selected ".concat(p)),$(p)};return(0,e.jsx)("div",{children:(0,e.jsx)(le.Z,{title:"\u521B\u5EFA\u6280\u80FD\u7EC4",open:t,forceRender:!0,onOk:z,onCancel:H,children:(0,e.jsxs)(Y.A,{form:T,name:"wgForm",submitter:{render:function(p,m){return(0,e.jsx)(e.Fragment,{})}},children:[(0,e.jsx)(de.Z,{label:"\u6280\u80FD\u7EC4\u6635\u79F0",name:"nickname",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6635\u79F0!"}]}),(0,e.jsx)(ce.Z,{name:"agents",label:"\u6210\u5458",options:L.data.content.map(function(k){return{value:k.uid,label:u(k.nickname)}}),fieldProps:{mode:"multiple",allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u6210\u5458",value:R,onChange:N}})]})})})},je=xe,Me=function(){var a=(0,y.useIntl)(),t=(0,h.useRef)(!1),f=(0,ne.Z)(),x=f.translateStringTranct,B=(0,ye.Z)(),o=B.isDarkMode,T=(0,h.useState)(!1),O=P()(T,2),u=O[0],I=O[1],L=(0,oe.u)(function(l){return l.currentOrg}),V=(0,ue.E)(function(l){return l.setAgentResult}),j=(0,re.$)(function(l){return{workgroupResult:l.workgroupResult,currentWorkgroup:l.currentWorkgroup,setWorkgroupResult:l.setWorkgroupResult,insertWorkgroup:l.insertWorkgroup,setCurrentWorkgroup:l.setCurrentWorkgroup,deleteCurrentWorkgroup:l.deleteCurrentWorkgroup}}),R=j.workgroupResult,$=j.currentWorkgroup,z=j.setWorkgroupResult,H=j.insertWorkgroup,N=j.setCurrentWorkgroup,k=j.deleteCurrentWorkgroup,p=le.Z.useModal(),m=P()(p,2),w=m[0],S=m[1],n=function(s){w.confirm({title:a.formatMessage({id:"deleteTip"}),icon:(0,e.jsx)(Ce.Z,{}),content:"".concat(a.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"\u3010").concat(s.nickname,"\u3011\uFF1F"),onOk:function(){c(s)},onCancel:function(){},okText:a.formatMessage({id:"ok"}),cancelText:a.formatMessage({id:"cancel"})})},c=function(){var l=K()(E()().mark(function s(F){var i;return E()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return console.log("delete workgroup",F),g.yw.loading(a.formatMessage({id:"deleting",defaultMessage:"Deleting"})),v.next=4,(0,q.zl)(F);case 4:i=v.sent,console.log("delete workgroup response",i),i.code===200?(g.yw.destroy(),g.yw.success(a.formatMessage({id:"delete.success",defaultMessage:"Delete success"})),k(F.uid)):(g.yw.destroy(),g.yw.error(i.message));case 7:case"end":return v.stop()}},s)}));return function(F){return l.apply(this,arguments)}}(),W=function(){var l=K()(E()().mark(function s(){var F,i;return E()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return F={pageNumber:0,pageSize:50,orgUid:L.uid},v.next=3,(0,he._t)(F);case 3:i=v.sent,console.log("queryAgentsByOrg: ",i),i.code===200?V(i):g.yw.error(i.message);case 6:case"end":return v.stop()}},s)}));return function(){return l.apply(this,arguments)}}(),b=function(){var l=K()(E()().mark(function s(){var F,i;return E()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(!t.current){v.next=3;break}return console.log("isLoading: 1",t.current),v.abrupt("return");case 3:return t.current=!0,g.yw.loading("loading"),F={pageNumber:0,pageSize:50,orgUid:L.uid},v.next=8,(0,q.u7)(F);case 8:i=v.sent,console.log("getWorkgroups",i),i.code===200?(g.yw.destroy(),z(i)):(g.yw.destroy(),g.yw.error(i.message)),t.current=!1;case 12:case"end":return v.stop()}},s)}));return function(){return l.apply(this,arguments)}}();(0,h.useEffect)(function(){b(),W()},[]);var Z=function(){I(!0)},G=function(){var l=K()(E()().mark(function s(F){var i;return E()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return console.log("handleSave",F),g.yw.loading(a.formatMessage({id:"creating",defaultMessage:"Creating"})),v.next=4,(0,q.p0)(F);case 4:i=v.sent,console.log("create workgroup:",i),i.code===200?(g.yw.destroy(),g.yw.success(a.formatMessage({id:"create.success",defaultMessage:"create success"})),I(!1),H(i.data)):(g.yw.destroy(),I(!1),g.yw.error(i.message));case 7:case"end":return v.stop()}},s)}));return function(F){return l.apply(this,arguments)}}(),A=function(){I(!1)},D=function(s,F){N(s)},J=function(s,F){console.log("list on delete",s),n(s)},Q=function(){Z()};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(De.Z,{style:{margin:10},gap:"small",align:"flex-start",children:[(0,e.jsx)(X.ZP,{size:"small",type:"primary",icon:(0,e.jsx)(ke.Z,{}),onClick:Q,children:a.formatMessage({id:"pages.robot.new",defaultMessage:"New"})}),(0,e.jsx)(X.ZP,{size:"small",onClick:b,children:a.formatMessage({id:"refresh",defaultMessage:"Refresh"})}),(0,e.jsx)(X.ZP,{onClick:function(){return n($)},size:"small",danger:!0,disabled:$&&$.uid==="",children:a.formatMessage({id:"pages.robot.delete",defaultMessage:"Delete"})})]}),(0,e.jsx)(te.Z,{itemLayout:"horizontal",dataSource:R.data.content,renderItem:function(s,F){return(0,e.jsx)(te.Z.Item,{style:$.uid===s.uid?{backgroundColor:o?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:function(){return D(s,F)},children:(0,e.jsx)(te.Z.Item.Meta,{style:{marginLeft:"10px"},avatar:(0,e.jsx)(ie.C,{src:s.avatar}),title:(0,e.jsx)(e.Fragment,{children:x(s.nickname)}),description:x(s.description)})})}}),(0,e.jsx)(je,{open:u,onClose:A,onSubmit:G}),S]})},Se=Me,ge=r(11941),We=r(97857),U=r.n(We),Ze=r(90672),ve=r(8232),Ae=r(88484),be=r(53004),Ee=function(){var a=Y.A.useForm(),t=P()(a,1),f=t[0],x=(0,y.useIntl)(),B=(0,ne.Z)(),o=B.translateString,T=(0,ue.E)(function(n){return n.agentResult}),O=(0,re.$)(function(n){return{currentWorkgroup:n.currentWorkgroup,setCurrentWorkgroup:n.setCurrentWorkgroup}}),u=O.currentWorkgroup,I=O.setCurrentWorkgroup,L=(0,h.useState)([]),V=P()(L,2),j=V[0],R=V[1],$=(0,h.useState)(""),z=P()($,2),H=z[0],N=z[1];(0,h.useEffect)(function(){if(u){var n;f.setFieldValue("nickname",o(u==null?void 0:u.nickname)),f.setFieldValue("description",o(u==null?void 0:u.description));var c=[];(n=u.agents)===null||n===void 0||n.forEach(function(W){c.push(W.uid)}),R(c)}},[u]);var k=function(c){console.log("selected ".concat(c)),R(c)},p=function(c){console.log("handleUploadSuccess:",c),N(c)},m=function(c){console.log("handleUploadError:",c)},w=function(){var n=K()(E()().mark(function c(W){var b,Z,G,A,D,J,Q,l,s;return E()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return console.log("onFinish",W),g.yw.loading("\u4FEE\u6539\u4E2D..."),l=U()(U()(U()({},u),W),{},{avatar:H,agentUids:j,serviceSettings:U()(U()({},u.serviceSettings),{},{robotUid:(b=u.serviceSettings)===null||b===void 0||(b=b.robot)===null||b===void 0?void 0:b.uid,quickFaqUids:(Z=u.serviceSettings)===null||Z===void 0||(Z=Z.quickFaqs)===null||Z===void 0?void 0:Z.map(function(M){return M.uid}),faqUids:u==null||(G=u.serviceSettings)===null||G===void 0||(G=G.faqs)===null||G===void 0?void 0:G.map(function(M){return M.uid}),guessFaqUids:u==null||(A=u.serviceSettings)===null||A===void 0||(A=A.guessFaqs)===null||A===void 0?void 0:A.map(function(M){return M.uid}),hotFaqUids:(D=u.serviceSettings)===null||D===void 0||(D=D.hotFaqs)===null||D===void 0?void 0:D.map(function(M){return M.uid}),shortcutFaqUids:u==null||(J=u.serviceSettings)===null||J===void 0||(J=J.shortcutFaqs)===null||J===void 0?void 0:J.map(function(M){return M.uid}),worktimeUids:(Q=u.serviceSettings)===null||Q===void 0||(Q=Q.worktimes)===null||Q===void 0?void 0:Q.map(function(M){return M.uid})})}),console.log("workgroupObject:",l),i.next=6,(0,q.W5)(l);case 6:s=i.sent,console.log("updateWorkGroup response:",s),s.code===200?(g.yw.destroy(),g.yw.success(x.formatMessage({id:"update.success"})),I(s.data)):(g.yw.destroy(),g.yw.error(s.message));case 9:case"end":return i.stop()}},c)}));return function(W){return n.apply(this,arguments)}}(),S=function(c){return Array.isArray(c)?c:c==null?void 0:c.fileList};return(0,h.useEffect)(function(){N(u==null?void 0:u.avatar)},[u]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(Y.A,{form:f,style:{marginLeft:"100px",width:"300px"},onFinish:w,initialValues:{nickname:o(u.nickname),description:o(u.description)},children:[(0,e.jsx)(ve.Z.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:S,label:x.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:(0,e.jsxs)(be.G,{onSuccess:p,onError:m,children:[(0,e.jsx)(ie.C,{src:H}),(0,e.jsx)(X.ZP,{icon:(0,e.jsx)(Ae.Z,{}),children:x.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),(0,e.jsx)(de.Z,{width:"md",name:"nickname",label:"\u6635\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6280\u80FD\u7EC4\u6635\u79F0"}]}),(0,e.jsx)(ce.Z,{name:"agents",label:"\u6210\u5458",width:"md",options:T.data.content.map(function(n){return{value:n.uid,label:o(n.nickname)}}),fieldProps:{mode:"multiple",allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u6210\u5458",value:j,onChange:k},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6210\u5458"}]}),(0,e.jsx)(Ze.Z,{width:"md",name:"description",label:"\u63CF\u8FF0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0"}]})]})})},Be=Ee,d=r(85615),Te=r(63434),_=r(1413),Re=r(91),Pe=r(22270),fe=r(78045),Oe=r(90789),$e=r(24809),Ue=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],we=h.forwardRef(function(C,a){var t=C.fieldProps,f=C.options,x=C.radioType,B=C.layout,o=C.proFieldProps,T=C.valueEnum,O=(0,Re.Z)(C,Ue);return(0,e.jsx)($e.Z,(0,_.Z)((0,_.Z)({valueType:x==="button"?"radioButton":"radio",ref:a,valueEnum:(0,Pe.h)(T,void 0)},O),{},{fieldProps:(0,_.Z)({options:f,layout:B},t),proFieldProps:o,filedConfig:{customLightMode:!0}}))}),Ie=h.forwardRef(function(C,a){var t=C.fieldProps,f=C.children;return(0,e.jsx)(fe.ZP,(0,_.Z)((0,_.Z)({},t),{},{ref:a,children:f}))}),Le=(0,Oe.G)(Ie,{valuePropName:"checked",ignoreWidth:!0}),ae=Le;ae.Group=we,ae.Button=fe.ZP.Button,ae.displayName="ProFormComponent";var Ge=ae,Ve=function(){var a=ve.Z.useForm(),t=P()(a,1),f=t[0],x=(0,y.useIntl)(),B=(0,re.$)(function(p){return{currentWorkgroup:p.currentWorkgroup,setCurrentWorkgroup:p.setCurrentWorkgroup}}),o=B.currentWorkgroup,T=B.setCurrentWorkgroup,O=(0,h.useState)(!1),u=P()(O,2),I=u[0],L=u[1],V=(0,h.useState)(d.Jxp),j=P()(V,2),R=j[0],$=j[1];(0,h.useEffect)(function(){var p=re.$.subscribe(function(m){f.setFieldValue("recent",m.currentWorkgroup.recent),f.setFieldValue("routeType",m.currentWorkgroup.routeType)});return p},[o]),(0,h.useEffect)(function(){L(o.recent),$(o.routeType)},[]);var z=function(m){console.log("checked = ".concat(m.target.checked)),L(m.target.checked)},H=function(m){console.log("radio checked",m.target.value),$(m.target.value)},N=function(m,w){return[(0,e.jsx)(X.ZP,{type:"primary",onClick:function(){var n;(n=m.form)===null||n===void 0||n.submit()},children:"\u4FDD\u5B58"},"submit")]},k=function(){var p=K()(E()().mark(function m(w){var S,n,c,W,b,Z;return E()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return console.log("onFinish:",w),g.yw.loading("\u6B63\u5728\u4FEE\u6539..."),b=U()(U()(U()({},o),{},{agentUids:o.agents.map(function(D){return D.uid})},w),{},{serviceSettings:U()(U()({},o.serviceSettings),{},{robotUid:(S=o.serviceSettings)===null||S===void 0||(S=S.robot)===null||S===void 0?void 0:S.uid,quickFaqUids:(n=o.serviceSettings)===null||n===void 0||(n=n.quickFaqs)===null||n===void 0?void 0:n.map(function(D){return D.uid}),faqUids:(c=o.serviceSettings)===null||c===void 0||(c=c.faqs)===null||c===void 0?void 0:c.map(function(D){return D.uid}),worktimeUids:(W=o.serviceSettings)===null||W===void 0||(W=W.worktimes)===null||W===void 0?void 0:W.map(function(D){return D.uid})})}),console.log("workgroupObject:",b),A.next=6,(0,q.W5)(b);case 6:Z=A.sent,console.log("updateWorkGroup response:",Z),Z.code===200?(g.yw.destroy(),g.yw.success(x.formatMessage({id:"update.success"})),T(Z.data)):(g.yw.destroy(),g.yw.error(Z.message));case 9:case"end":return A.stop()}},m)}));return function(w){return p.apply(this,arguments)}}();return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(Y.A,{form:f,style:{marginLeft:"100px"},initialValues:{recent:o==null?void 0:o.recent,routeType:o==null?void 0:o.routeType},submitter:{render:N},onFinish:k,children:[(0,e.jsx)(Te.Z,{name:"recent",label:"\u719F\u5BA2\u4F18\u5148",fieldProps:{onChange:z}}),(0,e.jsx)(Ge.Group,{name:"routeType",label:"\u8DEF\u7531\u7C7B\u578B",options:[{label:"\u8F6E\u8BE2",value:d.Jxp},{label:"\u5F53\u65E5\u63A5\u5F85\u6700\u5C11\u4F18\u5148",value:d.Cap},{label:"\u9971\u548C\u5EA6\u6700\u4F4E\u4F18\u5148",value:d.Vdp},{label:"\u8FDB\u884C\u4E2D\u4F1A\u8BDD\u6700\u5C11\u4F18\u5148",value:d.Q2z}],fieldProps:{value:R,onChange:H}}),(0,e.jsxs)(Y.A.Item,{children:[R===d.Jxp&&(0,e.jsx)("p",{children:"\u6839\u636E\u5BA2\u670D\u4E0A\u7EBF\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"}),R===d.Cap&&(0,e.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"}),R===d.Vdp&&(0,e.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"}),R===d.Q2z&&(0,e.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"})]})]})})},ze=Ve,He=r(40056),Ne=r(79964),Qe=r(50748),Je=r(99072),Ke=r(63772),Xe=r(9025),Ye=r(23035),qe=r(51364),_e=r(64423),er=r(54050),rr=r(73453),ar=r(48489),ur=r(91116),tr=r(35791),nr=function(){var a=(0,y.useIntl)(),t=(0,h.useMemo)(function(){return!0},[]),f=[{key:"faq",label:(0,e.jsx)(y.FormattedMessage,{id:"menu.knowledge.faq",defaultMessage:"FAQ"}),children:(0,e.jsx)(Ne.Z,{type:d.aZD}),disabled:t},{key:"quickFaqs",label:(0,e.jsx)(y.FormattedMessage,{id:"menu.knowledge.quickbutton",defaultMessage:"QuickButton"}),children:(0,e.jsx)(qe.Z,{type:d.aZD}),disabled:t},{key:"faqGuess",label:(0,e.jsx)(y.FormattedMessage,{id:"menu.knowledge.faqGuess",defaultMessage:"FaqGuess"}),children:(0,e.jsx)(_e.Z,{type:d.aZD}),disabled:t},{key:"faqHot",label:(0,e.jsx)(y.FormattedMessage,{id:"menu.knowledge.faqHot",defaultMessage:"FaqHot"}),children:(0,e.jsx)(Qe.Z,{type:d.aZD}),disabled:t},{key:"faqShortcut",label:(0,e.jsx)(y.FormattedMessage,{id:"menu.knowledge.faqShortcut",defaultMessage:"FaqShortcut"}),children:(0,e.jsx)(Je.Z,{type:d.aZD}),disabled:t},{key:"rate",label:(0,e.jsx)(y.FormattedMessage,{id:"rate",defaultMessage:"Rate"}),children:(0,e.jsx)(Ke.Z,{type:d.aZD}),disabled:t},{key:"leaveMsg",label:(0,e.jsx)(y.FormattedMessage,{id:"leavemsg",defaultMessage:"Leave Msg"}),children:(0,e.jsx)(Xe.Z,{type:d.aZD}),disabled:t},{key:"survey",label:(0,e.jsx)(y.FormattedMessage,{id:"survey",defaultMessage:"Survey"}),children:(0,e.jsx)(tr.Z,{type:d.aZD}),disabled:t},{key:"history",label:(0,e.jsx)(y.FormattedMessage,{id:"history",defaultMessage:"History"}),children:(0,e.jsx)(rr.Z,{type:d.aZD}),disabled:t},{key:"inputassociation",label:(0,e.jsx)(y.FormattedMessage,{id:"inputassociation",defaultMessage:"Input Association"}),children:(0,e.jsx)(ur.Z,{type:d.aZD}),disabled:t},{key:"black",label:(0,e.jsx)(y.FormattedMessage,{id:"black",defaultMessage:"Black"}),children:(0,e.jsx)(er.Z,{type:d.aZD}),disabled:t},{key:"antiharassment",label:(0,e.jsx)(y.FormattedMessage,{id:"antiharassment",defaultMessage:"Anti Harassment"}),children:(0,e.jsx)(Ye.Z,{type:d.aZD}),disabled:t}];return(0,e.jsxs)(e.Fragment,{children:[t&&(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(He.Z,{message:"\u4F01\u4E1A\u7248-\u9AD8\u7EA7\u529F\u80FD",style:{marginBottom:20},type:"warning",action:(0,e.jsx)(X.ZP,{type:"link",icon:(0,e.jsx)(ar.Z,{}),onClick:function(){return window.open(d.rVq)},children:a.formatMessage({id:"setting.helpdoc"})})})}),(0,e.jsx)(ge.Z,{tabPosition:"left",items:f})]})},sr=nr,or=r(36649),lr=r(16737),ir=r(31207),dr=r(22268),cr=r(99606),gr=r(59518),vr=function(){var a=(0,y.useIntl)(),t=(0,h.useState)([]),f=P()(t,2),x=f[0],B=f[1],o=[{key:"basic",label:a.formatMessage({id:"pages.robot.tab.basic",defaultMessage:"Basic"}),children:(0,e.jsx)(Be,{})},{key:"serviceSettings",label:a.formatMessage({id:"pages.agent.service.settings",defaultMessage:"Service Settings"}),children:(0,e.jsx)(gr.Z,{type:d.aZD})},{key:"robot",label:a.formatMessage({id:"pages.agent.robot",defaultMessage:"Robot"}),children:(0,e.jsx)(cr.Z,{type:d.aZD})},{key:"route",label:a.formatMessage({id:"pages.workgroup.tab.route",defaultMessage:"Route"}),children:(0,e.jsx)(ze,{})},{key:"advanced",label:a.formatMessage({id:"pages.robot.tab.advanced",defaultMessage:"Advanced"}),children:(0,e.jsx)(sr,{})},{key:"channel",label:a.formatMessage({id:"pages.robot.tab.channel",defaultMessage:"Channel"}),children:(0,e.jsx)(or.Z,{type:d.aZD})},{key:"channelsocial",label:a.formatMessage({id:"channelsocial",defaultMessage:"Social Channel"}),children:(0,e.jsx)(lr.Z,{type:d.aZD})},{key:"channelshop",label:a.formatMessage({id:"channelshop",defaultMessage:"Shop Channel"}),children:(0,e.jsx)(dr.Z,{type:d.aZD})},{key:"channelforeign",label:a.formatMessage({id:"channelforeign",defaultMessage:"Foreign Channel"}),children:(0,e.jsx)(ir.Z,{type:d.aZD})}];return(0,h.useEffect)(function(){B(o)},[]),(0,e.jsx)(ge.Z,{defaultActiveKey:"basic",items:x})},fr=vr,pr=r(77154),mr=ee.Z.Sider,Fr=ee.Z.Content,hr=function(){var a=(0,pr.Z)(),t=a.leftSiderStyle,f=a.leftSiderWidth;return(0,e.jsxs)(ee.Z,{children:[(0,e.jsx)(mr,{width:f,style:t,children:(0,e.jsx)(Se,{})}),(0,e.jsx)(ee.Z,{children:(0,e.jsx)(Fr,{children:(0,e.jsx)(fr,{})})})]})},yr=hr}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Service__Workgroup__index.9b0ae94d.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Workgroup__index.9b0ae94d.async.js new file mode 100644 index 00000000..776c319f --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Service__Workgroup__index.9b0ae94d.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9828],{93428:function(e,t,r){r.r(t),r.d(t,{default:function(){return Fe}});var n=r(21612),s=r(67294),a=r(15009),o=r.n(a),i=r(99289),l=r.n(i),u=r(5574),d=r.n(u),c=r(80049),g=r(3418),f=r(21317),p=r(39825),m=r(30694),v=r(87676),h=r(18678),k=r(11475),y=r(64789),x=r(86745),b=r(85576),j=r(86250),Z=r(14726),M=r(2487),w=r(7134),F=r(73803),S=r(34994),C=r(5966),q=r(64317),W=r(85893),D=function(e){var t=e.open,r=e.onClose,n=e.onSubmit,a=S.A.useForm(),o=d()(a,1)[0],i=(0,F.Z)().translateString,l=(0,v.u)((function(e){return e.currentOrg})),u=(0,m.E)((function(e){return e.agentResult})),c=(0,s.useState)([]),g=d()(c,2),f=g[0],p=g[1];return(0,W.jsx)("div",{children:(0,W.jsx)(b.Z,{title:"创建技能组",open:t,forceRender:!0,onOk:function(){console.log("handleOk"),o.validateFields().then((function(e){console.log("form values:",e);var t={nickname:o.getFieldValue("nickname"),agentUids:o.getFieldValue("agents"),orgUid:l.uid};console.log("workgroup:",t),n(t)})).catch((function(e){console.log("Form errors:",e)}))},onCancel:function(){console.log("handleCancel"),r()},children:(0,W.jsxs)(S.A,{form:o,name:"wgForm",submitter:{render:function(e,t){return(0,W.jsx)(W.Fragment,{})}},children:[(0,W.jsx)(C.Z,{label:"技能组昵称",name:"nickname",rules:[{required:!0,message:"请输入昵称!"}]}),(0,W.jsx)(q.Z,{name:"agents",label:"成员",options:u.data.content.map((function(e){return{value:e.uid,label:i(e.nickname)}})),fieldProps:{mode:"multiple",allowClear:!0,placeholder:"请选择成员",value:f,onChange:function(e){console.log("selected ".concat(e)),p(e)}}})]})})})},P=function(){var e=(0,x.useIntl)(),t=(0,s.useRef)(!1),r=(0,F.Z)().translateStringTranct,n=(0,p.Z)().isDarkMode,a=(0,s.useState)(!1),i=d()(a,2),u=i[0],S=i[1],C=(0,v.u)((function(e){return e.currentOrg})),q=(0,m.E)((function(e){return e.setAgentResult})),P=(0,h.$)((function(e){return{workgroupResult:e.workgroupResult,currentWorkgroup:e.currentWorkgroup,setWorkgroupResult:e.setWorkgroupResult,insertWorkgroup:e.insertWorkgroup,setCurrentWorkgroup:e.setCurrentWorkgroup,deleteCurrentWorkgroup:e.deleteCurrentWorkgroup}})),U=P.workgroupResult,A=P.currentWorkgroup,R=P.setWorkgroupResult,E=P.insertWorkgroup,T=P.setCurrentWorkgroup,I=P.deleteCurrentWorkgroup,V=b.Z.useModal(),z=d()(V,2),G=z[0],L=z[1],B=function(t){G.confirm({title:e.formatMessage({id:"deleteTip"}),icon:(0,W.jsx)(k.Z,{}),content:"".concat(e.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"【").concat(t.nickname,"】?"),onOk:function(){O(t)},onCancel:function(){},okText:e.formatMessage({id:"ok"}),cancelText:e.formatMessage({id:"cancel"})})},O=function(){var t=l()(o()().mark((function t(r){var n;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("delete workgroup",r),c.yw.loading(e.formatMessage({id:"deleting",defaultMessage:"Deleting"})),t.next=4,(0,f.zl)(r);case 4:n=t.sent,console.log("delete workgroup response",n),200===n.code?(c.yw.destroy(),c.yw.success(e.formatMessage({id:"delete.success",defaultMessage:"Delete success"})),I(r.uid)):(c.yw.destroy(),c.yw.error(n.message));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),N=function(){var e=l()(o()().mark((function e(){var t,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={pageNumber:0,pageSize:50,orgUid:C.uid},e.next=3,(0,g._t)(t);case 3:r=e.sent,console.log("queryAgentsByOrg: ",r),200===r.code?q(r):c.yw.error(r.message);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=function(){var e=l()(o()().mark((function e(){var r,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.current){e.next=3;break}return console.log("isLoading: 1",t.current),e.abrupt("return");case 3:return t.current=!0,c.yw.loading("loading"),r={pageNumber:0,pageSize:50,orgUid:C.uid},e.next=8,(0,f.u7)(r);case 8:n=e.sent,console.log("getWorkgroups",n),200===n.code?(c.yw.destroy(),R(n)):(c.yw.destroy(),c.yw.error(n.message)),t.current=!1;case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,s.useEffect)((function(){H(),N()}),[]);var Q=function(){var t=l()(o()().mark((function t(r){var n;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("handleSave",r),c.yw.loading(e.formatMessage({id:"creating",defaultMessage:"Creating"})),t.next=4,(0,f.p0)(r);case 4:n=t.sent,console.log("create workgroup:",n),200===n.code?(c.yw.destroy(),c.yw.success(e.formatMessage({id:"create.success",defaultMessage:"create success"})),S(!1),E(n.data)):(c.yw.destroy(),S(!1),c.yw.error(n.message));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(j.Z,{style:{margin:10},gap:"small",align:"flex-start",children:[(0,W.jsx)(Z.ZP,{size:"small",type:"primary",icon:(0,W.jsx)(y.Z,{}),onClick:function(){S(!0)},children:e.formatMessage({id:"pages.robot.new",defaultMessage:"New"})}),(0,W.jsx)(Z.ZP,{size:"small",onClick:H,children:e.formatMessage({id:"refresh",defaultMessage:"Refresh"})}),(0,W.jsx)(Z.ZP,{onClick:function(){return B(A)},size:"small",danger:!0,disabled:A&&""===A.uid,children:e.formatMessage({id:"pages.robot.delete",defaultMessage:"Delete"})})]}),(0,W.jsx)(M.Z,{itemLayout:"horizontal",dataSource:U.data.content,renderItem:function(e,t){return(0,W.jsx)(M.Z.Item,{style:A.uid===e.uid?{backgroundColor:n?"#333333":"#dddddd",cursor:"pointer"}:{cursor:"pointer"},onClick:function(){T(e)},children:(0,W.jsx)(M.Z.Item.Meta,{style:{marginLeft:"10px"},avatar:(0,W.jsx)(w.C,{src:e.avatar}),title:(0,W.jsx)(W.Fragment,{children:r(e.nickname)}),description:r(e.description)})})}}),(0,W.jsx)(D,{open:u,onClose:function(){S(!1)},onSubmit:Q}),L]})},U=r(11941),A=r(97857),R=r.n(A),E=r(90672),T=r(8232),I=r(88484),V=r(53004),z=function(){var e=S.A.useForm(),t=d()(e,1)[0],r=(0,x.useIntl)(),n=(0,F.Z)().translateString,a=(0,m.E)((function(e){return e.agentResult})),i=(0,h.$)((function(e){return{currentWorkgroup:e.currentWorkgroup,setCurrentWorkgroup:e.setCurrentWorkgroup}})),u=i.currentWorkgroup,g=i.setCurrentWorkgroup,p=(0,s.useState)([]),v=d()(p,2),k=v[0],y=v[1],b=(0,s.useState)(""),j=d()(b,2),M=j[0],D=j[1];(0,s.useEffect)((function(){if(u){var e;t.setFieldValue("nickname",n(null==u?void 0:u.nickname)),t.setFieldValue("description",n(null==u?void 0:u.description));var r=[];null===(e=u.agents)||void 0===e||e.forEach((function(e){r.push(e.uid)})),y(r)}}),[u]);var P=function(){var e=l()(o()().mark((function e(t){var n,s,a,i,l,d,p,m,v;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("onFinish",t),c.yw.loading("修改中..."),m=R()(R()(R()({},u),t),{},{avatar:M,agentUids:k,serviceSettings:R()(R()({},u.serviceSettings),{},{robotUid:null===(n=u.serviceSettings)||void 0===n||null===(n=n.robot)||void 0===n?void 0:n.uid,quickFaqUids:null===(s=u.serviceSettings)||void 0===s||null===(s=s.quickFaqs)||void 0===s?void 0:s.map((function(e){return e.uid})),faqUids:null==u||null===(a=u.serviceSettings)||void 0===a||null===(a=a.faqs)||void 0===a?void 0:a.map((function(e){return e.uid})),guessFaqUids:null==u||null===(i=u.serviceSettings)||void 0===i||null===(i=i.guessFaqs)||void 0===i?void 0:i.map((function(e){return e.uid})),hotFaqUids:null===(l=u.serviceSettings)||void 0===l||null===(l=l.hotFaqs)||void 0===l?void 0:l.map((function(e){return e.uid})),shortcutFaqUids:null==u||null===(d=u.serviceSettings)||void 0===d||null===(d=d.shortcutFaqs)||void 0===d?void 0:d.map((function(e){return e.uid})),worktimeUids:null===(p=u.serviceSettings)||void 0===p||null===(p=p.worktimes)||void 0===p?void 0:p.map((function(e){return e.uid}))})}),console.log("workgroupObject:",m),e.next=6,(0,f.W5)(m);case 6:v=e.sent,console.log("updateWorkGroup response:",v),200===v.code?(c.yw.destroy(),c.yw.success(r.formatMessage({id:"update.success"})),g(v.data)):(c.yw.destroy(),c.yw.error(v.message));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,s.useEffect)((function(){D(null==u?void 0:u.avatar)}),[u]),(0,W.jsx)(W.Fragment,{children:(0,W.jsxs)(S.A,{form:t,style:{marginLeft:"100px",width:"300px"},onFinish:P,children:[(0,W.jsx)(T.Z.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:function(e){return Array.isArray(e)?e:null==e?void 0:e.fileList},label:r.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:(0,W.jsxs)(V.G,{onSuccess:function(e){console.log("handleUploadSuccess:",e),D(e)},onError:function(e){console.log("handleUploadError:",e)},children:[(0,W.jsx)(w.C,{src:M}),(0,W.jsx)(Z.ZP,{icon:(0,W.jsx)(I.Z,{}),children:r.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),(0,W.jsx)(C.Z,{width:"md",name:"nickname",label:"昵称",rules:[{required:!0,message:"请输入技能组昵称"}]}),(0,W.jsx)(q.Z,{name:"agents",label:"成员",width:"md",options:a.data.content.map((function(e){return{value:e.uid,label:n(e.nickname)}})),fieldProps:{mode:"multiple",allowClear:!0,placeholder:"请选择成员",value:k,onChange:function(e){console.log("selected ".concat(e)),y(e)}},rules:[{required:!0,message:"请选择成员"}]}),(0,W.jsx)(E.Z,{width:"md",name:"description",label:"描述",rules:[{required:!0,message:"请输入描述"}]})]})})},G=r(85615),L=r(63434),B=r(1413),O=r(91),N=r(22270),H=r(78045),Q=r(90789),$=r(29258),J=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],K=s.forwardRef((function(e,t){var r=e.fieldProps,n=e.options,s=e.radioType,a=e.layout,o=e.proFieldProps,i=e.valueEnum,l=(0,O.Z)(e,J);return(0,W.jsx)($.Z,(0,B.Z)((0,B.Z)({valueType:"button"===s?"radioButton":"radio",ref:t,valueEnum:(0,N.h)(i,void 0)},l),{},{fieldProps:(0,B.Z)({options:n,layout:a},r),proFieldProps:o,filedConfig:{customLightMode:!0}}))})),_=s.forwardRef((function(e,t){var r=e.fieldProps,n=e.children;return(0,W.jsx)(H.ZP,(0,B.Z)((0,B.Z)({},r),{},{ref:t,children:n}))})),X=(0,Q.G)(_,{valuePropName:"checked",ignoreWidth:!0});X.Group=K,X.Button=H.ZP.Button,X.displayName="ProFormComponent";var Y=X,ee=function(){var e=T.Z.useForm(),t=d()(e,1)[0],r=(0,x.useIntl)(),n=(0,h.$)((function(e){return{currentWorkgroup:e.currentWorkgroup,setCurrentWorkgroup:e.setCurrentWorkgroup}})),a=n.currentWorkgroup,i=n.setCurrentWorkgroup,u=(0,s.useState)(!1),g=d()(u,2),p=(g[0],g[1]),m=(0,s.useState)(G.Jxp),v=d()(m,2),k=v[0],y=v[1];(0,s.useEffect)((function(){return h.$.subscribe((function(e){t.setFieldValue("recent",e.currentWorkgroup.recent),t.setFieldValue("routeType",e.currentWorkgroup.routeType)}))}),[a]),(0,s.useEffect)((function(){p(a.recent),y(a.routeType)}),[]);var b=function(){var e=l()(o()().mark((function e(t){var n,s,l,u,d,g;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("onFinish:",t),c.yw.loading("正在修改..."),d=R()(R()(R()({},a),{},{agentUids:a.agents.map((function(e){return e.uid}))},t),{},{serviceSettings:R()(R()({},a.serviceSettings),{},{robotUid:null===(n=a.serviceSettings)||void 0===n||null===(n=n.robot)||void 0===n?void 0:n.uid,quickFaqUids:null===(s=a.serviceSettings)||void 0===s||null===(s=s.quickFaqs)||void 0===s?void 0:s.map((function(e){return e.uid})),faqUids:null===(l=a.serviceSettings)||void 0===l||null===(l=l.faqs)||void 0===l?void 0:l.map((function(e){return e.uid})),worktimeUids:null===(u=a.serviceSettings)||void 0===u||null===(u=u.worktimes)||void 0===u?void 0:u.map((function(e){return e.uid}))})}),console.log("workgroupObject:",d),e.next=6,(0,f.W5)(d);case 6:g=e.sent,console.log("updateWorkGroup response:",g),200===g.code?(c.yw.destroy(),c.yw.success(r.formatMessage({id:"update.success"})),i(g.data)):(c.yw.destroy(),c.yw.error(g.message));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,W.jsx)(W.Fragment,{children:(0,W.jsxs)(S.A,{form:t,style:{marginLeft:"100px"},initialValues:{recent:null==a?void 0:a.recent,routeType:null==a?void 0:a.routeType},submitter:{render:function(e,t){return[(0,W.jsx)(Z.ZP,{type:"primary",onClick:function(){var t;null===(t=e.form)||void 0===t||t.submit()},children:"保存"},"submit")]}},onFinish:b,children:[(0,W.jsx)(L.Z,{name:"recent",label:"熟客优先",fieldProps:{onChange:function(e){console.log("checked = ".concat(e.target.checked)),p(e.target.checked)}}}),(0,W.jsx)(Y.Group,{name:"routeType",label:"路由类型",options:[{label:"轮询",value:G.Jxp},{label:"当日接待最少优先",value:G.Cap},{label:"饱和度最低优先",value:G.Vdp},{label:"进行中会话最少优先",value:G.Q2z}],fieldProps:{value:k,onChange:function(e){console.log("radio checked",e.target.value),y(e.target.value)}}}),(0,W.jsxs)(S.A.Item,{children:[k===G.Jxp&&(0,W.jsx)("p",{children:"根据客服上线时间进入队列轮流分配。注意:当客服网络不稳定掉线重连之后,会重新排到队列末尾"}),k===G.Cap&&(0,W.jsx)("p",{children:"根据当日(0点开始)客服接待总数进行分配,优先分配给数量最少者。注意:假如客服上班时间不统一,晚登录者登录后会集中收到分配新客,直到跟其他在线客服接待数量相等为止"}),k===G.Vdp&&(0,W.jsx)("p",{children:"根据(客服最大接待数量-当前进行中会话数量)之差分配,优先分配给数量最大者。注意:假如每个客服最大接待数量相等,则此方法跟’进行中会话最少优先‘效果一样"}),k===G.Q2z&&(0,W.jsx)("p",{children:"根据客服当前进行中会话进行分配,优先分配给数量最少者。注意:客服接待数量会受到客服接待速度的影响,接待完毕之后,客服手动结束会话有利于加速分配新客"})]})]})})},te=r(38437),re=r(79964),ne=r(50748),se=r(99072),ae=r(63772),oe=r(9025),ie=r(23035),le=r(51364),ue=r(64423),de=r(54050),ce=r(73453),ge=r(48489),fe=r(91116),pe=r(35791),me=function(){var e=(0,x.useIntl)(),t=(0,s.useMemo)((function(){return!0}),[]),r=[{key:"faq",label:(0,W.jsx)(x.FormattedMessage,{id:"menu.knowledge.faq",defaultMessage:"FAQ"}),children:(0,W.jsx)(re.Z,{type:G.aZD}),disabled:t},{key:"quickFaqs",label:(0,W.jsx)(x.FormattedMessage,{id:"menu.knowledge.quickbutton",defaultMessage:"QuickButton"}),children:(0,W.jsx)(le.Z,{type:G.aZD}),disabled:t},{key:"faqGuess",label:(0,W.jsx)(x.FormattedMessage,{id:"menu.knowledge.faqGuess",defaultMessage:"FaqGuess"}),children:(0,W.jsx)(ue.Z,{type:G.aZD}),disabled:t},{key:"faqHot",label:(0,W.jsx)(x.FormattedMessage,{id:"menu.knowledge.faqHot",defaultMessage:"FaqHot"}),children:(0,W.jsx)(ne.Z,{type:G.aZD}),disabled:t},{key:"faqShortcut",label:(0,W.jsx)(x.FormattedMessage,{id:"menu.knowledge.faqShortcut",defaultMessage:"FaqShortcut"}),children:(0,W.jsx)(se.Z,{type:G.aZD}),disabled:t},{key:"rate",label:(0,W.jsx)(x.FormattedMessage,{id:"rate",defaultMessage:"Rate"}),children:(0,W.jsx)(ae.Z,{type:G.aZD}),disabled:t},{key:"leaveMsg",label:(0,W.jsx)(x.FormattedMessage,{id:"leavemsg",defaultMessage:"Leave Msg"}),children:(0,W.jsx)(oe.Z,{type:G.aZD}),disabled:t},{key:"survey",label:(0,W.jsx)(x.FormattedMessage,{id:"survey",defaultMessage:"Survey"}),children:(0,W.jsx)(pe.Z,{type:G.aZD}),disabled:t},{key:"history",label:(0,W.jsx)(x.FormattedMessage,{id:"history",defaultMessage:"History"}),children:(0,W.jsx)(ce.Z,{type:G.aZD}),disabled:t},{key:"inputassociation",label:(0,W.jsx)(x.FormattedMessage,{id:"inputassociation",defaultMessage:"Input Association"}),children:(0,W.jsx)(fe.Z,{type:G.aZD}),disabled:t},{key:"black",label:(0,W.jsx)(x.FormattedMessage,{id:"black",defaultMessage:"Black"}),children:(0,W.jsx)(de.Z,{type:G.aZD}),disabled:t},{key:"antiharassment",label:(0,W.jsx)(x.FormattedMessage,{id:"antiharassment",defaultMessage:"Anti Harassment"}),children:(0,W.jsx)(ie.Z,{type:G.aZD}),disabled:t}];return(0,W.jsxs)(W.Fragment,{children:[t&&(0,W.jsx)(W.Fragment,{children:(0,W.jsx)(te.Z,{message:"企业版-高级功能",style:{marginBottom:20},type:"warning",action:(0,W.jsx)(Z.ZP,{type:"link",icon:(0,W.jsx)(ge.Z,{}),onClick:function(){return window.open(G.rVq)},children:e.formatMessage({id:"setting.helpdoc"})})})}),(0,W.jsx)(U.Z,{tabPosition:"left",items:r})]})},ve=r(36649),he=r(16737),ke=r(31207),ye=r(22268),xe=r(99606),be=r(59518),je=function(){var e=(0,x.useIntl)(),t=(0,s.useState)([]),r=d()(t,2),n=r[0],a=r[1],o=[{key:"basic",label:e.formatMessage({id:"pages.robot.tab.basic",defaultMessage:"Basic"}),children:(0,W.jsx)(z,{})},{key:"serviceSettings",label:e.formatMessage({id:"pages.agent.service.settings",defaultMessage:"Service Settings"}),children:(0,W.jsx)(be.Z,{type:G.aZD})},{key:"robot",label:e.formatMessage({id:"pages.agent.robot",defaultMessage:"Robot"}),children:(0,W.jsx)(xe.Z,{type:G.aZD})},{key:"route",label:e.formatMessage({id:"pages.workgroup.tab.route",defaultMessage:"Route"}),children:(0,W.jsx)(ee,{})},{key:"advanced",label:e.formatMessage({id:"pages.robot.tab.advanced",defaultMessage:"Advanced"}),children:(0,W.jsx)(me,{})},{key:"channel",label:e.formatMessage({id:"pages.robot.tab.channel",defaultMessage:"Channel"}),children:(0,W.jsx)(ve.Z,{type:G.aZD})},{key:"channelsocial",label:e.formatMessage({id:"channelsocial",defaultMessage:"Social Channel"}),children:(0,W.jsx)(he.Z,{type:G.aZD})},{key:"channelshop",label:e.formatMessage({id:"channelshop",defaultMessage:"Shop Channel"}),children:(0,W.jsx)(ye.Z,{type:G.aZD})},{key:"channelforeign",label:e.formatMessage({id:"channelforeign",defaultMessage:"Foreign Channel"}),children:(0,W.jsx)(ke.Z,{type:G.aZD})}];return(0,s.useEffect)((function(){a(o)}),[]),(0,W.jsx)(U.Z,{defaultActiveKey:"basic",items:n})},Ze=r(77154),Me=n.Z.Sider,we=n.Z.Content,Fe=function(){var e=(0,Ze.Z)(),t=e.leftSiderStyle,r=e.leftSiderWidth;return(0,W.jsxs)(n.Z,{children:[(0,W.jsx)(Me,{width:r,style:t,children:(0,W.jsx)(P,{})}),(0,W.jsx)(n.Z,{children:(0,W.jsx)(we,{children:(0,W.jsx)(je,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Basic__index.14658bc0.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Basic__index.14658bc0.async.js deleted file mode 100644 index 6ff1e249..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Basic__index.14658bc0.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6766],{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__Basic__index.71489298.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Basic__index.71489298.async.js new file mode 100644 index 00000000..e0b7ee8b --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Basic__index.71489298.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6766],{76821:function(e,t,a){a.r(t);var l=a(39825),s=a(86745),n=a(78045),o=a(85893);t.default=function(){var e=(0,l.Z)(),t=e.themeMode,a=e.setThemeMode,r=(0,s.getLocale)();return(0,o.jsxs)("div",{style:{textAlign:"center",marginTop:"50px"},children:[(0,o.jsxs)(n.ZP.Group,{onChange:function(e){console.log("radio checked",e.target.value),a(e.target.value),window.location.reload()},value:t,children:[(0,o.jsx)(n.ZP,{value:"light",children:(0,o.jsx)(s.FormattedMessage,{id:"theme.light"})}),(0,o.jsx)(n.ZP,{value:"dark",children:(0,o.jsx)(s.FormattedMessage,{id:"theme.dark"})}),(0,o.jsx)(n.ZP,{value:"system",children:(0,o.jsx)(s.FormattedMessage,{id:"theme.system"})})]}),(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),(0,o.jsxs)(n.ZP.Group,{value:r,onChange:function(e){var t=e.target.value;console.log("localeValue:",t),r&&"zh-CN"!==r?(0,s.setLocale)("zh-CN"):(0,s.setLocale)("en-US")},children:[(0,o.jsx)(n.ZP.Button,{value:"en-US",children:"English"}),(0,o.jsx)(n.ZP.Button,{value:"zh-CN",children:"中文"})]})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Profile__index.13d3f77f.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Profile__index.13d3f77f.async.js new file mode 100644 index 00000000..ba43b63f --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Profile__index.13d3f77f.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9290],{88484:function(e,n,r){r.d(n,{Z:function(){return i}});var s=r(1413),a=r(67294),o={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"},t=r(89099),l=function(e,n){return a.createElement(t.Z,(0,s.Z)((0,s.Z)({},e),{},{ref:n,icon:o}))};var i=a.forwardRef(l)},90672:function(e,n,r){var s=r(1413),a=r(91),o=r(67294),t=r(29258),l=r(85893),i=["fieldProps","proFieldProps"],c=function(e,n){var r=e.fieldProps,o=e.proFieldProps,c=(0,a.Z)(e,i);return(0,l.jsx)(t.Z,(0,s.Z)({ref:n,valueType:"textarea",fieldProps:r,proFieldProps:o},c))};n.Z=o.forwardRef(c)},53004:function(e,n,r){r.d(n,{G:function(){return d}});var s=r(97857),a=r.n(s),o=(r(67294),r(64121)),t=r(85615),l=r(27484),i=r.n(l),c=r(80049),u=r(17634),f=r(85893),d=function(e){var n=e.children,r=e.onSuccess,s=e.onError,l={file:null,file_name:"test.png",file_type:"image/png",is_avatar:"true",kb_type:"",category_uid:"",kb_uid:"",client:t.bVn},d={name:"file",accept:"image/*",action:(0,u.M$)(),headers:{Authorization:"Bearer "+localStorage.getItem(t.LA8)},data:l,showUploadList:!1,beforeUpload:function(e){console.log("beforeUpload",e);var n=i()(new Date).format("YYYYMMDDHHmmss")+"_"+e.name;l.file=e,l.file_name=n,l.file_type=e.type,console.log("beforeUpload",l)},onChange:function(e){if("uploading"!==e.file.status&&console.log("not uploading:",e.file),"done"===e.file.status)if(console.log("response: ",e.file.response),200===e.file.response.code){var n=e.file.response.data;r(n),c.yw.success("".concat(e.file.name," 上传成功"))}else s(e.file),c.yw.error("".concat(e.file.name," 上传失败"));else"error"===e.file.status&&(c.yw.error("".concat(e.file.name," 上传失败")),s(e.file))}};return(0,f.jsx)(o.Z,a()(a()({},d),{},{children:n}))}},22078:function(e,n,r){r.r(n),r.d(n,{default:function(){return O}});var s=r(15009),a=r.n(s),o=r(97857),t=r.n(o),l=r(99289),i=r.n(l),c=r(5574),u=r.n(c),f=r(67294),d=r(7134),p=r(14726),m=r(34994),g=r(5966),w=r(90672),b=r(86745),h=r(88484),v=r(60247),P=r(16761),x=r(80049),y=r(53004),Z=r(73803),j=r(16854),M=r(85576),C=r(85893),k=function(e){var n=e.open,r=e.onClose,s=(0,b.useIntl)();return(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(M.Z,{title:s.formatMessage({id:"pages.settings.reset.password",defaultMessage:"重置密码"}),forceRender:!0,open:n,footer:null,onCancel:function(){r()},children:(0,C.jsxs)(m.A,{initialValues:{oldPassword:"",newPassword:"",confirmPassword:""},onFinish:function(){var e=i()(a()().mark((function e(n){var s,o;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("changePassword:",n),!(n.newPassword.trim().length<6)){e.next=4;break}return x.yw.error("password length should not be less than 6"),e.abrupt("return");case 4:if(n.newPassword===n.confirmPassword){e.next=7;break}return x.yw.error("New password and confirm password do not match"),e.abrupt("return");case 7:return s={oldPassword:n.oldPassword,newPassword:n.newPassword},e.next=10,(0,P.Cp)(s);case 10:o=e.sent,console.log("changePassword response:",o),200===o.code?(x.yw.success("Password changed successfully!"),r()):x.yw.error(o.message);case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,C.jsx)(g.Z.Password,{name:"oldPassword",label:"原密码(手机号直接登录用户,可以留空)"}),(0,C.jsx)(g.Z.Password,{name:"newPassword",label:"新密码"}),(0,C.jsx)(g.Z.Password,{name:"confirmPassword",label:"确认密码"})]})})})},I={labelCol:{span:8},wrapperCol:{span:8}},O=function(){var e=(0,b.useIntl)(),n=(0,Z.Z)().translateString,r=(0,v.L)((function(e){return{userInfo:e.userInfo,setUserInfo:e.setUserInfo}})),s=r.userInfo,o=r.setUserInfo,l=(0,f.useState)(""),c=u()(l,2),M=c[0],O=c[1],U=(0,f.useState)(!1),E=u()(U,2),V=E[0],A=E[1],_=function(){var n=i()(a()().mark((function n(r){var l,i;return a()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return l=t()(t()(t()({},s),r),{},{avatar:M}),console.log(l),n.next=4,(0,P.ck)(l);case 4:i=n.sent,console.log("updateProfile response:",i),200===i.code?(x.yw.success(e.formatMessage({id:"update.success"})),i.data.username!==s.username?(0,j.NZ)():o(i.data)):x.yw.error(i.message);case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return(0,f.useEffect)((function(){s&&O(s.avatar)}),[s]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(m.A,t()(t()({},I),{},{onFinish:_,initialValues:{uid:s.uid,username:s.username,nickname:s.nickname,email:s.email,mobile:s.mobile,description:n(s.description)},children:[(0,C.jsx)(g.Z,{name:"uid",label:"Uid",rules:[{required:!0}],readonly:!0}),(0,C.jsx)(m.A.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:function(e){return Array.isArray(e)?e:null==e?void 0:e.fileList},label:e.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:(0,C.jsxs)(y.G,{onSuccess:function(e){console.log("handleUploadSuccess:",e),O(e)},onError:function(e){console.log("handleUploadError:",e)},children:[(0,C.jsx)(d.C,{src:M}),(0,C.jsx)(p.ZP,{icon:(0,C.jsx)(h.Z,{}),children:e.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),(0,C.jsx)(g.Z,{name:"username",label:e.formatMessage({id:"username.change.tip",defaultMessage:"Username"}),rules:[{required:!0}]}),(0,C.jsx)(p.ZP,{onClick:function(){A(!0)},children:e.formatMessage({id:"pages.settings.reset.password",defaultMessage:"重置密码"})}),(0,C.jsx)(g.Z,{name:"nickname",label:e.formatMessage({id:"nickname",defaultMessage:"Nickname"}),rules:[{required:!0}]}),(0,C.jsx)(g.Z,{name:"email",label:s.emailVerified?e.formatMessage({id:"email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"email.unverified",defaultMessage:"email unverified"}),rules:[{type:"email"}],readonly:!0}),(0,C.jsx)(g.Z,{name:"mobile",label:s.mobileVerified?e.formatMessage({id:"mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"mobile.unverified",defaultMessage:"mobile unverified"}),readonly:!0}),(0,C.jsx)(w.Z,{name:"description",label:e.formatMessage({id:"description",defaultMessage:"Description"})})]})),(0,C.jsx)(k,{open:V,onClose:function(){A(!1)}})]})}},85576:function(e,n,r){r.d(n,{Z:function(){return x}});var s=r(56080),a=r(38657),o=r(56745),t=r(67294),l=r(93967),i=r.n(l),c=r(40974),u=r(8745),f=r(53124),d=r(35792),p=r(32409),m=r(4941),g=r(71194),w=function(e,n){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&n.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,closeIcon:s,closable:a,type:o,title:l,children:u,footer:b}=e,h=w(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:v}=t.useContext(f.E_),P=v(),x=n||v("modal"),y=(0,d.Z)(P),[Z,j,M]=(0,g.ZP)(x,y),C=`${x}-confirm`;let k={};return k=o?{closable:null!=a&&a,title:"",footer:"",children:t.createElement(p.O,Object.assign({},e,{prefixCls:x,confirmPrefixCls:C,rootPrefixCls:P,content:u}))}:{closable:null==a||a,title:l,footer:null!==b&&t.createElement(m.$,Object.assign({},e)),children:u},Z(t.createElement(c.s,Object.assign({prefixCls:x,className:i()(j,`${x}-pure-panel`,o&&C,o&&`${C}-${o}`,r,M,y)},h,{closeIcon:(0,m.b)(x,s),closable:a},k)))})),h=r(94423);function v(e){return(0,s.ZP)((0,s.uW)(e))}const P=o.Z;P.useModal=h.Z,P.info=function(e){return(0,s.ZP)((0,s.cw)(e))},P.success=function(e){return(0,s.ZP)((0,s.vq)(e))},P.error=function(e){return(0,s.ZP)((0,s.AQ)(e))},P.warning=v,P.warn=v,P.confirm=function(e){return(0,s.ZP)((0,s.Au)(e))},P.destroyAll=function(){for(;a.Z.length;){const e=a.Z.pop();e&&e()}},P.config=s.ai,P._InternalPanelDoNotUseOrYouWillBeFired=b;var x=P}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Profile__index.3f0a37c1.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Profile__index.3f0a37c1.async.js deleted file mode 100644 index 488c9bc4..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Profile__index.3f0a37c1.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9290],{88484:function(L,P,e){e.d(P,{Z:function(){return c}});var r=e(1413),o=e(67294),p={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"},l=p,v=e(89099),f=function(D,A){return o.createElement(v.Z,(0,r.Z)((0,r.Z)({},D),{},{ref:A,icon:l}))},M=o.forwardRef(f),c=M},90672:function(L,P,e){var r=e(1413),o=e(91),p=e(67294),l=e(24809),v=e(85893),f=["fieldProps","proFieldProps"],M=function(s,D){var A=s.fieldProps,O=s.proFieldProps,g=(0,o.Z)(s,f);return(0,v.jsx)(l.Z,(0,r.Z)({ref:D,valueType:"textarea",fieldProps:A,proFieldProps:O},g))};P.Z=p.forwardRef(M)},53004:function(L,P,e){e.d(P,{G:function(){return D}});var r=e(97857),o=e.n(r),p=e(67294),l=e(64121),v=e(85615),f=e(27484),M=e.n(f),c=e(80049),s=e(85893),D=function(O){var g=O.children,V=O.onSuccess,x=O.onError,I={file:null,file_name:"test.png",file_type:"image/png",is_avatar:"true",kb_type:"",category_uid:"",kb_uid:"",client:v.bVn},w={name:"file",accept:"image/*",action:"/api/v1/upload/file",headers:{Authorization:"Bearer "+localStorage.getItem(v.LA8)},data:I,showUploadList:!1,beforeUpload:function(a){console.log("beforeUpload",a);var Z=M()(new Date).format("YYYYMMDDHHmmss")+"_"+a.name;I.file=a,I.file_name=Z,I.file_type=a.type,console.log("beforeUpload",I)},onChange:function(a){if(a.file.status!=="uploading"&&console.log("not uploading:",a.file),a.file.status==="done")if(console.log("response: ",a.file.response),a.file.response.code===200){var Z=a.file.response.data;V(Z),c.yw.success("".concat(a.file.name," \u4E0A\u4F20\u6210\u529F"))}else x(a.file),c.yw.error("".concat(a.file.name," \u4E0A\u4F20\u5931\u8D25"));else a.file.status==="error"&&(c.yw.error("".concat(a.file.name," \u4E0A\u4F20\u5931\u8D25")),x(a.file))}};return(0,s.jsx)(l.Z,o()(o()({},w),{},{children:g}))}},73803:function(L,P,e){var r=e(85615),o=e(66419),p=e(86745);function l(){var v=(0,p.useIntl)(),f=function(s){return s&&s.startsWith(r.VoP)?v.formatMessage({id:s,defaultMessage:s}):s},M=function(s){return s!=null&&s.startsWith(r.VoP)?(0,o.aS)(v.formatMessage({id:s}),10):(0,o.aS)(s,10)};return{translateString:f,translateStringTranct:M}}P.Z=l},22078:function(L,P,e){e.r(P),e.d(P,{default:function(){return H}});var r=e(15009),o=e.n(r),p=e(97857),l=e.n(p),v=e(99289),f=e.n(v),M=e(5574),c=e.n(M),s=e(67294),D=e(7134),A=e(14726),O=e(34994),g=e(5966),V=e(90672),x=e(86745),I=e(88484),w=e(60247),S=e(16761),a=e(80049),Z=e(53004),t=e(73803),i=e(66419),T=e(85576),n=e(85893),m=function(d){var R=d.open,C=d.onClose,F=(0,x.useIntl)(),u=function(){C()},N=function(){C()};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(T.Z,{title:F.formatMessage({id:"pages.settings.reset.password",defaultMessage:"\u91CD\u7F6E\u5BC6\u7801"}),forceRender:!0,open:R,footer:null,onCancel:N,children:(0,n.jsxs)(O.A,{initialValues:{oldPassword:"",newPassword:"",confirmPassword:""},onFinish:function(){var B=f()(o()().mark(function j(E){var z,b;return o()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if(console.log("changePassword:",E),!(E.newPassword.trim().length<6)){U.next=4;break}return a.yw.error("password length should not be less than 6"),U.abrupt("return");case 4:if(E.newPassword===E.confirmPassword){U.next=7;break}return a.yw.error("New password and confirm password do not match"),U.abrupt("return");case 7:return z={oldPassword:E.oldPassword,newPassword:E.newPassword},U.next=10,(0,S.Cp)(z);case 10:b=U.sent,console.log("changePassword response:",b),b.code===200?(a.yw.success("Password changed successfully!"),u()):a.yw.error(b.message);case 13:case"end":return U.stop()}},j)}));return function(j){return B.apply(this,arguments)}}(),children:[(0,n.jsx)(g.Z.Password,{name:"oldPassword",label:"\u539F\u5BC6\u7801(\u624B\u673A\u53F7\u76F4\u63A5\u767B\u5F55\u7528\u6237\uFF0C\u53EF\u4EE5\u7559\u7A7A)"}),(0,n.jsx)(g.Z.Password,{name:"newPassword",label:"\u65B0\u5BC6\u7801"}),(0,n.jsx)(g.Z.Password,{name:"confirmPassword",label:"\u786E\u8BA4\u5BC6\u7801"})]})})})},W=m,Y={labelCol:{span:8},wrapperCol:{span:8}},G=function(){var d=(0,x.useIntl)(),R=(0,t.Z)(),C=R.translateString,F=(0,w.L)(function(y){return{userInfo:y.userInfo,setUserInfo:y.setUserInfo}}),u=F.userInfo,N=F.setUserInfo,B=(0,s.useState)(""),j=c()(B,2),E=j[0],z=j[1],b=(0,s.useState)(!1),Q=c()(b,2),U=Q[0],_=Q[1],q=function(){_(!0)},ee=function(){_(!1)},ae=function(h){console.log("handleUploadSuccess:",h),z(h)},ne=function(h){console.log("handleUploadError:",h)},se=function(){var y=f()(o()().mark(function h(k){var X,K;return o()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return X=l()(l()(l()({},u),k),{},{avatar:E}),console.log(X),$.next=4,(0,S.ck)(X);case 4:K=$.sent,console.log("updateProfile response:",K),K.code===200?(a.yw.success(d.formatMessage({id:"update.success"})),K.data.username!==u.username?(0,i.NZ)():N(K.data)):a.yw.error(K.message);case 7:case"end":return $.stop()}},h)}));return function(k){return y.apply(this,arguments)}}(),re=function(h){return Array.isArray(h)?h:h==null?void 0:h.fileList};return(0,s.useEffect)(function(){u&&z(u.avatar)},[u]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(O.A,l()(l()({},Y),{},{onFinish:se,initialValues:{uid:u.uid,username:u.username,nickname:u.nickname,email:u.email,mobile:u.mobile,description:C(u.description)},children:[(0,n.jsx)(g.Z,{name:"uid",label:"Uid",rules:[{required:!0}],readonly:!0}),(0,n.jsx)(O.A.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:re,label:d.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:(0,n.jsxs)(Z.G,{onSuccess:ae,onError:ne,children:[(0,n.jsx)(D.C,{src:E}),(0,n.jsx)(A.ZP,{icon:(0,n.jsx)(I.Z,{}),children:d.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),(0,n.jsx)(g.Z,{name:"username",label:d.formatMessage({id:"username.change.tip",defaultMessage:"Username"}),rules:[{required:!0}]}),(0,n.jsx)(A.ZP,{onClick:q,children:d.formatMessage({id:"pages.settings.reset.password",defaultMessage:"\u91CD\u7F6E\u5BC6\u7801"})}),(0,n.jsx)(g.Z,{name:"nickname",label:d.formatMessage({id:"nickname",defaultMessage:"Nickname"}),rules:[{required:!0}]}),(0,n.jsx)(g.Z,{name:"email",label:u.emailVerified?d.formatMessage({id:"email.verified",defaultMessage:"Email Verified"}):d.formatMessage({id:"email.unverified",defaultMessage:"email unverified"}),rules:[{type:"email"}],readonly:!0}),(0,n.jsx)(g.Z,{name:"mobile",label:u.mobileVerified?d.formatMessage({id:"mobile.verified",defaultMessage:"Mobile Verified"}):d.formatMessage({id:"mobile.unverified",defaultMessage:"mobile unverified"}),readonly:!0}),(0,n.jsx)(V.Z,{name:"description",label:d.formatMessage({id:"description",defaultMessage:"Description"})})]})),(0,n.jsx)(W,{open:U,onClose:ee})]})},H=G},60247:function(L,P,e){e.d(P,{L:function(){return v}});var r=e(85615),o=e(73445),p=e(782),l=e(18753),v=(0,o.Ue)()((0,p.mW)((0,p.tJ)((0,l.n)(function(f,M){return{userInfo:{uid:""},deviceUid:"",setUserInfo:function(s){f({userInfo:s})},setDeviceUid:function(s){f({deviceUid:s})},deleteUserInfo:function(){return f({},!0)}}}),{name:r.EmD})))},85576:function(L,P,e){e.d(P,{Z:function(){return Z}});var r=e(56080),o=e(38657),p=e(56745),l=e(67294),v=e(93967),f=e.n(v),M=e(40974),c=e(8745),s=e(53124),D=e(35792),A=e(32409),O=e(4941),g=e(71194),V=function(t,i){var T={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&i.indexOf(n)<0&&(T[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,n=Object.getOwnPropertySymbols(t);m{const{prefixCls:i,className:T,closeIcon:n,closable:m,type:W,title:Y,children:G,footer:H}=t,J=V(t,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=l.useContext(s.E_),R=d(),C=i||d("modal"),F=(0,D.Z)(R),[u,N,B]=(0,g.ZP)(C,F),j=`${C}-confirm`;let E={};return W?E={closable:m!=null?m:!1,title:"",footer:"",children:l.createElement(A.O,Object.assign({},t,{prefixCls:C,confirmPrefixCls:j,rootPrefixCls:R,content:G}))}:E={closable:m!=null?m:!0,title:Y,footer:H!==null&&l.createElement(O.$,Object.assign({},t)),children:G},u(l.createElement(M.s,Object.assign({prefixCls:C,className:f()(N,`${C}-pure-panel`,W&&j,W&&`${j}-${W}`,T,B,F)},J,{closeIcon:(0,O.b)(C,n),closable:m},E)))};var I=(0,c.i)(x),w=e(94423);function S(t){return(0,r.ZP)((0,r.uW)(t))}const a=p.Z;a.useModal=w.Z,a.info=function(i){return(0,r.ZP)((0,r.cw)(i))},a.success=function(i){return(0,r.ZP)((0,r.vq)(i))},a.error=function(i){return(0,r.ZP)((0,r.AQ)(i))},a.warning=S,a.warn=S,a.confirm=function(i){return(0,r.ZP)((0,r.Au)(i))},a.destroyAll=function(){for(;o.Z.length;){const i=o.Z.pop();i&&i()}},a.config=r.ai,a._InternalPanelDoNotUseOrYouWillBeFired=I;var Z=a}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Realname__index.0a3cca5c.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Realname__index.0a3cca5c.async.js new file mode 100644 index 00000000..4858ea47 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Realname__index.0a3cca5c.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3791],{66213:function(e,c,n){n.r(c);var s=n(85615),a=n(86745),u=n(85893);c.default=function(){var e=(0,a.useAccess)();return e.canDebug&&console.log("RealnameAuth canDebug"),(0,u.jsx)("div",{children:(0,u.jsx)("p",{children:(0,u.jsx)(a.Access,{accessible:e.canDebug(),fallback:(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(a.FormattedMessage,{id:s.h5w})}),children:"can debug"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Realname__index.de7d6839.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Realname__index.de7d6839.async.js deleted file mode 100644 index 8f96b6b4..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Realname__index.de7d6839.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3791],{66213:function(t,n,s){s.r(n);var u=s(85615),e=s(86745),a=s(85893),l=function(){var c=(0,e.useAccess)();return c.canDebug&&console.log("RealnameAuth canDebug"),(0,a.jsx)("div",{children:(0,a.jsx)("p",{children:(0,a.jsx)(e.Access,{accessible:c.canDebug(),fallback:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(e.FormattedMessage,{id:u.h5w})}),children:"can debug"})})})};n.default=l}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Server__index.2c32370d.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Server__index.2c32370d.async.js deleted file mode 100644 index b69b371b..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Server__index.2c32370d.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6676],{56732:function(m,a,n){n.r(a);var s=n(80049),t=n(86745),r=n(55102),e=n(14726),l=n(97253),d=n(85893),u=function(){var o=(0,t.useIntl)(),i=function(){navigator.clipboard.writeText(""),s.yw.success("\u590D\u5236".concat("","\u6210\u529F"))},c=function(){console.log("downloadQRCode")};return(0,d.jsxs)("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[(0,d.jsxs)("p",{children:[o.formatMessage({id:"server.address",defaultMessage:"Server Address"}),":"]}),(0,d.jsx)("p",{children:(0,d.jsx)(r.Z,{style:{width:"200px",margin:"auto"},value:"",disabled:!0})}),(0,d.jsx)(e.ZP,{onClick:i,children:o.formatMessage({id:"copy",defaultMessage:"Copy"})}),(0,d.jsx)(l.Z,{style:{margin:"auto",marginTop:"40px"},errorLevel:"H",value:"",icon:"https://cdn.bytedesk.com/admin/img/logo.e5991d62.png"}),(0,d.jsx)(e.ZP,{type:"primary",onClick:c,style:{marginTop:"20px"},children:"\u4F7F\u7528\u5FAE\u8BEDApp\u626B\u7801\u52A0\u5165\u670D\u52A1\u5668"})]})};a.default=u}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Server__index.f73c6b65.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Server__index.f73c6b65.async.js new file mode 100644 index 00000000..d875d725 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__Server__index.f73c6b65.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6676],{56732:function(e,s,a){a.r(s);var t=a(80049),i=a(17634),n=a(86745),r=a(55102),d=a(14726),o=a(85230),l=a(85893);s.default=function(){var e=(0,n.useIntl)();return(0,l.jsxs)("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[(0,l.jsxs)("p",{children:[e.formatMessage({id:"server.address",defaultMessage:"Server Address"}),":"]}),(0,l.jsx)("p",{children:(0,l.jsx)(r.Z,{style:{width:"200px",margin:"auto"},value:(0,i.SV)(),disabled:!0})}),(0,l.jsx)(d.ZP,{onClick:function(){navigator.clipboard.writeText((0,i.SV)()),t.yw.success("复制".concat((0,i.SV)(),"成功"))},children:e.formatMessage({id:"copy",defaultMessage:"Copy"})}),(0,l.jsxs)("p",{style:{marginTop:20},children:[e.formatMessage({id:"mqtt.address",defaultMessage:"Mqtt Address"}),":"]}),(0,l.jsx)("p",{children:(0,l.jsx)(r.Z,{style:{width:"200px",margin:"auto"},value:(0,i.Au)(),disabled:!0})}),(0,l.jsx)(d.ZP,{onClick:function(){navigator.clipboard.writeText((0,i.Au)()),t.yw.success("复制".concat((0,i.Au)(),"成功"))},children:e.formatMessage({id:"copy",defaultMessage:"Copy"})}),(0,l.jsx)(o.Z,{style:{margin:"auto",marginTop:"40px"},errorLevel:"H",value:(0,i.SV)(),icon:"https://cdn.bytedesk.com/admin/img/logo.e5991d62.png"}),(0,l.jsx)(d.ZP,{type:"primary",onClick:function(){console.log("downloadQRCode")},style:{marginTop:"20px"},children:"使用微语App扫码加入服务器"})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__index.6ca2e731.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__index.6ca2e731.async.js new file mode 100644 index 00000000..72262ff7 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__index.6ca2e731.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[7469],{77154:function(e,s,t){var i=t(39825);s.Z=function(){var e=(0,i.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},35675:function(e,s,t){t.r(s);var i=t(77154),l=t(86745),r=t(21612),a=t(50136),n=(t(67294),t(96974)),d=t(85893),f=r.Z.Sider,c=r.Z.Content,o=[{label:(0,d.jsx)(l.FormattedMessage,{id:"settings.profile",defaultMessage:"Profile"}),key:"profile"},{label:(0,d.jsx)(l.FormattedMessage,{id:"settings.basic",defaultMessage:"Basic"}),key:"basic"},{label:(0,d.jsx)(l.FormattedMessage,{id:"settings.realname",defaultMessage:"Realname"}),key:"realname"},{label:(0,d.jsx)(l.FormattedMessage,{id:"settings.server",defaultMessage:"Server"}),key:"server"}];s.default=function(){var e=(0,i.Z)().leftSiderStyle,s=(0,n.s0)();return(0,d.jsxs)(r.Z,{children:[(0,d.jsx)(f,{style:e,children:(0,d.jsx)(a.Z,{mode:"inline",onClick:function(e){console.log("menu click ",e),s("/setting/"+e.key)},defaultSelectedKeys:["profile"],items:o})}),(0,d.jsx)(r.Z,{children:(0,d.jsx)(c,{children:(0,d.jsx)(n.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__index.726c30fc.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Setting__index.726c30fc.async.js deleted file mode 100644 index f376e57b..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Setting__index.726c30fc.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[7469],{77154:function(u,r,t){var i=t(39825);function a(){var l=(0,i.Z)(),s=l.isDarkMode,f=250,n={borderRight:s?"1px solid #333":"1px solid #ccc",background:s?"#141414":"#f5f5f5"},e={background:s?"#141414":"#fff"},d={borderLeft:s?"1px solid #333":"1px solid #ccc",background:s?"#141414":"#f5f5f5"},o={minHeight:120,background:s?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:n,leftSiderWidth:f,headerStyle:e,rightSiderStyle:d,contentStyle:o}}r.Z=a},35675:function(u,r,t){t.r(r);var i=t(77154),a=t(86745),l=t(21612),s=t(50136),f=t(67294),n=t(96974),e=t(85893),d=l.Z.Sider,o=l.Z.Content,c=[{label:(0,e.jsx)(a.FormattedMessage,{id:"settings.profile",defaultMessage:"Profile"}),key:"profile"},{label:(0,e.jsx)(a.FormattedMessage,{id:"settings.basic",defaultMessage:"Basic"}),key:"basic"},{label:(0,e.jsx)(a.FormattedMessage,{id:"settings.realname",defaultMessage:"Realname"}),key:"realname"},{label:(0,e.jsx)(a.FormattedMessage,{id:"settings.server",defaultMessage:"Server"}),key:"server"}],M=function(){var S=(0,i.Z)(),g=S.leftSiderStyle,v=(0,n.s0)(),E=function(_){console.log("menu click ",_),v("/setting/"+_.key)};return(0,e.jsxs)(l.Z,{children:[(0,e.jsx)(d,{style:g,children:(0,e.jsx)(s.Z,{mode:"inline",onClick:E,defaultSelectedKeys:["profile"],items:c})}),(0,e.jsx)(l.Z,{children:(0,e.jsx)(o,{children:(0,e.jsx)(n.j3,{})})})]})};r.default=M}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__ActionStatistic.0f9f0979.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__ActionStatistic.0f9f0979.async.js new file mode 100644 index 00000000..91e2a7ea --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__ActionStatistic.0f9f0979.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2658],{17018:function(e,c,s){s.r(c);var n=s(85615),a=s(86745),i=s(85893);c.default=function(){var e=(0,a.useAccess)();return e.canDebug&&console.log("TabQuickReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(a.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.FormattedMessage,{id:n.h5w})}),children:"can debug"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__ActionStatistic.851b2509.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__ActionStatistic.851b2509.async.js deleted file mode 100644 index baa44942..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__ActionStatistic.851b2509.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2658],{17018:function(u,a,c){c.r(a);var i=c(85615),n=c(86745),s=c(85893),t=function(){var e=(0,n.useAccess)();return e.canDebug&&console.log("TabQuickReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(n.Access,{accessible:e.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(n.FormattedMessage,{id:i.h5w})}),children:"can debug"})})})};a.default=t}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__ActionTable.97c3b14d.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__ActionTable.97c3b14d.async.js deleted file mode 100644 index c06e43c0..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__ActionTable.97c3b14d.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4376],{58638:function(j,i,e){e.d(i,{Z:function(){return g}});var u=e(1413),a=e(67294),l={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},o=l,p=e(89099),c=function(O,n){return a.createElement(p.Z,(0,u.Z)((0,u.Z)({},O),{},{ref:n,icon:o}))},y=a.forwardRef(c),g=y},81677:function(j,i,e){e.r(i),e.d(i,{default:function(){return G}});var u=e(15009),a=e.n(u),l=e(97857),o=e.n(l),p=e(13769),c=e.n(p),y=e(99289),g=e.n(y),h=e(80049),O=e(85615),n=e(86745);function P(s){return A.apply(this,arguments)}function A(){return A=g()(a()().mark(function s(d){return a()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,n.request)("/api/v1/action/query/org",{method:"GET",params:o()(o()({},d),{},{client:O.bVn})}));case 1:case"end":return t.stop()}},s)})),A.apply(this,arguments)}function H(s){return T.apply(this,arguments)}function T(){return T=_asyncToGenerator(_regeneratorRuntime().mark(function s(d){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/v1/action/export",{method:"GET",params:_objectSpread(_objectSpread({},d),{},{client:HTTP_CLIENT})}));case 1:case"end":return t.stop()}},s)})),T.apply(this,arguments)}var B=e(87676),D=e(58638),W=e(57482),F=e(14726),S=e(67294),r=e(85893),L=["current"],Z=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,r.jsx)(n.FormattedMessage,{id:"nickname",defaultMessage:"Nickname"}),dataIndex:"nickname",render:function(d,x){var t;return(t=x.user)===null||t===void 0?void 0:t.nickname}},{title:(0,r.jsx)(n.FormattedMessage,{id:"title",defaultMessage:"Title"}),dataIndex:"title"},{title:(0,r.jsx)(n.FormattedMessage,{id:"action",defaultMessage:"Action"}),dataIndex:"action"},{title:"ip",dataIndex:"ip",copyable:!0,width:125},{title:(0,r.jsx)(n.FormattedMessage,{id:"city",defaultMessage:"City"}),dataIndex:"ipLocation",copyable:!0,width:160},{title:(0,r.jsx)(n.FormattedMessage,{id:"description",defaultMessage:"Description"}),dataIndex:"description",hideInSearch:!0},{title:(0,r.jsx)(n.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",width:80},{title:(0,r.jsx)(n.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",hideInSearch:!0,width:190}],z=function(){var d=(0,n.useIntl)(),x=(0,S.useRef)(),t=(0,B.u)(function(f){return f.currentOrg}),U=[].concat(Z),K=function(){console.log("handleExportExcel"),h.yw.warning("TODO: handleExportExcel")};return(0,r.jsx)(W.Z,{columns:U,actionRef:x,cardBordered:!0,request:function(){var f=g()(a()().mark(function M(E,R,$){var b,C,I,m;return a()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return console.log("request:",E,R,$),b=E.current,C=c()(E,L),I=o()({pageNumber:E.current-1,orgUid:t.uid},C),v.next=5,P(I);case 5:return m=v.sent,console.log("getAllActions response:",I,m),m.code===200||h.yw.error(m.message),v.abrupt("return",{data:m.data.content,success:!0,total:m.data.totalElements});case 9:case"end":return v.stop()}},M)}));return function(M,E,R){return f.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(M){console.log("pagination onChange page:",M)}},dateFormatter:"string",headerTitle:d.formatMessage({id:"log",defaultMessage:"Log"}),toolBarRender:function(){return[(0,r.jsx)(F.ZP,{icon:(0,r.jsx)(D.Z,{}),type:"primary",onClick:K,children:d.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})},G=z},87676:function(j,i,e){e.d(i,{u:function(){return p}});var u=e(85615),a=e(73445),l=e(782),o=e(18753),p=(0,a.Ue)()((0,l.mW)((0,l.tJ)((0,o.n)(function(c,y){return{currentOrg:{uid:"",name:"",description:""},setCurrentOrg:function(h){c({currentOrg:h})},deleteOrg:function(){return c({},!0)}}}),{name:u.eRd})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__ActionTable.fb737be0.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__ActionTable.fb737be0.async.js new file mode 100644 index 00000000..fe8656c2 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__ActionTable.fb737be0.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4376],{58638:function(e,t,a){a.d(t,{Z:function(){return d}});var n=a(1413),r=a(67294),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},o=a(89099),s=function(e,t){return r.createElement(o.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:i}))};var d=r.forwardRef(s)},81677:function(e,t,a){a.r(t),a.d(t,{default:function(){return I}});var n=a(15009),r=a.n(n),i=a(97857),o=a.n(i),s=a(13769),d=a.n(s),c=a(99289),u=a.n(c),l=a(80049),p=a(85615),f=a(86745);function g(e){return h.apply(this,arguments)}function h(){return(h=u()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,f.request)("/api/v1/action/query/org",{method:"GET",params:o()(o()({},t),{},{client:p.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var x=a(87676),m=a(58638),v=a(74190),M=a(14726),y=a(67294),w=a(85893),k=["current"],b=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,w.jsx)(f.FormattedMessage,{id:"nickname",defaultMessage:"Nickname"}),dataIndex:"nickname",render:function(e,t){var a;return null===(a=t.user)||void 0===a?void 0:a.nickname}},{title:(0,w.jsx)(f.FormattedMessage,{id:"title",defaultMessage:"Title"}),dataIndex:"title"},{title:(0,w.jsx)(f.FormattedMessage,{id:"action",defaultMessage:"Action"}),dataIndex:"action"},{title:"ip",dataIndex:"ip",copyable:!0,width:125},{title:(0,w.jsx)(f.FormattedMessage,{id:"city",defaultMessage:"City"}),dataIndex:"ipLocation",copyable:!0,width:160},{title:(0,w.jsx)(f.FormattedMessage,{id:"description",defaultMessage:"Description"}),dataIndex:"description",hideInSearch:!0},{title:(0,w.jsx)(f.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",width:80},{title:(0,w.jsx)(f.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",hideInSearch:!0,width:190}],I=function(){var e=(0,f.useIntl)(),t=(0,y.useRef)(),a=(0,x.u)((function(e){return e.currentOrg})),n=[].concat(b),i=function(){console.log("handleExportExcel"),l.yw.warning("TODO: handleExportExcel")};return(0,w.jsx)(v.Z,{columns:n,actionRef:t,cardBordered:!0,request:function(){var e=u()(r()().mark((function e(t,n,i){var s,c,u;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("request:",t,n,i),t.current,s=d()(t,k),c=o()({pageNumber:t.current-1,orgUid:a.uid},s),e.next=5,g(c);case 5:return u=e.sent,console.log("getAllActions response:",c,u),200===u.code||l.yw.error(u.message),e.abrupt("return",{data:u.data.content,success:!0,total:u.data.totalElements});case 9:case"end":return e.stop()}}),e)})));return function(t,a,n){return e.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("pagination onChange page:",e)}},dateFormatter:"string",headerTitle:e.formatMessage({id:"log",defaultMessage:"Log"}),toolBarRender:function(){return[(0,w.jsx)(M.ZP,{icon:(0,w.jsx)(m.Z,{}),type:"primary",onClick:i,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__index.7e756fe1.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__index.7e756fe1.async.js deleted file mode 100644 index 3bdb0ef6..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__index.7e756fe1.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8483],{77154:function(u,d,e){var r=e(39825);function i(){var a=(0,r.Z)(),n=a.isDarkMode,o=250,l={borderRight:n?"1px solid #333":"1px solid #ccc",background:n?"#141414":"#f5f5f5"},t={background:n?"#141414":"#fff"},s={borderLeft:n?"1px solid #333":"1px solid #ccc",background:n?"#141414":"#f5f5f5"},_={minHeight:120,background:n?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:l,leftSiderWidth:o,headerStyle:t,rightSiderStyle:s,contentStyle:_}}d.Z=i},61936:function(u,d,e){e.r(d);var r=e(77154),i=e(86745),a=e(21612),n=e(50136),o=e(67294),l=e(96974),t=e(85893),s=a.Z.Header,_=a.Z.Footer,S=a.Z.Sider,E=a.Z.Content,M=[{label:(0,t.jsx)(i.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}],v=function(){var y=(0,l.s0)(),c=(0,r.Z)(),h=c.leftSiderStyle,D=c.contentStyle,m=function(f){console.log("menu click ",f.key),y("/team/action/"+f.key)};return(0,t.jsxs)(a.Z,{children:[(0,t.jsx)(S,{style:h,children:(0,t.jsx)(n.Z,{mode:"inline",onClick:m,defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:M})}),(0,t.jsx)(a.Z,{children:(0,t.jsx)(E,{style:D,children:(0,t.jsx)(l.j3,{})})})]})};d.default=v}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__index.98fce2b4.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__index.98fce2b4.async.js new file mode 100644 index 00000000..ba93468b --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Action__index.98fce2b4.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8483],{77154:function(e,t,n){var d=n(39825);t.Z=function(){var e=(0,d.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},61936:function(e,t,n){n.r(t);var d=n(77154),i=n(86745),a=n(21612),l=n(50136),r=(n(67294),n(96974)),c=n(85893),s=(a.Z.Header,a.Z.Footer,a.Z.Sider),o=a.Z.Content,f=[{label:(0,c.jsx)(i.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}];t.default=function(){var e=(0,r.s0)(),t=(0,d.Z)(),n=t.leftSiderStyle,i=t.contentStyle;return(0,c.jsxs)(a.Z,{children:[(0,c.jsx)(s,{style:n,children:(0,c.jsx)(l.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/team/action/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:f})}),(0,c.jsx)(a.Z,{children:(0,c.jsx)(o,{style:i,children:(0,c.jsx)(r.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Company__CompanyInfo.1748fe52.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Company__CompanyInfo.1748fe52.async.js new file mode 100644 index 00000000..d744960a --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Company__CompanyInfo.1748fe52.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9814],{88484:function(e,r,n){n.d(r,{Z:function(){return c}});var t=n(1413),a=n(67294),o={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"},s=n(89099),i=function(e,r){return a.createElement(s.Z,(0,t.Z)((0,t.Z)({},e),{},{ref:r,icon:o}))};var c=a.forwardRef(i)},90672:function(e,r,n){var t=n(1413),a=n(91),o=n(67294),s=n(29258),i=n(85893),c=["fieldProps","proFieldProps"],u=function(e,r){var n=e.fieldProps,o=e.proFieldProps,u=(0,a.Z)(e,c);return(0,i.jsx)(s.Z,(0,t.Z)({ref:r,valueType:"textarea",fieldProps:n,proFieldProps:o},u))};r.Z=o.forwardRef(u)},24172:function(e,r,n){n.d(r,{Kq:function(){return f},RL:function(){return p}});var t=n(15009),a=n.n(t),o=n(97857),s=n.n(o),i=n(99289),c=n.n(i),u=n(85615),l=n(86745);function f(e){return d.apply(this,arguments)}function d(){return(d=c()(a()().mark((function e(r){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/v1/org/create",{method:"POST",data:s()(s()({},r),{},{client:u.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return g.apply(this,arguments)}function g(){return(g=c()(a()().mark((function e(r){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/v1/org/update",{method:"POST",data:s()(s()({},r),{},{client:u.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},53004:function(e,r,n){n.d(r,{G:function(){return d}});var t=n(97857),a=n.n(t),o=(n(67294),n(64121)),s=n(85615),i=n(27484),c=n.n(i),u=n(80049),l=n(17634),f=n(85893),d=function(e){var r=e.children,n=e.onSuccess,t=e.onError,i={file:null,file_name:"test.png",file_type:"image/png",is_avatar:"true",kb_type:"",category_uid:"",kb_uid:"",client:s.bVn},d={name:"file",accept:"image/*",action:(0,l.M$)(),headers:{Authorization:"Bearer "+localStorage.getItem(s.LA8)},data:i,showUploadList:!1,beforeUpload:function(e){console.log("beforeUpload",e);var r=c()(new Date).format("YYYYMMDDHHmmss")+"_"+e.name;i.file=e,i.file_name=r,i.file_type=e.type,console.log("beforeUpload",i)},onChange:function(e){if("uploading"!==e.file.status&&console.log("not uploading:",e.file),"done"===e.file.status)if(console.log("response: ",e.file.response),200===e.file.response.code){var r=e.file.response.data;n(r),u.yw.success("".concat(e.file.name," 上传成功"))}else t(e.file),u.yw.error("".concat(e.file.name," 上传失败"));else"error"===e.file.status&&(u.yw.error("".concat(e.file.name," 上传失败")),t(e.file))}};return(0,f.jsx)(o.Z,a()(a()({},d),{},{children:r}))}},12828:function(e,r,n){n.r(r);var t=n(15009),a=n.n(t),o=n(97857),s=n.n(o),i=n(99289),c=n.n(i),u=n(5574),l=n.n(u),f=n(80049),d=n(24172),p=n(87676),g=n(53004),m=n(88484),h=n(34994),v=n(5966),y=n(90672),w=n(86745),b=n(8232),M=n(7134),x=n(14726),Z=n(67294),j=n(85893);r.default=function(){var e=b.Z.useForm(),r=l()(e,1)[0],n=(0,w.useIntl)(),t=(0,p.u)((function(e){return{currentOrg:e.currentOrg,setCurrentOrg:e.setCurrentOrg}})),o=t.currentOrg,i=t.setCurrentOrg,u=(0,Z.useState)(""),k=l()(u,2),O=k[0],P=k[1],V=function(){var e=c()(a()().mark((function e(r){var t,c;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f.yw.loading({content:n.formatMessage({id:"saveing"}),key:"save",duration:0}),t=s()(s()(s()({},o),r),{},{logo:O}),console.log("orgObject:",t),e.next=5,(0,d.RL)(t);case 5:c=e.sent,console.log("updateOrg response:",c),200===c.code?(f.yw.destroy(),f.yw.success(n.formatMessage({id:"update.success"})),i(c.data)):(f.yw.destroy(),f.yw.error(c.message));case 8:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}();return(0,Z.useEffect)((function(){o&&P(o.logo)}),[o]),(0,j.jsx)("div",{children:(0,j.jsxs)(h.A,{form:r,initialValues:{name:o.name,description:o.description},onFinish:V,children:[(0,j.jsx)(b.Z.Item,{name:"logo",valuePropName:"fileList",getValueFromEvent:function(e){return Array.isArray(e)?e:null==e?void 0:e.fileList},label:n.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:(0,j.jsxs)(g.G,{onSuccess:function(e){console.log("handleUploadSuccess:",e),P(e)},onError:function(e){console.log("handleUploadError:",e)},children:[(0,j.jsx)(M.C,{src:O}),(0,j.jsx)(x.ZP,{icon:(0,j.jsx)(m.Z,{}),children:n.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),(0,j.jsx)(v.Z,{rules:[{required:!0,message:n.formatMessage({id:"name",defaultMessage:"Name"})}],label:n.formatMessage({id:"name",defaultMessage:"Name"}),name:"name",width:"md"}),(0,j.jsx)(y.Z,{rules:[{required:!0,message:n.formatMessage({id:"description",defaultMessage:"Description"})}],label:n.formatMessage({id:"description",defaultMessage:"Description"}),name:"description",width:"md"})]})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Company__CompanyInfo.90b293a8.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Company__CompanyInfo.90b293a8.async.js deleted file mode 100644 index b9866b22..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Company__CompanyInfo.90b293a8.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9814],{88484:function(j,l,e){e.d(l,{Z:function(){return o}});var d=e(1413),t=e(67294),g={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"},r=g,m=e(89099),i=function(c,M){return t.createElement(m.Z,(0,d.Z)((0,d.Z)({},c),{},{ref:M,icon:r}))},E=t.forwardRef(i),o=E},90672:function(j,l,e){var d=e(1413),t=e(91),g=e(67294),r=e(24809),m=e(85893),i=["fieldProps","proFieldProps"],E=function(a,c){var M=a.fieldProps,v=a.proFieldProps,b=(0,t.Z)(a,i);return(0,m.jsx)(r.Z,(0,d.Z)({ref:c,valueType:"textarea",fieldProps:M,proFieldProps:v},b))};l.Z=g.forwardRef(E)},24172:function(j,l,e){e.d(l,{Kq:function(){return a},RL:function(){return M}});var d=e(15009),t=e.n(d),g=e(97857),r=e.n(g),m=e(99289),i=e.n(m),E=e(85615),o=e(86745);function a(s){return c.apply(this,arguments)}function c(){return c=i()(t()().mark(function s(p){return t()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",(0,o.request)("/api/v1/org/create",{method:"POST",data:r()(r()({},p),{},{client:E.bVn})}));case 1:case"end":return _.stop()}},s)})),c.apply(this,arguments)}function M(s){return v.apply(this,arguments)}function v(){return v=i()(t()().mark(function s(p){return t()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",(0,o.request)("/api/v1/org/update",{method:"POST",data:r()(r()({},p),{},{client:E.bVn})}));case 1:case"end":return _.stop()}},s)})),v.apply(this,arguments)}function b(s){return f.apply(this,arguments)}function f(){return f=_asyncToGenerator(_regeneratorRuntime().mark(function s(p){return _regeneratorRuntime().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",request("/api/v1/org/query",{method:"GET",params:_objectSpread(_objectSpread({},p),{},{client:HTTP_CLIENT})}));case 1:case"end":return _.stop()}},s)})),f.apply(this,arguments)}function T(s){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark(function s(p){return _regeneratorRuntime().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",request("/api/v1/org/uid",{method:"GET",params:{uid:p,client:HTTP_CLIENT}}));case 1:case"end":return _.stop()}},s)})),O.apply(this,arguments)}},53004:function(j,l,e){e.d(l,{G:function(){return c}});var d=e(97857),t=e.n(d),g=e(67294),r=e(64121),m=e(85615),i=e(27484),E=e.n(i),o=e(80049),a=e(85893),c=function(v){var b=v.children,f=v.onSuccess,T=v.onError,O={file:null,file_name:"test.png",file_type:"image/png",is_avatar:"true",kb_type:"",category_uid:"",kb_uid:"",client:m.bVn},s={name:"file",accept:"image/*",action:"/api/v1/upload/file",headers:{Authorization:"Bearer "+localStorage.getItem(m.LA8)},data:O,showUploadList:!1,beforeUpload:function(n){console.log("beforeUpload",n);var _=E()(new Date).format("YYYYMMDDHHmmss")+"_"+n.name;O.file=n,O.file_name=_,O.file_type=n.type,console.log("beforeUpload",O)},onChange:function(n){if(n.file.status!=="uploading"&&console.log("not uploading:",n.file),n.file.status==="done")if(console.log("response: ",n.file.response),n.file.response.code===200){var _=n.file.response.data;f(_),o.yw.success("".concat(n.file.name," \u4E0A\u4F20\u6210\u529F"))}else T(n.file),o.yw.error("".concat(n.file.name," \u4E0A\u4F20\u5931\u8D25"));else n.file.status==="error"&&(o.yw.error("".concat(n.file.name," \u4E0A\u4F20\u5931\u8D25")),T(n.file))}};return(0,a.jsx)(r.Z,t()(t()({},s),{},{children:b}))}},12828:function(j,l,e){e.r(l);var d=e(15009),t=e.n(d),g=e(97857),r=e.n(g),m=e(99289),i=e.n(m),E=e(5574),o=e.n(E),a=e(80049),c=e(24172),M=e(87676),v=e(53004),b=e(88484),f=e(34994),T=e(5966),O=e(90672),s=e(86745),p=e(8232),n=e(7134),_=e(14726),L=e(67294),D=e(85893),S=function(){var F=p.Z.useForm(),x=o()(F,1),Z=x[0],P=(0,s.useIntl)(),y=(0,M.u)(function(h){return{currentOrg:h.currentOrg,setCurrentOrg:h.setCurrentOrg}}),U=y.currentOrg,G=y.setCurrentOrg,V=(0,L.useState)(""),I=o()(V,2),B=I[0],W=I[1],z=function(u){console.log("handleUploadSuccess:",u),W(u)},$=function(u){console.log("handleUploadError:",u)},H=function(){var h=i()(t()().mark(function u(K){var R,A;return t()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return a.yw.loading({content:P.formatMessage({id:"saveing"}),key:"save",duration:0}),R=r()(r()(r()({},U),K),{},{logo:B}),console.log("orgObject:",R),C.next=5,(0,c.RL)(R);case 5:A=C.sent,console.log("updateOrg response:",A),A.code===200?(a.yw.destroy(),a.yw.success(P.formatMessage({id:"update.success"})),G(A.data)):(a.yw.destroy(),a.yw.error(A.message));case 8:case"end":return C.stop()}},u)}));return function(K){return h.apply(this,arguments)}}(),N=function(u){return Array.isArray(u)?u:u==null?void 0:u.fileList};return(0,L.useEffect)(function(){U&&W(U.logo)},[U]),(0,D.jsx)("div",{children:(0,D.jsxs)(f.A,{form:Z,initialValues:{name:U.name,description:U.description},onFinish:H,children:[(0,D.jsx)(p.Z.Item,{name:"logo",valuePropName:"fileList",getValueFromEvent:N,label:P.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:(0,D.jsxs)(v.G,{onSuccess:z,onError:$,children:[(0,D.jsx)(n.C,{src:B}),(0,D.jsx)(_.ZP,{icon:(0,D.jsx)(b.Z,{}),children:P.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),(0,D.jsx)(T.Z,{rules:[{required:!0,message:P.formatMessage({id:"name",defaultMessage:"Name"})}],label:P.formatMessage({id:"name",defaultMessage:"Name"}),name:"name",width:"md"}),(0,D.jsx)(O.Z,{rules:[{required:!0,message:P.formatMessage({id:"description",defaultMessage:"Description"})}],label:P.formatMessage({id:"description",defaultMessage:"Description"}),name:"description",width:"md"})]})})};l.default=S},87676:function(j,l,e){e.d(l,{u:function(){return m}});var d=e(85615),t=e(73445),g=e(782),r=e(18753),m=(0,t.Ue)()((0,g.mW)((0,g.tJ)((0,r.n)(function(i,E){return{currentOrg:{uid:"",name:"",description:""},setCurrentOrg:function(a){i({currentOrg:a})},deleteOrg:function(){return i({},!0)}}}),{name:d.eRd})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Company__index.0d46f1a8.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Company__index.0d46f1a8.async.js deleted file mode 100644 index e37f987b..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Company__index.0d46f1a8.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2701],{77154:function(_,a,e){var r=e(39825);function n(){var o=(0,r.Z)(),l=o.isDarkMode,d=250,t={borderRight:l?"1px solid #333":"1px solid #ccc",background:l?"#141414":"#f5f5f5"},s={background:l?"#141414":"#fff"},f={borderLeft:l?"1px solid #333":"1px solid #ccc",background:l?"#141414":"#f5f5f5"},i={minHeight:120,background:l?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:t,leftSiderWidth:d,headerStyle:s,rightSiderStyle:f,contentStyle:i}}a.Z=n},85485:function(_,a,e){e.r(a);var r=e(77154),n=e(21612),o=e(50136),l=e(67294),d=e(86745),t=e(85893),s=n.Z.Header,f=n.Z.Footer,i=n.Z.Sider,S=n.Z.Content,y=[{label:(0,t.jsx)(d.FormattedMessage,{id:"info",defaultMessage:"Info"}),key:"info"}],v=function(){var h=(0,d.useNavigate)(),c=(0,r.Z)(),E=c.leftSiderStyle,M=c.contentStyle,m=function(u){console.log("menu click ",u.key),h("/team/company/".concat(u.key))};return(0,t.jsxs)(n.Z,{children:[(0,t.jsx)(i,{style:E,children:(0,t.jsx)(o.Z,{mode:"inline",onClick:m,defaultSelectedKeys:["info"],defaultOpenKeys:["info"],items:y})}),(0,t.jsx)(n.Z,{children:(0,t.jsx)(S,{style:M,children:(0,t.jsx)(d.Outlet,{})})})]})};a.default=v}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Company__index.5796c432.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Company__index.5796c432.async.js new file mode 100644 index 00000000..2a36cbfa --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Company__index.5796c432.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2701],{77154:function(e,t,n){var i=n(39825);t.Z=function(){var e=(0,i.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},85485:function(e,t,n){n.r(t);var i=n(77154),l=n(21612),o=n(50136),d=(n(67294),n(86745)),r=n(85893),c=(l.Z.Header,l.Z.Footer,l.Z.Sider),f=l.Z.Content,s=[{label:(0,r.jsx)(d.FormattedMessage,{id:"info",defaultMessage:"Info"}),key:"info"}];t.default=function(){var e=(0,d.useNavigate)(),t=(0,i.Z)(),n=t.leftSiderStyle,a=t.contentStyle;return(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(c,{style:n,children:(0,r.jsx)(o.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/team/company/".concat(t.key))},defaultSelectedKeys:["info"],defaultOpenKeys:["info"],items:s})}),(0,r.jsx)(l.Z,{children:(0,r.jsx)(f,{style:a,children:(0,r.jsx)(d.Outlet,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__GroupStatistic.207ede37.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__GroupStatistic.207ede37.async.js deleted file mode 100644 index a20d0d91..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__GroupStatistic.207ede37.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9346],{95706:function(u,n,c){c.r(n);var e=c(85615),a=c(86745),s=c(85893),i=function(){var t=(0,a.useAccess)();return t.canDebug&&console.log("GroupStatistic canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(a.Access,{accessible:t.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a.FormattedMessage,{id:e.h5w})}),children:"can debug"})})})};n.default=i}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__GroupStatistic.ef593d5b.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__GroupStatistic.ef593d5b.async.js new file mode 100644 index 00000000..45c00285 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__GroupStatistic.ef593d5b.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9346],{95706:function(e,c,s){s.r(c);var n=s(85615),a=s(86745),i=s(85893);c.default=function(){var e=(0,a.useAccess)();return e.canDebug&&console.log("GroupStatistic canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(a.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.FormattedMessage,{id:n.h5w})}),children:"can debug"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__GroupTable.2f7ff3f9.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__GroupTable.2f7ff3f9.async.js new file mode 100644 index 00000000..37fcc651 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__GroupTable.2f7ff3f9.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[7139],{58638:function(e,r,n){n.d(r,{Z:function(){return c}});var t=n(1413),o=n(67294),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},l=n(89099),i=function(e,r){return o.createElement(l.Z,(0,t.Z)((0,t.Z)({},e),{},{ref:r,icon:a}))};var c=o.forwardRef(i)},46743:function(e,r,n){n.d(r,{V3:function(){return u}});var t=n(15009),o=n.n(t),a=n(97857),l=n.n(a),i=n(99289),c=n.n(i),s=n(85615),d=n(86745);function u(e){return p.apply(this,arguments)}function p(){return(p=c()(o()().mark((function e(r){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/group/query/org",{method:"GET",params:l()(l()({},r),{},{client:s.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},32577:function(e,r,n){n.r(r);var t=n(15009),o=n.n(t),a=n(97857),l=n.n(a),i=n(13769),c=n.n(i),s=n(99289),d=n.n(s),u=n(80049),p=n(46743),g=n(87676),h=n(58638),f=n(74190),m=n(86745),b=n(72269),x=n(66309),v=n(86738),y=n(14726),C=n(67294),k=n(85893),j=["current"];r.default=function(){var e=(0,m.useIntl)(),r=(0,C.useRef)(),n=(0,g.u)((function(e){return e.currentOrg})),t=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,k.jsx)(m.FormattedMessage,{id:"name",defaultMessage:"Name"}),dataIndex:"name",copyable:!0},{title:"状态",dataIndex:"status",hideInSearch:!0},{title:"是否显示置顶语",dataIndex:"showTopTip",hideInSearch:!0,render:function(e,r){return(0,k.jsx)(k.Fragment,{children:(0,k.jsx)(b.Z,{checked:null==r?void 0:r.showTopTip,onChange:function(e){}})})}},{title:"置顶语",dataIndex:"topTip",hideInSearch:!0},{title:"管理员",dataIndex:"admins",hideInSearch:!0,render:function(e,r){if(null==r||!r.admins)return null;var n=r.admins.slice(0,2).map((function(e){return(0,k.jsx)(x.Z,{children:e.nickname},e.uid)}));return r.admins.length>2&&n.push((0,k.jsx)("span",{children:"..."},"ellipsis")),(0,k.jsx)(k.Fragment,{children:n})}},{title:"成员",dataIndex:"members",hideInSearch:!0,render:function(e,r){if(null==r||!r.members)return null;var n=r.members.slice(0,2).map((function(e){return(0,k.jsx)(x.Z,{children:e.nickname},e.uid)}));return r.members.length>2&&n.push((0,k.jsx)("span",{children:"..."},"ellipsis")),(0,k.jsx)(k.Fragment,{children:n})}},{title:"机器人",dataIndex:"robots",hideInSearch:!0,render:function(e,r){if(null==r||!r.robots)return null;var n=r.robots.slice(0,2).map((function(e){return(0,k.jsx)(x.Z,{children:e.nickname},e.uid)}));return r.robots.length>2&&n.push((0,k.jsx)("span",{children:"..."},"ellipsis")),(0,k.jsx)(k.Fragment,{children:n})}},{title:(0,k.jsx)(m.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0,hideInSearch:!0},{title:"创建人",dataIndex:"creator",hideInSearch:!0,render:function(e,r){var n;return(0,k.jsx)(k.Fragment,{children:(0,k.jsx)(x.Z,{children:null==r||null===(n=r.creator)||void 0===n?void 0:n.nickname})})}},{title:(0,k.jsx)(m.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0},{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(r,n,t,o){return[(0,k.jsx)("a",{onClick:function(){var e;e=n,console.log("edit",e),u.yw.warning("TODO: 即将上线,敬请期待")},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,k.jsx)(v.Z,{title:"解散确认",description:"确定要解散该群?",onConfirm:function(){return e=n,console.log("dismiss",e),void u.yw.warning("TODO: 即将上线,敬请期待");var e},okText:"确定",cancelText:"取消",children:(0,k.jsx)(y.ZP,{type:"link",danger:!0,children:"解散"})},"dismiss")]}}],a=function(){console.log("handleExportExcel"),u.yw.warning("TODO: 即将上线,敬请期待")};return(0,k.jsx)(f.Z,{columns:t,actionRef:r,cardBordered:!0,request:function(){var e=d()(o()().mark((function e(r,t,a){var i,s,d;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.current,i=c()(r,j),s=l()({pageNumber:r.current-1,orgUid:n.uid},i),e.next=4,(0,p.V3)(s);case 4:return d=e.sent,console.log("queryGroupsByOrgUid response:",d,s),200===d.code||u.yw.error(d.message),e.abrupt("return",{data:d.data.content,success:!0,total:d.data.totalElements});case 8:case"end":return e.stop()}}),e)})));return function(r,n,t){return e.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"群组",toolBarRender:function(){return[(0,k.jsx)(y.ZP,{icon:(0,k.jsx)(h.Z,{}),type:"primary",onClick:a,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})}},66309:function(e,r,n){n.d(r,{Z:function(){return E}});var t=n(67294),o=n(93967),a=n.n(o),l=n(98423),i=n(98787),c=n(69760),s=n(96159),d=n(45353),u=n(53124),p=n(25446),g=n(10274),h=n(14747),f=n(83262),m=n(83559);const b=e=>{const{lineWidth:r,fontSizeIcon:n,calc:t}=e,o=e.fontSizeSM;return(0,f.IX)(e,{tagFontSize:o,tagLineHeight:(0,p.bf)(t(e.lineHeightSM).mul(o).equal()),tagIconSize:t(n).sub(t(r).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},x=e=>({defaultBg:new g.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var v=(0,m.I$)("Tag",(e=>(e=>{const{paddingXXS:r,lineWidth:n,tagPaddingHorizontal:t,componentCls:o,calc:a}=e,l=a(t).sub(n).equal(),i=a(r).sub(n).equal();return{[o]:Object.assign(Object.assign({},(0,h.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,p.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:i,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:l}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(b(e))),x),y=function(e,r){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(n[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,style:o,className:l,checked:i,onChange:c,onClick:s}=e,d=y(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:p,tag:g}=t.useContext(u.E_),h=p("tag",n),[f,m,b]=v(h),x=a()(h,`${h}-checkable`,{[`${h}-checkable-checked`]:i},null==g?void 0:g.className,l,m,b);return f(t.createElement("span",Object.assign({},d,{ref:r,style:Object.assign(Object.assign({},o),null==g?void 0:g.style),className:x,onClick:e=>{null==c||c(!i),null==s||s(e)}})))}));var k=C,j=n(98719);var S=(0,m.bk)(["Tag","preset"],(e=>(e=>(0,j.Z)(e,((r,n)=>{let{textColor:t,lightBorderColor:o,lightColor:a,darkColor:l}=n;return{[`${e.componentCls}${e.componentCls}-${r}`]:{color:t,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(b(e))),x);const $=(e,r,n)=>{const t="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}${e.componentCls}-${r}`]:{color:e[`color${n}`],background:e[`color${t}Bg`],borderColor:e[`color${t}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var w=(0,m.bk)(["Tag","status"],(e=>{const r=b(e);return[$(r,"success","Success"),$(r,"processing","Info"),$(r,"error","Error"),$(r,"warning","Warning")]}),x),I=function(e,r){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(n[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:o,rootClassName:p,style:g,children:h,icon:f,color:m,onClose:b,bordered:x=!0,visible:y}=e,C=I(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:k,direction:j,tag:$}=t.useContext(u.E_),[O,T]=t.useState(!0),E=(0,l.Z)(C,["closeIcon","closable"]);t.useEffect((()=>{void 0!==y&&T(y)}),[y]);const M=(0,i.o2)(m),Z=(0,i.yT)(m),B=M||Z,P=Object.assign(Object.assign({backgroundColor:m&&!B?m:void 0},null==$?void 0:$.style),g),N=k("tag",n),[F,z,H]=v(N),R=a()(N,null==$?void 0:$.className,{[`${N}-${m}`]:B,[`${N}-has-color`]:m&&!B,[`${N}-hidden`]:!O,[`${N}-rtl`]:"rtl"===j,[`${N}-borderless`]:!x},o,p,z,H),q=e=>{e.stopPropagation(),null==b||b(e),e.defaultPrevented||T(!1)},[,A]=(0,c.Z)((0,c.w)(e),(0,c.w)($),{closable:!1,closeIconRender:e=>{const r=t.createElement("span",{className:`${N}-close-icon`,onClick:q},e);return(0,s.wm)(e,r,(e=>({onClick:r=>{var n;null===(n=null==e?void 0:e.onClick)||void 0===n||n.call(e,r),q(r)},className:a()(null==e?void 0:e.className,`${N}-close-icon`)})))}}),D="function"==typeof C.onClick||h&&"a"===h.type,W=f||null,L=W?t.createElement(t.Fragment,null,W,h&&t.createElement("span",null,h)):h,V=t.createElement("span",Object.assign({},E,{ref:r,className:R,style:P}),L,A,M&&t.createElement(S,{key:"preset",prefixCls:N}),Z&&t.createElement(w,{key:"status",prefixCls:N}));return F(D?t.createElement(d.Z,{component:"Tag"},V):V)})),T=O;T.CheckableTag=k;var E=T}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__GroupTable.e9e84bd5.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__GroupTable.e9e84bd5.async.js deleted file mode 100644 index 14c1ee48..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__GroupTable.e9e84bd5.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[7139],{58638:function(z,O,t){t.d(O,{Z:function(){return P}});var l=t(1413),m=t(67294),g={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},y=g,T=t(89099),h=function(j,$){return m.createElement(T.Z,(0,l.Z)((0,l.Z)({},j),{},{ref:$,icon:y}))},I=m.forwardRef(h),P=I},46743:function(z,O,t){t.d(O,{V3:function(){return v}});var l=t(15009),m=t.n(l),g=t(97857),y=t.n(g),T=t(99289),h=t.n(T),I=t(85615),P=t(86745);function v(d){return j.apply(this,arguments)}function j(){return j=h()(m()().mark(function d(a){return m()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,P.request)("/api/v1/group/query/org",{method:"GET",params:y()(y()({},a),{},{client:I.bVn})}));case 1:case"end":return i.stop()}},d)})),j.apply(this,arguments)}function $(d){return R.apply(this,arguments)}function R(){return R=_asyncToGenerator(_regeneratorRuntime().mark(function d(a){return _regeneratorRuntime().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",request("/api/v1/group/query/uid",{method:"GET",params:_objectSpread(_objectSpread({},a),{},{client:HTTP_CLIENT})}));case 1:case"end":return i.stop()}},d)})),R.apply(this,arguments)}function Z(d){return f.apply(this,arguments)}function f(){return f=_asyncToGenerator(_regeneratorRuntime().mark(function d(a){return _regeneratorRuntime().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",request("/api/v1/group/create",{method:"POST",data:_objectSpread(_objectSpread({},a),{},{client:HTTP_CLIENT})}));case 1:case"end":return i.stop()}},d)})),f.apply(this,arguments)}function F(d){return b.apply(this,arguments)}function b(){return b=_asyncToGenerator(_regeneratorRuntime().mark(function d(a){return _regeneratorRuntime().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",request("/api/v1/group/update",{method:"POST",data:_objectSpread(_objectSpread({},a),{},{client:HTTP_CLIENT})}));case 1:case"end":return i.stop()}},d)})),b.apply(this,arguments)}function W(d){return D.apply(this,arguments)}function D(){return D=_asyncToGenerator(_regeneratorRuntime().mark(function d(a){return _regeneratorRuntime().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",request("/api/v1/group/dismiss",{method:"POST",data:{uid:a,client:HTTP_CLIENT}}));case 1:case"end":return i.stop()}},d)})),D.apply(this,arguments)}},32577:function(z,O,t){t.r(O);var l=t(15009),m=t.n(l),g=t(97857),y=t.n(g),T=t(13769),h=t.n(T),I=t(99289),P=t.n(I),v=t(80049),j=t(46743),$=t(87676),R=t(58638),Z=t(57482),f=t(86745),F=t(72269),b=t(66309),W=t(86738),D=t(14726),d=t(67294),a=t(85893),S=["current"],i=function(){var G=(0,f.useIntl)(),V=(0,d.useRef)(),L=(0,$.u)(function(c){return c.currentOrg}),w=function(e){console.log("edit",e),v.yw.warning("TODO: \u5373\u5C06\u4E0A\u7EBF\uFF0C\u656C\u8BF7\u671F\u5F85")},X=function(e){console.log("dismiss",e),v.yw.warning("TODO: \u5373\u5C06\u4E0A\u7EBF\uFF0C\u656C\u8BF7\u671F\u5F85")},te=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,a.jsx)(f.FormattedMessage,{id:"name",defaultMessage:"Name"}),dataIndex:"name",copyable:!0},{title:"\u72B6\u6001",dataIndex:"status",hideInSearch:!0},{title:"\u662F\u5426\u663E\u793A\u7F6E\u9876\u8BED",dataIndex:"showTopTip",hideInSearch:!0,render:function(e,n){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(F.Z,{checked:n==null?void 0:n.showTopTip,onChange:function(r){}})})}},{title:"\u7F6E\u9876\u8BED",dataIndex:"topTip",hideInSearch:!0},{title:"\u7BA1\u7406\u5458",dataIndex:"admins",hideInSearch:!0,render:function(e,n){if(!(n!=null&&n.admins))return null;var o=n.admins.slice(0,2).map(function(r){return(0,a.jsx)(b.Z,{children:r.nickname},r.uid)});return n.admins.length>2&&o.push((0,a.jsx)("span",{children:"..."},"ellipsis")),(0,a.jsx)(a.Fragment,{children:o})}},{title:"\u6210\u5458",dataIndex:"members",hideInSearch:!0,render:function(e,n){if(!(n!=null&&n.members))return null;var o=n.members.slice(0,2).map(function(r){return(0,a.jsx)(b.Z,{children:r.nickname},r.uid)});return n.members.length>2&&o.push((0,a.jsx)("span",{children:"..."},"ellipsis")),(0,a.jsx)(a.Fragment,{children:o})}},{title:"\u673A\u5668\u4EBA",dataIndex:"robots",hideInSearch:!0,render:function(e,n){if(!(n!=null&&n.robots))return null;var o=n.robots.slice(0,2).map(function(r){return(0,a.jsx)(b.Z,{children:r.nickname},r.uid)});return n.robots.length>2&&o.push((0,a.jsx)("span",{children:"..."},"ellipsis")),(0,a.jsx)(a.Fragment,{children:o})}},{title:(0,a.jsx)(f.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0,hideInSearch:!0},{title:"\u521B\u5EFA\u4EBA",dataIndex:"creator",hideInSearch:!0,render:function(e,n){var o;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(b.Z,{children:n==null||(o=n.creator)===null||o===void 0?void 0:o.nickname})})}},{title:(0,a.jsx)(f.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0},{title:G.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(e,n,o,r){return[(0,a.jsx)("a",{onClick:function(){w(n)},children:G.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,a.jsx)(W.Z,{title:"\u89E3\u6563\u786E\u8BA4",description:"\u786E\u5B9A\u8981\u89E3\u6563\u8BE5\u7FA4?",onConfirm:function(){return X(n)},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,a.jsx)(D.ZP,{type:"link",danger:!0,children:"\u89E3\u6563"})},"dismiss")]}}],H=function(){console.log("handleExportExcel"),v.yw.warning("TODO: \u5373\u5C06\u4E0A\u7EBF\uFF0C\u656C\u8BF7\u671F\u5F85")};return(0,a.jsx)(Z.Z,{columns:te,actionRef:V,cardBordered:!0,request:function(){var c=P()(m()().mark(function e(n,o,r){var s,p,u,_;return m()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return s=n.current,p=h()(n,S),u=y()({pageNumber:n.current-1,orgUid:L.uid},p),E.next=4,(0,j.V3)(u);case 4:return _=E.sent,console.log("queryGroupsByOrgUid response:",_,u),_.code===200||v.yw.error(_.message),E.abrupt("return",{data:_.data.content,success:!0,total:_.data.totalElements});case 8:case"end":return E.stop()}},e)}));return function(e,n,o){return c.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"\u7FA4\u7EC4",toolBarRender:function(){return[(0,a.jsx)(D.ZP,{icon:(0,a.jsx)(R.Z,{}),type:"primary",onClick:H,children:G.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})};O.default=i},87676:function(z,O,t){t.d(O,{u:function(){return T}});var l=t(85615),m=t(73445),g=t(782),y=t(18753),T=(0,m.Ue)()((0,g.mW)((0,g.tJ)((0,y.n)(function(h,I){return{currentOrg:{uid:"",name:"",description:""},setCurrentOrg:function(v){h({currentOrg:v})},deleteOrg:function(){return h({},!0)}}}),{name:l.eRd})))},66309:function(z,O,t){t.d(O,{Z:function(){return c}});var l=t(67294),m=t(93967),g=t.n(m),y=t(98423),T=t(98787),h=t(69760),I=t(96159),P=t(45353),v=t(53124),j=t(85982),$=t(10274),R=t(14747),Z=t(45503),f=t(27036);const F=e=>{const{paddingXXS:n,lineWidth:o,tagPaddingHorizontal:r,componentCls:s,calc:p}=e,u=p(r).sub(o).equal(),_=p(n).sub(o).equal();return{[s]:Object.assign(Object.assign({},(0,R.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:u,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,j.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${s}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${s}-close-icon`]:{marginInlineStart:_,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${s}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${s}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:u}}),[`${s}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},b=e=>{const{lineWidth:n,fontSizeIcon:o,calc:r}=e,s=e.fontSizeSM;return(0,Z.TS)(e,{tagFontSize:s,tagLineHeight:(0,j.bf)(r(e.lineHeightSM).mul(s).equal()),tagIconSize:r(o).sub(r(n).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},W=e=>({defaultBg:new $.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var D=(0,f.I$)("Tag",e=>{const n=b(e);return F(n)},W),d=function(e,n){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s{const{prefixCls:o,style:r,className:s,checked:p,onChange:u,onClick:_}=e,M=d(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:E,tag:B}=l.useContext(v.E_),N=k=>{u==null||u(!p),_==null||_(k)},U=E("tag",o),[J,Q,x]=D(U),Y=g()(U,`${U}-checkable`,{[`${U}-checkable-checked`]:p},B==null?void 0:B.className,s,Q,x);return J(l.createElement("span",Object.assign({},M,{ref:n,style:Object.assign(Object.assign({},r),B==null?void 0:B.style),className:Y,onClick:N})))}),i=t(98719);const ne=e=>(0,i.Z)(e,(n,o)=>{let{textColor:r,lightBorderColor:s,lightColor:p,darkColor:u}=o;return{[`${e.componentCls}${e.componentCls}-${n}`]:{color:r,background:p,borderColor:s,"&-inverse":{color:e.colorTextLightSolid,background:u,borderColor:u},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var G=(0,f.bk)(["Tag","preset"],e=>{const n=b(e);return ne(n)},W);function V(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const L=(e,n,o)=>{const r=V(o);return{[`${e.componentCls}${e.componentCls}-${n}`]:{color:e[`color${o}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var w=(0,f.bk)(["Tag","status"],e=>{const n=b(e);return[L(n,"success","Success"),L(n,"processing","Info"),L(n,"error","Error"),L(n,"warning","Warning")]},W),X=function(e,n){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s{const{prefixCls:o,className:r,rootClassName:s,style:p,children:u,icon:_,color:M,onClose:E,bordered:B=!0,visible:N}=e,U=X(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:J,direction:Q,tag:x}=l.useContext(v.E_),[Y,k]=l.useState(!0),ue=(0,y.Z)(U,["closeIcon","closable"]);l.useEffect(()=>{N!==void 0&&k(N)},[N]);const re=(0,T.o2)(M),ae=(0,T.yT)(M),q=re||ae,de=Object.assign(Object.assign({backgroundColor:M&&!q?M:void 0},x==null?void 0:x.style),p),C=J("tag",o),[ce,_e,pe]=D(C),me=g()(C,x==null?void 0:x.className,{[`${C}-${M}`]:q,[`${C}-has-color`]:M&&!q,[`${C}-hidden`]:!Y,[`${C}-rtl`]:Q==="rtl",[`${C}-borderless`]:!B},r,s,_e,pe),oe=K=>{K.stopPropagation(),E==null||E(K),!K.defaultPrevented&&k(!1)},[,ge]=(0,h.Z)((0,h.w)(e),(0,h.w)(x),{closable:!1,closeIconRender:K=>{const fe=l.createElement("span",{className:`${C}-close-icon`,onClick:oe},K);return(0,I.wm)(K,fe,A=>({onClick:le=>{var ee;(ee=A==null?void 0:A.onClick)===null||ee===void 0||ee.call(A,le),oe(le)},className:g()(A==null?void 0:A.className,`${C}-close-icon`)}))}}),he=typeof U.onClick=="function"||u&&u.type==="a",se=_||null,ve=se?l.createElement(l.Fragment,null,se,u&&l.createElement("span",null,u)):u,ie=l.createElement("span",Object.assign({},ue,{ref:n,className:me,style:de}),ve,ge,re&&l.createElement(G,{key:"preset",prefixCls:C}),ae&&l.createElement(w,{key:"status",prefixCls:C}));return ce(he?l.createElement(P.Z,{component:"Tag"},ie):ie)});H.CheckableTag=S;var c=H}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__index.641aee77.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__index.641aee77.async.js deleted file mode 100644 index 7844de04..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__index.641aee77.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9870],{77154:function(u,d,e){var r=e(39825);function i(){var n=(0,r.Z)(),a=n.isDarkMode,_=250,l={borderRight:a?"1px solid #333":"1px solid #ccc",background:a?"#141414":"#f5f5f5"},t={background:a?"#141414":"#fff"},s={borderLeft:a?"1px solid #333":"1px solid #ccc",background:a?"#141414":"#f5f5f5"},o={minHeight:120,background:a?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:l,leftSiderWidth:_,headerStyle:t,rightSiderStyle:s,contentStyle:o}}d.Z=i},9962:function(u,d,e){e.r(d);var r=e(77154),i=e(86745),n=e(21612),a=e(50136),_=e(67294),l=e(96974),t=e(85893),s=n.Z.Sider,o=n.Z.Content,S=[{label:(0,t.jsx)(i.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}],E=function(){var M=(0,l.s0)(),c=(0,r.Z)(),v=c.leftSiderStyle,y=c.contentStyle,h=function(f){console.log("menu click ",f.key),M("/team/group/"+f.key)};return(0,t.jsxs)(n.Z,{children:[(0,t.jsx)(s,{style:v,children:(0,t.jsx)(a.Z,{mode:"inline",onClick:h,defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:S})}),(0,t.jsx)(n.Z,{children:(0,t.jsx)(o,{style:y,children:(0,t.jsx)(l.j3,{})})})]})};d.default=E}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__index.e09d076c.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__index.e09d076c.async.js new file mode 100644 index 00000000..64f19c1f --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Group__index.e09d076c.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9870],{77154:function(e,t,n){var d=n(39825);t.Z=function(){var e=(0,d.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},9962:function(e,t,n){n.r(t);var d=n(77154),i=n(86745),a=n(21612),l=n(50136),r=(n(67294),n(96974)),s=n(85893),c=a.Z.Sider,f=a.Z.Content,o=[{label:(0,s.jsx)(i.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}];t.default=function(){var e=(0,r.s0)(),t=(0,d.Z)(),n=t.leftSiderStyle,i=t.contentStyle;return(0,s.jsxs)(a.Z,{children:[(0,s.jsx)(c,{style:n,children:(0,s.jsx)(l.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/team/group/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:o})}),(0,s.jsx)(a.Z,{children:(0,s.jsx)(f,{style:i,children:(0,s.jsx)(r.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Member__index.096d47bd.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Member__index.096d47bd.async.js new file mode 100644 index 00000000..0047473c --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Member__index.096d47bd.async.js @@ -0,0 +1 @@ +(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[7960],{11475:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1413),o=n(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 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"},l=n(89099),s=function(e,t){return o.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};var i=o.forwardRef(s)},58638:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1413),o=n(67294),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},l=n(89099),s=function(e,t){return o.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};var i=o.forwardRef(s)},57546:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1413),o=n(67294),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},l=n(89099),s=function(e,t){return o.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};var i=o.forwardRef(s)},5966:function(e,t,n){"use strict";var r=n(97685),o=n(1413),a=n(91),l=n(21770),s=n(8232),i=n(55241),c=n(97435),u=n(67294),d=n(29258),p=n(85893),f=["fieldProps","proFieldProps"],m=["fieldProps","proFieldProps"],g="text",h=function(e){var t=(0,l.Z)(e.open||!1,{value:e.open,onChange:e.onOpenChange}),n=(0,r.Z)(t,2),a=n[0],c=n[1];return(0,p.jsx)(s.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(t){var n,r=t.getFieldValue(e.name||[]);return(0,p.jsx)(i.Z,(0,o.Z)((0,o.Z)({getPopupContainer:function(e){return e&&e.parentNode?e.parentNode:e},onOpenChange:function(e){return c(e)},content:(0,p.jsxs)("div",{style:{padding:"4px 0"},children:[null===(n=e.statusRender)||void 0===n?void 0:n.call(e,r),e.strengthText?(0,p.jsx)("div",{style:{marginTop:10},children:(0,p.jsx)("span",{children:e.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},e.popoverProps),{},{open:a,children:e.children}))}})},v=function(e){var t=e.fieldProps,n=e.proFieldProps,r=(0,a.Z)(e,f);return(0,p.jsx)(d.Z,(0,o.Z)({valueType:g,fieldProps:t,filedConfig:{valueType:g},proFieldProps:n},r))};v.Password=function(e){var t=e.fieldProps,n=e.proFieldProps,l=(0,a.Z)(e,m),s=(0,u.useState)(!1),i=(0,r.Z)(s,2),f=i[0],v=i[1];return null!=t&&t.statusRender&&l.name?(0,p.jsx)(h,{name:l.name,statusRender:null==t?void 0:t.statusRender,popoverProps:null==t?void 0:t.popoverProps,strengthText:null==t?void 0:t.strengthText,open:f,onOpenChange:v,children:(0,p.jsx)("div",{children:(0,p.jsx)(d.Z,(0,o.Z)({valueType:"password",fieldProps:(0,o.Z)((0,o.Z)({},(0,c.Z)(t,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(e){var n;null==t||null===(n=t.onBlur)||void 0===n||n.call(t,e),v(!1)},onClick:function(e){var n;null==t||null===(n=t.onClick)||void 0===n||n.call(t,e),v(!0)}}),proFieldProps:n,filedConfig:{valueType:g}},l))})}):(0,p.jsx)(d.Z,(0,o.Z)({valueType:"password",fieldProps:t,proFieldProps:n,filedConfig:{valueType:g}},l))},v.displayName="ProFormComponent",t.Z=v},90672:function(e,t,n){"use strict";var r=n(1413),o=n(91),a=n(67294),l=n(29258),s=n(85893),i=["fieldProps","proFieldProps"],c=function(e,t){var n=e.fieldProps,a=e.proFieldProps,c=(0,o.Z)(e,i);return(0,s.jsx)(l.Z,(0,r.Z)({ref:t,valueType:"textarea",fieldProps:n,proFieldProps:a},c))};t.Z=a.forwardRef(c)},19054:function(e,t,n){"use strict";var r=n(1413),o=n(91),a=n(67294),l=n(29258),s=n(85893),i=["fieldProps","request","params","proFieldProps"],c=function(e,t){var n=e.fieldProps,a=e.request,c=e.params,u=e.proFieldProps,d=(0,o.Z)(e,i);return(0,s.jsx)(l.Z,(0,r.Z)({valueType:"treeSelect",fieldProps:n,ref:t,request:a,params:c,filedConfig:{customLightMode:!0},proFieldProps:u},d))},u=a.forwardRef(c);t.Z=u},84125:function(e,t,n){"use strict";n.d(t,{D$:function(){return f},EP:function(){return v},hS:function(){return g},z_:function(){return d}});var r=n(15009),o=n.n(r),a=n(97857),l=n.n(a),s=n(99289),i=n.n(s),c=n(85615),u=n(86745);function d(e){return p.apply(this,arguments)}function p(){return(p=i()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/mem/query/org",{method:"GET",params:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return m.apply(this,arguments)}function m(){return(m=i()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/mem/create",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return h.apply(this,arguments)}function h(){return(h=i()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/mem/update",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){return x.apply(this,arguments)}function x(){return(x=i()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.request)("/api/v1/member/delete",{method:"POST",data:l()(l()({},t),{},{client:c.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},77154:function(e,t,n){"use strict";var r=n(39825);t.Z=function(){var e=(0,r.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},79041:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return le}});var r=n(21612),o=n(67294),a=n(77154),l=n(97857),s=n.n(l),i=n(13769),c=n.n(i),u=n(15009),d=n.n(u),p=n(99289),f=n.n(p),m=n(5574),g=n.n(m),h=n(84125),v=n(64599),x=n.n(v),b=n(19632),y=n.n(b),C=n(85615),w=n(73445),j=n(782),k=n(18753),Z=(0,w.Ue)()((0,j.mW)((0,j.tJ)((0,k.n)((function(e,t){return{departmentResult:{data:{content:[]}},currentDepartment:{uid:"",nickname:""},insertDepartment:function(t){e((function(e){e.departmentResult.data.content.push(t)}))},setDepartmentResult:function(n){var r,o={uid:C.zBg,name:C.zBg};(e({departmentResult:s()(s()({},n),{},{data:{content:[o].concat(y()(n.data.content))}})}),""===t().currentDepartment.uid)&&((null===(r=n.data)||void 0===r||null===(r=r.content)||void 0===r?void 0:r.length)>0&&e({currentDepartment:n.data.content[0]}))},setCurrentDepartment:function(n){var r=t().departmentResult.data.content,o=r.findIndex((function(e){return e.uid===n.uid}));if(-1!==o){var a=[].concat(y()(r.slice(0,o)),[n],y()(r.slice(o+1))),l=s()(s()({},t().departmentResult),{},{data:{content:a}});e({departmentResult:l,currentDepartment:n})}else console.warn("Department with the specified uid not found."),e({currentDepartment:n})},deleteCurrentDepartment:function(n){var r=t().departmentResult.data.content,o=r.findIndex((function(e){return e.uid===n}));-1!==o?e({departmentResult:s()(s()({},t().departmentResult),{},{data:{content:[].concat(y()(r.slice(0,o)),y()(r.slice(o+1)))}})}):console.warn("Department not found in cache:",n),t().currentDepartment.uid===n&&e({currentDepartment:{uid:""}})},setCurrentDepUid:function(n){var r,o,a=null===(r=t().departmentResult)||void 0===r||null===(r=r.data)||void 0===r||null===(r=r.content)||void 0===r?void 0:r.find((function(e){return e.uid===n}));if(a)e({currentDepartment:a});else{!function t(r){var o,a=x()(r);try{for(a.s();!(o=a.n()).done;){var l=o.value;if(l.uid===n)return void e({currentDepartment:l});l.children&&l.children.length>0&&t(l.children)}}catch(e){a.e(e)}finally{a.f()}}((null===(o=t().departmentResult)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.content)||[])}},deleteDepartmentCache:function(){return e({},!0)}}})),{name:C.xY_}))),M=n(87676),S=n(11475),P=n(51042),O=n(57546),D=n(58638),$=n(74190),N=n(85576),T=n(66309),F=n(14726),E=n(11443),R=n(34994),I=n(19054),z=n(5966),B=n(86745),q=n(85265),U=n(42075),V=n(85893),H=function(e){var t=e.isEdit,n=e.member,r=e.open,a=e.onClose,l=e.onSubmit,s=R.A.useForm(),i=g()(s,1)[0],c=(0,B.useIntl)(),u=Z((function(e){return e.departmentResult})),d=(0,M.u)((function(e){return e.currentOrg}));(0,o.useEffect)((function(){n&&i?i.setFieldsValue({depUid:(null==n?void 0:n.departments.length)>0?null==n?void 0:n.departments[0].uid:"",nickname:null==n?void 0:n.nickname,email:null==n?void 0:n.email,mobile:null==n?void 0:n.mobile,jobNo:null==n?void 0:n.jobNo,seatNo:null==n?void 0:n.seatNo,telephone:null==n?void 0:n.telephone}):null==i||t||(console.log("form resetFields"),i.resetFields())}),[n]);var p=function e(t,n){if(t.name.startsWith(C.VoP)?n.title=c.formatMessage({id:t.name,defaultMessage:t.name}):n.title=t.name,n.value=t.uid,t.children)for(var r=0;r0?null==n?void 0:n.departments[0].uid:"",nickname:null==n?void 0:n.nickname,email:null==n?void 0:n.email,mobile:null==n?void 0:n.mobile,jobNo:null==n?void 0:n.jobNo,seatNo:null==n?void 0:n.seatNo,telephone:null==n?void 0:n.telephone},submitter:!1,children:[(0,V.jsx)(I.Z,{label:"部门",name:"depUid",width:"md",placeholder:"请选择部门",allowClear:!0,rules:[{required:!0,message:"请选择部门"}],fieldProps:{treeDefaultExpandAll:!0,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:f}}),(0,V.jsx)(z.Z,{label:"姓名",name:"nickname",rules:[{required:!0,message:"请输入姓名"}]}),(0,V.jsx)(z.Z,{label:"手机",name:"mobile",disabled:t,rules:[{required:!0,message:"请输入手机号"}]}),(0,V.jsx)(z.Z,{label:"邮箱",name:"email",disabled:t,rules:[{required:!0,message:"请输入邮箱"},{type:"email",message:"请输入正确的邮箱地址"}]}),(0,V.jsx)(z.Z,{label:"工号",name:"jobNo"}),(0,V.jsx)(z.Z,{label:"座位号",name:"seatNo"}),(0,V.jsx)(z.Z,{label:"分机号",name:"telephone"})]})})})},W=n(80049),A=n(17634),L=["current"],G=function(){var e=(0,o.useRef)(),t=(0,E.Z)(),n=(0,o.useRef)(!1),r=(0,o.useState)(!0),a=g()(r,2),l=a[0],i=a[1],u=(0,o.useState)(),p=g()(u,2),m=p[0],v=p[1],x=(0,o.useState)(!1),b=g()(x,2),y=b[0],w=b[1],j=(0,M.u)((function(e){return e.currentOrg})),k=Z((function(e){return e.currentDepartment})),R=N.Z.useModal(),I=g()(R,2),z=I[0],q=I[1],U=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,V.jsx)(B.FormattedMessage,{id:"name",defaultMessage:"Name"}),dataIndex:"nickname"},{title:(0,V.jsx)(B.FormattedMessage,{id:"jobNo",defaultMessage:"JobNum"}),dataIndex:"jobNo"},{title:(0,V.jsx)(B.FormattedMessage,{id:"email",defaultMessage:"Email"}),dataIndex:"email",render:function(e,t){return(0,V.jsx)("a",{href:"mailto:".concat(t.email),children:e})}},{title:(0,V.jsx)(B.FormattedMessage,{id:"telephone",defaultMessage:"Telephone"}),dataIndex:"telephone"},{title:(0,V.jsx)(B.FormattedMessage,{id:"seatNo",defaultMessage:"SeatNum"}),dataIndex:"seatNo"},{title:(0,V.jsx)(B.FormattedMessage,{id:"department",defaultMessage:"Department"}),render:function(e,t){return t.departments.length>0?t.departments[0].name.startsWith(C.VoP)?(0,V.jsx)(T.Z,{children:(0,V.jsx)(B.FormattedMessage,{id:t.departments[0].name})}):(0,V.jsx)(T.Z,{children:t.departments[0].name}):""}},{title:(0,V.jsx)(B.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"inviteAccepted",render:function(e,t){return t.status}},{title:(0,V.jsx)(B.FormattedMessage,{id:"mobile",defaultMessage:"Mobile"}),dataIndex:"mobile",render:function(e,t){return(0,V.jsx)("a",{href:"tel:".concat(t.mobile),children:t.mobile})}}],G=[].concat(U,[{title:t.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(e,n,r,o){return[(0,V.jsx)("a",{onClick:function(){console.log("editable:",n),J(n)},children:t.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,V.jsx)(F.ZP,{type:"link",onClick:function(){return e=n,void z.confirm({title:t.formatMessage({id:"deleteTip"}),icon:(0,V.jsx)(S.Z,{}),content:"".concat(t.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"【").concat(e.nickname,"】?"),onOk:function(){X(e)},onCancel:function(){},okText:t.formatMessage({id:"ok"}),cancelText:t.formatMessage({id:"cancel"})});var e},danger:!0,children:t.formatMessage({id:"delete",defaultMessage:"Delete"})},"delete")]}}]);(0,o.useEffect)((function(){console.log("currentDepDid:",k),e.current.reload()}),[k]);var _,X=function(){var n=f()(d()().mark((function n(r){var o;return d()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("delete mem:",r),n.next=3,(0,h.EP)(r);case 3:o=n.sent,console.log("deleteMember:",o),200===o.code?(W.yw.success(t.formatMessage({id:"delete.success",defaultMessage:"Delete success"})),e.current.reload()):W.yw.error(o.message);case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),J=function(e){v(e),i(!0),w(!0)},K=function(){w(!1)},Q=function(){var n=f()(d()().mark((function n(r){var o,a;return d()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(console.log("handleSubmitDrawer:",r),!l){n.next=9;break}return n.next=4,(0,h.hS)(r);case 4:o=n.sent,console.log("updateMember:",o),200===o.code?(W.yw.success(t.formatMessage({id:"update.success",defaultMessage:"update success"})),e.current.reload(),K()):W.yw.error(o.message),n.next=14;break;case 9:return n.next=11,(0,h.D$)(r);case 11:a=n.sent,console.log("createMember:",a),200===a.code?(W.yw.success(t.formatMessage({id:"create.success",defaultMessage:"create success"})),e.current.reload(),K()):W.yw.error(a.message);case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),Y=function(){var e=f()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:W.yw.warning("TODO: 即将上线,敬请期待");case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=function(){var e=f()(d()().mark((function e(){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=localStorage.getItem(C.LA8),window.open((0,A.SV)()+"/api/v1/mem/export?orgUid="+(null==j?void 0:j.uid)+"&pageNumber=0&pageSize=20&accessToken="+t);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)($.Z,{columns:G,actionRef:e,cardBordered:!0,request:function(){var e=f()(d()().mark((function e(t,r,o){var a,l,i;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("request:",t,r,o),!n.current){e.next=4;break}return console.log("isLoading: 1",n.current),e.abrupt("return");case 4:return n.current=!0,W.yw.loading("正在加载"),t.current,a=c()(t,L),l=s()({pageNumber:t.current-1,orgUid:j.uid,depUid:k.uid===C.zBg?"":k.uid},a),e.next=10,(0,h.z_)(l);case 10:return i=e.sent,console.log("queryMembersByOrg:",l,i),200===i.code||W.yw.error(i.message),n.current=!1,W.yw.destroy(),e.abrupt("return",{data:i.data.content,success:!0,total:i.data.totalElements});case 16:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},headerTitle:null!=k&&null!==(_=k.name)&&void 0!==_&&_.startsWith("i18n.")?t.formatMessage({id:null==k?void 0:k.name,defaultMessage:null==k?void 0:k.name}):null==k?void 0:k.name,toolBarRender:function(){return[(0,V.jsx)(F.ZP,{icon:(0,V.jsx)(P.Z,{}),onClick:function(){console.log("new"),v(void 0),i(!1),w(!0)},type:"primary",children:t.formatMessage({id:"create",defaultMessage:"Create"})},"button"),(0,V.jsx)(F.ZP,{icon:(0,V.jsx)(O.Z,{}),type:"primary",onClick:Y,children:t.formatMessage({id:"import",defaultMessage:"Import"})},"button"),(0,V.jsx)(F.ZP,{icon:(0,V.jsx)(D.Z,{}),type:"primary",onClick:ee,children:t.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}}),(0,V.jsx)(H,{isEdit:l,member:m,open:y,onClose:K,onSubmit:Q}),q]})},_=n(86250),X=n(42811);function J(e){return K.apply(this,arguments)}function K(){return(K=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.request)("/api/v1/dep/query/org",{method:"GET",params:s()(s()({},t),{},{client:C.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Q(e){return Y.apply(this,arguments)}function Y(){return(Y=f()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.request)("/api/v1/dep/create",{method:"POST",data:s()(s()({},t),{},{client:C.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ee=n(90672),te=n(8232),ne=function(e){var t=e.open,n=e.onCancel,r=e.onSubmit,a=te.Z.useForm(),l=g()(a,1)[0],s=(0,B.useIntl)(),i=(0,o.useState)(""),c=g()(i,2),u=c[0],p=c[1],m=Z((function(e){return e.departmentResult})),h=(0,M.u)((function(e){return e.currentOrg})),v=function e(t,n){if(t.name.startsWith(C.VoP)?n.title=s.formatMessage({id:t.name,defaultMessage:t.name}):n.title=t.name,n.value=t.uid,t.children)for(var r=0;r{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&d.includes(n)}})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return p.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))};const g=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},h=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},v=e=>{const{componentCls:t}=e,n={};return d.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},x=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},b=e=>{const{componentCls:t}=e,n={};return p.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n};var y=(0,c.I$)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=(0,u.IX)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[g(o),h(o),v(o),x(o),b(o)]}),(()=>({})),{resetStyle:!1}),C=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,rootClassName:o,className:c,style:u,flex:d,gap:p,children:f,vertical:g=!1,component:h="div"}=e,v=C(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:x,direction:b,getPrefixCls:w}=r.useContext(i.E_),j=w("flex",n),[k,Z,M]=y(j),S=null!=g?g:null==x?void 0:x.vertical,P=a()(c,o,null==x?void 0:x.className,j,Z,M,m(j,e),{[`${j}-rtl`]:"rtl"===b,[`${j}-gap-${p}`]:(0,s.n)(p),[`${j}-vertical`]:S}),O=Object.assign(Object.assign({},null==x?void 0:x.style),u);return d&&(O.flex=d),p&&!(0,s.n)(p)&&(O.gap=p),k(r.createElement(h,Object.assign({ref:t,className:P,style:O},(0,l.Z)(v,["justify","wrap","align"])),f))}));var j=w},66309:function(e,t,n){"use strict";n.d(t,{Z:function(){return D}});var r=n(67294),o=n(93967),a=n.n(o),l=n(98423),s=n(98787),i=n(69760),c=n(96159),u=n(45353),d=n(53124),p=n(25446),f=n(10274),m=n(14747),g=n(83262),h=n(83559);const v=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return(0,g.IX)(e,{tagFontSize:o,tagLineHeight:(0,p.bf)(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},x=e=>({defaultBg:new f.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var b=(0,h.I$)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,l=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},(0,m.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,p.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:l}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(v(e))),x),y=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,style:o,className:l,checked:s,onChange:i,onClick:c}=e,u=y(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:p,tag:f}=r.useContext(d.E_),m=p("tag",n),[g,h,v]=b(m),x=a()(m,`${m}-checkable`,{[`${m}-checkable-checked`]:s},null==f?void 0:f.className,l,h,v);return g(r.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},o),null==f?void 0:f.style),className:x,onClick:e=>{null==i||i(!s),null==c||c(e)}})))}));var w=C,j=n(98719);var k=(0,h.bk)(["Tag","preset"],(e=>(e=>(0,j.Z)(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:l}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(v(e))),x);const Z=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var M=(0,h.bk)(["Tag","status"],(e=>{const t=v(e);return[Z(t,"success","Success"),Z(t,"processing","Info"),Z(t,"error","Error"),Z(t,"warning","Warning")]}),x),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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:o,rootClassName:p,style:f,children:m,icon:g,color:h,onClose:v,bordered:x=!0,visible:y}=e,C=S(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:w,direction:j,tag:Z}=r.useContext(d.E_),[P,O]=r.useState(!0),D=(0,l.Z)(C,["closeIcon","closable"]);r.useEffect((()=>{void 0!==y&&O(y)}),[y]);const $=(0,s.o2)(h),N=(0,s.yT)(h),T=$||N,F=Object.assign(Object.assign({backgroundColor:h&&!T?h:void 0},null==Z?void 0:Z.style),f),E=w("tag",n),[R,I,z]=b(E),B=a()(E,null==Z?void 0:Z.className,{[`${E}-${h}`]:T,[`${E}-has-color`]:h&&!T,[`${E}-hidden`]:!P,[`${E}-rtl`]:"rtl"===j,[`${E}-borderless`]:!x},o,p,I,z),q=e=>{e.stopPropagation(),null==v||v(e),e.defaultPrevented||O(!1)},[,U]=(0,i.Z)((0,i.w)(e),(0,i.w)(Z),{closable:!1,closeIconRender:e=>{const t=r.createElement("span",{className:`${E}-close-icon`,onClick:q},e);return(0,c.wm)(e,t,(e=>({onClick:t=>{var n;null===(n=null==e?void 0:e.onClick)||void 0===n||n.call(e,t),q(t)},className:a()(null==e?void 0:e.className,`${E}-close-icon`)})))}}),V="function"==typeof C.onClick||m&&"a"===m.type,H=g||null,W=H?r.createElement(r.Fragment,null,H,m&&r.createElement("span",null,m)):m,A=r.createElement("span",Object.assign({},D,{ref:t,className:B,style:F}),W,U,$&&r.createElement(k,{key:"preset",prefixCls:E}),N&&r.createElement(M,{key:"status",prefixCls:E}));return R(V?r.createElement(u.Z,{component:"Tag"},A):A)})),O=P;O.CheckableTag=w;var D=O},64599:function(e,t,n){var r=n(96263);e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,s=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){i=!0,l=e},f:function(){try{s||null==n.return||n.return()}finally{if(i)throw l}}}},e.exports.__esModule=!0,e.exports.default=e.exports}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Member__index.ab289a78.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Member__index.ab289a78.async.js deleted file mode 100644 index 0625d493..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Member__index.ab289a78.async.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[7960],{11475:function(se,A,e){"use strict";e.d(A,{Z:function(){return Z}});var o=e(1413),a=e(67294),p={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"},C=p,i=e(89099),O=function(v,b){return a.createElement(i.Z,(0,o.Z)((0,o.Z)({},v),{},{ref:b,icon:C}))},F=a.forwardRef(O),Z=F},58638:function(se,A,e){"use strict";e.d(A,{Z:function(){return Z}});var o=e(1413),a=e(67294),p={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},C=p,i=e(89099),O=function(v,b){return a.createElement(i.Z,(0,o.Z)((0,o.Z)({},v),{},{ref:b,icon:C}))},F=a.forwardRef(O),Z=F},57546:function(se,A,e){"use strict";e.d(A,{Z:function(){return Z}});var o=e(1413),a=e(67294),p={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},C=p,i=e(89099),O=function(v,b){return a.createElement(i.Z,(0,o.Z)((0,o.Z)({},v),{},{ref:b,icon:C}))},F=a.forwardRef(O),Z=F},5966:function(se,A,e){"use strict";var o=e(97685),a=e(1413),p=e(91),C=e(21770),i=e(8232),O=e(55241),F=e(97435),Z=e(67294),l=e(24809),v=e(85893),b=["fieldProps","proFieldProps"],V=["fieldProps","proFieldProps"],z="text",q=function(y){var P=y.fieldProps,I=y.proFieldProps,W=(0,p.Z)(y,b);return(0,v.jsx)(l.Z,(0,a.Z)({valueType:z,fieldProps:P,filedConfig:{valueType:z},proFieldProps:I},W))},Me=function(y){var P=(0,C.Z)(y.open||!1,{value:y.open,onChange:y.onOpenChange}),I=(0,o.Z)(P,2),W=I[0],H=I[1];return(0,v.jsx)(i.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(Se){var ie,s=Se.getFieldValue(y.name||[]);return(0,v.jsx)(O.Z,(0,a.Z)((0,a.Z)({getPopupContainer:function(u){return u&&u.parentNode?u.parentNode:u},onOpenChange:function(u){return H(u)},content:(0,v.jsxs)("div",{style:{padding:"4px 0"},children:[(ie=y.statusRender)===null||ie===void 0?void 0:ie.call(y,s),y.strengthText?(0,v.jsx)("div",{style:{marginTop:10},children:(0,v.jsx)("span",{children:y.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},y.popoverProps),{},{open:W,children:y.children}))}})},me=function(y){var P=y.fieldProps,I=y.proFieldProps,W=(0,p.Z)(y,V),H=(0,Z.useState)(!1),x=(0,o.Z)(H,2),Se=x[0],ie=x[1];return P!=null&&P.statusRender&&W.name?(0,v.jsx)(Me,{name:W.name,statusRender:P==null?void 0:P.statusRender,popoverProps:P==null?void 0:P.popoverProps,strengthText:P==null?void 0:P.strengthText,open:Se,onOpenChange:ie,children:(0,v.jsx)("div",{children:(0,v.jsx)(l.Z,(0,a.Z)({valueType:"password",fieldProps:(0,a.Z)((0,a.Z)({},(0,F.Z)(P,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(g){var u;P==null||(u=P.onBlur)===null||u===void 0||u.call(P,g),ie(!1)},onClick:function(g){var u;P==null||(u=P.onClick)===null||u===void 0||u.call(P,g),ie(!0)}}),proFieldProps:I,filedConfig:{valueType:z}},W))})}):(0,v.jsx)(l.Z,(0,a.Z)({valueType:"password",fieldProps:P,proFieldProps:I,filedConfig:{valueType:z}},W))},ge=q;ge.Password=me,ge.displayName="ProFormComponent",A.Z=ge},90672:function(se,A,e){"use strict";var o=e(1413),a=e(91),p=e(67294),C=e(24809),i=e(85893),O=["fieldProps","proFieldProps"],F=function(l,v){var b=l.fieldProps,V=l.proFieldProps,z=(0,a.Z)(l,O);return(0,i.jsx)(C.Z,(0,o.Z)({ref:v,valueType:"textarea",fieldProps:b,proFieldProps:V},z))};A.Z=p.forwardRef(F)},19054:function(se,A,e){"use strict";var o=e(1413),a=e(91),p=e(67294),C=e(24809),i=e(85893),O=["fieldProps","request","params","proFieldProps"],F=function(v,b){var V=v.fieldProps,z=v.request,q=v.params,Me=v.proFieldProps,me=(0,a.Z)(v,O);return(0,i.jsx)(C.Z,(0,o.Z)({valueType:"treeSelect",fieldProps:V,ref:b,request:z,params:q,filedConfig:{customLightMode:!0},proFieldProps:Me},me))},Z=p.forwardRef(F);A.Z=Z},84125:function(se,A,e){"use strict";e.d(A,{D$:function(){return z},EP:function(){return ge},hS:function(){return Me},z_:function(){return l}});var o=e(15009),a=e.n(o),p=e(97857),C=e.n(p),i=e(99289),O=e.n(i),F=e(85615),Z=e(86745);function l(I){return v.apply(this,arguments)}function v(){return v=O()(a()().mark(function I(W){return a()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.abrupt("return",(0,Z.request)("/api/v1/mem/query/org",{method:"GET",params:C()(C()({},W),{},{client:F.bVn})}));case 1:case"end":return x.stop()}},I)})),v.apply(this,arguments)}function b(){return V.apply(this,arguments)}function V(){return V=_asyncToGenerator(_regeneratorRuntime().mark(function I(){return _regeneratorRuntime().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.abrupt("return",request("/api/v1/mem/query",{method:"GET",params:{client:HTTP_CLIENT}}));case 1:case"end":return H.stop()}},I)})),V.apply(this,arguments)}function z(I){return q.apply(this,arguments)}function q(){return q=O()(a()().mark(function I(W){return a()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.abrupt("return",(0,Z.request)("/api/v1/mem/create",{method:"POST",data:C()(C()({},W),{},{client:F.bVn})}));case 1:case"end":return x.stop()}},I)})),q.apply(this,arguments)}function Me(I){return me.apply(this,arguments)}function me(){return me=O()(a()().mark(function I(W){return a()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.abrupt("return",(0,Z.request)("/api/v1/mem/update",{method:"POST",data:C()(C()({},W),{},{client:F.bVn})}));case 1:case"end":return x.stop()}},I)})),me.apply(this,arguments)}function ge(I){return ne.apply(this,arguments)}function ne(){return ne=O()(a()().mark(function I(W){return a()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.abrupt("return",(0,Z.request)("/api/v1/member/delete",{method:"POST",data:C()(C()({},W),{},{client:F.bVn})}));case 1:case"end":return x.stop()}},I)})),ne.apply(this,arguments)}function y(I){return P.apply(this,arguments)}function P(){return P=_asyncToGenerator(_regeneratorRuntime().mark(function I(W){return _regeneratorRuntime().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.abrupt("return",request("/api/v1/member/filter",{method:"GET",params:_objectSpread(_objectSpread({},W),{},{client:HTTP_CLIENT})}));case 1:case"end":return x.stop()}},I)})),P.apply(this,arguments)}},77154:function(se,A,e){"use strict";var o=e(39825);function a(){var p=(0,o.Z)(),C=p.isDarkMode,i=250,O={borderRight:C?"1px solid #333":"1px solid #ccc",background:C?"#141414":"#f5f5f5"},F={background:C?"#141414":"#fff"},Z={borderLeft:C?"1px solid #333":"1px solid #ccc",background:C?"#141414":"#f5f5f5"},l={minHeight:120,background:C?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:O,leftSiderWidth:i,headerStyle:F,rightSiderStyle:Z,contentStyle:l}}A.Z=a},79041:function(se,A,e){"use strict";e.r(A),e.d(A,{default:function(){return Qe}});var o=e(21612),a=e(67294),p=e(77154),C=e(97857),i=e.n(C),O=e(13769),F=e.n(O),Z=e(15009),l=e.n(Z),v=e(99289),b=e.n(v),V=e(5574),z=e.n(V),q=e(84125),Me=e(64599),me=e.n(Me),ge=e(19632),ne=e.n(ge),y=e(85615),P=e(73445),I=e(782),W=e(18753),H=(0,P.Ue)()((0,I.mW)((0,I.tJ)((0,W.n)(function(_,d){return{departmentResult:{data:{content:[]}},currentDepartment:{uid:"",nickname:""},insertDepartment:function(t){_(function(T){var h=T.departmentResult.data.content;h.push(t)})},setDepartmentResult:function(t){var T={uid:y.zBg,name:y.zBg};_({departmentResult:i()(i()({},t),{},{data:{content:[T].concat(ne()(t.data.content))}})});var h=d().currentDepartment;if(h.uid===""){var N;((N=t.data)===null||N===void 0||(N=N.content)===null||N===void 0?void 0:N.length)>0&&_({currentDepartment:t.data.content[0]})}},setCurrentDepartment:function(t){var T=d().departmentResult.data.content,h=T.findIndex(function(ve){return ve.uid===t.uid});if(h!==-1){var N=[].concat(ne()(T.slice(0,h)),[t],ne()(T.slice(h+1))),oe=i()(i()({},d().departmentResult),{},{data:{content:N}});_({departmentResult:oe,currentDepartment:t})}else console.warn("Department with the specified uid not found."),_({currentDepartment:t})},deleteCurrentDepartment:function(t){var T=d().departmentResult.data.content,h=T.findIndex(function(N){return N.uid===t});h!==-1?_({departmentResult:i()(i()({},d().departmentResult),{},{data:{content:[].concat(ne()(T.slice(0,h)),ne()(T.slice(h+1)))}})}):console.warn("Department not found in cache:",t),d().currentDepartment.uid===t&&_({currentDepartment:{uid:""}})},setCurrentDepUid:function(t){var T,h,N=(T=d().departmentResult)===null||T===void 0||(T=T.data)===null||T===void 0||(T=T.content)===null||T===void 0?void 0:T.find(function(ve){return ve.uid===t});if(N){_({currentDepartment:N});return}var oe=function ve(fe){var ye=me()(fe),ee;try{for(ye.s();!(ee=ye.n()).done;){var J=ee.value;if(J.uid===t){_({currentDepartment:J});return}J.children&&J.children.length>0&&ve(J.children)}}catch(pe){ye.e(pe)}finally{ye.f()}};oe(((h=d().departmentResult)===null||h===void 0||(h=h.data)===null||h===void 0?void 0:h.content)||[])},deleteDepartmentCache:function(){return _({},!0)}}}),{name:y.xY_}))),x=e(87676),Se=e(11475),ie=e(51042),s=e(57546),g=e(58638),u=e(57482),D=e(85576),k=e(66309),r=e(14726),S=e(11443),R=e(34994),m=e(19054),f=e(5966),B=e(86745),Q=e(85265),Y=e(42075),n=e(85893),Te=function(d){var M=d.isEdit,t=d.member,T=d.open,h=d.onClose,N=d.onSubmit,oe=R.A.useForm(),ve=z()(oe,1),fe=ve[0],ye=(0,B.useIntl)(),ee=H(function(te){return te.departmentResult}),J=(0,x.u)(function(te){return te.currentOrg});(0,a.useEffect)(function(){t&&fe?fe.setFieldsValue({depUid:(t==null?void 0:t.departments.length)>0?t==null?void 0:t.departments[0].uid:"",nickname:t==null?void 0:t.nickname,email:t==null?void 0:t.email,mobile:t==null?void 0:t.mobile,jobNo:t==null?void 0:t.jobNo,seatNo:t==null?void 0:t.seatNo,telephone:t==null?void 0:t.telephone}):fe!=null&&!M&&(console.log("form resetFields"),fe.resetFields())},[t]);var pe=function te(c,ue){if(c.name.startsWith(y.VoP)?ue.title=ye.formatMessage({id:c.name,defaultMessage:c.name}):ue.title=c.name,ue.value=c.uid,c.children)for(var X=0;X0?t==null?void 0:t.departments[0].uid:"",nickname:t==null?void 0:t.nickname,email:t==null?void 0:t.email,mobile:t==null?void 0:t.mobile,jobNo:t==null?void 0:t.jobNo,seatNo:t==null?void 0:t.seatNo,telephone:t==null?void 0:t.telephone},submitter:!1,children:[(0,n.jsx)(m.Z,{label:"\u90E8\u95E8",name:"depUid",width:"md",placeholder:"\u8BF7\u9009\u62E9\u90E8\u95E8",allowClear:!0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u90E8\u95E8"}],fieldProps:{treeDefaultExpandAll:!0,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:$e}}),(0,n.jsx)(f.Z,{label:"\u59D3\u540D",name:"nickname",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"}]}),(0,n.jsx)(f.Z,{label:"\u624B\u673A",name:"mobile",disabled:M,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7"}]}),(0,n.jsx)(f.Z,{label:"\u90AE\u7BB1",name:"email",disabled:M,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90AE\u7BB1"},{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740"}]}),(0,n.jsx)(f.Z,{label:"\u5DE5\u53F7",name:"jobNo"}),(0,n.jsx)(f.Z,{label:"\u5EA7\u4F4D\u53F7",name:"seatNo"}),(0,n.jsx)(f.Z,{label:"\u5206\u673A\u53F7",name:"telephone"})]})})})},ae=Te,U=e(80049),Ee=["current"],Fe=function(){var d=(0,a.useRef)(),M=(0,S.Z)(),t=(0,a.useRef)(!1),T=(0,a.useState)(!0),h=z()(T,2),N=h[0],oe=h[1],ve=(0,a.useState)(),fe=z()(ve,2),ye=fe[0],ee=fe[1],J=(0,a.useState)(!1),pe=z()(J,2),$e=pe[0],je=pe[1],te=(0,x.u)(function(L){return L.currentOrg}),c=H(function(L){return L.currentDepartment}),ue=D.Z.useModal(),X=z()(ue,2),$=X[0],de=X[1],be=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,n.jsx)(B.FormattedMessage,{id:"name",defaultMessage:"Name"}),dataIndex:"nickname"},{title:(0,n.jsx)(B.FormattedMessage,{id:"jobNo",defaultMessage:"JobNum"}),dataIndex:"jobNo"},{title:(0,n.jsx)(B.FormattedMessage,{id:"email",defaultMessage:"Email"}),dataIndex:"email",render:function(j,E){return(0,n.jsx)("a",{href:"mailto:".concat(E.email),children:j})}},{title:(0,n.jsx)(B.FormattedMessage,{id:"telephone",defaultMessage:"Telephone"}),dataIndex:"telephone"},{title:(0,n.jsx)(B.FormattedMessage,{id:"seatNo",defaultMessage:"SeatNum"}),dataIndex:"seatNo"},{title:(0,n.jsx)(B.FormattedMessage,{id:"department",defaultMessage:"Department"}),render:function(j,E){return E.departments.length>0?E.departments[0].name.startsWith(y.VoP)?(0,n.jsx)(k.Z,{children:(0,n.jsx)(B.FormattedMessage,{id:E.departments[0].name})}):(0,n.jsx)(k.Z,{children:E.departments[0].name}):""}},{title:(0,n.jsx)(B.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"inviteAccepted",render:function(j,E){return E.status}},{title:(0,n.jsx)(B.FormattedMessage,{id:"mobile",defaultMessage:"Mobile"}),dataIndex:"mobile",render:function(j,E){return(0,n.jsx)("a",{href:"tel:".concat(E.mobile),children:E.mobile})}}],Ie=function(j){$.confirm({title:M.formatMessage({id:"deleteTip"}),icon:(0,n.jsx)(Se.Z,{}),content:"".concat(M.formatMessage({id:"deleteAfirm",defaultMessage:"Delete"}),"\u3010").concat(j.nickname,"\u3011\uFF1F"),onOk:function(){Be(j)},onCancel:function(){},okText:M.formatMessage({id:"ok"}),cancelText:M.formatMessage({id:"cancel"})})},We=[].concat(be,[{title:M.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(j,E,re,xe){return[(0,n.jsx)("a",{onClick:function(){console.log("editable:",E),w(E)},children:M.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable"),(0,n.jsx)(r.ZP,{type:"link",onClick:function(){return Ie(E)},danger:!0,children:M.formatMessage({id:"delete",defaultMessage:"Delete"})},"delete")]}}]);(0,a.useEffect)(function(){console.log("currentDepDid:",c),d.current.reload()},[c]);var Be=function(){var L=b()(l()().mark(function j(E){var re;return l()().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return console.log("delete mem:",E),Pe.next=3,(0,q.EP)(E);case 3:re=Pe.sent,console.log("deleteMember:",re),re.code===200?(U.yw.success(M.formatMessage({id:"delete.success",defaultMessage:"Delete success"})),d.current.reload()):U.yw.error(re.message);case 6:case"end":return Pe.stop()}},j)}));return function(E){return L.apply(this,arguments)}}(),K=function(){ee(void 0),oe(!1),je(!0)},w=function(j){ee(j),oe(!0),je(!0)},G=function(){je(!1)},le=function(){var L=b()(l()().mark(function j(E){var re,xe;return l()().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(console.log("handleSubmitDrawer:",E),!N){De.next=9;break}return De.next=4,(0,q.hS)(E);case 4:re=De.sent,console.log("updateMember:",re),re.code===200?(U.yw.success(M.formatMessage({id:"update.success",defaultMessage:"update success"})),d.current.reload(),G()):U.yw.error(re.message),De.next=14;break;case 9:return De.next=11,(0,q.D$)(E);case 11:xe=De.sent,console.log("createMember:",xe),xe.code===200?(U.yw.success(M.formatMessage({id:"create.success",defaultMessage:"create success"})),d.current.reload(),G()):U.yw.error(xe.message);case 14:case"end":return De.stop()}},j)}));return function(E){return L.apply(this,arguments)}}(),ze=function(){var j;return c!=null&&(j=c.name)!==null&&j!==void 0&&j.startsWith("i18n.")?M.formatMessage({id:c==null?void 0:c.name,defaultMessage:c==null?void 0:c.name}):c==null?void 0:c.name},ce=function(){var L=b()(l()().mark(function j(){return l()().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:U.yw.warning("TODO: \u5373\u5C06\u4E0A\u7EBF\uFF0C\u656C\u8BF7\u671F\u5F85");case 1:case"end":return re.stop()}},j)}));return function(){return L.apply(this,arguments)}}(),qe=function(){var L=b()(l()().mark(function j(){var E;return l()().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:E=localStorage.getItem(y.LA8),window.open("/api/v1/mem/export?orgUid="+(te==null?void 0:te.uid)+"&pageNumber=0&pageSize=20&accessToken="+E);case 2:case"end":return xe.stop()}},j)}));return function(){return L.apply(this,arguments)}}();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Z,{columns:We,actionRef:d,cardBordered:!0,request:function(){var L=b()(l()().mark(function j(E,re,xe){var Pe,De,Ye,Ue;return l()().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(console.log("request:",E,re,xe),!t.current){Re.next=4;break}return console.log("isLoading: 1",t.current),Re.abrupt("return");case 4:return t.current=!0,U.yw.loading("\u6B63\u5728\u52A0\u8F7D"),Pe=E.current,De=F()(E,Ee),Ye=i()({pageNumber:E.current-1,orgUid:te.uid,depUid:c.uid===y.zBg?"":c.uid},De),Re.next=10,(0,q.z_)(Ye);case 10:return Ue=Re.sent,console.log("queryMembersByOrg:",Ye,Ue),Ue.code===200||U.yw.error(Ue.message),t.current=!1,U.yw.destroy(),Re.abrupt("return",{data:Ue.data.content,success:!0,total:Ue.data.totalElements});case 16:case"end":return Re.stop()}},j)}));return function(j,E,re){return L.apply(this,arguments)}}(),rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(j){console.log("page:",j)}},headerTitle:ze(),toolBarRender:function(){return[(0,n.jsx)(r.ZP,{icon:(0,n.jsx)(ie.Z,{}),onClick:function(){console.log("new"),K()},type:"primary",children:M.formatMessage({id:"create",defaultMessage:"Create"})},"button"),(0,n.jsx)(r.ZP,{icon:(0,n.jsx)(s.Z,{}),type:"primary",onClick:ce,children:M.formatMessage({id:"import",defaultMessage:"Import"})},"button"),(0,n.jsx)(r.ZP,{icon:(0,n.jsx)(g.Z,{}),type:"primary",onClick:qe,children:M.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}}),(0,n.jsx)(ae,{isEdit:N,member:ye,open:$e,onClose:G,onSubmit:le}),de]})},Ze=Fe,he=e(86250),Oe=e(14e3);function we(_){return Ne.apply(this,arguments)}function Ne(){return Ne=b()(l()().mark(function _(d){return l()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,B.request)("/api/v1/dep/query/org",{method:"GET",params:i()(i()({},d),{},{client:y.bVn})}));case 1:case"end":return t.stop()}},_)})),Ne.apply(this,arguments)}function _e(_){return Ae.apply(this,arguments)}function Ae(){return Ae=b()(l()().mark(function _(d){return l()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,B.request)("/api/v1/dep/create",{method:"POST",data:i()(i()({},d),{},{client:y.bVn})}));case 1:case"end":return t.stop()}},_)})),Ae.apply(this,arguments)}var Le=e(90672),Ve=e(8232),Ce=function(d){var M=d.open,t=d.onCancel,T=d.onSubmit,h=Ve.Z.useForm(),N=z()(h,1),oe=N[0],ve=(0,B.useIntl)(),fe=(0,a.useState)(""),ye=z()(fe,2),ee=ye[0],J=ye[1],pe=H(function(X){return X.departmentResult}),$e=(0,x.u)(function(X){return X.currentOrg}),je=function X($,de){if($.name.startsWith(y.VoP)?de.title=ve.formatMessage({id:$.name,defaultMessage:$.name}):de.title=$.name,de.value=$.uid,$.children)for(var be=0;be<$.children.length;be++){var Ie=$.children[be],We={title:"",value:"",children:[]};X(Ie,We)}},te=function($){console.log("onParentSelectChange:",$),J($||"")},c=(0,a.useMemo)(function(){for(var X=[],$=0;${const u=g.wrap===!0?"wrap":g.wrap;return{[`${s}-wrap-${u}`]:u&&l.includes(u)}},z=(s,g)=>{const u={};return b.forEach(D=>{u[`${s}-align-${D}`]=g.align===D}),u[`${s}-align-stretch`]=!g.align&&!!g.vertical,u},q=(s,g)=>{const u={};return v.forEach(D=>{u[`${s}-justify-${D}`]=g.justify===D}),u};function Me(s,g){return p()(Object.assign(Object.assign(Object.assign({},V(s,g)),z(s,g)),q(s,g)))}var me=Me;const ge=s=>{const{componentCls:g}=s;return{[g]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},ne=s=>{const{componentCls:g}=s;return{[g]:{"&-gap-small":{gap:s.flexGapSM},"&-gap-middle":{gap:s.flexGap},"&-gap-large":{gap:s.flexGapLG}}}},y=s=>{const{componentCls:g}=s,u={};return l.forEach(D=>{u[`${g}-wrap-${D}`]={flexWrap:D}}),u},P=s=>{const{componentCls:g}=s,u={};return b.forEach(D=>{u[`${g}-align-${D}`]={alignItems:D}}),u},I=s=>{const{componentCls:g}=s,u={};return v.forEach(D=>{u[`${g}-justify-${D}`]={justifyContent:D}}),u},W=()=>({});var H=(0,F.I$)("Flex",s=>{const{paddingXS:g,padding:u,paddingLG:D}=s,k=(0,Z.TS)(s,{flexGapSM:g,flexGap:u,flexGapLG:D});return[ge(k),ne(k),y(k),P(k),I(k)]},W,{resetStyle:!1}),x=function(s,g){var u={};for(var D in s)Object.prototype.hasOwnProperty.call(s,D)&&g.indexOf(D)<0&&(u[D]=s[D]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,D=Object.getOwnPropertySymbols(s);k{const{prefixCls:u,rootClassName:D,className:k,style:r,flex:S,gap:R,children:m,vertical:f=!1,component:B="div"}=s,Q=x(s,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:Y,direction:n,getPrefixCls:Te}=o.useContext(O.E_),ae=Te("flex",u),[U,Ee,Fe]=H(ae),Ze=f!=null?f:Y==null?void 0:Y.vertical,he=p()(k,D,Y==null?void 0:Y.className,ae,Ee,Fe,me(ae,s),{[`${ae}-rtl`]:n==="rtl",[`${ae}-gap-${R}`]:(0,i.n)(R),[`${ae}-vertical`]:Ze}),Oe=Object.assign(Object.assign({},Y==null?void 0:Y.style),r);return S&&(Oe.flex=S),R&&!(0,i.n)(R)&&(Oe.gap=R),U(o.createElement(B,Object.assign({ref:g,className:he,style:Oe},(0,C.Z)(Q,["justify","wrap","align"])),m))})},66309:function(se,A,e){"use strict";e.d(A,{Z:function(){return k}});var o=e(67294),a=e(93967),p=e.n(a),C=e(98423),i=e(98787),O=e(69760),F=e(96159),Z=e(45353),l=e(53124),v=e(85982),b=e(10274),V=e(14747),z=e(45503),q=e(27036);const Me=r=>{const{paddingXXS:S,lineWidth:R,tagPaddingHorizontal:m,componentCls:f,calc:B}=r,Q=B(m).sub(R).equal(),Y=B(S).sub(R).equal();return{[f]:Object.assign(Object.assign({},(0,V.Wf)(r)),{display:"inline-block",height:"auto",marginInlineEnd:r.marginXS,paddingInline:Q,fontSize:r.tagFontSize,lineHeight:r.tagLineHeight,whiteSpace:"nowrap",background:r.defaultBg,border:`${(0,v.bf)(r.lineWidth)} ${r.lineType} ${r.colorBorder}`,borderRadius:r.borderRadiusSM,opacity:1,transition:`all ${r.motionDurationMid}`,textAlign:"start",position:"relative",[`&${f}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:r.defaultColor},[`${f}-close-icon`]:{marginInlineStart:Y,fontSize:r.tagIconSize,color:r.colorTextDescription,cursor:"pointer",transition:`all ${r.motionDurationMid}`,"&:hover":{color:r.colorTextHeading}},[`&${f}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${r.iconCls}-close, ${r.iconCls}-close:hover`]:{color:r.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${f}-checkable-checked):hover`]:{color:r.colorPrimary,backgroundColor:r.colorFillSecondary},"&:active, &-checked":{color:r.colorTextLightSolid},"&-checked":{backgroundColor:r.colorPrimary,"&:hover":{backgroundColor:r.colorPrimaryHover}},"&:active":{backgroundColor:r.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${r.iconCls} + span, > span + ${r.iconCls}`]:{marginInlineStart:Q}}),[`${f}-borderless`]:{borderColor:"transparent",background:r.tagBorderlessBg}}},me=r=>{const{lineWidth:S,fontSizeIcon:R,calc:m}=r,f=r.fontSizeSM;return(0,z.TS)(r,{tagFontSize:f,tagLineHeight:(0,v.bf)(m(r.lineHeightSM).mul(f).equal()),tagIconSize:m(R).sub(m(S).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:r.defaultBg})},ge=r=>({defaultBg:new b.C(r.colorFillQuaternary).onBackground(r.colorBgContainer).toHexString(),defaultColor:r.colorText});var ne=(0,q.I$)("Tag",r=>{const S=me(r);return Me(S)},ge),y=function(r,S){var R={};for(var m in r)Object.prototype.hasOwnProperty.call(r,m)&&S.indexOf(m)<0&&(R[m]=r[m]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,m=Object.getOwnPropertySymbols(r);f{const{prefixCls:R,style:m,className:f,checked:B,onChange:Q,onClick:Y}=r,n=y(r,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Te,tag:ae}=o.useContext(l.E_),U=we=>{Q==null||Q(!B),Y==null||Y(we)},Ee=Te("tag",R),[Fe,Ze,he]=ne(Ee),Oe=p()(Ee,`${Ee}-checkable`,{[`${Ee}-checkable-checked`]:B},ae==null?void 0:ae.className,f,Ze,he);return Fe(o.createElement("span",Object.assign({},n,{ref:S,style:Object.assign(Object.assign({},m),ae==null?void 0:ae.style),className:Oe,onClick:U})))}),W=e(98719);const H=r=>(0,W.Z)(r,(S,R)=>{let{textColor:m,lightBorderColor:f,lightColor:B,darkColor:Q}=R;return{[`${r.componentCls}${r.componentCls}-${S}`]:{color:m,background:B,borderColor:f,"&-inverse":{color:r.colorTextLightSolid,background:Q,borderColor:Q},[`&${r.componentCls}-borderless`]:{borderColor:"transparent"}}}});var x=(0,q.bk)(["Tag","preset"],r=>{const S=me(r);return H(S)},ge);function Se(r){return typeof r!="string"?r:r.charAt(0).toUpperCase()+r.slice(1)}const ie=(r,S,R)=>{const m=Se(R);return{[`${r.componentCls}${r.componentCls}-${S}`]:{color:r[`color${R}`],background:r[`color${m}Bg`],borderColor:r[`color${m}Border`],[`&${r.componentCls}-borderless`]:{borderColor:"transparent"}}}};var s=(0,q.bk)(["Tag","status"],r=>{const S=me(r);return[ie(S,"success","Success"),ie(S,"processing","Info"),ie(S,"error","Error"),ie(S,"warning","Warning")]},ge),g=function(r,S){var R={};for(var m in r)Object.prototype.hasOwnProperty.call(r,m)&&S.indexOf(m)<0&&(R[m]=r[m]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,m=Object.getOwnPropertySymbols(r);f{const{prefixCls:R,className:m,rootClassName:f,style:B,children:Q,icon:Y,color:n,onClose:Te,bordered:ae=!0,visible:U}=r,Ee=g(r,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Fe,direction:Ze,tag:he}=o.useContext(l.E_),[Oe,we]=o.useState(!0),Ne=(0,C.Z)(Ee,["closeIcon","closable"]);o.useEffect(()=>{U!==void 0&&we(U)},[U]);const _e=(0,i.o2)(n),Ae=(0,i.yT)(n),Le=_e||Ae,Ve=Object.assign(Object.assign({backgroundColor:n&&!Le?n:void 0},he==null?void 0:he.style),B),Ce=Fe("tag",R),[He,Ge,Je]=ne(Ce),Xe=p()(Ce,he==null?void 0:he.className,{[`${Ce}-${n}`]:Le,[`${Ce}-has-color`]:n&&!Le,[`${Ce}-hidden`]:!Oe,[`${Ce}-rtl`]:Ze==="rtl",[`${Ce}-borderless`]:!ae},m,f,Ge,Je),Ke=t=>{t.stopPropagation(),Te==null||Te(t),!t.defaultPrevented&&we(!1)},[,ke]=(0,O.Z)((0,O.w)(r),(0,O.w)(he),{closable:!1,closeIconRender:t=>{const T=o.createElement("span",{className:`${Ce}-close-icon`,onClick:Ke},t);return(0,F.wm)(t,T,h=>({onClick:N=>{var oe;(oe=h==null?void 0:h.onClick)===null||oe===void 0||oe.call(h,N),Ke(N)},className:p()(h==null?void 0:h.className,`${Ce}-close-icon`)}))}}),Qe=typeof Ee.onClick=="function"||Q&&Q.type==="a",_=Y||null,d=_?o.createElement(o.Fragment,null,_,Q&&o.createElement("span",null,Q)):Q,M=o.createElement("span",Object.assign({},Ne,{ref:S,className:Xe,style:Ve}),d,ke,_e&&o.createElement(x,{key:"preset",prefixCls:Ce}),Ae&&o.createElement(s,{key:"status",prefixCls:Ce}));return He(Qe?o.createElement(Z.Z,{component:"Tag"},M):M)});D.CheckableTag=I;var k=D},64599:function(se,A,e){var o=e(96263);function a(p,C){var i=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(!i){if(Array.isArray(p)||(i=o(p))||C&&p&&typeof p.length=="number"){i&&(p=i);var O=0,F=function(){};return{s:F,n:function(){return O>=p.length?{done:!0}:{done:!1,value:p[O++]}},e:function(V){throw V},f:F}}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 Z=!0,l=!1,v;return{s:function(){i=i.call(p)},n:function(){var V=i.next();return Z=V.done,V},e:function(V){l=!0,v=V},f:function(){try{!Z&&i.return!=null&&i.return()}finally{if(l)throw v}}}}se.exports=a,se.exports.__esModule=!0,se.exports.default=se.exports}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__MessageStatistic.2f722a1b.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__MessageStatistic.2f722a1b.async.js deleted file mode 100644 index b9387b5f..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__MessageStatistic.2f722a1b.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2992],{26059:function(u,c,a){a.r(c);var i=a(85615),e=a(86745),s=a(85893),t=function(){var n=(0,e.useAccess)();return n.canDebug&&console.log("TabQuickReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(e.Access,{accessible:n.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(e.FormattedMessage,{id:i.h5w})}),children:"can debug"})})})};c.default=t}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__MessageStatistic.308b6239.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__MessageStatistic.308b6239.async.js new file mode 100644 index 00000000..1ffe19f6 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__MessageStatistic.308b6239.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2992],{26059:function(e,c,s){s.r(c);var n=s(85615),a=s(86745),i=s(85893);c.default=function(){var e=(0,a.useAccess)();return e.canDebug&&console.log("TabQuickReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(a.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.FormattedMessage,{id:n.h5w})}),children:"can debug"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__MessageTable.6f317b29.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__MessageTable.6f317b29.async.js deleted file mode 100644 index 24f046ca..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__MessageTable.6f317b29.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1398],{69909:function(u,s,e){e.r(s);var a=e(12801),n=e(85893),t=function(){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.Z,{type:"team"})})};s.default=t}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__MessageTable.a728d3be.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__MessageTable.a728d3be.async.js new file mode 100644 index 00000000..1a7b31f9 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__MessageTable.a728d3be.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1398],{58638:function(e,t,n){n.d(t,{Z:function(){return u}});var a=n(1413),r=n(67294),s={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},o=n(89099),i=function(e,t){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:t,icon:s}))};var u=r.forwardRef(i)},70150:function(e,t,n){n.d(t,{W5:function(){return d}});var a=n(15009),r=n.n(a),s=n(97857),o=n.n(s),i=n(99289),u=n.n(i),c=(n(85615),n(86745));function d(e){return l.apply(this,arguments)}function l(){return(l=u()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,c.request)("/api/v1/message/query/org",{method:"GET",params:o()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},12801:function(e,t,n){var a=n(15009),r=n.n(a),s=n(97857),o=n.n(s),i=n(13769),u=n.n(i),c=n(99289),d=n.n(c),l=n(80049),g=n(70150),p=n(73803),f=n(87676),h=n(85615),m=n(17634),x=n(58638),v=n(74190),M=n(86745),w=n(14726),y=n(67294),b=n(85893),k=["current"];t.Z=function(e){e.type;var t=(0,M.useIntl)(),n=(0,y.useRef)(),a=(0,p.Z)().translateString,s=(0,f.u)((function(e){return e.currentOrg})),i=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,b.jsx)(M.FormattedMessage,{id:"nickname",defaultMessage:"Nickname"}),dataIndex:"nickname",render:function(e,t){var n;return(0,b.jsx)(b.Fragment,{children:a(null==t||null===(n=t.user)||void 0===n?void 0:n.nickname)})}},{title:(0,b.jsx)(M.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",width:300,copyable:!0,render:function(e,t){var n;return(0,b.jsx)(b.Fragment,{children:(null==t?void 0:t.content.length)>50?null==t||null===(n=t.content)||void 0===n?void 0:n.substring(0,50):a(null==t?void 0:t.content)})}},{title:(0,b.jsx)(M.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",width:100,hideInSearch:!0},{title:(0,b.jsx)(M.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",width:100,copyable:!0},{title:(0,b.jsx)(M.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client",width:100,hideInSearch:!0,copyable:!0},{title:(0,b.jsx)(M.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",width:180,sorter:!0,hideInSearch:!0}],c=function(){console.log("handleExportExcel");var e=localStorage.getItem(h.LA8);window.open((0,m.SV)()+"/api/v1/message/export?uid="+s.uid+"&pageNumber=0&pageSize=20&accessToken="+e)};return(0,b.jsx)(v.Z,{columns:i,actionRef:n,cardBordered:!0,request:function(){var e=d()(r()().mark((function e(t,n,a){var i,c,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("request:",t,n,a),t.current,i=u()(t,k),c=o()({pageNumber:t.current-1,orgUid:s.uid},i),e.next=5,(0,g.W5)(c);case 5:return d=e.sent,console.log("getAllMessages response:",c,d),200===d.code||l.yw.error(d.message),e.abrupt("return",{data:d.data.content,success:!0,total:d.data.totalElements});case 9:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:t.formatMessage({id:"message",defaultMessage:"Message"}),toolBarRender:function(){return[(0,b.jsx)(w.ZP,{icon:(0,b.jsx)(x.Z,{}),type:"primary",onClick:c,children:t.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})}},69909:function(e,t,n){n.r(t);var a=n(12801),r=n(85893);t.default=function(){return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.Z,{type:"team"})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__index.22c75c65.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__index.22c75c65.async.js deleted file mode 100644 index 8813a375..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__index.22c75c65.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8491],{77154:function(u,d,e){var r=e(39825);function s(){var a=(0,r.Z)(),n=a.isDarkMode,i=250,l={borderRight:n?"1px solid #333":"1px solid #ccc",background:n?"#141414":"#f5f5f5"},t={background:n?"#141414":"#fff"},o={borderLeft:n?"1px solid #333":"1px solid #ccc",background:n?"#141414":"#f5f5f5"},_={minHeight:120,background:n?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:l,leftSiderWidth:i,headerStyle:t,rightSiderStyle:o,contentStyle:_}}d.Z=s},27824:function(u,d,e){e.r(d);var r=e(77154),s=e(86745),a=e(21612),n=e(50136),i=e(67294),l=e(96974),t=e(85893),o=a.Z.Header,_=a.Z.Footer,S=a.Z.Sider,M=a.Z.Content,E=[{label:(0,t.jsx)(s.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}],v=function(){var y=(0,l.s0)(),c=(0,r.Z)(),h=c.leftSiderStyle,D=c.contentStyle,m=function(f){console.log("menu click ",f.key),y("/team/message/"+f.key)};return(0,t.jsxs)(a.Z,{children:[(0,t.jsx)(S,{style:h,children:(0,t.jsx)(n.Z,{mode:"inline",onClick:m,defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:E})}),(0,t.jsx)(a.Z,{children:(0,t.jsx)(M,{style:D,children:(0,t.jsx)(l.j3,{})})})]})};d.default=v}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__index.94a649b6.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__index.94a649b6.async.js new file mode 100644 index 00000000..85ee3e34 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Message__index.94a649b6.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8491],{77154:function(e,t,d){var n=d(39825);t.Z=function(){var e=(0,n.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},27824:function(e,t,d){d.r(t);var n=d(77154),a=d(86745),i=d(21612),l=d(50136),r=(d(67294),d(96974)),s=d(85893),c=(i.Z.Header,i.Z.Footer,i.Z.Sider),f=i.Z.Content,o=[{label:(0,s.jsx)(a.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}];t.default=function(){var e=(0,r.s0)(),t=(0,n.Z)(),d=t.leftSiderStyle,a=t.contentStyle;return(0,s.jsxs)(i.Z,{children:[(0,s.jsx)(c,{style:d,children:(0,s.jsx)(l.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/team/message/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:o})}),(0,s.jsx)(i.Z,{children:(0,s.jsx)(f,{style:a,children:(0,s.jsx)(r.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__NoticeStatistic.04e3dba6.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__NoticeStatistic.04e3dba6.async.js new file mode 100644 index 00000000..d2c69213 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__NoticeStatistic.04e3dba6.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2386],{11752:function(e,c,s){s.r(c);var n=s(85615),a=s(86745),i=s(85893);c.default=function(){var e=(0,a.useAccess)();return e.canDebug&&console.log("TabQuickReplies canDebug"),(0,i.jsx)("div",{children:(0,i.jsx)("p",{children:(0,i.jsx)(a.Access,{accessible:e.canDebug(),fallback:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.FormattedMessage,{id:n.h5w})}),children:"can debug"})})})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__NoticeStatistic.af2f61f0.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__NoticeStatistic.af2f61f0.async.js deleted file mode 100644 index 585b3175..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__NoticeStatistic.af2f61f0.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2386],{11752:function(u,e,c){c.r(e);var i=c(85615),a=c(86745),s=c(85893),t=function(){var n=(0,a.useAccess)();return n.canDebug&&console.log("TabQuickReplies canDebug"),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:(0,s.jsx)(a.Access,{accessible:n.canDebug(),fallback:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a.FormattedMessage,{id:i.h5w})}),children:"can debug"})})})};e.default=t}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__NoticeTable.19703a9c.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__NoticeTable.19703a9c.async.js deleted file mode 100644 index 2061b700..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__NoticeTable.19703a9c.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2874],{58638:function(W,m,e){e.d(m,{Z:function(){return v}});var p=e(1413),i=e(67294),g={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},E=g,f=e(89099),l=function(j,A){return i.createElement(f.Z,(0,p.Z)((0,p.Z)({},j),{},{ref:A,icon:E}))},R=i.forwardRef(l),v=R},70150:function(W,m,e){e.d(m,{W5:function(){return A}});var p=e(15009),i=e.n(p),g=e(97857),E=e.n(g),f=e(99289),l=e.n(f),R=e(85615),v=e(88541),y=e.n(v),j=e(86745);function A(r){return I.apply(this,arguments)}function I(){return I=l()(i()().mark(function r(n){return i()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,j.request)("/api/v1/message/query/org",{method:"GET",params:E()({},n)}));case 1:case"end":return t.stop()}},r)})),I.apply(this,arguments)}function b(r){return U.apply(this,arguments)}function U(){return U=_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/user/robot",{method:"GET",params:{page:n.pageNumber,size:n.pageSize,client:HTTP_CLIENT}}));case 1:case"end":return t.stop()}},r)})),U.apply(this,arguments)}function O(r){return d.apply(this,arguments)}function d(){return d=_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/message/rest/send",{method:"POST",data:{json:n,client:HTTP_CLIENT}}));case 1:case"end":return t.stop()}},r)})),d.apply(this,arguments)}function w(r,n){return L.apply(this,arguments)}function L(){return L=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,u){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("http://127.0.0.1:1001/visitor/api/v1/ai/ollama/chat",{method:"GET",params:{query:n,kbUid:u,client:HTTP_CLIENT}}));case 1:case"end":return a.stop()}},r)})),L.apply(this,arguments)}function Z(r,n,u){return T.apply(this,arguments)}function T(){return T=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,u,t){var a,o;return _regeneratorRuntime().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:console.log("sendMessageAiStream: ",n),a="http://127.0.0.1:1001/visitor/api/v1/ai/ollama/chat/stream?query=".concat(n,"&kbUid=").concat(u),o=new EventSource(a,{withCredentials:!1}),o.onopen=function(s){console.log("onopen:",s.target)},o.onmessage=function(s){console.log("onmessage:",s.data),t(s.data)},o.onerror=function(s){console.log("onerror:",s),o.readyState===EventSource.CLOSED?console.log("connection is closed"):console.log("Error occured",s),o.close()},o.addEventListener("customEventName",function(s){console.log("Message id is "+s.lastEventId)});case 7:case"end":return _.stop()}},r)})),T.apply(this,arguments)}function z(r,n){return B.apply(this,arguments)}function B(){return B=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,u){var t,a;return _regeneratorRuntime().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:console.log("sendMessageSSE: ",n),t="".concat("","/visitor/api/v1/zhipuai/sse?uid=&sid=").concat(n.sid,"&content=").concat(n.content),a=new EventSource(t,{withCredentials:!1}),a.onopen=function(_){console.log("onopen:",_.target)},a.onmessage=function(_){u(_.data);var s=JSON.parse(_.data);if(s.type=="finish"){a&&a.close();return}},a.onerror=function(_){console.log("onerror:",_),alert("server error"),a.readyState===EventSource.CLOSED?console.log("connection is closed"):console.log("Error occured",_),a.close()},a.addEventListener("customEventName",function(_){console.log("Message id is "+_.lastEventId)});case 7:case"end":return D.stop()}},r)})),B.apply(this,arguments)}function G(r,n){return C.apply(this,arguments)}function C(){return C=_asyncToGenerator(_regeneratorRuntime().mark(function r(n,u){var t,a,o;return _regeneratorRuntime().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:console.log("sendMessageSSEPolyfill: ",n),t=localStorage.ACCESS_TOKEN,a="".concat("","/visitor/api/v1/zhipuai/sse?uid=&sid=").concat(n.sid,"&content=").concat(n.content),o=new EventSourcePolyfill(a,{headers:{Authorization:"Bearer ".concat(t)}}),o.onopen=function(s){console.log("onopen:",s.target)},o.onmessage=function(s){console.log("onmessage:",s.data),u(s.data);var N=JSON.parse(s.data);if(N.type=="finish"){o&&o.close();return}},o.onerror=function(s){console.log("onerror:",s),alert("server error"),o.readyState===EventSource.CLOSED?console.log("connection is closed"):console.log("Error occured",s),o.close()},o.addEventListener("customEventName",function(s){console.log("Message id is "+s.lastEventId)});case 8:case"end":return _.stop()}},r)})),C.apply(this,arguments)}},87871:function(W,m,e){e.r(m);var p=e(15009),i=e.n(p),g=e(99289),E=e.n(g),f=e(5574),l=e.n(f),R=e(80049),v=e(70150),y=e(69888),j=e(87676),A=e(58638),I=e(57482),b=e(86745),U=e(14726),O=e(67294),d=e(85893),w=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,d.jsx)(b.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",copyable:!0},{title:(0,d.jsx)(b.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",hideInSearch:!0},{title:(0,d.jsx)(b.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0},{title:(0,d.jsx)(b.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client",hideInSearch:!0},{title:(0,d.jsx)(b.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0}],L=function(){var T=(0,b.useIntl)(),z=(0,O.useRef)(),B=(0,O.useState)(1),G=l()(B,2),C=G[0],r=G[1],n=(0,O.useState)(10),u=l()(n,2),t=u[0],a=u[1],o=(0,O.useState)({}),D=l()(o,2),_=D[0],s=D[1],N=(0,j.u)(function(c){return c.currentOrg}),$=(0,y.G)(function(c){return{messageResult:c.messageResult,setMessageResult:c.setMessageResult}}),x=$.messageResult,H=$.setMessageResult,J=[].concat(w,[{title:T.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(P,M,h,k){return[(0,d.jsx)("a",{onClick:function(){},children:T.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),F=function(){var c=E()(i()().mark(function P(){var M,h;return i()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return M={pageNumber:C-1,pageSize:t,orgUid:N.uid},S.next=3,(0,v.W5)(M);case 3:h=S.sent,console.log("getAllMessages response:",M,h),h.code===200?H(h):R.yw.error(h.message);case 6:case"end":return S.stop()}},P)}));return function(){return c.apply(this,arguments)}}();(0,O.useEffect)(function(){F()},[]),(0,O.useEffect)(function(){F()},[C,t]),(0,O.useEffect)(function(){console.log("messageResult:",x),z.current.reload()},[x]);var V=function(){console.log("handleExportExcel"),R.yw.warning("\u5373\u5C06\u4E0A\u7EBF\uFF0C\u656C\u8BF7\u671F\u5F85")};return(0,d.jsx)(I.Z,{columns:J,actionRef:z,cardBordered:!0,request:function(){var c=E()(i()().mark(function P(M,h,k){return i()().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return console.log("request:",M,h,k),r(M.current),a(M.pageSize),K.abrupt("return",Promise.resolve({data:x.data.content,success:!0,total:x.data.totalElements}));case 4:case"end":return K.stop()}},P)}));return function(P,M,h){return c.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{pageSize:t,showQuickJumper:!0,onChange:function(P){console.log("page:",P)}},dateFormatter:"string",headerTitle:"\u901A\u77E5",toolBarRender:function(){return[(0,d.jsx)(U.ZP,{icon:(0,d.jsx)(A.Z,{}),type:"primary",onClick:V,children:T.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})};m.default=L},69888:function(W,m,e){e.d(m,{G:function(){return f}});var p=e(85615),i=e(73445),g=e(782),E=e(18753),f=(0,i.Ue)()((0,g.mW)((0,g.tJ)((0,E.n)(function(l,R){return{messageResult:{data:{content:[]}},setMessageResult:function(y){l({messageResult:y})},deleteMessageCache:function(){return l({},!0)}}}),{name:p.j87})))},87676:function(W,m,e){e.d(m,{u:function(){return f}});var p=e(85615),i=e(73445),g=e(782),E=e(18753),f=(0,i.Ue)()((0,g.mW)((0,g.tJ)((0,E.n)(function(l,R){return{currentOrg:{uid:"",name:"",description:""},setCurrentOrg:function(y){l({currentOrg:y})},deleteOrg:function(){return l({},!0)}}}),{name:p.eRd})))}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__NoticeTable.3a7928c9.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__NoticeTable.3a7928c9.async.js new file mode 100644 index 00000000..260bfcbb --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__NoticeTable.3a7928c9.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2874],{58638:function(e,t,n){n.d(t,{Z:function(){return c}});var a=n(1413),r=n(67294),s={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},u=n(89099),o=function(e,t){return r.createElement(u.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:t,icon:s}))};var c=r.forwardRef(o)},70150:function(e,t,n){n.d(t,{W5:function(){return l}});var a=n(15009),r=n.n(a),s=n(97857),u=n.n(s),o=n(99289),c=n.n(o),i=(n(85615),n(86745));function l(e){return d.apply(this,arguments)}function d(){return(d=c()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/v1/message/query/org",{method:"GET",params:u()({},t)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},87871:function(e,t,n){n.r(t);var a=n(15009),r=n.n(a),s=n(99289),u=n.n(s),o=n(5574),c=n.n(o),i=n(80049),l=n(70150),d=n(69888),f=n(87676),g=n(58638),p=n(74190),m=n(86745),h=n(14726),x=n(67294),M=n(85893),v=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:(0,M.jsx)(m.FormattedMessage,{id:"content",defaultMessage:"Content"}),dataIndex:"content",copyable:!0},{title:(0,M.jsx)(m.FormattedMessage,{id:"status",defaultMessage:"Status"}),dataIndex:"status",hideInSearch:!0},{title:(0,M.jsx)(m.FormattedMessage,{id:"type",defaultMessage:"Type"}),dataIndex:"type",copyable:!0},{title:(0,M.jsx)(m.FormattedMessage,{id:"client",defaultMessage:"Client"}),dataIndex:"client",hideInSearch:!0},{title:(0,M.jsx)(m.FormattedMessage,{id:"createdAt",defaultMessage:"createdAt"}),key:"createdAt",dataIndex:"createdAt",sorter:!0,hideInSearch:!0}];t.default=function(){var e=(0,m.useIntl)(),t=(0,x.useRef)(),n=(0,x.useState)(1),a=c()(n,2),s=a[0],o=a[1],y=(0,x.useState)(10),w=c()(y,2),R=w[0],b=w[1],k=(0,x.useState)({}),j=c()(k,2),E=(j[0],j[1],(0,f.u)((function(e){return e.currentOrg}))),I=(0,d.G)((function(e){return{messageResult:e.messageResult,setMessageResult:e.setMessageResult}})),S=I.messageResult,C=I.setMessageResult,Z=[].concat(v,[{title:e.formatMessage({id:"actions",defaultMessage:"Actions"}),valueType:"option",key:"option",render:function(t,n,a,r){return[(0,M.jsx)("a",{onClick:function(){},children:e.formatMessage({id:"edit",defaultMessage:"Edit"})},"editable")]}}]),A=function(){var e=u()(r()().mark((function e(){var t,n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={pageNumber:s-1,pageSize:R,orgUid:E.uid},e.next=3,(0,l.W5)(t);case 3:n=e.sent,console.log("getAllMessages response:",t,n),200===n.code?C(n):i.yw.error(n.message);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,x.useEffect)((function(){A()}),[]),(0,x.useEffect)((function(){A()}),[s,R]),(0,x.useEffect)((function(){console.log("messageResult:",S),t.current.reload()}),[S]);var F=function(){console.log("handleExportExcel"),i.yw.warning("即将上线,敬请期待")};return(0,M.jsx)(p.Z,{columns:Z,actionRef:t,cardBordered:!0,request:function(){var e=u()(r()().mark((function e(t,n,a){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("request:",t,n,a),o(t.current),b(t.pageSize),e.abrupt("return",Promise.resolve({data:S.data.content,success:!0,total:S.data.totalElements}));case 4:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),editable:{type:"multiple"},rowKey:"uid",search:{labelWidth:"auto"},pagination:{pageSize:R,showQuickJumper:!0,onChange:function(e){console.log("page:",e)}},dateFormatter:"string",headerTitle:"通知",toolBarRender:function(){return[(0,M.jsx)(h.ZP,{icon:(0,M.jsx)(g.Z,{}),type:"primary",onClick:F,children:e.formatMessage({id:"export",defaultMessage:"Export"})},"button")]}})}},69888:function(e,t,n){n.d(t,{G:function(){return o}});var a=n(85615),r=n(73445),s=n(782),u=n(18753),o=(0,r.Ue)()((0,s.mW)((0,s.tJ)((0,u.n)((function(e,t){return{messageResult:{data:{content:[]}},setMessageResult:function(t){e({messageResult:t})},deleteMessageCache:function(){return e({},!0)}}})),{name:a.j87})))}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__index.4645a996.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__index.4645a996.async.js new file mode 100644 index 00000000..1eec4fcb --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__index.4645a996.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[589],{77154:function(e,t,n){var d=n(39825);t.Z=function(){var e=(0,d.Z)().isDarkMode;return{leftSiderStyle:{borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},leftSiderWidth:250,headerStyle:{background:e?"#141414":"#fff"},rightSiderStyle:{borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#f5f5f5"},contentStyle:{minHeight:120,background:e?"#141414":"#f5f5f5",height:"100vh"}}}},74093:function(e,t,n){n.r(t);var d=n(77154),i=n(86745),a=n(21612),l=n(50136),r=(n(67294),n(96974)),c=n(85893),s=(a.Z.Header,a.Z.Footer,a.Z.Sider),o=a.Z.Content,f=[{label:(0,c.jsx)(i.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}];t.default=function(){var e=(0,r.s0)(),t=(0,d.Z)(),n=t.leftSiderStyle,i=t.contentStyle;return(0,c.jsxs)(a.Z,{children:[(0,c.jsx)(s,{style:n,children:(0,c.jsx)(l.Z,{mode:"inline",onClick:function(t){console.log("menu click ",t.key),e("/team/notice/"+t.key)},defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:f})}),(0,c.jsx)(a.Z,{children:(0,c.jsx)(o,{style:i,children:(0,c.jsx)(r.j3,{})})})]})}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__index.47e8fa28.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__index.47e8fa28.async.js deleted file mode 100644 index 030b920d..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Notice__index.47e8fa28.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[589],{77154:function(u,d,e){var r=e(39825);function i(){var a=(0,r.Z)(),n=a.isDarkMode,o=250,l={borderRight:n?"1px solid #333":"1px solid #ccc",background:n?"#141414":"#f5f5f5"},t={background:n?"#141414":"#fff"},s={borderLeft:n?"1px solid #333":"1px solid #ccc",background:n?"#141414":"#f5f5f5"},_={minHeight:120,background:n?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:l,leftSiderWidth:o,headerStyle:t,rightSiderStyle:s,contentStyle:_}}d.Z=i},74093:function(u,d,e){e.r(d);var r=e(77154),i=e(86745),a=e(21612),n=e(50136),o=e(67294),l=e(96974),t=e(85893),s=a.Z.Header,_=a.Z.Footer,S=a.Z.Sider,E=a.Z.Content,M=[{label:(0,t.jsx)(i.FormattedMessage,{id:"data",defaultMessage:"Data"}),key:"data"}],v=function(){var y=(0,l.s0)(),c=(0,r.Z)(),h=c.leftSiderStyle,D=c.contentStyle,m=function(f){console.log("menu click ",f.key),y("/team/notice/"+f.key)};return(0,t.jsxs)(a.Z,{children:[(0,t.jsx)(S,{style:h,children:(0,t.jsx)(n.Z,{mode:"inline",onClick:m,defaultSelectedKeys:["data"],defaultOpenKeys:["data","statistic"],items:M})}),(0,t.jsx)(a.Z,{children:(0,t.jsx)(E,{style:D,children:(0,t.jsx)(l.j3,{})})})]})};d.default=v}}]); diff --git a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Role__index.12aaef78.async.js b/starter/src/main/resources/templates/admin/p__Dashboard__Team__Role__index.12aaef78.async.js deleted file mode 100644 index afb7b024..00000000 --- a/starter/src/main/resources/templates/admin/p__Dashboard__Team__Role__index.12aaef78.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[4325],{77154:function(T,f,e){var g=e(39825);function s(){var c=(0,g.Z)(),t=c.isDarkMode,y=250,a={borderRight:t?"1px solid #333":"1px solid #ccc",background:t?"#141414":"#f5f5f5"},M={background:t?"#141414":"#fff"},v={borderLeft:t?"1px solid #333":"1px solid #ccc",background:t?"#141414":"#f5f5f5"},h={minHeight:120,background:t?"#141414":"#f5f5f5",height:"100vh"};return{leftSiderStyle:a,leftSiderWidth:y,headerStyle:M,rightSiderStyle:v,contentStyle:h}}f.Z=s},31317:function(T,f,e){e.r(f),e.d(f,{default:function(){return H}});var g=e(15009),s=e.n(g),c=e(99289),t=e.n(c),y=e(97857),a=e.n(y),M=e(77154),v=e(85615),h=e(73445),j=e(782),I=e(18753),U=(0,h.Ue)()((0,j.mW)((0,j.tJ)((0,I.n)(function(l,d){return{roles:[],currentRole:{label:"",key:""},setCurrentRole:function(n){var S=d().roles.find(function(u){return u.key===n});l(function(u){u.currentRole=S})},addRole:function(n){var S=d().roles.find(function(C){return C.key===n.uid});if(!S){var u={label:n.displayName,key:n.uid};l(function(C){C.roles.push(u)})}},deleteRoleCache:function(){return l({},!0)}}}),{name:v.uaR}))),E=e(21612),A=e(50136),L=e(67294),K=e(11941),o=e(85893),z=function(d){console.log(d)},B=[{key:"authority",label:"\u6743\u9650",children:"Content of Tab Pane 1"},{key:"member",label:"\u6210\u5458",children:"Content of Tab Pane 2"}],b=function(){return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(K.Z,{defaultActiveKey:"1",items:B,onChange:z})})},G=b,x=e(86745);function k(l){return P.apply(this,arguments)}function P(){return P=t()(s()().mark(function l(d){return s()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,x.request)("/api/v1/role/query/org",{method:"GET",params:a()(a()({},d),{},{client:v.bVn})}));case 1:case"end":return n.stop()}},l)})),P.apply(this,arguments)}var J=e(87676),D=e(80049),N=E.Z.Sider,$=E.Z.Content,F=function(){var d=(0,x.useIntl)(),R=(0,M.Z)(),n=R.leftSiderStyle,S=(0,J.u)(function(r){return r.currentOrg}),u=U(function(r){return{roles:r.roles,setCurrentRole:r.setCurrentRole,addRole:r.addRole}}),C=u.roles,V=u.setCurrentRole,Q=u.addRole,X=C.map(function(r){var i=d.formatMessage({id:r.label,defaultMessage:r.label});return a()(a()({},r),{},{label:i})}),Y=function(){var r=t()(s()().mark(function i(){var W,m,p,Z;return s()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return D.yw.loading("\u6B63\u5728\u83B7\u53D6\u89D2\u8272\u5217\u8868..."),W={pageNumber:0,pageSize:20,orgUid:S.uid},O.next=4,k(W);case 4:if(m=O.sent,console.log("queryRoles response ",m),m.code===200)for(D.yw.destroy(),p=0;p{const[,r]=(0,O.ZP)(),s=new _.C(r.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return n.createElement("svg",{style:s,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},n.createElement("title",null,"empty image"),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("g",{transform:"translate(24 31.67)"},n.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),n.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"}),n.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)"}),n.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"}),n.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"})),n.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"}),n.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},n.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),n.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},I=()=>{const[,r]=(0,O.ZP)(),{colorFill:e,colorFillTertiary:s,colorFillQuaternary:a,colorBgContainer:i}=r,{borderColor:h,shadowColor:p,contentColor:L}=(0,n.useMemo)(()=>({borderColor:new _.C(e).onBackground(i).toHexShortString(),shadowColor:new _.C(s).onBackground(i).toHexShortString(),contentColor:new _.C(a).onBackground(i).toHexShortString()}),[e,s,a,i]);return n.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},n.createElement("title",null,"Simple Empty"),n.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},n.createElement("ellipse",{fill:p,cx:"32",cy:"33",rx:"32",ry:"7"}),n.createElement("g",{fillRule:"nonzero",stroke:h},n.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"}),n.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:L}))))},D=t(27036),B=t(45503);const E=r=>{const{componentCls:e,margin:s,marginXS:a,marginXL:i,fontSize:h,lineHeight:p}=r;return{[e]:{marginInline:a,fontSize:h,lineHeight:p,textAlign:"center",[`${e}-image`]:{height:r.emptyImgHeight,marginBottom:a,opacity:r.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${e}-description`]:{color:r.colorTextDescription},[`${e}-footer`]:{marginTop:s},"&-normal":{marginBlock:i,color:r.colorTextDescription,[`${e}-description`]:{color:r.colorTextDescription},[`${e}-image`]:{height:r.emptyImgHeightMD}},"&-small":{marginBlock:a,color:r.colorTextDescription,[`${e}-image`]:{height:r.emptyImgHeightSM}}}}};var S=(0,D.I$)("Empty",r=>{const{componentCls:e,controlHeightLG:s,calc:a}=r,i=(0,B.TS)(r,{emptyImgCls:`${e}-img`,emptyImgHeight:a(s).mul(2.5).equal(),emptyImgHeightMD:s,emptyImgHeightSM:a(s).mul(.875).equal()});return[E(i)]}),P=function(r,e){var s={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(s[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(r);i{var{className:e,rootClassName:s,prefixCls:a,image:i=o,description:h,children:p,imageStyle:L,style:b}=r,K=P(r,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:x,empty:R}=n.useContext(g.E_),T=u("empty",a),[H,w,$]=S(T),[W]=(0,c.Z)("Empty"),U=typeof h!="undefined"?h:W==null?void 0:W.description,N=typeof U=="string"?U:"empty";let z=null;return typeof i=="string"?z=n.createElement("img",{alt:N,src:i}):z=i,H(n.createElement("div",Object.assign({className:y()(w,$,T,R==null?void 0:R.className,{[`${T}-normal`]:i===d,[`${T}-rtl`]:x==="rtl"},e,s),style:Object.assign(Object.assign({},R==null?void 0:R.style),b)},K),n.createElement("div",{className:`${T}-image`,style:L},z),U&&n.createElement("div",{className:`${T}-description`},U),p&&n.createElement("div",{className:`${T}-footer`},p)))};v.PRESENTED_IMAGE_DEFAULT=o,v.PRESENTED_IMAGE_SIMPLE=d;var l=v}}]); diff --git a/starter/src/main/resources/templates/admin/p__Welcome.a3e2dea9.async.js b/starter/src/main/resources/templates/admin/p__Welcome.a3e2dea9.async.js new file mode 100644 index 00000000..8d7f1336 --- /dev/null +++ b/starter/src/main/resources/templates/admin/p__Welcome.a3e2dea9.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8185],{24172:function(e,t,n){n.d(t,{Kq:function(){return u},RL:function(){return p}});var r=n(15009),a=n.n(r),l=n(97857),o=n.n(l),i=n(99289),c=n.n(i),s=n(85615),m=n(86745);function u(e){return g.apply(this,arguments)}function g(){return(g=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.request)("/api/v1/org/create",{method:"POST",data:o()(o()({},t),{},{client:s.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return h.apply(this,arguments)}function h(){return(h=c()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,m.request)("/api/v1/org/update",{method:"POST",data:o()(o()({},t),{},{client:s.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},9622:function(e,t,n){n.r(t);var r=n(15009),a=n.n(r),l=n(99289),o=n.n(l),i=n(80049),c=n(24172),s=n(87676),m=n(85615),u=n(16854),g=n(86745),p=n(21612),h=n(32983),d=n(67294),f=n(85893),y=p.Z.Content,v={marginLeft:20,marginTop:10,marginRight:20};t.default=function(){var e=((0,g.useModel)("@@initialState").initialState||{}).userInfo,t=(0,s.u)((function(e){return e.setCurrentOrg})),n=function(){var n=o()(a()().mark((function n(){var r,l,o;return a()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(null!=e&&void 0!==e){n.next=3;break}return console.log("before getProfile",e),n.abrupt("return");case 3:if(null!=(null==e?void 0:e.currentOrganization)&&void 0!==(null==e?void 0:e.currentOrganization)){n.next=15;break}if(console.log("before initOrganization",e),(null==e?void 0:e.platform)!==m.aIT){n.next=14;break}return i.yw.loading("首次登录,创建组织中,请稍后..."),r=null!=e&&e.mobile?null==e?void 0:e.mobile:null==e?void 0:e.email,l={name:"MyCompany"+r,code:r,logo:"https://chainsnow.oss-cn-shenzhen.aliyuncs.com/avatars/admin_default_avatar.png",description:"MyCompany description"},n.next=11,(0,c.Kq)(l);case 11:o=n.sent,console.log("createOrg response:",o),200===o.code?(t(o.data),i.yw.destroy(),i.yw.success("创建组织成功"),window.location.reload()):(i.yw.destroy(),i.yw.error(o.message));case 14:return n.abrupt("return");case 15:console.log("after initOrganization"),t(null==e?void 0:e.currentOrganization);case 17:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,d.useEffect)((function(){n(),(0,u.Bc)()&&console.log("weiyuaiSaas")}),[e]),(0,f.jsx)(p.Z,{children:(0,f.jsxs)(y,{style:v,children:[(0,f.jsx)(h.Z,{description:"欢迎使用微语"}),!1]})})}},32983:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(67294),a=n(93967),l=n.n(a),o=n(53124),i=n(10110),c=n(10274),s=n(29691);var m=()=>{const[,e]=(0,s.ZP)(),t=new c.C(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return r.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,"empty image"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.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"}),r.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)"}),r.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"}),r.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"})),r.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"}),r.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};var u=()=>{const[,e]=(0,s.ZP)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:a,colorBgContainer:l}=e,{borderColor:o,shadowColor:i,contentColor:m}=(0,r.useMemo)((()=>({borderColor:new c.C(t).onBackground(l).toHexShortString(),shadowColor:new c.C(n).onBackground(l).toHexShortString(),contentColor:new c.C(a).onBackground(l).toHexShortString()})),[t,n,a,l]);return r.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,"Simple Empty"),r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{fillRule:"nonzero",stroke:o},r.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"}),r.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:m}))))},g=n(83559),p=n(83262);const h=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:l,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:l,lineHeight:o,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var d=(0,g.I$)("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=(0,p.IX)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[h(a)]})),f=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{var{className:t,rootClassName:n,prefixCls:a,image:c=y,description:s,children:m,imageStyle:u,style:g}=e,p=f(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:h,direction:E,empty:w}=r.useContext(o.E_),x=h("empty",a),[C,b,S]=d(x),[H]=(0,i.Z)("Empty"),M=void 0!==s?s:null==H?void 0:H.description,O="string"==typeof M?M:"empty";let z=null;return z="string"==typeof c?r.createElement("img",{alt:O,src:c}):c,C(r.createElement("div",Object.assign({className:l()(b,S,x,null==w?void 0:w.className,{[`${x}-normal`]:c===v,[`${x}-rtl`]:"rtl"===E},t,n),style:Object.assign(Object.assign({},null==w?void 0:w.style),g)},p),r.createElement("div",{className:`${x}-image`,style:u},z),M&&r.createElement("div",{className:`${x}-description`},M),m&&r.createElement("div",{className:`${x}-footer`},m)))};E.PRESENTED_IMAGE_DEFAULT=y,E.PRESENTED_IMAGE_SIMPLE=v;var w=E}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/preload_helper.05475765.js b/starter/src/main/resources/templates/admin/preload_helper.05475765.js deleted file mode 100644 index b4acd947..00000000 --- a/starter/src/main/resources/templates/admin/preload_helper.05475765.js +++ /dev/null @@ -1 +0,0 @@ -!function(){"use strict";var t="/admin/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"admin","b":"webpack","f":[["p__Dashboard__Service__Quality__QualityStatistic.859ea27c.async.js",13],["p__Dashboard__Robot__Thread__index.ee9db518.async.js",49],["p__Dashboard__Service__Visitor__VisitorTable.7545698e.async.js",58],["p__Dashboard__Knowledge__Faq__FaqData.f9c908ef.chunk.css",79],["p__Dashboard__Knowledge__Faq__FaqData.e4c74069.async.js",79],["119.52ee1e74.async.js",119],["143.a579c624.chunk.css",143],["143.54c2d656.async.js",143],["p__Dashboard__Service__Black__BlackStatistic.3d6de7c3.async.js",210],["230.190d9689.async.js",230],["241.be550360.async.js",241],["p__Dashboard__Admin__Push__PushData.0e753acf.async.js",275],["p__Dashboard__Robot__Message__index.db789046.async.js",294],["p__Dashboard__Service__Monitor__index.757dbf91.async.js",296],["p__Dashboard__Knowledge__Taboo__TabooStatistic.223f7a29.async.js",319],["p__Dashboard__Knowledge__index.7d9d31c0.async.js",363],["p__Dashboard__Marketing__Blog__BlogStatistic.83e95c78.async.js",510],["p__Dashboard__Team__Notice__index.47e8fa28.async.js",589],["p__Dashboard__Service__Transfer__TransferTable.6e740c7a.async.js",1048],["p__Dashboard__Marketing__Blog__index.9e32f264.async.js",1312],["p__Dashboard__Team__Message__MessageTable.6f317b29.async.js",1398],["p__Dashboard__Service__Queue__QueueStatistic.6daacee9.async.js",1488],["p__Dashboard__Team__Upload__UploadTable.8a002f4c.async.js",1510],["p__Dashboard__Service__Agent__index.018eee53.async.js",1642],["p__Auth__Register__index.09876fde.async.js",1730],["p__Dashboard__Liangshibao__Course__index.2bc0e11f.async.js",1742],["1941.faf190bf.async.js",1941],["p__Dashboard__Service__Transfer__TransferStatistic.3863898c.async.js",2001],["p__Dashboard__Ticket__index.f1334601.async.js",2005],["p__Dashboard__Service__Quality__QualityTable.a4debddd.async.js",2034],["2062.4400ebfb.async.js",2062],["p__Dashboard__Service__Thread__ThreadStatistic.eb97860e.async.js",2097],["p__Dashboard__Service__Thread__index.9eb390c0.async.js",2148],["p__Dashboard__Team__Thread__ThreadMonitor.7dc6f231.async.js",2375],["p__Dashboard__Team__Notice__NoticeStatistic.af2f61f0.async.js",2386],["2487.9d5e5aeb.async.js",2487],["p__Dashboard__Plugins__index.513c2e0c.async.js",2494],["2504.3e2e9898.async.js",2504],["p__404.82f2bc17.async.js",2571],["p__Dashboard__Team__Thread__ThreadSummary.18237a67.async.js",2618],["p__Dashboard__Marketing__Blog__BlogData.f9c908ef.chunk.css",2647],["p__Dashboard__Marketing__Blog__BlogData.dc132c7f.async.js",2647],["p__Dashboard__Team__Action__ActionStatistic.851b2509.async.js",2658],["p__Dashboard__Team__Company__index.0d46f1a8.async.js",2701],["p__Dashboard__Team__Thread__index.b446d115.async.js",2708],["2801.fddadc02.async.js",2801],["p__Dashboard__Team__Tag__TagTable.2dfba78e.async.js",2861],["p__Dashboard__Team__Notice__NoticeTable.19703a9c.async.js",2874],["p__Dashboard__Knowledge__AutoReply__AutoReplyStatistic.78c581dc.async.js",2930],["p__Dashboard__Service__Message__index.c8005d66.async.js",2949],["p__Dashboard__Team__Message__MessageStatistic.2f722a1b.async.js",2992],["p__Dashboard__Robot__Thread__ThreadStatistic.dbcce3e8.async.js",3031],["p__Dashboard__Marketing__Email__EmailStatistic.232780d0.async.js",3151],["p__Dashboard__Liangshibao__Media__index.f1a3347e.async.js",3165],["p__Dashboard__Knowledge__Keyword__KeywordData.f9c908ef.chunk.css",3340],["p__Dashboard__Knowledge__Keyword__KeywordData.4d88f3aa.async.js",3340],["p__Dashboard__Robot__Thread__ThreadTable.90738549.async.js",3398],["3444.3a22cdee.async.js",3444],["p__Dashboard__Service__Thread__ThreadTable.1434f560.async.js",3537],["p__Dashboard__Service__LeaveMsg__index.c586f37e.async.js",3621],["p__Dashboard__Knowledge__QuickReply__QuickReplyStatistic.2ae9b72c.async.js",3656],["p__Dashboard__Service__Visitor__index.20531929.async.js",3675],["p__Dashboard__Setting__Realname__index.de7d6839.async.js",3791],["p__Dashboard__Quartz__index.2f2871f6.chunk.css",3848],["p__Dashboard__Quartz__index.3150a858.async.js",3848],["p__Dashboard__Team__Upload__index.1ca4bc54.async.js",3872],["3904.f9953c0e.async.js",3904],["3979.d5ecff1f.async.js",3979],["p__Dashboard__Team__Tag__index.91f70e96.async.js",4012],["4043.66ee76e8.async.js",4043],["4069.71097ccf.async.js",4069],["p__Dashboard__Knowledge__Llm__LlmData.f9c908ef.chunk.css",4167],["p__Dashboard__Knowledge__Llm__LlmData.d985143f.async.js",4167],["p__Dashboard__Team__Role__index.12aaef78.async.js",4325],["p__Dashboard__Team__Action__ActionTable.97c3b14d.async.js",4376],["p__Dashboard__Knowledge__Llm__LlmStatistic.8f95a2a1.async.js",4422],["p__Dashboard__Team__Upload__UploadStatistic.7f1389fb.async.js",4443],["p__Dashboard__Service__Message__MessageStatistic.38c2be60.async.js",4460],["p__Dashboard__Admin__User__UserStatistic.7cd998d6.async.js",4523],["p__Dashboard__Crm__VisitorTable.0e286965.async.js",4580],["p__Dashboard__Admin__Push__PushStatistic.8d59086c.async.js",4586],["p__Dashboard__Team__Tag__TagStatistic.df451172.async.js",4641],["p__Dashboard__Admin__Pay__index.d8866165.async.js",4657],["4841.ca0e15db.async.js",4841],["5102.1253a874.async.js",5102],["p__Dashboard__Service__Visitor__VisitorStatistic.a97c5723.async.js",5206],["p__Dashboard__Crm__index.81c65f24.async.js",5230],["p__OAuth__Google.806e9535.async.js",5279],["p__Dashboard__Meiyu__index.7db6b79b.async.js",5306],["5309.40cf852e.async.js",5309],["p__Dashboard__Doceditor__index.f9c908ef.chunk.css",5488],["p__Dashboard__Doceditor__index.a4650649.async.js",5488],["p__Dashboard__Crm__CrmStatistic.74d895e5.async.js",5520],["p__Dashboard__Liangshibao__Category__index.29dea558.async.js",5522],["p__Dashboard__Service__Rate__index.922d615b.async.js",5684],["p__Dashboard__Knowledge__Keyword__index.0c431791.async.js",5847],["p__Dashboard__Admin__Pay__PayStatistic.f0b33b9f.async.js",5851],["p__Dashboard__Service__Transfer__index.887a6ac3.async.js",5906],["p__Dashboard__Knowledge__Article__ArticleData.f9c908ef.chunk.css",5957],["p__Dashboard__Knowledge__Article__ArticleData.b0f391f7.async.js",5957],["p__Dashboard__Knowledge__QuickReply__index.d4d8d195.async.js",6037],["p__Dashboard__Knowledge__AutoReply__AutoReplyData.f9c908ef.chunk.css",6130],["p__Dashboard__Knowledge__AutoReply__AutoReplyData.b8516a76.async.js",6130],["6185.b7935715.async.js",6185],["t__plugin-layout__Layout.5012e1ab.chunk.css",6301],["t__plugin-layout__Layout.cf809a49.async.js",6301],["6390.003dda2b.async.js",6390],["p__Dashboard__Service__Queue__QueueTable.014c41d2.async.js",6668],["p__Dashboard__Setting__Server__index.2c32370d.async.js",6676],["p__Dashboard__Robot__index.7416ad8a.chunk.css",6693],["p__Dashboard__Robot__index.53be8b4f.async.js",6693],["p__Dashboard__Setting__Basic__index.14658bc0.async.js",6766],["p__Dashboard__Team__Thread__ThreadStatistic.6e8a5adf.async.js",6771],["p__Dashboard__Knowledge__AutoReply__index.0cd7142d.async.js",6778],["p__Dashboard__Service__Rate__RateTable.8231f033.async.js",6900],["p__Dashboard__Knowledge__Article__ArticleStatistic.6b172d59.async.js",6906],["p__Dashboard__Team__Group__GroupTable.e9e84bd5.async.js",7139],["7253.ae4782b7.async.js",7253],["p__Dashboard__Service__Thread__ThreadMonitor.ce3f973a.async.js",7270],["p__Dashboard__Knowledge__Taboo__TabooData.f9c908ef.chunk.css",7445],["p__Dashboard__Knowledge__Taboo__TabooData.4454dade.async.js",7445],["p__Dashboard__Setting__index.726c30fc.async.js",7469],["7482.9f838c41.async.js",7482],["p__Dashboard__Admin__User__UserData.9175e387.async.js",7586],["7714.f13a5d0e.async.js",7714],["p__Dashboard__Service__Message__MessageTable.3e20457d.async.js",7788],["p__Dashboard__Team__Member__index.f9c908ef.chunk.css",7960],["p__Dashboard__Team__Member__index.ab289a78.async.js",7960],["p__Dashboard__Knowledge__Faq__FaqStatistic.ed48edd8.async.js",8041],["8045.7b5d8f3b.async.js",8045],["p__Dashboard__Admin__Push__index.bb87ac42.async.js",8152],["p__Dashboard__Knowledge__Taboo__index.026faacc.async.js",8158],["p__Dashboard__Marketing__index.aa330265.async.js",8164],["p__Welcome.4ed162c1.async.js",8185],["p__OAuth__Github.79869cc2.async.js",8250],["p__Dashboard__Service__LeaveMsg__LeaveMsgTable.98ada561.async.js",8326],["p__Dashboard__Zhaobiao__index.d750dc22.async.js",8327],["p__Dashboard__Service__Thread__ThreadSummary.7e04770e.async.js",8390],["p__Dashboard__Service__LeaveMsg__LeaveMsgStatistic.af945db2.async.js",8412],["p__Dashboard__Tiku__index.fc95173a.async.js",8455],["p__Dashboard__Team__Action__index.7e756fe1.async.js",8483],["p__Dashboard__Team__Message__index.22c75c65.async.js",8491],["p__Dashboard__Robot__Message__MessageStatistic.7b20d210.async.js",8523],["8541.cfb77053.async.js",8541],["p__Dashboard__Knowledge__Article__index.59c26f13.async.js",8587],["p__Dashboard__Admin__Pay__PayData.bc77a74a.async.js",8726],["p__Dashboard__Knowledge__Faq__index.3c744248.async.js",8801],["p__Dashboard__Marketing__Email__index.d939dc27.async.js",8873],["p__Dashboard__Service__Black__BlackTable.ea03661b.async.js",8956],["p__Dashboard__Service__Rate__RateStatistic.620f2eb2.async.js",9043],["p__Dashboard__Team__Thread__ThreadTable.2df2357e.async.js",9077],["p__Dashboard__Robot__Message__MessageTable.1377e453.async.js",9199],["p__Dashboard__Admin__User__index.8236f5b4.async.js",9234],["p__Dashboard__Setting__Profile__index.3f0a37c1.async.js",9290],["p__Dashboard__Team__Group__GroupStatistic.207ede37.async.js",9346],["p__Auth__Login__index.77bf22de.async.js",9368],["p__Dashboard__Knowledge__Keyword__KeywordStatistic.91f4cc1e.async.js",9397],["p__Dashboard__Knowledge__Llm__index.eb67f39f.async.js",9450],["p__Dashboard__Service__Quality__index.5332cc4f.async.js",9505],["p__Dashboard__Knowledge__QuickReply__QuickReplyData.f9c908ef.chunk.css",9584],["p__Dashboard__Knowledge__QuickReply__QuickReplyData.e0288086.async.js",9584],["p__Dashboard__Marketing__Email__EmailData.f9c908ef.chunk.css",9590],["p__Dashboard__Marketing__Email__EmailData.5799d75a.async.js",9590],["p__Dashboard__Service__Queue__index.2316e969.async.js",9614],["p__Dashboard__Service__Black__index.5d20e9d3.async.js",9639],["9644.13840c93.async.js",9644],["p__Dashboard__Crm__CrmTable.f4734fe5.async.js",9710],["p__Dashboard__Team__Company__CompanyInfo.90b293a8.async.js",9814],["p__Dashboard__Service__Workgroup__index.5a1a4c41.async.js",9828],["p__Dashboard__Team__Group__index.641aee77.async.js",9870],["9905.4e3ac88a.async.js",9905],["p__Dashboard__Service__Statistic__index.ec12c20b.async.js",9967]],"r":{"/*":[38,170],"/":[10,66,69,104,105,170],"/welcome":[133,10,66,69,104,105,170],"/kb":[15,10,66,69,104,105,170],"/tiket":[28,10,66,69,104,105,170],"/marketing":[132,10,66,69,104,105,170],"/crm":[86,10,66,69,104,105,170],"/plugins":[36,10,66,69,104,105,170],"/meiyu":[26,35,37,66,69,70,84,88,122,129,170,10,104,105],"/tiku":[26,37,66,69,70,84,122,129,139,143,170,10,104,105],"/zhaobiao":[26,37,66,69,70,84,122,129,136,143,170,10,104,105],"/quartz":[26,37,63,64,66,69,70,84,122,129,170,10,104,105],"/setting":[121,10,66,69,104,105,170],"/doceditor":[6,7,35,37,69,70,83,84,90,91,124,129],"/auth/login":[26,37,69,70,84,89,117,155],"/auth/register":[24,37,69,70,84,89],"/oauth/github":[134],"/oauth/google":[87],"/team/member":[26,37,66,69,70,84,122,126,127,129,170,10,104,105],"/team/role":[26,73,10,66,69,104,105,170],"/team/group":[169,10,66,69,104,105,170],"/team/thread":[44,10,66,69,104,105,170],"/team/message":[141,10,66,69,104,105,170],"/team/action":[140,10,66,69,104,105,170],"/team/notice":[17,10,66,69,104,105,170],"/team/tag":[68,10,66,69,104,105,170],"/team/upload":[65,10,66,69,104,105,170],"/team/company":[43,10,66,69,104,105,170],"/cs/agent":[9,23,26,30,35,37,67,69,70,84,103,129,10,66,104,105,170],"/cs/wgroup":[9,26,30,35,37,67,69,70,84,103,129,168,10,66,104,105,170],"/cs/queue":[163,10,66,69,104,105,170],"/cs/thread":[32,10,66,69,104,105,170],"/cs/message":[49,10,66,69,104,105,170],"/cs/leavemsg":[59,10,66,69,104,105,170],"/cs/rate":[94,10,66,69,104,105,170],"/cs/transfer":[97,10,66,69,104,105,170],"/cs/monitor":[13,10,66,69,104,105,170],"/cs/quality":[158,10,66,69,104,105,170],"/cs/visitor":[61,10,66,69,104,105,170],"/cs/black":[164,10,66,69,104,105,170],"/cs/statistic":[171,10,66,69,104,105,170],"/ai/robot":[9,26,30,35,37,67,69,70,84,109,110,129,10,66,104,105,170],"/ai/thread":[1,10,66,69,104,105,170],"/ai/message":[12,10,66,69,104,105,170],"/kb/article":[35,37,57,69,70,84,129,144,15,10,66,104,105,170],"/kb/llm":[35,37,57,69,70,84,129,157,15,10,66,104,105,170],"/kb/keyword":[35,37,57,69,70,84,95,129,15,10,66,104,105,170],"/kb/faq":[35,37,57,69,70,84,129,146,15,10,66,104,105,170],"/kb/autoreply":[35,37,57,69,70,84,113,129,15,10,66,104,105,170],"/kb/quickreply":[35,37,57,69,70,84,100,129,15,10,66,104,105,170],"/kb/taboo":[35,37,57,69,70,84,129,131,15,10,66,104,105,170],"/marketing/blog":[19,35,37,57,69,70,84,129,132,10,66,104,105,170],"/marketing/email":[35,37,57,69,70,84,129,147,132,10,66,104,105,170],"/crm/customer":[26,37,66,69,70,84,122,129,143,166,170,86,10,104,105],"/crm/visitor":[26,37,66,69,70,79,84,122,129,170,86,10,104,105],"/crm/statistic":[92,86,10,66,69,104,105,170],"/liangshibao/category":[26,37,66,69,70,84,93,122,129,170,10,104,105],"/liangshibao/course":[25,26,37,66,69,70,84,122,129,170,10,104,105],"/liangshibao/media":[26,37,53,66,69,70,84,122,129,170,10,104,105],"/setting/profile":[37,67,69,70,84,153,121,10,66,104,105,170],"/setting/basic":[70,111,121,10,66,69,104,105,170],"/setting/realname":[62,121,10,66,69,104,105,170],"/setting/server":[84,108,117,121,10,66,69,104,105,170],"/admin/user":[152,10,66,69,104,105,170],"/admin/pay":[82,10,66,69,104,105,170],"/admin/push":[130,10,66,69,104,105,170],"/team/group/data":[26,37,66,69,70,84,116,122,129,170,169,10,104,105],"/team/group/statistic":[154,169,10,66,69,104,105,170],"/team/thread/data":[5,26,37,66,69,70,84,122,129,150,170,44,10,104,105],"/team/thread/monitor":[33,44,10,66,69,104,105,170],"/team/thread/statistic":[112,44,10,66,69,104,105,170],"/team/thread/summary":[26,37,39,66,69,70,84,122,129,170,44,10,104,105],"/team/message/data":[20,26,37,45,66,69,70,84,122,129,143,170,141,10,104,105],"/team/message/statistic":[50,141,10,66,69,104,105,170],"/team/action/data":[26,37,66,69,70,74,84,122,129,170,140,10,104,105],"/team/action/statistic":[42,140,10,66,69,104,105,170],"/team/notice/data":[26,37,47,66,69,70,84,122,129,143,170,17,10,104,105],"/team/notice/statistic":[34,17,10,66,69,104,105,170],"/team/tag/data":[26,37,46,66,69,70,84,122,129,143,170,68,10,104,105],"/team/tag/statistic":[81,68,10,66,69,104,105,170],"/team/upload/data":[22,26,37,66,69,70,84,122,129,170,65,10,104,105],"/team/upload/statistic":[76,65,10,66,69,104,105,170],"/team/company/info":[37,67,69,70,84,167,43,10,66,104,105,170],"/cs/queue/data":[26,37,66,69,70,84,107,122,129,170,163,10,104,105],"/cs/queue/statistic":[21,163,10,66,69,104,105,170],"/cs/thread/data":[5,26,37,58,66,69,70,84,122,129,170,32,10,104,105],"/cs/thread/monitor":[118,32,10,66,69,104,105,170],"/cs/thread/statistic":[31,32,10,66,69,104,105,170],"/cs/thread/summary":[26,37,66,69,70,84,122,129,137,170,32,10,104,105],"/cs/message/data":[26,37,45,66,69,70,84,122,125,129,143,170,49,10,104,105],"/cs/message/statistic":[77,49,10,66,69,104,105,170],"/cs/leavemsg/data":[26,37,66,69,70,84,122,129,135,170,59,10,104,105],"/cs/leavemsg/statistic":[138,59,10,66,69,104,105,170],"/cs/rate/data":[26,37,66,69,70,84,114,122,129,170,94,10,104,105],"/cs/rate/statistic":[149,94,10,66,69,104,105,170],"/cs/transfer/data":[18,26,37,66,69,70,84,122,129,170,97,10,104,105],"/cs/transfer/statistic":[27,97,10,66,69,104,105,170],"/cs/quality/data":[26,29,37,66,69,70,84,122,129,170,158,10,104,105],"/cs/quality/statistic":[0,158,10,66,69,104,105,170],"/cs/visitor/data":[2,26,37,66,69,70,84,122,129,170,61,10,104,105],"/cs/visitor/statistic":[85,61,10,66,69,104,105,170],"/cs/black/data":[26,37,66,69,70,84,122,129,148,170,164,10,104,105],"/cs/black/statistic":[8,164,10,66,69,104,105,170],"/ai/thread/data":[5,26,37,56,66,69,70,84,122,129,170,1,10,104,105],"/ai/thread/statistic":[51,1,10,66,69,104,105,170],"/ai/message/data":[26,37,45,66,69,70,84,122,129,143,151,170,12,10,104,105],"/ai/message/statistic":[142,12,10,66,69,104,105,170],"/kb/article/data":[26,37,66,69,70,83,84,98,99,122,129,170,35,57,144,15,10,104,105],"/kb/article/statistic":[115,35,37,57,69,70,84,129,144,15,10,66,104,105,170],"/kb/llm/data":[26,37,66,67,69,70,71,72,83,84,122,124,129,165,170,35,57,157,15,10,104,105],"/kb/llm/statistic":[75,35,37,57,69,70,84,129,157,15,10,66,104,105,170],"/kb/keyword/data":[9,26,37,54,55,66,67,69,70,83,84,122,124,129,165,170,35,57,95,15,10,104,105],"/kb/keyword/statistic":[156,35,37,57,69,70,84,95,129,15,10,66,104,105,170],"/kb/faq/data":[3,4,26,37,66,67,69,70,83,84,122,129,170,35,57,146,15,10,104,105],"/kb/faq/statistic":[128,35,37,57,69,70,84,129,146,15,10,66,104,105,170],"/kb/autoreply/data":[26,37,66,67,69,70,83,84,101,102,122,129,170,35,57,113,15,10,104,105],"/kb/autoreply/statistic":[48,35,37,57,69,70,84,113,129,15,10,66,104,105,170],"/kb/quickreply/data":[26,37,66,67,69,70,83,84,122,129,159,160,170,35,57,100,15,10,104,105],"/kb/quickreply/statistic":[60,35,37,57,69,70,84,100,129,15,10,66,104,105,170],"/kb/taboo/data":[26,37,66,67,69,70,83,84,119,120,122,129,170,35,57,131,15,10,104,105],"/kb/taboo/statistic":[14,35,37,57,69,70,84,129,131,15,10,66,104,105,170],"/marketing/blog/data":[26,37,40,41,66,69,70,83,84,122,129,170,19,35,57,132,10,104,105],"/marketing/blog/statistic":[16,19,35,37,57,69,70,84,129,132,10,66,104,105,170],"/marketing/email/data":[26,37,66,69,70,83,84,122,129,161,162,170,35,57,147,132,10,104,105],"/marketing/email/statistic":[52,35,37,57,69,70,84,129,147,132,10,66,104,105,170],"/admin/user/data":[26,37,66,69,70,84,122,123,129,170,152,10,104,105],"/admin/user/statistic":[78,152,10,66,69,104,105,170],"/admin/pay/data":[26,37,66,69,70,84,122,129,145,170,82,10,104,105],"/admin/pay/statistic":[96,82,10,66,69,104,105,170],"/admin/push/data":[11,26,37,66,69,70,84,122,129,170,130,10,104,105],"/admin/push/statistic":[80,130,10,66,69,104,105,170]}},{publicPath:"/admin/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/preload_helper.177aff9f.js b/starter/src/main/resources/templates/admin/preload_helper.177aff9f.js new file mode 100644 index 00000000..6c0333c6 --- /dev/null +++ b/starter/src/main/resources/templates/admin/preload_helper.177aff9f.js @@ -0,0 +1 @@ +!function(){"use strict";var t="/admin/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"admin","b":"webpack","f":[["p__Dashboard__Service__Quality__QualityStatistic.9b30d1dc.async.js",13],["p__Dashboard__Robot__Thread__index.ea9b58ce.async.js",49],["p__Dashboard__Service__Visitor__VisitorTable.1f610670.async.js",58],["p__Dashboard__Knowledge__Faq__FaqData.f9c908ef.chunk.css",79],["p__Dashboard__Knowledge__Faq__FaqData.ee37c50a.async.js",79],["119.ead9ba91.async.js",119],["p__Dashboard__Service__Black__BlackStatistic.f16242f0.async.js",210],["241.a2366d02.async.js",241],["p__Dashboard__Admin__Push__PushData.8dd58efd.async.js",275],["p__Dashboard__Robot__Message__index.7c55b037.async.js",294],["p__Dashboard__Service__Monitor__index.1eb0f8e4.async.js",296],["p__Dashboard__Knowledge__Taboo__TabooStatistic.1eab13a1.async.js",319],["p__Dashboard__Knowledge__index.c0e7fadc.async.js",363],["p__Dashboard__Marketing__Blog__BlogStatistic.17754336.async.js",510],["p__Dashboard__Team__Notice__index.4645a996.async.js",589],["p__Dashboard__Service__Transfer__TransferTable.b9d87a72.async.js",1048],["p__Dashboard__Marketing__Blog__index.1b0684b6.async.js",1312],["p__Dashboard__Team__Message__MessageTable.a728d3be.async.js",1398],["p__Dashboard__Service__Queue__QueueStatistic.41e814fe.async.js",1488],["p__Dashboard__Team__Upload__UploadTable.63635d0b.async.js",1510],["p__Dashboard__Service__Agent__index.3539228c.async.js",1642],["p__Auth__Register__index.778c02b3.async.js",1730],["p__Dashboard__Liangshibao__Course__index.2730344a.async.js",1742],["1941.47191307.async.js",1941],["p__Dashboard__Service__Transfer__TransferStatistic.6efe1c90.async.js",2001],["p__Dashboard__Ticket__index.63df0f96.async.js",2005],["p__Dashboard__Service__Quality__QualityTable.83fcc4d5.async.js",2034],["2062.615c7a33.async.js",2062],["p__Dashboard__Service__Thread__ThreadStatistic.e42b7425.async.js",2097],["p__Dashboard__Service__Thread__index.c02f8dab.async.js",2148],["p__Dashboard__Team__Thread__ThreadMonitor.57d252cc.async.js",2375],["p__Dashboard__Team__Notice__NoticeStatistic.04e3dba6.async.js",2386],["2487.aa95660a.async.js",2487],["p__Dashboard__Plugins__index.086b9994.async.js",2494],["p__404.a5d1c286.async.js",2571],["p__Dashboard__Team__Thread__ThreadSummary.152ab284.async.js",2618],["p__Dashboard__Marketing__Blog__BlogData.f9c908ef.chunk.css",2647],["p__Dashboard__Marketing__Blog__BlogData.8b675503.async.js",2647],["p__Dashboard__Team__Action__ActionStatistic.0f9f0979.async.js",2658],["p__Dashboard__Team__Company__index.5796c432.async.js",2701],["p__Dashboard__Team__Thread__index.14c17a44.async.js",2708],["2811.75472e3f.async.js",2811],["p__Dashboard__Team__Tag__TagTable.c87c1214.async.js",2861],["p__Dashboard__Team__Notice__NoticeTable.3a7928c9.async.js",2874],["2913.a579c624.chunk.css",2913],["2913.5d775d1b.async.js",2913],["p__Dashboard__Knowledge__AutoReply__AutoReplyStatistic.fbd40a3d.async.js",2930],["p__Dashboard__Service__Message__index.e32a4992.async.js",2949],["p__Dashboard__Team__Message__MessageStatistic.308b6239.async.js",2992],["p__Dashboard__Robot__Thread__ThreadStatistic.0b5bf792.async.js",3031],["p__Dashboard__Marketing__Email__EmailStatistic.ff507dde.async.js",3151],["p__Dashboard__Liangshibao__Media__index.e4e343b3.async.js",3165],["p__Dashboard__Knowledge__Keyword__KeywordData.f9c908ef.chunk.css",3340],["p__Dashboard__Knowledge__Keyword__KeywordData.f5772fa8.async.js",3340],["p__Dashboard__Robot__Thread__ThreadTable.622bc175.async.js",3398],["3444.dcd500c7.async.js",3444],["p__Dashboard__Service__Thread__ThreadTable.ce1036c6.async.js",3537],["p__Dashboard__Service__LeaveMsg__index.b814a705.async.js",3621],["p__Dashboard__Knowledge__QuickReply__QuickReplyStatistic.c1f6878c.async.js",3656],["p__Dashboard__Service__Visitor__index.c8c52b76.async.js",3675],["p__Dashboard__Setting__Realname__index.0a3cca5c.async.js",3791],["p__Dashboard__Quartz__index.2f2871f6.chunk.css",3848],["p__Dashboard__Quartz__index.fca4d630.async.js",3848],["p__Dashboard__Team__Upload__index.937269af.async.js",3872],["3904.e1a44ed1.async.js",3904],["3979.e9a78454.async.js",3979],["p__Dashboard__Team__Tag__index.41b5a032.async.js",4012],["4043.69e9e9ed.async.js",4043],["4069.567b1ac4.async.js",4069],["p__Dashboard__Knowledge__Llm__LlmData.f9c908ef.chunk.css",4167],["p__Dashboard__Knowledge__Llm__LlmData.a2460c5b.async.js",4167],["4190.3f5ac303.async.js",4190],["p__Dashboard__Team__Role__index.c827fb35.async.js",4325],["p__Dashboard__Team__Action__ActionTable.fb737be0.async.js",4376],["p__Dashboard__Knowledge__Llm__LlmStatistic.5c0bb9dd.async.js",4422],["p__Dashboard__Team__Upload__UploadStatistic.332b8845.async.js",4443],["p__Dashboard__Service__Message__MessageStatistic.818bee53.async.js",4460],["p__Dashboard__Admin__User__UserStatistic.ccb8e535.async.js",4523],["p__Dashboard__Crm__VisitorTable.85678747.async.js",4580],["p__Dashboard__Admin__Push__PushStatistic.82633c07.async.js",4586],["p__Dashboard__Team__Tag__TagStatistic.9267babb.async.js",4641],["p__Dashboard__Admin__Pay__index.05ef162b.async.js",4657],["4841.70a9864f.async.js",4841],["5102.7052f15a.async.js",5102],["p__Dashboard__Service__Visitor__VisitorStatistic.7c52a887.async.js",5206],["p__Dashboard__Crm__index.f75c8b73.async.js",5230],["p__OAuth__Google.404c9dfe.async.js",5279],["5293.4715d5da.async.js",5293],["p__Dashboard__Meiyu__index.12ddf2a0.async.js",5306],["p__Dashboard__Doceditor__index.f9c908ef.chunk.css",5488],["p__Dashboard__Doceditor__index.badb465c.async.js",5488],["p__Dashboard__Crm__CrmStatistic.95686e15.async.js",5520],["p__Dashboard__Liangshibao__Category__index.04047b45.async.js",5522],["5577.ac93ba40.async.js",5577],["p__Dashboard__Service__Rate__index.28fcf41c.async.js",5684],["p__Dashboard__Knowledge__Keyword__index.6126c068.async.js",5847],["p__Dashboard__Admin__Pay__PayStatistic.f04c66ee.async.js",5851],["p__Dashboard__Service__Transfer__index.7aa80787.async.js",5906],["p__Dashboard__Knowledge__Article__ArticleData.f9c908ef.chunk.css",5957],["p__Dashboard__Knowledge__Article__ArticleData.231d7d17.async.js",5957],["p__Dashboard__Knowledge__QuickReply__index.2c19be32.async.js",6037],["p__Dashboard__Knowledge__AutoReply__AutoReplyData.f9c908ef.chunk.css",6130],["p__Dashboard__Knowledge__AutoReply__AutoReplyData.3faba189.async.js",6130],["6185.ace93ad4.async.js",6185],["t__plugin-layout__Layout.5012e1ab.chunk.css",6301],["t__plugin-layout__Layout.f013d253.async.js",6301],["6390.db375d10.async.js",6390],["p__Dashboard__Service__Queue__QueueTable.7fa3de1b.async.js",6668],["p__Dashboard__Setting__Server__index.f73c6b65.async.js",6676],["p__Dashboard__Robot__index.cb670aa5.chunk.css",6693],["p__Dashboard__Robot__index.5359e619.async.js",6693],["p__Dashboard__Setting__Basic__index.71489298.async.js",6766],["p__Dashboard__Team__Thread__ThreadStatistic.f6876e20.async.js",6771],["p__Dashboard__Knowledge__AutoReply__index.6a84cd6a.async.js",6778],["6886.01c724cb.async.js",6886],["p__Dashboard__Service__Rate__RateTable.3cea85ec.async.js",6900],["p__Dashboard__Knowledge__Article__ArticleStatistic.c9ab96d9.async.js",6906],["p__Dashboard__Team__Group__GroupTable.2f7ff3f9.async.js",7139],["7179.877f09f3.async.js",7179],["p__Dashboard__Service__Thread__ThreadMonitor.3b93433b.async.js",7270],["p__Dashboard__Knowledge__Taboo__TabooData.f9c908ef.chunk.css",7445],["p__Dashboard__Knowledge__Taboo__TabooData.d160fa1c.async.js",7445],["p__Dashboard__Setting__index.6ca2e731.async.js",7469],["p__Dashboard__Admin__User__UserData.0c219721.async.js",7586],["7714.5b93522e.async.js",7714],["p__Dashboard__Service__Message__MessageTable.16c8c009.async.js",7788],["p__Dashboard__Team__Member__index.f9c908ef.chunk.css",7960],["p__Dashboard__Team__Member__index.096d47bd.async.js",7960],["p__Dashboard__Knowledge__Faq__FaqStatistic.7d6b7fb2.async.js",8041],["8045.cdf280af.async.js",8045],["p__Dashboard__Admin__Push__index.ed10257c.async.js",8152],["p__Dashboard__Knowledge__Taboo__index.5ff17b1e.async.js",8158],["p__Dashboard__Marketing__index.b139ca0e.async.js",8164],["p__Welcome.a3e2dea9.async.js",8185],["p__OAuth__Github.54343e13.async.js",8250],["p__Dashboard__Service__LeaveMsg__LeaveMsgTable.f428d60b.async.js",8326],["p__Dashboard__Zhaobiao__index.ad0d591d.async.js",8327],["p__Dashboard__Service__Thread__ThreadSummary.5ea4c3bc.async.js",8390],["p__Dashboard__Service__LeaveMsg__LeaveMsgStatistic.76d1bab6.async.js",8412],["p__Dashboard__Tiku__index.72c1c31a.async.js",8455],["p__Dashboard__Team__Action__index.98fce2b4.async.js",8483],["p__Dashboard__Team__Message__index.94a649b6.async.js",8491],["p__Dashboard__Robot__Message__MessageStatistic.89eeecfd.async.js",8523],["p__Dashboard__Knowledge__Article__index.bc59ee05.async.js",8587],["p__Dashboard__Admin__Pay__PayData.42496ea1.async.js",8726],["p__Dashboard__Knowledge__Faq__index.7bdc6925.async.js",8801],["p__Dashboard__Marketing__Email__index.70e9be1a.async.js",8873],["p__Dashboard__Service__Black__BlackTable.92d0ba13.async.js",8956],["p__Dashboard__Service__Rate__RateStatistic.37f09ae9.async.js",9043],["p__Dashboard__Team__Thread__ThreadTable.f6f682f2.async.js",9077],["p__Dashboard__Robot__Message__MessageTable.80f23984.async.js",9199],["p__Dashboard__Admin__User__index.a3556bcf.async.js",9234],["p__Dashboard__Setting__Profile__index.13d3f77f.async.js",9290],["9312.119814cc.async.js",9312],["p__Dashboard__Team__Group__GroupStatistic.ef593d5b.async.js",9346],["p__Auth__Login__index.5f03d1c5.async.js",9368],["p__Dashboard__Knowledge__Keyword__KeywordStatistic.6ba0b7d5.async.js",9397],["p__Dashboard__Knowledge__Llm__index.f3e705e5.async.js",9450],["p__Dashboard__Service__Quality__index.beb017cd.async.js",9505],["p__Dashboard__Knowledge__QuickReply__QuickReplyData.f9c908ef.chunk.css",9584],["p__Dashboard__Knowledge__QuickReply__QuickReplyData.b9082940.async.js",9584],["p__Dashboard__Marketing__Email__EmailData.f9c908ef.chunk.css",9590],["p__Dashboard__Marketing__Email__EmailData.c4192c9b.async.js",9590],["p__Dashboard__Service__Queue__index.8169dad2.async.js",9614],["p__Dashboard__Service__Black__index.b96c7447.async.js",9639],["p__Dashboard__Crm__CrmTable.bc3a7cec.async.js",9710],["p__Dashboard__Team__Company__CompanyInfo.1748fe52.async.js",9814],["p__Dashboard__Service__Workgroup__index.9b0ae94d.async.js",9828],["p__Dashboard__Team__Group__index.e09d076c.async.js",9870],["9905.d5e0b5c8.async.js",9905],["p__Dashboard__Service__Statistic__index.c49e2169.async.js",9967]],"r":{"/*":[34,169],"/":[7,64,67,104,105,169],"/welcome":[133,7,64,67,104,105,169],"/kb":[12,7,64,67,104,105,169],"/tiket":[25,7,64,67,104,105,169],"/marketing":[132,7,64,67,104,105,169],"/crm":[85,7,64,67,104,105,169],"/plugins":[33,7,64,67,104,105,169],"/meiyu":[23,32,41,64,67,68,71,83,88,93,129,169,7,104,105],"/tiku":[23,41,64,67,68,71,83,93,129,139,169,7,104,105],"/zhaobiao":[23,41,64,67,68,71,83,93,129,136,169,7,104,105],"/quartz":[23,41,61,62,64,67,68,71,83,93,129,169,7,104,105],"/setting":[122,7,64,67,104,105,169],"/doceditor":[32,41,44,45,67,68,82,83,89,90,93,124,129],"/auth/login":[23,67,68,83,87,93,153,155],"/auth/register":[21,67,68,83,93,153],"/oauth/github":[134],"/oauth/google":[86],"/team/member":[23,41,64,67,68,71,83,93,126,127,129,169,7,104,105],"/team/role":[23,72,7,64,67,104,105,169],"/team/group":[168,7,64,67,104,105,169],"/team/thread":[40,7,64,67,104,105,169],"/team/message":[141,7,64,67,104,105,169],"/team/action":[140,7,64,67,104,105,169],"/team/notice":[14,7,64,67,104,105,169],"/team/tag":[66,7,64,67,104,105,169],"/team/upload":[63,7,64,67,104,105,169],"/team/company":[39,7,64,67,104,105,169],"/cs/agent":[20,23,27,32,65,67,68,83,93,103,114,129,7,64,104,105,169],"/cs/wgroup":[23,27,32,65,67,68,83,93,103,114,129,167,7,64,104,105,169],"/cs/queue":[163,7,64,67,104,105,169],"/cs/thread":[29,7,64,67,104,105,169],"/cs/message":[47,7,64,67,104,105,169],"/cs/leavemsg":[57,7,64,67,104,105,169],"/cs/rate":[94,7,64,67,104,105,169],"/cs/transfer":[97,7,64,67,104,105,169],"/cs/monitor":[10,7,64,67,104,105,169],"/cs/quality":[158,7,64,67,104,105,169],"/cs/visitor":[59,7,64,67,104,105,169],"/cs/black":[164,7,64,67,104,105,169],"/cs/statistic":[170,7,64,67,104,105,169],"/ai/robot":[23,27,32,65,67,68,83,93,109,110,114,129,7,64,104,105,169],"/ai/thread":[1,7,64,67,104,105,169],"/ai/message":[9,7,64,67,104,105,169],"/kb/article":[32,55,67,68,83,93,129,143,12,7,64,104,105,169],"/kb/llm":[32,55,67,68,83,93,129,157,12,7,64,104,105,169],"/kb/keyword":[32,55,67,68,83,93,95,129,12,7,64,104,105,169],"/kb/faq":[32,55,67,68,83,93,129,145,12,7,64,104,105,169],"/kb/autoreply":[32,55,67,68,83,93,113,129,12,7,64,104,105,169],"/kb/quickreply":[32,55,67,68,83,93,100,129,12,7,64,104,105,169],"/kb/taboo":[32,55,67,68,83,93,129,131,12,7,64,104,105,169],"/marketing/blog":[16,32,55,67,68,83,93,129,132,7,64,104,105,169],"/marketing/email":[32,55,67,68,83,93,129,146,132,7,64,104,105,169],"/crm/customer":[23,41,64,67,68,71,83,93,129,165,169,85,7,104,105],"/crm/visitor":[23,41,64,67,68,71,78,83,93,129,169,85,7,104,105],"/crm/statistic":[91,85,7,64,67,104,105,169],"/liangshibao/category":[23,41,64,67,68,71,83,92,93,129,169,7,104,105],"/liangshibao/course":[22,23,41,64,67,68,71,83,93,129,169,7,104,105],"/liangshibao/media":[23,41,51,64,67,68,71,83,93,129,169,7,104,105],"/setting/profile":[65,67,68,83,93,152,122,7,64,104,105,169],"/setting/basic":[68,111,122,7,64,67,104,105,169],"/setting/realname":[60,122,7,64,67,104,105,169],"/setting/server":[83,87,108,122,7,64,67,104,105,169],"/admin/user":[151,7,64,67,104,105,169],"/admin/pay":[81,7,64,67,104,105,169],"/admin/push":[130,7,64,67,104,105,169],"/team/group/data":[23,41,64,67,68,71,83,93,117,129,169,168,7,104,105],"/team/group/statistic":[154,168,7,64,67,104,105,169],"/team/thread/data":[5,23,41,64,67,68,71,83,93,129,149,169,40,7,104,105],"/team/thread/monitor":[30,40,7,64,67,104,105,169],"/team/thread/statistic":[112,40,7,64,67,104,105,169],"/team/thread/summary":[23,35,41,64,67,68,71,83,93,129,169,40,7,104,105],"/team/message/data":[17,23,41,64,67,68,71,83,93,129,169,141,7,104,105],"/team/message/statistic":[48,141,7,64,67,104,105,169],"/team/action/data":[23,41,64,67,68,71,73,83,93,129,169,140,7,104,105],"/team/action/statistic":[38,140,7,64,67,104,105,169],"/team/notice/data":[23,41,43,64,67,68,71,83,93,129,169,14,7,104,105],"/team/notice/statistic":[31,14,7,64,67,104,105,169],"/team/tag/data":[23,41,42,64,67,68,71,83,93,129,169,66,7,104,105],"/team/tag/statistic":[80,66,7,64,67,104,105,169],"/team/upload/data":[19,23,41,64,67,68,71,83,93,129,169,63,7,104,105],"/team/upload/statistic":[75,63,7,64,67,104,105,169],"/team/company/info":[65,67,68,83,93,166,39,7,64,104,105,169],"/cs/queue/data":[23,41,64,67,68,71,83,93,107,129,169,163,7,104,105],"/cs/queue/statistic":[18,163,7,64,67,104,105,169],"/cs/thread/data":[5,23,41,56,64,67,68,71,83,93,129,169,29,7,104,105],"/cs/thread/monitor":[119,29,7,64,67,104,105,169],"/cs/thread/statistic":[28,29,7,64,67,104,105,169],"/cs/thread/summary":[23,41,64,67,68,71,83,93,129,137,169,29,7,104,105],"/cs/message/data":[23,41,64,67,68,71,83,93,125,129,169,47,7,104,105],"/cs/message/statistic":[76,47,7,64,67,104,105,169],"/cs/leavemsg/data":[23,41,64,67,68,71,83,93,129,135,169,57,7,104,105],"/cs/leavemsg/statistic":[138,57,7,64,67,104,105,169],"/cs/rate/data":[23,41,64,67,68,71,83,93,115,129,169,94,7,104,105],"/cs/rate/statistic":[148,94,7,64,67,104,105,169],"/cs/transfer/data":[15,23,41,64,67,68,71,83,93,129,169,97,7,104,105],"/cs/transfer/statistic":[24,97,7,64,67,104,105,169],"/cs/quality/data":[23,26,41,64,67,68,71,83,93,129,169,158,7,104,105],"/cs/quality/statistic":[0,158,7,64,67,104,105,169],"/cs/visitor/data":[2,23,41,64,67,68,71,83,93,129,169,59,7,104,105],"/cs/visitor/statistic":[84,59,7,64,67,104,105,169],"/cs/black/data":[23,41,64,67,68,71,83,93,129,147,169,164,7,104,105],"/cs/black/statistic":[6,164,7,64,67,104,105,169],"/ai/thread/data":[5,23,41,54,64,67,68,71,83,93,129,169,1,7,104,105],"/ai/thread/statistic":[49,1,7,64,67,104,105,169],"/ai/message/data":[23,41,64,67,68,71,83,93,129,150,169,9,7,104,105],"/ai/message/statistic":[142,9,7,64,67,104,105,169],"/kb/article/data":[23,41,64,67,68,71,82,83,93,98,99,129,169,32,55,143,12,7,104,105],"/kb/article/statistic":[116,32,55,67,68,83,93,129,143,12,7,64,104,105,169],"/kb/llm/data":[23,41,64,65,67,68,69,70,71,82,83,93,129,169,32,55,157,12,7,104,105],"/kb/llm/statistic":[74,32,55,67,68,83,93,129,157,12,7,64,104,105,169],"/kb/keyword/data":[23,41,52,53,64,65,67,68,71,82,83,93,114,118,124,129,169,32,55,95,12,7,104,105],"/kb/keyword/statistic":[156,32,55,67,68,83,93,95,129,12,7,64,104,105,169],"/kb/faq/data":[3,4,23,41,64,65,67,68,71,82,83,93,129,169,32,55,145,12,7,104,105],"/kb/faq/statistic":[128,32,55,67,68,83,93,129,145,12,7,64,104,105,169],"/kb/autoreply/data":[23,41,64,65,67,68,71,82,83,93,101,102,129,169,32,55,113,12,7,104,105],"/kb/autoreply/statistic":[46,32,55,67,68,83,93,113,129,12,7,64,104,105,169],"/kb/quickreply/data":[23,41,64,65,67,68,71,82,83,93,129,159,160,169,32,55,100,12,7,104,105],"/kb/quickreply/statistic":[58,32,55,67,68,83,93,100,129,12,7,64,104,105,169],"/kb/taboo/data":[23,41,64,65,67,68,71,82,83,93,120,121,129,169,32,55,131,12,7,104,105],"/kb/taboo/statistic":[11,32,55,67,68,83,93,129,131,12,7,64,104,105,169],"/marketing/blog/data":[23,36,37,41,64,67,68,71,82,83,93,129,169,16,32,55,132,7,104,105],"/marketing/blog/statistic":[13,16,32,55,67,68,83,93,129,132,7,64,104,105,169],"/marketing/email/data":[23,41,64,67,68,71,82,83,93,129,161,162,169,32,55,146,132,7,104,105],"/marketing/email/statistic":[50,32,55,67,68,83,93,129,146,132,7,64,104,105,169],"/admin/user/data":[23,41,64,67,68,71,83,93,123,129,169,151,7,104,105],"/admin/user/statistic":[77,151,7,64,67,104,105,169],"/admin/pay/data":[23,41,64,67,68,71,83,93,129,144,169,81,7,104,105],"/admin/pay/statistic":[96,81,7,64,67,104,105,169],"/admin/push/data":[8,23,41,64,67,68,71,83,93,129,169,130,7,104,105],"/admin/push/statistic":[79,130,7,64,67,104,105,169]}},{publicPath:"/admin/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/t__plugin-layout__Layout.cf809a49.async.js b/starter/src/main/resources/templates/admin/t__plugin-layout__Layout.cf809a49.async.js deleted file mode 100644 index 3a46ec54..00000000 --- a/starter/src/main/resources/templates/admin/t__plugin-layout__Layout.cf809a49.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6301],{27626:function(ot,M,a){a.r(M),a.d(M,{default:function(){return nt}});var $=a(5574),E=a.n($),W=a(19632),z=a.n(W),D=a(97857),v=a.n(D),H=a(64599),T=a.n(H),c=a(86745),b=a(67294),B=a(44698),t=a(85893),O=function(){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 200 200",children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"linearGradient-1",x1:"62.102%",x2:"108.197%",y1:"0%",y2:"37.864%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#4285EB"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#2EC7FF"})]}),(0,t.jsxs)("linearGradient",{id:"linearGradient-2",x1:"69.644%",x2:"54.043%",y1:"0%",y2:"108.457%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#29CDFF"}),(0,t.jsx)("stop",{offset:"37.86%",stopColor:"#148EFF"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#0A60FF"})]}),(0,t.jsxs)("linearGradient",{id:"linearGradient-3",x1:"69.691%",x2:"16.723%",y1:"-12.974%",y2:"117.391%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#FA816E"}),(0,t.jsx)("stop",{offset:"41.473%",stopColor:"#F74A5C"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]}),(0,t.jsxs)("linearGradient",{id:"linearGradient-4",x1:"68.128%",x2:"30.44%",y1:"-35.691%",y2:"114.943%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#FA8E7D"}),(0,t.jsx)("stop",{offset:"51.264%",stopColor:"#F74A5C"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]})]}),(0,t.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:(0,t.jsx)("g",{transform:"translate(-20 -20)",children:(0,t.jsx)("g",{transform:"translate(20 20)",children:(0,t.jsxs)("g",{children:[(0,t.jsxs)("g",{fillRule:"nonzero",children:[(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{fill:"url(#linearGradient-1)",d:"M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c1.17-1.169 2.944-1.169 4.114 0l27.783 27.76c4.209 4.205 11.032 4.205 15.24 0 4.209-4.205 4.209-11.022 0-15.227L108.581 4.056c-4.719-4.594-12.312-4.557-16.993.12z"}),(0,t.jsx)("path",{fill:"url(#linearGradient-2)",d:"M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c2.912-2.51 7.664-7.596 14.642-8.786 5.186-.883 10.855 1.062 17.009 5.837L108.58 4.056c-4.719-4.594-12.312-4.557-16.993.12z"})]}),(0,t.jsx)("path",{fill:"url(#linearGradient-3)",d:"M153.686 135.855c4.208 4.205 11.031 4.205 15.24 0l27.034-27.012c4.7-4.696 4.7-12.28 0-16.974l-27.27-27.15c-4.218-4.2-11.043-4.195-15.254.013-4.209 4.205-4.209 11.022 0 15.227l18.418 18.403c1.17 1.169 1.17 2.943 0 4.111l-18.168 18.154c-4.209 4.205-4.209 11.023 0 15.228z"})]}),(0,t.jsx)("ellipse",{cx:"100.519",cy:"100.437",fill:"url(#linearGradient-4)",rx:"23.6",ry:"23.581"})]})})})})]})},P=O,k=a(29905),V=a(14726),X=function(i){var r,o;return!i.route&&(i.noFound||i.notFound)||((r=i.route)===null||r===void 0?void 0:r.unaccessible)&&(i.unAccessible||i.noAccessible)||(!i.route||((o=i.route)===null||o===void 0?void 0:o.unaccessible))&&(0,t.jsx)(k.ZP,{status:i.route?"403":"404",title:i.route?"403":"404",subTitle:i.route?"\u62B1\u6B49\uFF0C\u4F60\u65E0\u6743\u8BBF\u95EE\u8BE5\u9875\u9762":"\u62B1\u6B49\uFF0C\u4F60\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728",extra:(0,t.jsx)(V.ZP,{type:"primary",onClick:function(){return c.history.push("/")},children:"\u8FD4\u56DE\u9996\u9875"})})||i.children},K=X,U=a(7134),Y=a(74330),A=a(67159),S=a(50136),J=a(83159),Q=a(92443),L=a(66999);function w(n){var i,r,o,d,h;if(n.runtimeConfig.rightRender)return n.runtimeConfig.rightRender(n.initialState,n.setInitialState,n.runtimeConfig);var f=((i=n.initialState)===null||i===void 0?void 0:i.avatar)||((r=n.initialState)===null||r===void 0?void 0:r.name)||n.runtimeConfig.logout,u=((o=n.initialState)===null||o===void 0?void 0:o.avatar)===!1,m=u?"umi-plugin-layout-name umi-plugin-layout-hide-avatar-img":"umi-plugin-layout-name",j=f?(0,t.jsxs)("span",{className:"umi-plugin-layout-action",children:[u?null:(0,t.jsx)(U.C,{size:"small",className:"umi-plugin-layout-avatar",src:((d=n.initialState)===null||d===void 0?void 0:d.avatar)||"https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png",alt:"avatar"}),(0,t.jsx)("span",{className:m,children:(h=n.initialState)===null||h===void 0?void 0:h.name})]}):null;if(n.loading)return(0,t.jsx)("div",{className:"umi-plugin-layout-right",children:(0,t.jsx)(Y.Z,{size:"small",style:{marginLeft:8,marginRight:8}})});var g={className:"umi-plugin-layout-menu",selectedKeys:[],items:[{key:"logout",label:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Q.Z,{}),"\u9000\u51FA\u767B\u5F55"]}),onClick:function(){var e,p;n==null||(e=n.runtimeConfig)===null||e===void 0||(p=e.logout)===null||p===void 0||p.call(e,n.initialState)}}]},x;return A.Z.startsWith("5.")||A.Z.startsWith("4.24.")?x={menu:g}:A.Z.startsWith("3.")?x={overlay:(0,t.jsx)(S.Z,{children:g.items.map(function(y){return(0,t.jsx)(S.Z.Item,{onClick:y.onClick,children:y.label},y.key)})})}:x={overlay:(0,t.jsx)(S.Z,v()({},g))},(0,t.jsxs)("div",{className:"umi-plugin-layout-right anticon",children:[n.runtimeConfig.logout?(0,t.jsx)(J.Z,v()(v()({},x),{},{overlayClassName:"umi-plugin-layout-container",children:j})):j,(0,t.jsx)(L.pD,{})]})}var N=a(44886),q=a(83228),_=function n(i,r){if(i.length===0)return[];var o=[],d=T()(i),h;try{for(d.s();!(h=d.n()).done;){var f=h.value,u=v()({},f);r(f)?Array.isArray(u.routes)&&o.push.apply(o,z()(n(u.routes,r))):(Array.isArray(u.children)&&(u.children=n(u.children,r),u.routes=u.children),o.push(u))}}catch(m){d.e(m)}finally{d.f()}return o},tt=function n(i){return i.length===0?[]:i.map(function(r){var o=v()({},r);return r.originPath&&(o.path=r.originPath),Array.isArray(r.routes)&&(o.routes=n(r.routes)),Array.isArray(r.children)&&(o.children=n(r.children)),o})},nt=function(n){var i=(0,c.useLocation)(),r=(0,c.useNavigate)(),o=(0,c.useAppData)(),d=o.clientRoutes,h=o.pluginManager,f=N.t&&(0,N.t)("@@initialState")||{initialState:void 0,loading:!1,setInitialState:null},u=f.initialState,m=f.loading,j=f.setInitialState,g={locale:!0,navTheme:"light",collapsed:!1,layout:"mix",contentWidth:"Fluid",siderWidth:150,fixedHeader:!1,fixSiderbar:!0,colorWeak:!1,pwa:!0,token:{},splitMenus:!1,siderMenuType:"sub"},x=(0,L.YB)(),y=x.formatMessage,e=h.applyPlugins({key:"layout",type:"modify",initialValue:v()({},f)}),p=_(d.filter(function(s){return s.id==="ant-design-pro-layout"}),function(s){return!!s.isLayout&&s.id!=="ant-design-pro-layout"||!!s.isWrapper}),it=(0,q.Mf)(tt(p)),at=E()(it,1),G=at[0],et=(0,b.useMemo)(function(){var s,l;return(s=(0,c.matchRoutes)(G.children,i.pathname))===null||s===void 0||(l=s.pop)===null||l===void 0||(l=l.call(s))===null||l===void 0?void 0:l.route},[i.pathname]);return(0,t.jsx)(B.f,v()(v()({route:G,location:i,title:g.title||"admin",navTheme:"dark",siderWidth:256,onMenuHeaderClick:function(l){l.stopPropagation(),l.preventDefault(),r("/")},formatMessage:g.formatMessage||y,menu:{locale:g.locale},logo:P,menuItemRender:function(l,C){return l.isUrl||l.children?C:l.path&&i.pathname!==l.path?(0,t.jsx)(c.Link,{to:l.path.replace("/*",""),target:l.target,children:C}):C},itemRender:function(l,C,Z){var lt=l.breadcrumbName,rt=l.title,F=l.path,I=rt||lt,R=Z[Z.length-1];return R&&(R.path===F||R.linkPath===F)?(0,t.jsx)("span",{children:I}):(0,t.jsx)(c.Link,{to:F,children:I})},disableContentMargin:!0,fixSiderbar:!0,fixedHeader:!0},e),{},{rightContentRender:e.rightContentRender!==!1&&function(s){var l=w({runtimeConfig:e,loading:m,initialState:u,setInitialState:j});return e.rightContentRender?e.rightContentRender(s,l,{userConfig:g,runtimeConfig:e,loading:m,initialState:u,setInitialState:j}):l},children:(0,t.jsx)(K,{route:et,noFound:e==null?void 0:e.noFound,notFound:e==null?void 0:e.notFound,unAccessible:e==null?void 0:e.unAccessible,noAccessible:e==null?void 0:e.noAccessible,children:e.childrenRender?e.childrenRender((0,t.jsx)(c.Outlet,{}),n):(0,t.jsx)(c.Outlet,{})})}))}}}]); diff --git a/starter/src/main/resources/templates/admin/t__plugin-layout__Layout.f013d253.async.js b/starter/src/main/resources/templates/admin/t__plugin-layout__Layout.f013d253.async.js new file mode 100644 index 00000000..8b8769e8 --- /dev/null +++ b/starter/src/main/resources/templates/admin/t__plugin-layout__Layout.f013d253.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6301],{27626:function(t,e,i){i.r(e),i.d(e,{default:function(){return Z}});var n=i(5574),l=i.n(n),r=i(19632),a=i.n(r),o=i(97857),s=i.n(o),u=i(64599),d=i.n(u),c=i(86745),h=i(67294),f=i(44698),p=i(85893),g=function(){return(0,p.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 200 200",children:[(0,p.jsxs)("defs",{children:[(0,p.jsxs)("linearGradient",{id:"linearGradient-1",x1:"62.102%",x2:"108.197%",y1:"0%",y2:"37.864%",children:[(0,p.jsx)("stop",{offset:"0%",stopColor:"#4285EB"}),(0,p.jsx)("stop",{offset:"100%",stopColor:"#2EC7FF"})]}),(0,p.jsxs)("linearGradient",{id:"linearGradient-2",x1:"69.644%",x2:"54.043%",y1:"0%",y2:"108.457%",children:[(0,p.jsx)("stop",{offset:"0%",stopColor:"#29CDFF"}),(0,p.jsx)("stop",{offset:"37.86%",stopColor:"#148EFF"}),(0,p.jsx)("stop",{offset:"100%",stopColor:"#0A60FF"})]}),(0,p.jsxs)("linearGradient",{id:"linearGradient-3",x1:"69.691%",x2:"16.723%",y1:"-12.974%",y2:"117.391%",children:[(0,p.jsx)("stop",{offset:"0%",stopColor:"#FA816E"}),(0,p.jsx)("stop",{offset:"41.473%",stopColor:"#F74A5C"}),(0,p.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]}),(0,p.jsxs)("linearGradient",{id:"linearGradient-4",x1:"68.128%",x2:"30.44%",y1:"-35.691%",y2:"114.943%",children:[(0,p.jsx)("stop",{offset:"0%",stopColor:"#FA8E7D"}),(0,p.jsx)("stop",{offset:"51.264%",stopColor:"#F74A5C"}),(0,p.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]})]}),(0,p.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:(0,p.jsx)("g",{transform:"translate(-20 -20)",children:(0,p.jsx)("g",{transform:"translate(20 20)",children:(0,p.jsxs)("g",{children:[(0,p.jsxs)("g",{fillRule:"nonzero",children:[(0,p.jsxs)("g",{children:[(0,p.jsx)("path",{fill:"url(#linearGradient-1)",d:"M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c1.17-1.169 2.944-1.169 4.114 0l27.783 27.76c4.209 4.205 11.032 4.205 15.24 0 4.209-4.205 4.209-11.022 0-15.227L108.581 4.056c-4.719-4.594-12.312-4.557-16.993.12z"}),(0,p.jsx)("path",{fill:"url(#linearGradient-2)",d:"M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c2.912-2.51 7.664-7.596 14.642-8.786 5.186-.883 10.855 1.062 17.009 5.837L108.58 4.056c-4.719-4.594-12.312-4.557-16.993.12z"})]}),(0,p.jsx)("path",{fill:"url(#linearGradient-3)",d:"M153.686 135.855c4.208 4.205 11.031 4.205 15.24 0l27.034-27.012c4.7-4.696 4.7-12.28 0-16.974l-27.27-27.15c-4.218-4.2-11.043-4.195-15.254.013-4.209 4.205-4.209 11.022 0 15.227l18.418 18.403c1.17 1.169 1.17 2.943 0 4.111l-18.168 18.154c-4.209 4.205-4.209 11.023 0 15.228z"})]}),(0,p.jsx)("ellipse",{cx:"100.519",cy:"100.437",fill:"url(#linearGradient-4)",rx:"23.6",ry:"23.581"})]})})})})]})},x=i(29905),m=i(14726),v=function(t){var e,i;return!t.route&&(t.noFound||t.notFound)||(null===(e=t.route)||void 0===e?void 0:e.unaccessible)&&(t.unAccessible||t.noAccessible)||(!t.route||(null===(i=t.route)||void 0===i?void 0:i.unaccessible))&&(0,p.jsx)(x.ZP,{status:t.route?"403":"404",title:t.route?"403":"404",subTitle:t.route?"抱歉,你无权访问该页面":"抱歉,你访问的页面不存在",extra:(0,p.jsx)(m.ZP,{type:"primary",onClick:function(){return c.history.push("/")},children:"返回首页"})})||t.children},y=i(7134),j=i(74330),C=i(67159),F=i(50136),k=i(83159),A=i(92443),b=i(66999);var S=i(44886),R=i(83228),M=function t(e,i){if(0===e.length)return[];var n,l=[],r=d()(e);try{for(r.s();!(n=r.n()).done;){var o=n.value,u=s()({},o);i(o)?Array.isArray(u.routes)&&l.push.apply(l,a()(t(u.routes,i))):(Array.isArray(u.children)&&(u.children=t(u.children,i),u.routes=u.children),l.push(u))}}catch(t){r.e(t)}finally{r.f()}return l},G=function t(e){return 0===e.length?[]:e.map((function(e){var i=s()({},e);return e.originPath&&(i.path=e.originPath),Array.isArray(e.routes)&&(i.routes=t(e.routes)),Array.isArray(e.children)&&(i.children=t(e.children)),i}))},Z=function(t){var e=(0,c.useLocation)(),i=(0,c.useNavigate)(),n=(0,c.useAppData)(),r=n.clientRoutes,a=n.pluginManager,o=S.t&&(0,S.t)("@@initialState")||{initialState:void 0,loading:!1,setInitialState:null},u=o.initialState,d=o.loading,x=o.setInitialState,m={locale:!0,navTheme:"light",collapsed:!1,layout:"mix",contentWidth:"Fluid",siderWidth:150,fixedHeader:!1,fixSiderbar:!0,colorWeak:!1,pwa:!0,token:{},splitMenus:!1,siderMenuType:"sub"},Z=(0,b.YB)().formatMessage,N=a.applyPlugins({key:"layout",type:"modify",initialValue:s()({},o)}),w=M(r.filter((function(t){return"ant-design-pro-layout"===t.id})),(function(t){return!!t.isLayout&&"ant-design-pro-layout"!==t.id||!!t.isWrapper})),L=(0,R.Mf)(G(w)),W=l()(L,1)[0],z=(0,h.useMemo)((function(){var t,i;return null===(t=(0,c.matchRoutes)(W.children,e.pathname))||void 0===t||null===(i=t.pop)||void 0===i||null===(i=i.call(t))||void 0===i?void 0:i.route}),[e.pathname]);return(0,p.jsx)(f.f,s()(s()({route:W,location:e,title:m.title||"admin",navTheme:"dark",siderWidth:256,onMenuHeaderClick:function(t){t.stopPropagation(),t.preventDefault(),i("/")},formatMessage:m.formatMessage||Z,menu:{locale:m.locale},logo:g,menuItemRender:function(t,i){return t.isUrl||t.children?i:t.path&&e.pathname!==t.path?(0,p.jsx)(c.Link,{to:t.path.replace("/*",""),target:t.target,children:i}):i},itemRender:function(t,e,i){var n=t.breadcrumbName,l=t.title,r=t.path,a=l||n,o=i[i.length-1];return!o||o.path!==r&&o.linkPath!==r?(0,p.jsx)(c.Link,{to:r,children:a}):(0,p.jsx)("span",{children:a})},disableContentMargin:!0,fixSiderbar:!0,fixedHeader:!0},N),{},{rightContentRender:!1!==N.rightContentRender&&function(t){var e=function(t){var e,i,n,l,r;if(t.runtimeConfig.rightRender)return t.runtimeConfig.rightRender(t.initialState,t.setInitialState,t.runtimeConfig);var a=(null===(e=t.initialState)||void 0===e?void 0:e.avatar)||(null===(i=t.initialState)||void 0===i?void 0:i.name)||t.runtimeConfig.logout,o=!1===(null===(n=t.initialState)||void 0===n?void 0:n.avatar),u=o?"umi-plugin-layout-name umi-plugin-layout-hide-avatar-img":"umi-plugin-layout-name",d=a?(0,p.jsxs)("span",{className:"umi-plugin-layout-action",children:[o?null:(0,p.jsx)(y.C,{size:"small",className:"umi-plugin-layout-avatar",src:(null===(l=t.initialState)||void 0===l?void 0:l.avatar)||"https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png",alt:"avatar"}),(0,p.jsx)("span",{className:u,children:null===(r=t.initialState)||void 0===r?void 0:r.name})]}):null;if(t.loading)return(0,p.jsx)("div",{className:"umi-plugin-layout-right",children:(0,p.jsx)(j.Z,{size:"small",style:{marginLeft:8,marginRight:8}})});var c,h={className:"umi-plugin-layout-menu",selectedKeys:[],items:[{key:"logout",label:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(A.Z,{}),"退出登录"]}),onClick:function(){var e,i;null==t||null===(e=t.runtimeConfig)||void 0===e||null===(i=e.logout)||void 0===i||i.call(e,t.initialState)}}]};return c=C.Z.startsWith("5.")||C.Z.startsWith("4.24.")?{menu:h}:C.Z.startsWith("3.")?{overlay:(0,p.jsx)(F.Z,{children:h.items.map((function(t){return(0,p.jsx)(F.Z.Item,{onClick:t.onClick,children:t.label},t.key)}))})}:{overlay:(0,p.jsx)(F.Z,s()({},h))},(0,p.jsxs)("div",{className:"umi-plugin-layout-right anticon",children:[t.runtimeConfig.logout?(0,p.jsx)(k.Z,s()(s()({},c),{},{overlayClassName:"umi-plugin-layout-container",children:d})):d,(0,p.jsx)(b.pD,{})]})}({runtimeConfig:N,loading:d,initialState:u,setInitialState:x});return N.rightContentRender?N.rightContentRender(t,e,{userConfig:m,runtimeConfig:N,loading:d,initialState:u,setInitialState:x}):e},children:(0,p.jsx)(v,{route:z,noFound:null==N?void 0:N.noFound,notFound:null==N?void 0:N.notFound,unAccessible:null==N?void 0:N.unAccessible,noAccessible:null==N?void 0:N.noAccessible,children:N.childrenRender?N.childrenRender((0,p.jsx)(c.Outlet,{}),t):(0,p.jsx)(c.Outlet,{})})}))}}}]); \ No newline at end of file diff --git a/starter/src/main/resources/templates/admin/umi.37e698b5.css b/starter/src/main/resources/templates/admin/umi.37e698b5.css new file mode 100644 index 00000000..e7314223 --- /dev/null +++ b/starter/src/main/resources/templates/admin/umi.37e698b5.css @@ -0,0 +1 @@ +html,body,#root{height:100%;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.colorWeak{filter:invert(80%)}.ant-layout{min-height:100vh}.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed{left:unset}canvas{display:block}body{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ul,ol{list-style:none}@media (max-width: 768px){.ant-table{width:100%;overflow-x:auto}.ant-table-thead>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{margin-left:0;margin-right:0}.ant-pro-global-header-logo{margin-left:20px}.ant-pro-layout .ant-pro-layout-content{padding-block:0px;padding-inline:0px}.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-tabs-content-holder{overflow-y:auto}.ant-layout-content{padding-left:20px}.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.41a235c9.css b/starter/src/main/resources/templates/admin/umi.41a235c9.css deleted file mode 100644 index 3ebc16a5..00000000 --- a/starter/src/main/resources/templates/admin/umi.41a235c9.css +++ /dev/null @@ -1 +0,0 @@ -html,body,#root{height:100%;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.colorWeak{filter:invert(80%)}.ant-layout{min-height:100vh}.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed{left:unset}canvas{display:block}body{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ul,ol{list-style:none}@media (max-width: 768px){.ant-table{width:100%;overflow-x:auto}.ant-table-thead>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{margin-left:0;margin-right:0}.ant-pro-global-header-logo{margin-left:20px}.ant-pro-layout .ant-pro-layout-content{padding-block:0px;padding-inline:0px}.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-tabs-content-holder{overflow-y:auto}.ant-layout-content{padding:20px}.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.71cb1388.js b/starter/src/main/resources/templates/admin/umi.71cb1388.js deleted file mode 100644 index be650b8a..00000000 --- a/starter/src/main/resources/templates/admin/umi.71cb1388.js +++ /dev/null @@ -1,344 +0,0 @@ -!(function(){var Tf=Object.defineProperty,Pf=Object.defineProperties;var If=Object.getOwnPropertyDescriptors;var rl=Object.getOwnPropertySymbols;var _c=Object.prototype.hasOwnProperty,kc=Object.prototype.propertyIsEnumerable;var Ba=Math.pow,Zc=(Ca,Aa,h)=>Aa in Ca?Tf(Ca,Aa,{enumerable:!0,configurable:!0,writable:!0,value:h}):Ca[Aa]=h,xa=(Ca,Aa)=>{for(var h in Aa||(Aa={}))_c.call(Aa,h)&&Zc(Ca,h,Aa[h]);if(rl)for(var h of rl(Aa))kc.call(Aa,h)&&Zc(Ca,h,Aa[h]);return Ca},al=(Ca,Aa)=>Pf(Ca,If(Aa));var pu=(Ca,Aa)=>{var h={};for(var Eo in Ca)_c.call(Ca,Eo)&&Aa.indexOf(Eo)<0&&(h[Eo]=Ca[Eo]);if(Ca!=null&&rl)for(var Eo of rl(Ca))Aa.indexOf(Eo)<0&&kc.call(Ca,Eo)&&(h[Eo]=Ca[Eo]);return h};var ol=(Ca,Aa,h)=>new Promise((Eo,v)=>{var p=r=>{try{t(h.next(r))}catch(o){v(o)}},e=r=>{try{t(h.throw(r))}catch(o){v(o)}},t=r=>r.done?Eo(r.value):Promise.resolve(r.value).then(p,e);t((h=h.apply(Ca,Aa)).next())});(function(){var Ca={84898:function(v,p,e){"use strict";e.d(p,{iN:function(){return H},R_:function(){return C},EV:function(){return $},Ti:function(){return z},ez:function(){return M}});var t=e(86500),r=e(1350),o=2,a=.16,s=.05,u=.05,c=.15,l=5,d=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 b(ut){var Ue=ut.r,Ye=ut.g,Xe=ut.b,Fe=(0,t.py)(Ue,Ye,Xe);return{h:Fe.h*360,s:Fe.s,v:Fe.v}}function y(ut){var Ue=ut.r,Ye=ut.g,Xe=ut.b;return"#".concat((0,t.vq)(Ue,Ye,Xe,!1))}function f(ut,Ue,Ye){var Xe=Ye/100,Fe={r:(Ue.r-ut.r)*Xe+ut.r,g:(Ue.g-ut.g)*Xe+ut.g,b:(Ue.b-ut.b)*Xe+ut.b};return Fe}function E(ut,Ue,Ye){var Xe;return Math.round(ut.h)>=60&&Math.round(ut.h)<=240?Xe=Ye?Math.round(ut.h)-o*Ue:Math.round(ut.h)+o*Ue:Xe=Ye?Math.round(ut.h)+o*Ue:Math.round(ut.h)-o*Ue,Xe<0?Xe+=360:Xe>=360&&(Xe-=360),Xe}function R(ut,Ue,Ye){if(ut.h===0&&ut.s===0)return ut.s;var Xe;return Ye?Xe=ut.s-a*Ue:Ue===d?Xe=ut.s+a:Xe=ut.s+s*Ue,Xe>1&&(Xe=1),Ye&&Ue===l&&Xe>.1&&(Xe=.1),Xe<.06&&(Xe=.06),Number(Xe.toFixed(2))}function T(ut,Ue,Ye){var Xe;return Ye?Xe=ut.v+u*Ue:Xe=ut.v-c*Ue,Xe>1&&(Xe=1),Number(Xe.toFixed(2))}function C(ut){for(var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=[],Xe=(0,r.uA)(ut),Fe=l;Fe>0;Fe-=1){var Je=b(Xe),Le=y((0,r.uA)({h:E(Je,Fe,!0),s:R(Je,Fe,!0),v:T(Je,Fe,!0)}));Ye.push(Le)}Ye.push(y(Xe));for(var qe=1;qe<=d;qe+=1){var ze=b(Xe),ie=y((0,r.uA)({h:E(ze,qe),s:R(ze,qe),v:T(ze,qe)}));Ye.push(ie)}return Ue.theme==="dark"?m.map(function(W){var re=W.index,x=W.opacity,oe=y(f((0,r.uA)(Ue.backgroundColor||"#141414"),(0,r.uA)(Ye[re]),x*100));return oe}):Ye}var M={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"},P=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];P.primary=P[5];var A=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];A.primary=A[5];var O=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];O.primary=O[5];var $=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];$.primary=$[5];var Z=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Z.primary=Z[5];var Q=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Q.primary=Q[5];var U=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];U.primary=U[5];var Y=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Y.primary=Y[5];var H=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];H.primary=H[5];var G=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];G.primary=G[5];var J=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];J.primary=J[5];var X=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];X.primary=X[5];var V=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];V.primary=V[5];var q=null,z={red:P,volcano:A,orange:O,gold:$,yellow:Z,lime:Q,green:U,cyan:Y,blue:H,geekblue:G,purple:J,magenta:X,grey:V},k=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];k.primary=k[5];var L=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];L.primary=L[5];var F=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];F.primary=F[5];var N=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];N.primary=N[5];var ee=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];ee.primary=ee[5];var ce=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];ce.primary=ce[5];var le=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];le.primary=le[5];var se=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];se.primary=se[5];var fe=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];fe.primary=fe[5];var xe=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];xe.primary=xe[5];var Ie=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Ie.primary=Ie[5];var Pe=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Pe.primary=Pe[5];var $e=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];$e.primary=$e[5];var at={red:k,volcano:L,orange:F,gold:N,yellow:ee,lime:ce,green:le,cyan:se,blue:fe,geekblue:xe,purple:Ie,magenta:Pe,grey:$e}},85982:function(v,p,e){"use strict";e.d(p,{E4:function(){return La},V9:function(){return Y},jG:function(){return ut},_m:function(){return se},t2:function(){return Rn},ks:function(){return B},bf:function(){return S},CI:function(){return Ia},fp:function(){return $n},xy:function(){return Bn}});var t=e(4942),r=e(97685),o=e(74902),a=e(1413);function s(we){for(var Ke=0,Ze,Qe=0,nt=we.length;nt>=4;++Qe,nt-=4)Ze=we.charCodeAt(Qe)&255|(we.charCodeAt(++Qe)&255)<<8|(we.charCodeAt(++Qe)&255)<<16|(we.charCodeAt(++Qe)&255)<<24,Ze=(Ze&65535)*1540483477+((Ze>>>16)*59797<<16),Ze^=Ze>>>24,Ke=(Ze&65535)*1540483477+((Ze>>>16)*59797<<16)^(Ke&65535)*1540483477+((Ke>>>16)*59797<<16);switch(nt){case 3:Ke^=(we.charCodeAt(Qe+2)&255)<<16;case 2:Ke^=(we.charCodeAt(Qe+1)&255)<<8;case 1:Ke^=we.charCodeAt(Qe)&255,Ke=(Ke&65535)*1540483477+((Ke>>>16)*59797<<16)}return Ke^=Ke>>>13,Ke=(Ke&65535)*1540483477+((Ke>>>16)*59797<<16),((Ke^Ke>>>15)>>>0).toString(36)}var u=s,c=e(44958),l=e(67294),d=e.t(l,2),m=e(91),b=e(56982),y=e(91881),f=e(15671),E=e(43144),R="%";function T(we){return we.join(R)}var C=function(){function we(Ke){(0,f.Z)(this,we),(0,t.Z)(this,"instanceId",void 0),(0,t.Z)(this,"cache",new Map),this.instanceId=Ke}return(0,E.Z)(we,[{key:"get",value:function(Ze){return this.opGet(T(Ze))}},{key:"opGet",value:function(Ze){return this.cache.get(Ze)||null}},{key:"update",value:function(Ze,Qe){return this.opUpdate(T(Ze),Qe)}},{key:"opUpdate",value:function(Ze,Qe){var nt=this.cache.get(Ze),Kt=Qe(nt);Kt===null?this.cache.delete(Ze):this.cache.set(Ze,Kt)}}]),we}(),M=C,P=["children"],A="data-token-hash",O="data-css-hash",$="data-cache-path",Z="__cssinjs_instance__";function Q(){var we=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var Ke=document.body.querySelectorAll("style[".concat(O,"]"))||[],Ze=document.head.firstChild;Array.from(Ke).forEach(function(nt){nt[Z]=nt[Z]||we,nt[Z]===we&&document.head.insertBefore(nt,Ze)});var Qe={};Array.from(document.querySelectorAll("style[".concat(O,"]"))).forEach(function(nt){var Kt=nt.getAttribute(O);if(Qe[Kt]){if(nt[Z]===we){var pn;(pn=nt.parentNode)===null||pn===void 0||pn.removeChild(nt)}}else Qe[Kt]=!0})}return new M(we)}var U=l.createContext({hashPriority:"low",cache:Q(),defaultCache:!0}),Y=function(Ke){var Ze=Ke.children,Qe=(0,m.Z)(Ke,P),nt=l.useContext(U),Kt=(0,b.Z)(function(){var pn=(0,a.Z)({},nt);Object.keys(Qe).forEach(function(Pn){var tr=Qe[Pn];Qe[Pn]!==void 0&&(pn[Pn]=tr)});var On=Qe.cache;return pn.cache=pn.cache||Q(),pn.defaultCache=!On&&nt.defaultCache,pn},[nt,Qe],function(pn,On){return!(0,y.Z)(pn[0],On[0],!0)||!(0,y.Z)(pn[1],On[1],!0)});return l.createElement(U.Provider,{value:Kt},Ze)},H=U,G=e(71002),J=e(98924),X=e(97326),V=e(60136),q=e(29388),z=(0,E.Z)(function we(){(0,f.Z)(this,we)}),k=z,L="CALC_UNIT",F=new RegExp(L,"g");function N(we){return typeof we=="number"?"".concat(we).concat(L):we}var ee=function(we){(0,V.Z)(Ze,we);var Ke=(0,q.Z)(Ze);function Ze(Qe,nt){var Kt;(0,f.Z)(this,Ze),Kt=Ke.call(this),(0,t.Z)((0,X.Z)(Kt),"result",""),(0,t.Z)((0,X.Z)(Kt),"unitlessCssVar",void 0),(0,t.Z)((0,X.Z)(Kt),"lowPriority",void 0);var pn=(0,G.Z)(Qe);return Kt.unitlessCssVar=nt,Qe instanceof Ze?Kt.result="(".concat(Qe.result,")"):pn==="number"?Kt.result=N(Qe):pn==="string"&&(Kt.result=Qe),Kt}return(0,E.Z)(Ze,[{key:"add",value:function(nt){return nt instanceof Ze?this.result="".concat(this.result," + ").concat(nt.getResult()):(typeof nt=="number"||typeof nt=="string")&&(this.result="".concat(this.result," + ").concat(N(nt))),this.lowPriority=!0,this}},{key:"sub",value:function(nt){return nt instanceof Ze?this.result="".concat(this.result," - ").concat(nt.getResult()):(typeof nt=="number"||typeof nt=="string")&&(this.result="".concat(this.result," - ").concat(N(nt))),this.lowPriority=!0,this}},{key:"mul",value:function(nt){return this.lowPriority&&(this.result="(".concat(this.result,")")),nt instanceof Ze?this.result="".concat(this.result," * ").concat(nt.getResult(!0)):(typeof nt=="number"||typeof nt=="string")&&(this.result="".concat(this.result," * ").concat(nt)),this.lowPriority=!1,this}},{key:"div",value:function(nt){return this.lowPriority&&(this.result="(".concat(this.result,")")),nt instanceof Ze?this.result="".concat(this.result," / ").concat(nt.getResult(!0)):(typeof nt=="number"||typeof nt=="string")&&(this.result="".concat(this.result," / ").concat(nt)),this.lowPriority=!1,this}},{key:"getResult",value:function(nt){return this.lowPriority||nt?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(nt){var Kt=this,pn=nt||{},On=pn.unit,Pn=!0;return typeof On=="boolean"?Pn=On:Array.from(this.unitlessCssVar).some(function(tr){return Kt.result.includes(tr)})&&(Pn=!1),this.result=this.result.replace(F,Pn?"px":""),typeof this.lowPriority!="undefined"?"calc(".concat(this.result,")"):this.result}}]),Ze}(k),ce=function(we){(0,V.Z)(Ze,we);var Ke=(0,q.Z)(Ze);function Ze(Qe){var nt;return(0,f.Z)(this,Ze),nt=Ke.call(this),(0,t.Z)((0,X.Z)(nt),"result",0),Qe instanceof Ze?nt.result=Qe.result:typeof Qe=="number"&&(nt.result=Qe),nt}return(0,E.Z)(Ze,[{key:"add",value:function(nt){return nt instanceof Ze?this.result+=nt.result:typeof nt=="number"&&(this.result+=nt),this}},{key:"sub",value:function(nt){return nt instanceof Ze?this.result-=nt.result:typeof nt=="number"&&(this.result-=nt),this}},{key:"mul",value:function(nt){return nt instanceof Ze?this.result*=nt.result:typeof nt=="number"&&(this.result*=nt),this}},{key:"div",value:function(nt){return nt instanceof Ze?this.result/=nt.result:typeof nt=="number"&&(this.result/=nt),this}},{key:"equal",value:function(){return this.result}}]),Ze}(k),le=function(Ke,Ze){var Qe=Ke==="css"?ee:ce;return function(nt){return new Qe(nt,Ze)}},se=le;function fe(we,Ke){if(we.length!==Ke.length)return!1;for(var Ze=0;Ze1&&arguments[1]!==void 0?arguments[1]:!1,pn={map:this.cache};return Ze.forEach(function(On){if(!pn)pn=void 0;else{var Pn;pn=(Pn=pn)===null||Pn===void 0||(Pn=Pn.map)===null||Pn===void 0?void 0:Pn.get(On)}}),(Qe=pn)!==null&&Qe!==void 0&&Qe.value&&Kt&&(pn.value[1]=this.cacheCallTimes++),(nt=pn)===null||nt===void 0?void 0:nt.value}},{key:"get",value:function(Ze){var Qe;return(Qe=this.internalGet(Ze,!0))===null||Qe===void 0?void 0:Qe[0]}},{key:"has",value:function(Ze){return!!this.internalGet(Ze)}},{key:"set",value:function(Ze,Qe){var nt=this;if(!this.has(Ze)){if(this.size()+1>we.MAX_CACHE_SIZE+we.MAX_CACHE_OFFSET){var Kt=this.keys.reduce(function(tr,Hn){var ur=(0,r.Z)(tr,2),Xn=ur[1];return nt.internalGet(Hn)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Pe+=1}return(0,E.Z)(we,[{key:"getDerivativeToken",value:function(Ze){return this.derivatives.reduce(function(Qe,nt){return nt(Ze,Qe)},void 0)}}]),we}(),at=new xe;function ut(we){var Ke=Array.isArray(we)?we:[we];return at.has(Ke)||at.set(Ke,new $e(Ke)),at.get(Ke)}var Ue=new WeakMap,Ye={};function Xe(we,Ke){for(var Ze=Ue,Qe=0;Qe1&&arguments[1]!==void 0?arguments[1]:!1,Ze=Fe.get(we)||"";return Ze||(Object.keys(we).forEach(function(Qe){var nt=we[Qe];Ze+=Qe,nt instanceof $e?Ze+=nt.id:nt&&(0,G.Z)(nt)==="object"?Ze+=Je(nt,Ke):Ze+=nt}),Ke&&(Ze=u(Ze)),Fe.set(we,Ze)),Ze}function Le(we,Ke){return u("".concat(Ke,"_").concat(Je(we,!0)))}var qe="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),ze="_bAmBoO_";function ie(we,Ke,Ze){if((0,J.Z)()){var Qe,nt;(0,c.hq)(we,qe);var Kt=document.createElement("div");Kt.style.position="fixed",Kt.style.left="0",Kt.style.top="0",Ke==null||Ke(Kt),document.body.appendChild(Kt);var pn=Ze?Ze(Kt):(Qe=getComputedStyle(Kt).content)===null||Qe===void 0?void 0:Qe.includes(ze);return(nt=Kt.parentNode)===null||nt===void 0||nt.removeChild(Kt),(0,c.jL)(qe),pn}return!1}var W=null;function re(){return W===void 0&&(W=ie("@layer ".concat(qe," { .").concat(qe,' { content: "').concat(ze,'"!important; } }'),function(we){we.className=qe})),W}var x=void 0;function oe(){return x===void 0&&(x=ie(":where(.".concat(qe,') { content: "').concat(ze,'"!important; }'),function(we){we.className=qe})),x}var ve=void 0;function he(){return ve===void 0&&(ve=ie(".".concat(qe," { inset-block: 93px !important; }"),function(we){we.className=qe},function(we){return getComputedStyle(we).bottom==="93px"})),ve}var w=(0,J.Z)();function S(we){return typeof we=="number"?"".concat(we,"px"):we}function j(we,Ke,Ze){var Qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},nt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(nt)return we;var Kt=(0,a.Z)((0,a.Z)({},Qe),{},(0,t.Z)((0,t.Z)({},A,Ke),O,Ze)),pn=Object.keys(Kt).map(function(On){var Pn=Kt[On];return Pn?"".concat(On,'="').concat(Pn,'"'):null}).filter(function(On){return On}).join(" ");return"")}var B=function(Ke){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(Ze?"".concat(Ze,"-"):"").concat(Ke).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()},_=function(Ke,Ze,Qe){return Object.keys(Ke).length?".".concat(Ze).concat(Qe!=null&&Qe.scope?".".concat(Qe.scope):"","{").concat(Object.entries(Ke).map(function(nt){var Kt=(0,r.Z)(nt,2),pn=Kt[0],On=Kt[1];return"".concat(pn,":").concat(On,";")}).join(""),"}"):""},D=function(Ke,Ze,Qe){var nt={},Kt={};return Object.entries(Ke).forEach(function(pn){var On,Pn,tr=(0,r.Z)(pn,2),Hn=tr[0],ur=tr[1];if(Qe!=null&&(On=Qe.preserve)!==null&&On!==void 0&&On[Hn])Kt[Hn]=ur;else if((typeof ur=="string"||typeof ur=="number")&&!(Qe!=null&&(Pn=Qe.ignore)!==null&&Pn!==void 0&&Pn[Hn])){var Xn,Tr=B(Hn,Qe==null?void 0:Qe.prefix);nt[Tr]=typeof ur=="number"&&!(Qe!=null&&(Xn=Qe.unitless)!==null&&Xn!==void 0&&Xn[Hn])?"".concat(ur,"px"):String(ur),Kt[Hn]="var(".concat(Tr,")")}}),[Kt,_(nt,Ze,{scope:Qe==null?void 0:Qe.scope})]},te=e(8410),be=(0,a.Z)({},d),ge=be.useInsertionEffect,ye=function(Ke,Ze,Qe){l.useMemo(Ke,Qe),(0,te.Z)(function(){return Ze(!0)},Qe)},Ne=ge?function(we,Ke,Ze){return ge(function(){return we(),Ke()},Ze)}:ye,ke=Ne,We=(0,a.Z)({},d),je=We.useInsertionEffect,Ve=function(Ke){var Ze=[],Qe=!1;function nt(Kt){Qe||Ze.push(Kt)}return l.useEffect(function(){return Qe=!1,function(){Qe=!0,Ze.length&&Ze.forEach(function(Kt){return Kt()})}},Ke),nt},mt=function(){return function(Ke){Ke()}},Pt=typeof je!="undefined"?Ve:mt,bt=Pt;function _t(){return!1}var Dt=!1;function Rt(){return Dt}var Ht=_t;if(0)var $t,vn;function mn(we,Ke,Ze,Qe,nt){var Kt=l.useContext(H),pn=Kt.cache,On=[we].concat((0,o.Z)(Ke)),Pn=T(On),tr=bt([Pn]),Hn=Ht(),ur=function(mr){pn.opUpdate(Pn,function(Nr){var Be=Nr||[void 0,void 0],hr=(0,r.Z)(Be,2),Ir=hr[0],Dr=Ir===void 0?0:Ir,kr=hr[1],dr=kr,Zn=dr||Ze(),vr=[Dr,Zn];return mr?mr(vr):vr})};l.useMemo(function(){ur()},[Pn]);var Xn=pn.opGet(Pn),Tr=Xn[1];return ke(function(){nt==null||nt(Tr)},function(Zr){return ur(function(mr){var Nr=(0,r.Z)(mr,2),Be=Nr[0],hr=Nr[1];return Zr&&Be===0&&(nt==null||nt(Tr)),[Be+1,hr]}),function(){pn.opUpdate(Pn,function(mr){var Nr=mr||[],Be=(0,r.Z)(Nr,2),hr=Be[0],Ir=hr===void 0?0:hr,Dr=Be[1],kr=Ir-1;return kr===0?(tr(function(){(Zr||!pn.opGet(Pn))&&(Qe==null||Qe(Dr,!1))}),null):[Ir-1,Dr]})}},[Pn]),Tr}var zn={},Xt="css",Vn=new Map;function Un(we){Vn.set(we,(Vn.get(we)||0)+1)}function _n(we,Ke){if(typeof document!="undefined"){var Ze=document.querySelectorAll("style[".concat(A,'="').concat(we,'"]'));Ze.forEach(function(Qe){if(Qe[Z]===Ke){var nt;(nt=Qe.parentNode)===null||nt===void 0||nt.removeChild(Qe)}})}}var Ln=0;function kn(we,Ke){Vn.set(we,(Vn.get(we)||0)-1);var Ze=Array.from(Vn.keys()),Qe=Ze.filter(function(nt){var Kt=Vn.get(nt)||0;return Kt<=0});Ze.length-Qe.length>Ln&&Qe.forEach(function(nt){_n(nt,Ke),Vn.delete(nt)})}var Rn=function(Ke,Ze,Qe,nt){var Kt=Qe.getDerivativeToken(Ke),pn=(0,a.Z)((0,a.Z)({},Kt),Ze);return nt&&(pn=nt(pn)),pn},Mn="token";function $n(we,Ke){var Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qe=(0,l.useContext)(H),nt=Qe.cache.instanceId,Kt=Qe.container,pn=Ze.salt,On=pn===void 0?"":pn,Pn=Ze.override,tr=Pn===void 0?zn:Pn,Hn=Ze.formatToken,ur=Ze.getComputedToken,Xn=Ze.cssVar,Tr=Xe(function(){return Object.assign.apply(Object,[{}].concat((0,o.Z)(Ke)))},Ke),Zr=Je(Tr),mr=Je(tr),Nr=Xn?Je(Xn):"",Be=mn(Mn,[On,we.id,Zr,mr,Nr],function(){var hr,Ir=ur?ur(Tr,tr,we):Rn(Tr,tr,we,Hn),Dr=(0,a.Z)({},Ir),kr="";if(Xn){var dr=D(Ir,Xn.key,{prefix:Xn.prefix,ignore:Xn.ignore,unitless:Xn.unitless,preserve:Xn.preserve}),Zn=(0,r.Z)(dr,2);Ir=Zn[0],kr=Zn[1]}var vr=Le(Ir,On);Ir._tokenKey=vr,Dr._tokenKey=Le(Dr,On);var oa=(hr=Xn==null?void 0:Xn.key)!==null&&hr!==void 0?hr:vr;Ir._themeKey=oa,Un(oa);var la="".concat(Xt,"-").concat(u(vr));return Ir._hashId=la,[Ir,la,Dr,kr,(Xn==null?void 0:Xn.key)||""]},function(hr){kn(hr[0]._themeKey,nt)},function(hr){var Ir=(0,r.Z)(hr,4),Dr=Ir[0],kr=Ir[3];if(Xn&&kr){var dr=(0,c.hq)(kr,u("css-variables-".concat(Dr._themeKey)),{mark:O,prepend:"queue",attachTo:Kt,priority:-999});dr[Z]=nt,dr.setAttribute(A,Dr._themeKey)}});return Be}var In=function(Ke,Ze,Qe){var nt=(0,r.Z)(Ke,5),Kt=nt[2],pn=nt[3],On=nt[4],Pn=Qe||{},tr=Pn.plain;if(!pn)return null;var Hn=Kt._tokenKey,ur=-999,Xn={"data-rc-order":"prependQueue","data-rc-priority":"".concat(ur)},Tr=j(pn,On,Hn,Xn,tr);return[ur,Hn,Tr]},lr=e(87462),yr={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},rr=yr,Lr="-ms-",$r="-moz-",br="-webkit-",Or="comm",Qn="rule",ir="decl",Pr="@page",_r="@media",xr="@import",nr="@charset",Hr="@viewport",ar="@supports",na="@document",wr="@namespace",Gr="@keyframes",Rr="@font-face",Yn="@counter-style",Wn="@font-feature-values",ot="@layer",Tt="@scope",Mt=Math.abs,Ut=String.fromCharCode,Ot=Object.assign;function ft(we,Ke){return Qt(we,0)^45?(((Ke<<2^Qt(we,0))<<2^Qt(we,1))<<2^Qt(we,2))<<2^Qt(we,3):0}function et(we){return we.trim()}function dt(we,Ke){return(we=Ke.exec(we))?we[0]:we}function ht(we,Ke,Ze){return we.replace(Ke,Ze)}function Nt(we,Ke,Ze){return we.indexOf(Ke,Ze)}function Qt(we,Ke){return we.charCodeAt(Ke)|0}function Jt(we,Ke,Ze){return we.slice(Ke,Ze)}function Vt(we){return we.length}function Zt(we){return we.length}function Ee(we,Ke){return Ke.push(we),we}function Ce(we,Ke){return we.map(Ke).join("")}function Te(we,Ke){return we.filter(function(Ze){return!dt(Ze,Ke)})}function Ae(we,Ke){for(var Ze="",Qe=0;Qe0?Qt(gn,--an):0,wt--,zt===10&&(wt=1,Ct--),zt}function me(){return zt=an2||De(zt)>3?"":" "}function nn(we){for(;me();)switch(De(zt)){case 0:append(un(an-1),we);break;case 2:append(vt(zt),we);break;default:append(from(zt),we)}return we}function it(we,Ke){for(;--Ke&&me()&&!(zt<48||zt>102||zt>57&&zt<65||zt>70&&zt<97););return pe(we,Oe()+(Ke<6&&ue()==32&&me()==32))}function yn(we){for(;me();)switch(zt){case we:return an;case 34:case 39:we!==34&&we!==39&&yn(zt);break;case 40:we===41&&yn(we);break;case 92:me();break}return an}function en(we,Ke){for(;me()&&we+zt!==57;)if(we+zt===84&&ue()===47)break;return"/*"+pe(Ke,an-1)+"*"+Ut(we===47?we:me())}function un(we){for(;!De(ue());)me();return pe(we,an)}function jt(we){return ae(Et("",null,null,null,[""],we=_e(we),0,[0],we))}function Et(we,Ke,Ze,Qe,nt,Kt,pn,On,Pn){for(var tr=0,Hn=0,ur=pn,Xn=0,Tr=0,Zr=0,mr=1,Nr=1,Be=1,hr=0,Ir="",Dr=nt,kr=Kt,dr=Qe,Zn=Ir;Nr;)switch(Zr=hr,hr=me()){case 40:if(Zr!=108&&Qt(Zn,ur-1)==58){Nt(Zn+=ht(vt(hr),"&","&\f"),"&\f",Mt(tr?On[tr-1]:0))!=-1&&(Be=-1);break}case 34:case 39:case 91:Zn+=vt(hr);break;case 9:case 10:case 13:case 32:Zn+=pt(Zr);break;case 92:Zn+=it(Oe()-1,7);continue;case 47:switch(ue()){case 42:case 47:Ee(xt(en(me(),Oe()),Ke,Ze,Pn),Pn);break;default:Zn+="/"}break;case 123*mr:On[tr++]=Vt(Zn)*Be;case 125*mr:case 59:case 0:switch(hr){case 0:case 125:Nr=0;case 59+Hn:Be==-1&&(Zn=ht(Zn,/\f/g,"")),Tr>0&&Vt(Zn)-ur&&Ee(Tr>32?qt(Zn+";",Qe,Ze,ur-1,Pn):qt(ht(Zn," ","")+";",Qe,Ze,ur-2,Pn),Pn);break;case 59:Zn+=";";default:if(Ee(dr=rt(Zn,Ke,Ze,tr,Hn,nt,On,Ir,Dr=[],kr=[],ur,Kt),Kt),hr===123)if(Hn===0)Et(Zn,Ke,dr,dr,Dr,Kt,ur,On,kr);else switch(Xn===99&&Qt(Zn,3)===110?100:Xn){case 100:case 108:case 109:case 115:Et(we,dr,dr,Qe&&Ee(rt(we,dr,dr,0,0,nt,On,Ir,nt,Dr=[],ur,kr),kr),nt,kr,ur,On,Qe?Dr:kr);break;default:Et(Zn,dr,dr,dr,[""],kr,0,On,kr)}}tr=Hn=Tr=0,mr=Be=1,Ir=Zn="",ur=pn;break;case 58:ur=1+Vt(Zn),Tr=Zr;default:if(mr<1){if(hr==123)--mr;else if(hr==125&&mr++==0&&Me()==125)continue}switch(Zn+=Ut(hr),hr*mr){case 38:Be=Hn>0?1:(Zn+="\f",-1);break;case 44:On[tr++]=(Vt(Zn)-1)*Be,Be=1;break;case 64:ue()===45&&(Zn+=vt(me())),Xn=ue(),Hn=ur=Vt(Ir=Zn+=un(Oe())),hr++;break;case 45:Zr===45&&Vt(Zn)==2&&(mr=0)}}return Kt}function rt(we,Ke,Ze,Qe,nt,Kt,pn,On,Pn,tr,Hn,ur){for(var Xn=nt-1,Tr=nt===0?Kt:[""],Zr=Zt(Tr),mr=0,Nr=0,Be=0;mr0?Tr[hr]+" "+Ir:ht(Ir,/&\f/g,Tr[hr])))&&(Pn[Be++]=Dr);return bn(we,Ke,Ze,nt===0?Qn:On,Pn,tr,Hn,ur)}function xt(we,Ke,Ze,Qe){return bn(we,Ke,Ze,Or,Ut(Gn()),Jt(we,2,-2),0,Qe)}function qt(we,Ke,Ze,Qe,nt){return bn(we,Ke,Ze,ir,Jt(we,0,Qe),Jt(we,Qe+1,-1),Qe,nt)}function on(we,Ke){var Ze=Ke.path,Qe=Ke.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(Ze?"Error in ".concat(Ze,": "):"").concat(we).concat(Qe.length?" Selector: ".concat(Qe.join(" | ")):""))}var sn=function(Ke,Ze,Qe){if(Ke==="content"){var nt=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Kt=["normal","none","initial","inherit","unset"];(typeof Ze!="string"||Kt.indexOf(Ze)===-1&&!nt.test(Ze)&&(Ze.charAt(0)!==Ze.charAt(Ze.length-1)||Ze.charAt(0)!=='"'&&Ze.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(Ze,"\"'`."),Qe)}},Dn=null,xn=function(Ke,Ze,Qe){Ke==="animation"&&Qe.hashId&&Ze!=="none"&&lintWarning("You seem to be using hashed animation '".concat(Ze,"', in which case 'animationName' with Keyframe as value is recommended."),Qe)},At=null;function Jn(we){var Ke,Ze=((Ke=we.match(/:not\(([^)]*)\)/))===null||Ke===void 0?void 0:Ke[1])||"",Qe=Ze.split(/(\[[^[]*])|(?=[.#])/).filter(function(nt){return nt});return Qe.length>1}function or(we){return we.parentSelectors.reduce(function(Ke,Ze){return Ke?Ze.includes("&")?Ze.replace(/&/g,Ke):"".concat(Ke," ").concat(Ze):Ze},"")}var Ar=function(Ke,Ze,Qe){var nt=or(Qe),Kt=nt.match(/:not\([^)]*\)/g)||[];Kt.length>0&&Kt.some(Jn)&&lintWarning("Concat ':not' selector not support in legacy browsers.",Qe)},Mr=null,zr=function(Ke,Ze,Qe){switch(Ke){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(Ke,"' 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."),Qe);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof Ze=="string"){var nt=Ze.split(" ").map(function(On){return On.trim()});nt.length===4&&nt[1]!==nt[3]&&lintWarning("You seem to be using '".concat(Ke,"' property with different left ").concat(Ke," and right ").concat(Ke,", 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."),Qe)}return;case"clear":case"textAlign":(Ze==="left"||Ze==="right")&&lintWarning("You seem to be using non-logical value '".concat(Ze,"' of ").concat(Ke,", 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."),Qe);return;case"borderRadius":if(typeof Ze=="string"){var Kt=Ze.split("/").map(function(On){return On.trim()}),pn=Kt.reduce(function(On,Pn){if(On)return On;var tr=Pn.split(" ").map(function(Hn){return Hn.trim()});return tr.length>=2&&tr[0]!==tr[1]||tr.length===3&&tr[1]!==tr[2]||tr.length===4&&tr[2]!==tr[3]?!0:On},!1);pn&&lintWarning("You seem to be using non-logical value '".concat(Ze,"' of ").concat(Ke,", 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."),Qe)}return;default:}},qr=null,Kr=function(Ke,Ze,Qe){(typeof Ze=="string"&&/NaN/g.test(Ze)||Number.isNaN(Ze))&&lintWarning("Unexpected 'NaN' in property '".concat(Ke,": ").concat(Ze,"'."),Qe)},Jr=null,da=function(Ke,Ze,Qe){Qe.parentSelectors.some(function(nt){var Kt=nt.split(",");return Kt.some(function(pn){return pn.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",Qe)},ma=null,va="data-ant-cssinjs-cache-path",Xr="_FILE_STYLE__";function ga(we){return Object.keys(we).map(function(Ke){var Ze=we[Ke];return"".concat(Ke,":").concat(Ze)}).join(";")}var Qr,st=!0;function lt(we){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Qr=we,st=Ke}function Ge(){if(!Qr&&(Qr={},(0,J.Z)())){var we=document.createElement("div");we.className=va,we.style.position="fixed",we.style.visibility="hidden",we.style.top="-9999px",document.body.appendChild(we);var Ke=getComputedStyle(we).content||"";Ke=Ke.replace(/^"/,"").replace(/"$/,""),Ke.split(";").forEach(function(nt){var Kt=nt.split(":"),pn=(0,r.Z)(Kt,2),On=pn[0],Pn=pn[1];Qr[On]=Pn});var Ze=document.querySelector("style[".concat(va,"]"));if(Ze){var Qe;st=!1,(Qe=Ze.parentNode)===null||Qe===void 0||Qe.removeChild(Ze)}document.body.removeChild(we)}}function ct(we){return Ge(),!!Qr[we]}function Ft(we){var Ke=Qr[we],Ze=null;if(Ke&&(0,J.Z)())if(st)Ze=Xr;else{var Qe=document.querySelector("style[".concat(O,'="').concat(Qr[we],'"]'));Qe?Ze=Qe.innerHTML:delete Qr[we]}return[Ze,Ke]}var fn="_skip_check_",En="_multi_value_";function dn(we){var Ke=Ae(jt(we),He);return Ke.replace(/\{%%%\:[^;];}/g,";")}function hn(we){return(0,G.Z)(we)==="object"&&we&&(fn in we||En in we)}function er(we,Ke,Ze){if(!Ke)return we;var Qe=".".concat(Ke),nt=Ze==="low"?":where(".concat(Qe,")"):Qe,Kt=we.split(",").map(function(pn){var On,Pn=pn.trim().split(/\s+/),tr=Pn[0]||"",Hn=((On=tr.match(/^\w+/))===null||On===void 0?void 0:On[0])||"";return tr="".concat(Hn).concat(nt).concat(tr.slice(Hn.length)),[tr].concat((0,o.Z)(Pn.slice(1))).join(" ")});return Kt.join(",")}var cn=function we(Ke){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},nt=Qe.root,Kt=Qe.injectHash,pn=Qe.parentSelectors,On=Ze.hashId,Pn=Ze.layer,tr=Ze.path,Hn=Ze.hashPriority,ur=Ze.transformers,Xn=ur===void 0?[]:ur,Tr=Ze.linters,Zr=Tr===void 0?[]:Tr,mr="",Nr={};function Be(Dr){var kr=Dr.getName(On);if(!Nr[kr]){var dr=we(Dr.style,Ze,{root:!1,parentSelectors:pn}),Zn=(0,r.Z)(dr,1),vr=Zn[0];Nr[kr]="@keyframes ".concat(Dr.getName(On)).concat(vr)}}function hr(Dr){var kr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Dr.forEach(function(dr){Array.isArray(dr)?hr(dr,kr):dr&&kr.push(dr)}),kr}var Ir=hr(Array.isArray(Ke)?Ke:[Ke]);return Ir.forEach(function(Dr){var kr=typeof Dr=="string"&&!nt?{}:Dr;if(typeof kr=="string")mr+="".concat(kr,` -`);else if(kr._keyframe)Be(kr);else{var dr=Xn.reduce(function(Zn,vr){var oa;return(vr==null||(oa=vr.visit)===null||oa===void 0?void 0:oa.call(vr,Zn))||Zn},kr);Object.keys(dr).forEach(function(Zn){var vr=dr[Zn];if((0,G.Z)(vr)==="object"&&vr&&(Zn!=="animationName"||!vr._keyframe)&&!hn(vr)){var oa=!1,la=Zn.trim(),po=!1;(nt||Kt)&&On?la.startsWith("@")?oa=!0:la=er(Zn,On,Hn):nt&&!On&&(la==="&"||la==="")&&(la="",po=!0);var so=we(vr,Ze,{root:po,injectHash:oa,parentSelectors:[].concat((0,o.Z)(pn),[la])}),ba=(0,r.Z)(so,2),ha=ba[0],Ua=ba[1];Nr=(0,a.Z)((0,a.Z)({},Nr),Ua),mr+="".concat(la).concat(ha)}else{let lo=function(Za,Va){var Ro=Za.replace(/[A-Z]/g,function(_a){return"-".concat(_a.toLowerCase())}),Ga=Va;!rr[Za]&&typeof Ga=="number"&&Ga!==0&&(Ga="".concat(Ga,"px")),Za==="animationName"&&Va!==null&&Va!==void 0&&Va._keyframe&&(Be(Va),Ga=Va.getName(On)),mr+="".concat(Ro,":").concat(Ga,";")};var Ta,qa=(Ta=vr==null?void 0:vr.value)!==null&&Ta!==void 0?Ta:vr;(0,G.Z)(vr)==="object"&&vr!==null&&vr!==void 0&&vr[En]&&Array.isArray(qa)?qa.forEach(function(Za){lo(Zn,Za)}):lo(Zn,qa)}})}}),nt?Pn&&(mr="@layer ".concat(Pn.name," {").concat(mr,"}"),Pn.dependencies&&(Nr["@layer ".concat(Pn.name)]=Pn.dependencies.map(function(Dr){return"@layer ".concat(Dr,", ").concat(Pn.name,";")}).join(` -`))):mr="{".concat(mr,"}"),[mr,Nr]};function ln(we,Ke){return u("".concat(we.join("%")).concat(Ke))}function Kn(){return null}var Ur="style";function Bn(we,Ke){var Ze=we.token,Qe=we.path,nt=we.hashId,Kt=we.layer,pn=we.nonce,On=we.clientOnly,Pn=we.order,tr=Pn===void 0?0:Pn,Hn=l.useContext(H),ur=Hn.autoClear,Xn=Hn.mock,Tr=Hn.defaultCache,Zr=Hn.hashPriority,mr=Hn.container,Nr=Hn.ssrInline,Be=Hn.transformers,hr=Hn.linters,Ir=Hn.cache,Dr=Hn.layer,kr=Ze._tokenKey,dr=[kr];Dr&&dr.push("layer"),dr.push.apply(dr,(0,o.Z)(Qe));var Zn=w,vr=mn(Ur,dr,function(){var ba=dr.join("|");if(ct(ba)){var ha=Ft(ba),Ua=(0,r.Z)(ha,2),Ta=Ua[0],qa=Ua[1];if(Ta)return[Ta,kr,qa,{},On,tr]}var lo=Ke(),Za=cn(lo,{hashId:nt,hashPriority:Zr,layer:Dr?Kt:void 0,path:Qe.join("-"),transformers:Be,linters:hr}),Va=(0,r.Z)(Za,2),Ro=Va[0],Ga=Va[1],_a=dn(Ro),Ya=ln(dr,_a);return[_a,kr,Ya,Ga,On,tr]},function(ba,ha){var Ua=(0,r.Z)(ba,3),Ta=Ua[2];(ha||ur)&&w&&(0,c.jL)(Ta,{mark:O})},function(ba){var ha=(0,r.Z)(ba,4),Ua=ha[0],Ta=ha[1],qa=ha[2],lo=ha[3];if(Zn&&Ua!==Xr){var Za={mark:O,prepend:Dr?!1:"queue",attachTo:mr,priority:tr},Va=typeof pn=="function"?pn():pn;Va&&(Za.csp={nonce:Va});var Ro=[],Ga=[];Object.keys(lo).forEach(function(Ya){Ya.startsWith("@layer")?Ro.push(Ya):Ga.push(Ya)}),Ro.forEach(function(Ya){(0,c.hq)(dn(lo[Ya]),"_layer-".concat(Ya),(0,a.Z)((0,a.Z)({},Za),{},{prepend:!0}))});var _a=(0,c.hq)(Ua,qa,Za);_a[Z]=Ir.instanceId,_a.setAttribute(A,kr),Ga.forEach(function(Ya){(0,c.hq)(dn(lo[Ya]),"_effect-".concat(Ya),Za)})}}),oa=(0,r.Z)(vr,3),la=oa[0],po=oa[1],so=oa[2];return function(ba){var ha;return!Nr||Zn||!Tr?ha=l.createElement(Kn,null):ha=l.createElement("style",(0,lr.Z)({},(0,t.Z)((0,t.Z)({},A,po),O,so),{dangerouslySetInnerHTML:{__html:la}})),l.createElement(l.Fragment,null,ha,ba)}}var ea=function(Ke,Ze,Qe){var nt=(0,r.Z)(Ke,6),Kt=nt[0],pn=nt[1],On=nt[2],Pn=nt[3],tr=nt[4],Hn=nt[5],ur=Qe||{},Xn=ur.plain;if(tr)return null;var Tr=Kt,Zr={"data-rc-order":"prependQueue","data-rc-priority":"".concat(Hn)};return Tr=j(Kt,pn,On,Zr,Xn),Pn&&Object.keys(Pn).forEach(function(mr){if(!Ze[mr]){Ze[mr]=!0;var Nr=dn(Pn[mr]),Be=j(Nr,pn,"_effect-".concat(mr),Zr,Xn);mr.startsWith("@layer")?Tr=Be+Tr:Tr+=Be}}),[Hn,On,Tr]},ca="cssVar",fa=function(Ke,Ze){var Qe=Ke.key,nt=Ke.prefix,Kt=Ke.unitless,pn=Ke.ignore,On=Ke.token,Pn=Ke.scope,tr=Pn===void 0?"":Pn,Hn=(0,l.useContext)(H),ur=Hn.cache.instanceId,Xn=Hn.container,Tr=On._tokenKey,Zr=[].concat((0,o.Z)(Ke.path),[Qe,tr,Tr]),mr=mn(ca,Zr,function(){var Nr=Ze(),Be=D(Nr,Qe,{prefix:nt,unitless:Kt,ignore:pn,scope:tr}),hr=(0,r.Z)(Be,2),Ir=hr[0],Dr=hr[1],kr=ln(Zr,Dr);return[Ir,Dr,kr,Qe]},function(Nr){var Be=(0,r.Z)(Nr,3),hr=Be[2];w&&(0,c.jL)(hr,{mark:O})},function(Nr){var Be=(0,r.Z)(Nr,3),hr=Be[1],Ir=Be[2];if(hr){var Dr=(0,c.hq)(hr,Ir,{mark:O,prepend:"queue",attachTo:Xn,priority:-999});Dr[Z]=ur,Dr.setAttribute(A,Qe)}});return mr},Oa=function(Ke,Ze,Qe){var nt=(0,r.Z)(Ke,4),Kt=nt[1],pn=nt[2],On=nt[3],Pn=Qe||{},tr=Pn.plain;if(!Kt)return null;var Hn=-999,ur={"data-rc-order":"prependQueue","data-rc-priority":"".concat(Hn)},Xn=j(Kt,On,pn,ur,tr);return[Hn,pn,Xn]},Ia=fa,io=(0,t.Z)((0,t.Z)((0,t.Z)({},Ur,ea),Mn,In),ca,Oa);function wa(we){return we!==null}function jo(we,Ke){var Ze=typeof Ke=="boolean"?{plain:Ke}:Ke||{},Qe=Ze.plain,nt=Qe===void 0?!1:Qe,Kt=Ze.types,pn=Kt===void 0?["style","token","cssVar"]:Kt,On=new RegExp("^(".concat((typeof pn=="string"?[pn]:pn).join("|"),")%")),Pn=Array.from(we.cache.keys()).filter(function(Xn){return On.test(Xn)}),tr={},Hn={},ur="";return Pn.map(function(Xn){var Tr=Xn.replace(On,"").replace(/%/g,"|"),Zr=Xn.split("%"),mr=_slicedToArray(Zr,1),Nr=mr[0],Be=io[Nr],hr=Be(we.cache.get(Xn)[1],tr,{plain:nt});if(!hr)return null;var Ir=_slicedToArray(hr,3),Dr=Ir[0],kr=Ir[1],dr=Ir[2];return Xn.startsWith("style")&&(Hn[Tr]=kr),[Dr,dr]}).filter(wa).sort(function(Xn,Tr){var Zr=_slicedToArray(Xn,1),mr=Zr[0],Nr=_slicedToArray(Tr,1),Be=Nr[0];return mr-Be}).forEach(function(Xn){var Tr=_slicedToArray(Xn,2),Zr=Tr[1];ur+=Zr}),ur+=toStyleStr(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serializeCacheMap(Hn),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP),nt),ur}var So=function(){function we(Ke,Ze){(0,f.Z)(this,we),(0,t.Z)(this,"name",void 0),(0,t.Z)(this,"style",void 0),(0,t.Z)(this,"_keyframe",!0),this.name=Ke,this.style=Ze}return(0,E.Z)(we,[{key:"getName",value:function(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ze?"".concat(Ze,"-").concat(this.name):this.name}}]),we}(),La=So;function Bo(we){if(typeof we=="number")return[[we],!1];var Ke=String(we).trim(),Ze=Ke.match(/(.*)(!important)/),Qe=(Ze?Ze[1]:Ke).trim().split(/\s+/),nt=[],Kt=0;return[Qe.reduce(function(pn,On){if(On.includes("(")||On.includes(")")){var Pn=On.split("(").length-1,tr=On.split(")").length-1;Kt+=Pn-tr}return Kt>=0&&nt.push(On),Kt===0&&(pn.push(nt.join(" ")),nt=[]),pn},[]),!!Ze]}function za(we){return we.notSplit=!0,we}var ya={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:za(["borderTop","borderBottom"]),borderBlockStart:za(["borderTop"]),borderBlockEnd:za(["borderBottom"]),borderInline:za(["borderLeft","borderRight"]),borderInlineStart:za(["borderLeft"]),borderInlineEnd:za(["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 de(we,Ke){var Ze=we;return Ke&&(Ze="".concat(Ze," !important")),{_skip_check_:!0,value:Ze}}var Re={visit:function(Ke){var Ze={};return Object.keys(Ke).forEach(function(Qe){var nt=Ke[Qe],Kt=ya[Qe];if(Kt&&(typeof nt=="number"||typeof nt=="string")){var pn=Bo(nt),On=(0,r.Z)(pn,2),Pn=On[0],tr=On[1];Kt.length&&Kt.notSplit?Kt.forEach(function(Hn){Ze[Hn]=de(nt,tr)}):Kt.length===1?Ze[Kt[0]]=de(Pn[0],tr):Kt.length===2?Kt.forEach(function(Hn,ur){var Xn;Ze[Hn]=de((Xn=Pn[ur])!==null&&Xn!==void 0?Xn:Pn[0],tr)}):Kt.length===4?Kt.forEach(function(Hn,ur){var Xn,Tr;Ze[Hn]=de((Xn=(Tr=Pn[ur])!==null&&Tr!==void 0?Tr:Pn[ur-2])!==null&&Xn!==void 0?Xn:Pn[0],tr)}):Ze[Qe]=nt}else Ze[Qe]=nt}),Ze}},yt=null,Gt=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function wn(we,Ke){var Ze=Math.pow(10,Ke+1),Qe=Math.floor(we*Ze);return Math.round(Qe/10)*10/Ze}var Cr=function(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ze=Ke.rootValue,Qe=Ze===void 0?16:Ze,nt=Ke.precision,Kt=nt===void 0?5:nt,pn=Ke.mediaQuery,On=pn===void 0?!1:pn,Pn=function(ur,Xn){if(!Xn)return ur;var Tr=parseFloat(Xn);if(Tr<=1)return ur;var Zr=wn(Tr/Qe,Kt);return"".concat(Zr,"rem")},tr=function(ur){var Xn=_objectSpread({},ur);return Object.entries(ur).forEach(function(Tr){var Zr=_slicedToArray(Tr,2),mr=Zr[0],Nr=Zr[1];if(typeof Nr=="string"&&Nr.includes("px")){var Be=Nr.replace(Gt,Pn);Xn[mr]=Be}!unitless[mr]&&typeof Nr=="number"&&Nr!==0&&(Xn[mr]="".concat(Nr,"px").replace(Gt,Pn));var hr=mr.trim();if(hr.startsWith("@")&&hr.includes("px")&&On){var Ir=mr.replace(Gt,Pn);Xn[Ir]=Xn[mr],delete Xn[mr]}}),Xn};return{visit:tr}},aa=null,Yr={supportModernCSS:function(){return oe()&&he()}}},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},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},42110:function(v,p){"use strict";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"};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},89099:function(v,p,e){"use strict";e.d(p,{Z:function(){return B}});var t=e(1413),r=e(97685),o=e(4942),a=e(91),s=e(67294),u=e(93967),c=e.n(u),l=(0,s.createContext)({}),d=l,m=e(71002),b=e(86500),y=e(1350),f=2,E=.16,R=.05,T=.05,C=.15,M=5,P=4,A=[{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(_){var D=_.r,te=_.g,be=_.b,ge=(0,b.py)(D,te,be);return{h:ge.h*360,s:ge.s,v:ge.v}}function $(_){var D=_.r,te=_.g,be=_.b;return"#".concat((0,b.vq)(D,te,be,!1))}function Z(_,D,te){var be=te/100,ge={r:(D.r-_.r)*be+_.r,g:(D.g-_.g)*be+_.g,b:(D.b-_.b)*be+_.b};return ge}function Q(_,D,te){var be;return Math.round(_.h)>=60&&Math.round(_.h)<=240?be=te?Math.round(_.h)-f*D:Math.round(_.h)+f*D:be=te?Math.round(_.h)+f*D:Math.round(_.h)-f*D,be<0?be+=360:be>=360&&(be-=360),be}function U(_,D,te){if(_.h===0&&_.s===0)return _.s;var be;return te?be=_.s-E*D:D===P?be=_.s+E:be=_.s+R*D,be>1&&(be=1),te&&D===M&&be>.1&&(be=.1),be<.06&&(be=.06),Number(be.toFixed(2))}function Y(_,D,te){var be;return te?be=_.v+T*D:be=_.v-C*D,be>1&&(be=1),Number(be.toFixed(2))}function H(_){for(var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=[],be=(0,y.uA)(_),ge=M;ge>0;ge-=1){var ye=O(be),Ne=$((0,y.uA)({h:Q(ye,ge,!0),s:U(ye,ge,!0),v:Y(ye,ge,!0)}));te.push(Ne)}te.push($(be));for(var ke=1;ke<=P;ke+=1){var We=O(be),je=$((0,y.uA)({h:Q(We,ke),s:U(We,ke),v:Y(We,ke)}));te.push(je)}return D.theme==="dark"?A.map(function(Ve){var mt=Ve.index,Pt=Ve.opacity,bt=$(Z((0,y.uA)(D.backgroundColor||"#141414"),(0,y.uA)(te[mt]),Pt*100));return bt}):te}var G={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"},J={},X={};Object.keys(G).forEach(function(_){J[_]=H(G[_]),J[_].primary=J[_][5],X[_]=H(G[_],{theme:"dark",backgroundColor:"#141414"}),X[_].primary=X[_][5]});var V=J.red,q=J.volcano,z=J.gold,k=J.orange,L=J.yellow,F=J.lime,N=J.green,ee=J.cyan,ce=J.blue,le=J.geekblue,se=J.purple,fe=J.magenta,xe=J.grey,Ie=e(80334),Pe=e(44958),$e=e(68929),at=e.n($e);function ut(_,D){(0,Ie.ZP)(_,"[@ant-design/icons] ".concat(D))}function Ue(_){return(0,m.Z)(_)==="object"&&typeof _.name=="string"&&typeof _.theme=="string"&&((0,m.Z)(_.icon)==="object"||typeof _.icon=="function")}function Ye(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(_).reduce(function(D,te){var be=_[te];switch(te){case"class":D.className=be,delete D.class;break;default:delete D[te],D[at()(te)]=be}return D},{})}function Xe(_,D,te){return te?s.createElement(_.tag,(0,t.Z)((0,t.Z)({key:D},Ye(_.attrs)),te),(_.children||[]).map(function(be,ge){return Xe(be,"".concat(D,"-").concat(_.tag,"-").concat(ge))})):s.createElement(_.tag,(0,t.Z)({key:D},Ye(_.attrs)),(_.children||[]).map(function(be,ge){return Xe(be,"".concat(D,"-").concat(_.tag,"-").concat(ge))}))}function Fe(_){return H(_)[0]}function Je(_){return _?Array.isArray(_)?_:[_]:[]}var Le={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},qe=` -.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); - } -} -`,ze=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qe,te=(0,s.useContext)(d),be=te.csp;(0,s.useEffect)(function(){(0,Pe.hq)(D,"@ant-design-icons",{prepend:!0,csp:be})},[])},ie=["icon","className","onClick","style","primaryColor","secondaryColor"],W={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function re(_){var D=_.primaryColor,te=_.secondaryColor;W.primaryColor=D,W.secondaryColor=te||Fe(D),W.calculated=!!te}function x(){return(0,t.Z)({},W)}var oe=function(D){var te=D.icon,be=D.className,ge=D.onClick,ye=D.style,Ne=D.primaryColor,ke=D.secondaryColor,We=(0,a.Z)(D,ie),je=W;if(Ne&&(je={primaryColor:Ne,secondaryColor:ke||Fe(Ne)}),ze(),ut(Ue(te),"icon should be icon definiton, but got ".concat(te)),!Ue(te))return null;var Ve=te;return Ve&&typeof Ve.icon=="function"&&(Ve=(0,t.Z)((0,t.Z)({},Ve),{},{icon:Ve.icon(je.primaryColor,je.secondaryColor)})),Xe(Ve.icon,"svg-".concat(Ve.name),(0,t.Z)({className:be,onClick:ge,style:ye,"data-icon":Ve.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},We))};oe.displayName="IconReact",oe.getTwoToneColors=x,oe.setTwoToneColors=re;var ve=oe;function he(_){var D=Je(_),te=(0,r.Z)(D,2),be=te[0],ge=te[1];return ve.setTwoToneColors({primaryColor:be,secondaryColor:ge})}function w(){var _=ve.getTwoToneColors();return _.calculated?[_.primaryColor,_.secondaryColor]:_.primaryColor}var S=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];he("#1890ff");var j=s.forwardRef(function(_,D){var te=_.className,be=_.icon,ge=_.spin,ye=_.rotate,Ne=_.tabIndex,ke=_.onClick,We=_.twoToneColor,je=(0,a.Z)(_,S),Ve=s.useContext(d),mt=Ve.prefixCls,Pt=mt===void 0?"anticon":mt,bt=Ve.rootClassName,_t=c()(bt,Pt,(0,o.Z)((0,o.Z)({},"".concat(Pt,"-").concat(be.name),!!be.name),"".concat(Pt,"-spin"),!!ge||be.name==="loading"),te),Dt=Ne;Dt===void 0&&ke&&(Dt=-1);var Rt=ye?{msTransform:"rotate(".concat(ye,"deg)"),transform:"rotate(".concat(ye,"deg)")}:void 0,Ht=Je(We),$t=(0,r.Z)(Ht,2),vn=$t[0],mn=$t[1];return s.createElement("span",(0,t.Z)((0,t.Z)({role:"img","aria-label":be.name},je),{},{ref:D,tabIndex:Dt,onClick:ke,className:_t}),s.createElement(ve,{icon:be,primaryColor:vn,secondaryColor:mn,style:Rt}))});j.displayName="AntdIcon",j.getTwoToneColor=w,j.setTwoToneColor=he;var B=j},92443:function(v,p,e){"use strict";e.d(p,{Z:function(){return l}});var t=e(1413),r=e(67294),o={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=o,s=e(89099),u=function(m,b){return r.createElement(s.Z,(0,t.Z)((0,t.Z)({},m),{},{ref:b,icon:a}))},c=r.forwardRef(u),l=c},51042:function(v,p,e){"use strict";var t=e(1413),r=e(67294),o=e(42110),a=e(89099),s=function(l,d){return r.createElement(a.Z,(0,t.Z)((0,t.Z)({},l),{},{ref:d,icon:o.Z}))},u=r.forwardRef(s);p.Z=u},48489:function(v,p,e){"use strict";e.d(p,{Z:function(){return l}});var t=e(1413),r=e(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M764 280.9c-14-30.6-33.9-58.1-59.3-81.6C653.1 151.4 584.6 125 512 125s-141.1 26.4-192.7 74.2c-25.4 23.6-45.3 51-59.3 81.7-14.6 32-22 65.9-22 100.9v27c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-27c0-99.5 88.6-180.4 197.6-180.4s197.6 80.9 197.6 180.4c0 40.8-14.5 79.2-42 111.2-27.2 31.7-65.6 54.4-108.1 64-24.3 5.5-46.2 19.2-61.7 38.8a110.85 110.85 0 00-23.9 68.6v31.4c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-31.4c0-15.7 10.9-29.5 26-32.9 58.4-13.2 111.4-44.7 149.3-88.7 19.1-22.3 34-47.1 44.3-74 10.7-27.9 16.1-57.2 16.1-87 0-35-7.4-69-22-100.9zM512 787c-30.9 0-56 25.1-56 56s25.1 56 56 56 56-25.1 56-56-25.1-56-56-56z"}}]},name:"question",theme:"outlined"},a=o,s=e(89099),u=function(m,b){return r.createElement(s.Z,(0,t.Z)((0,t.Z)({},m),{},{ref:b,icon:a}))},c=r.forwardRef(u),l=c},50228:function(v,p,e){"use strict";e.d(p,{Z:function(){return l}});var t=e(1413),r=e(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},a=o,s=e(89099),u=function(m,b){return r.createElement(s.Z,(0,t.Z)((0,t.Z)({},m),{},{ref:b,icon:a}))},c=r.forwardRef(u),l=c},43425:function(v,p,e){"use strict";var t=e(1413),r=e(67294),o=e(34689),a=e(89099),s=function(l,d){return r.createElement(a.Z,(0,t.Z)((0,t.Z)({},l),{},{ref:d,icon:o.Z}))},u=r.forwardRef(s);p.Z=u},87547:function(v,p,e){"use strict";e.d(p,{Z:function(){return l}});var t=e(1413),r=e(67294),o={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=o,s=e(89099),u=function(m,b){return r.createElement(s.Z,(0,t.Z)((0,t.Z)({},m),{},{ref:b,icon:a}))},c=r.forwardRef(u),l=c},87909:function(v,p,e){"use strict";e.d(p,{q:function(){return O}});var t=e(1413),r=e(87462),o=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"},s=a,u=e(65555),c=function(Z,Q){return o.createElement(u.Z,(0,r.Z)({},Z,{ref:Q,icon:s}))},l=o.forwardRef(c),d=l,m=e(21612),b=e(28459),y=e(93967),f=e.n(y),E=e(4942),R=e(98082),T=function(Z){return(0,E.Z)({},Z.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:Z.colorTextSecondary,"&-link":{color:Z.colorTextSecondary,textDecoration:Z.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:Z.colorPrimary}},"&-copyright":{fontSize:"14px",color:Z.colorText}})};function C($){return(0,R.Xj)("ProLayoutFooter",function(Z){var Q=(0,t.Z)((0,t.Z)({},Z),{},{componentCls:".".concat($)});return[T(Q)]})}var M=e(85893),P=function(Z){var Q=Z.className,U=Z.prefixCls,Y=Z.links,H=Z.copyright,G=Z.style,J=(0,o.useContext)(b.ZP.ConfigContext),X=J.getPrefixCls(U||"pro-global-footer"),V=C(X),q=V.wrapSSR,z=V.hashId;return(Y==null||Y===!1||Array.isArray(Y)&&Y.length===0)&&(H==null||H===!1)?null:q((0,M.jsxs)("div",{className:f()(X,z,Q),style:G,children:[Y&&(0,M.jsx)("div",{className:"".concat(X,"-list ").concat(z).trim(),children:Y.map(function(k){return(0,M.jsx)("a",{className:"".concat(X,"-list-link ").concat(z).trim(),title:k.key,target:k.blankTarget?"_blank":"_self",href:k.href,rel:"noreferrer",children:k.title},k.key)})}),H&&(0,M.jsx)("div",{className:"".concat(X,"-copyright ").concat(z).trim(),children:H})]}))},A=m.Z.Footer,O=function(Z){var Q=Z.links,U=Z.copyright,Y=Z.style,H=Z.className,G=Z.prefixCls;return(0,M.jsx)(A,{className:H,style:(0,t.Z)({padding:0},Y),children:(0,M.jsx)(P,{links:Q,prefixCls:G,copyright:U===!1?null:(0,M.jsxs)(o.Fragment,{children:[(0,M.jsx)(d,{})," ",U]})})})}},65555:function(v,p,e){"use strict";e.d(p,{Z:function(){return $}});var t=e(87462),r=e(97685),o=e(4942),a=e(91),s=e(67294),u=e(93967),c=e.n(u),l=e(84898),d=e(2446),m=e(1413),b=e(14004),y=["icon","className","onClick","style","primaryColor","secondaryColor"],f={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function E(Z){var Q=Z.primaryColor,U=Z.secondaryColor;f.primaryColor=Q,f.secondaryColor=U||(0,b.pw)(Q),f.calculated=!!U}function R(){return(0,m.Z)({},f)}var T=function(Q){var U=Q.icon,Y=Q.className,H=Q.onClick,G=Q.style,J=Q.primaryColor,X=Q.secondaryColor,V=(0,a.Z)(Q,y),q=s.useRef(),z=f;if(J&&(z={primaryColor:J,secondaryColor:X||(0,b.pw)(J)}),(0,b.C3)(q),(0,b.Kp)((0,b.r)(U),"icon should be icon definiton, but got ".concat(U)),!(0,b.r)(U))return null;var k=U;return k&&typeof k.icon=="function"&&(k=(0,m.Z)((0,m.Z)({},k),{},{icon:k.icon(z.primaryColor,z.secondaryColor)})),(0,b.R_)(k.icon,"svg-".concat(k.name),(0,m.Z)((0,m.Z)({className:Y,onClick:H,style:G,"data-icon":k.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},V),{},{ref:q}))};T.displayName="IconReact",T.getTwoToneColors=R,T.setTwoToneColors=E;var C=T;function M(Z){var Q=(0,b.H9)(Z),U=(0,r.Z)(Q,2),Y=U[0],H=U[1];return C.setTwoToneColors({primaryColor:Y,secondaryColor:H})}function P(){var Z=C.getTwoToneColors();return Z.calculated?[Z.primaryColor,Z.secondaryColor]:Z.primaryColor}var A=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];M(l.iN.primary);var O=s.forwardRef(function(Z,Q){var U=Z.className,Y=Z.icon,H=Z.spin,G=Z.rotate,J=Z.tabIndex,X=Z.onClick,V=Z.twoToneColor,q=(0,a.Z)(Z,A),z=s.useContext(d.Z),k=z.prefixCls,L=k===void 0?"anticon":k,F=z.rootClassName,N=c()(F,L,(0,o.Z)((0,o.Z)({},"".concat(L,"-").concat(Y.name),!!Y.name),"".concat(L,"-spin"),!!H||Y.name==="loading"),U),ee=J;ee===void 0&&X&&(ee=-1);var ce=G?{msTransform:"rotate(".concat(G,"deg)"),transform:"rotate(".concat(G,"deg)")}:void 0,le=(0,b.H9)(V),se=(0,r.Z)(le,2),fe=se[0],xe=se[1];return s.createElement("span",(0,t.Z)({role:"img","aria-label":Y.name},q,{ref:Q,tabIndex:ee,onClick:X,className:N}),s.createElement(C,{icon:Y,primaryColor:fe,secondaryColor:xe,style:ce}))});O.displayName="AntdIcon",O.getTwoToneColor=P,O.setTwoToneColor=M;var $=O},2446:function(v,p,e){"use strict";var t=e(67294),r=(0,t.createContext)({});p.Z=r},14004:function(v,p,e){"use strict";e.d(p,{C3:function(){return M},H9:function(){return R},Kp:function(){return m},R_:function(){return f},pw:function(){return E},r:function(){return b},vD:function(){return T}});var t=e(1413),r=e(71002),o=e(84898),a=e(44958),s=e(27571),u=e(80334),c=e(67294),l=e(2446);function d(P){return P.replace(/-(.)/g,function(A,O){return O.toUpperCase()})}function m(P,A){(0,u.ZP)(P,"[@ant-design/icons] ".concat(A))}function b(P){return(0,r.Z)(P)==="object"&&typeof P.name=="string"&&typeof P.theme=="string"&&((0,r.Z)(P.icon)==="object"||typeof P.icon=="function")}function y(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(P).reduce(function(A,O){var $=P[O];switch(O){case"class":A.className=$,delete A.class;break;default:delete A[O],A[d(O)]=$}return A},{})}function f(P,A,O){return O?c.createElement(P.tag,(0,t.Z)((0,t.Z)({key:A},y(P.attrs)),O),(P.children||[]).map(function($,Z){return f($,"".concat(A,"-").concat(P.tag,"-").concat(Z))})):c.createElement(P.tag,(0,t.Z)({key:A},y(P.attrs)),(P.children||[]).map(function($,Z){return f($,"".concat(A,"-").concat(P.tag,"-").concat(Z))}))}function E(P){return(0,o.R_)(P)[0]}function R(P){return P?Array.isArray(P)?P:[P]:[]}var T={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},C=` -.anticon { - display: inline-flex; - align-items: 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); - } -} -`,M=function(A){var O=(0,c.useContext)(l.Z),$=O.csp,Z=O.prefixCls,Q=C;Z&&(Q=Q.replace(/anticon/g,Z)),(0,c.useEffect)(function(){var U=A.current,Y=(0,s.A)(U);(0,a.hq)(Q,"@ant-design-icons",{prepend:!0,csp:$,attachTo:Y})},[])}},10915:function(v,p,e){"use strict";e.d(p,{_Y:function(){return J},L_:function(){return V},ZP:function(){return q},nu:function(){return Q},YB:function(){return X}});var t=e(74902),r=e(97685),o=e(91),a=e(1413),s=e(85982),u=e(28459),c=e(37029),l=e(67294),d=e(81758),m=e(32818),b=e(27484),y=e.n(b),f=e(98082),E=function(k,L){var F,N,ee,ce,le,se=(0,a.Z)({},k);return(0,a.Z)((0,a.Z)({bgLayout:"linear-gradient(".concat(L.colorBgContainer,", ").concat(L.colorBgLayout," 28%)"),colorTextAppListIcon:L.colorTextSecondary,appListIconHoverBgColor:se==null||(F=se.sider)===null||F===void 0?void 0:F.colorBgMenuItemSelected,colorBgAppListIconHover:(0,f.uK)(L.colorTextBase,.04),colorTextAppListIconHover:L.colorTextBase},se),{},{header:(0,a.Z)({colorBgHeader:(0,f.uK)(L.colorBgElevated,.6),colorBgScrollHeader:(0,f.uK)(L.colorBgElevated,.8),colorHeaderTitle:L.colorText,colorBgMenuItemHover:(0,f.uK)(L.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(se==null||(N=se.header)===null||N===void 0?void 0:N.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(ee=se.header)===null||ee===void 0?void 0:ee.colorBgHeader:L.colorBgElevated,colorTextMenuSelected:(0,f.uK)(L.colorTextBase,.95),colorBgRightActionsItemHover:(0,f.uK)(L.colorTextBase,.03),colorTextRightActionsItem:L.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:L.colorTextSecondary,colorTextMenuSecondary:L.colorTextTertiary,colorTextMenuTitle:L.colorText,colorTextMenuActive:L.colorText},se.header),sider:(0,a.Z)({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:L.colorBgElevated,colorTextCollapsedButtonHover:L.colorTextSecondary,colorTextCollapsedButton:(0,f.uK)(L.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:(0,f.uK)(L.colorTextBase,.06),colorBgMenuItemHover:(0,f.uK)(L.colorTextBase,.03),colorBgMenuItemSelected:(0,f.uK)(L.colorTextBase,.04),colorTextMenuItemHover:L.colorText,colorTextMenuSelected:(0,f.uK)(L.colorTextBase,.95),colorTextMenuActive:L.colorText,colorTextMenu:L.colorTextSecondary,colorTextMenuSecondary:L.colorTextTertiary,colorTextMenuTitle:L.colorText,colorTextSubMenuSelected:(0,f.uK)(L.colorTextBase,.95)},se.sider),pageContainer:(0,a.Z)({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((ce=se.pageContainer)===null||ce===void 0?void 0:ce.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((le=se.pageContainer)===null||le===void 0?void 0:le.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:L.colorBgElevated},se.pageContainer)})},R=e(67804),T=e(71002),C=function(){for(var k={},L=arguments.length,F=new Array(L),N=0;N1&&arguments[1]!==void 0?arguments[1]:1,f=3735928559^y,E=1103547991^y,R=0,T;R>>16,2246822507)^Math.imul(E^E>>>13,3266489909),E=Math.imul(E^E>>>16,2246822507)^Math.imul(f^f>>>13,3266489909),4294967296*(2097151&E)+(f>>>0)},c=(0,r.jG)(function(m){return m}),l={theme:c,token:(0,t.Z)((0,t.Z)({},s),o.Z===null||o.Z===void 0||(a=o.Z.defaultAlgorithm)===null||a===void 0?void 0:a.call(o.Z,o.Z===null||o.Z===void 0?void 0:o.Z.defaultSeed)),hashId:"pro-".concat(u(JSON.stringify(s)))},d=function(){return l}},92879:function(v,p,e){"use strict";e.d(p,{l:function(){return o}});var t=e(80298),r=e(9361),o=function(s){var u=r.Z.useToken();return(0,t.iv)(s(u))}},86500:function(v,p,e){"use strict";e.d(p,{T6:function(){return y},VD:function(){return f},WE:function(){return c},Yt:function(){return E},lC:function(){return o},py:function(){return u},rW:function(){return r},s:function(){return d},ve:function(){return s},vq:function(){return l}});var t=e(90279);function r(R,T,C){return{r:(0,t.sh)(R,255)*255,g:(0,t.sh)(T,255)*255,b:(0,t.sh)(C,255)*255}}function o(R,T,C){R=(0,t.sh)(R,255),T=(0,t.sh)(T,255),C=(0,t.sh)(C,255);var M=Math.max(R,T,C),P=Math.min(R,T,C),A=0,O=0,$=(M+P)/2;if(M===P)O=0,A=0;else{var Z=M-P;switch(O=$>.5?Z/(2-M-P):Z/(M+P),M){case R:A=(T-C)/Z+(T1&&(C-=1),C<.16666666666666666?R+(T-R)*(6*C):C<.5?T:C<.6666666666666666?R+(T-R)*(.6666666666666666-C)*6:R}function s(R,T,C){var M,P,A;if(R=(0,t.sh)(R,360),T=(0,t.sh)(T,100),C=(0,t.sh)(C,100),T===0)P=C,A=C,M=C;else{var O=C<.5?C*(1+T):C+T-C*T,$=2*C-O;M=a($,O,R+.3333333333333333),P=a($,O,R),A=a($,O,R-.3333333333333333)}return{r:M*255,g:P*255,b:A*255}}function u(R,T,C){R=(0,t.sh)(R,255),T=(0,t.sh)(T,255),C=(0,t.sh)(C,255);var M=Math.max(R,T,C),P=Math.min(R,T,C),A=0,O=M,$=M-P,Z=M===0?0:$/M;if(M===P)A=0;else{switch(M){case R:A=(T-C)/$+(T>16,g:(R&65280)>>8,b:R&255}}},48701:function(v,p,e){"use strict";e.d(p,{R:function(){return t}});var t={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 t=e(86500),r=e(48701),o=e(90279);function a(f){var E={r:0,g:0,b:0},R=1,T=null,C=null,M=null,P=!1,A=!1;return typeof f=="string"&&(f=b(f)),typeof f=="object"&&(y(f.r)&&y(f.g)&&y(f.b)?(E=(0,t.rW)(f.r,f.g,f.b),P=!0,A=String(f.r).substr(-1)==="%"?"prgb":"rgb"):y(f.h)&&y(f.s)&&y(f.v)?(T=(0,o.JX)(f.s),C=(0,o.JX)(f.v),E=(0,t.WE)(f.h,T,C),P=!0,A="hsv"):y(f.h)&&y(f.s)&&y(f.l)&&(T=(0,o.JX)(f.s),M=(0,o.JX)(f.l),E=(0,t.ve)(f.h,T,M),P=!0,A="hsl"),Object.prototype.hasOwnProperty.call(f,"a")&&(R=f.a)),R=(0,o.Yq)(R),{ok:P,format:f.format||A,r:Math.min(255,Math.max(E.r,0)),g:Math.min(255,Math.max(E.g,0)),b:Math.min(255,Math.max(E.b,0)),a:R}}var s="[-\\+]?\\d+%?",u="[-\\+]?\\d*\\.\\d+%?",c="(?:".concat(u,")|(?:").concat(s,")"),l="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),d="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),m={CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+l),rgba:new RegExp("rgba"+d),hsl:new RegExp("hsl"+l),hsla:new RegExp("hsla"+d),hsv:new RegExp("hsv"+l),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 b(f){if(f=f.trim().toLowerCase(),f.length===0)return!1;var E=!1;if(r.R[f])f=r.R[f],E=!0;else if(f==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var R=m.rgb.exec(f);return R?{r:R[1],g:R[2],b:R[3]}:(R=m.rgba.exec(f),R?{r:R[1],g:R[2],b:R[3],a:R[4]}:(R=m.hsl.exec(f),R?{h:R[1],s:R[2],l:R[3]}:(R=m.hsla.exec(f),R?{h:R[1],s:R[2],l:R[3],a:R[4]}:(R=m.hsv.exec(f),R?{h:R[1],s:R[2],v:R[3]}:(R=m.hsva.exec(f),R?{h:R[1],s:R[2],v:R[3],a:R[4]}:(R=m.hex8.exec(f),R?{r:(0,t.VD)(R[1]),g:(0,t.VD)(R[2]),b:(0,t.VD)(R[3]),a:(0,t.T6)(R[4]),format:E?"name":"hex8"}:(R=m.hex6.exec(f),R?{r:(0,t.VD)(R[1]),g:(0,t.VD)(R[2]),b:(0,t.VD)(R[3]),format:E?"name":"hex"}:(R=m.hex4.exec(f),R?{r:(0,t.VD)(R[1]+R[1]),g:(0,t.VD)(R[2]+R[2]),b:(0,t.VD)(R[3]+R[3]),a:(0,t.T6)(R[4]+R[4]),format:E?"name":"hex8"}:(R=m.hex3.exec(f),R?{r:(0,t.VD)(R[1]+R[1]),g:(0,t.VD)(R[2]+R[2]),b:(0,t.VD)(R[3]+R[3]),format:E?"name":"hex"}:!1)))))))))}function y(f){return!!m.CSS_UNIT.exec(String(f))}},10274:function(v,p,e){"use strict";e.d(p,{C:function(){return s}});var t=e(86500),r=e(48701),o=e(1350),a=e(90279),s=function(){function c(l,d){l===void 0&&(l=""),d===void 0&&(d={});var m;if(l instanceof c)return l;typeof l=="number"&&(l=(0,t.Yt)(l)),this.originalInput=l;var b=(0,o.uA)(l);this.originalInput=l,this.r=b.r,this.g=b.g,this.b=b.b,this.a=b.a,this.roundA=Math.round(100*this.a)/100,this.format=(m=d.format)!==null&&m!==void 0?m:b.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=b.ok}return c.prototype.isDark=function(){return this.getBrightness()<128},c.prototype.isLight=function(){return!this.isDark()},c.prototype.getBrightness=function(){var l=this.toRgb();return(l.r*299+l.g*587+l.b*114)/1e3},c.prototype.getLuminance=function(){var l=this.toRgb(),d,m,b,y=l.r/255,f=l.g/255,E=l.b/255;return y<=.03928?d=y/12.92:d=Math.pow((y+.055)/1.055,2.4),f<=.03928?m=f/12.92:m=Math.pow((f+.055)/1.055,2.4),E<=.03928?b=E/12.92:b=Math.pow((E+.055)/1.055,2.4),.2126*d+.7152*m+.0722*b},c.prototype.getAlpha=function(){return this.a},c.prototype.setAlpha=function(l){return this.a=(0,a.Yq)(l),this.roundA=Math.round(100*this.a)/100,this},c.prototype.isMonochrome=function(){var l=this.toHsl().s;return l===0},c.prototype.toHsv=function(){var l=(0,t.py)(this.r,this.g,this.b);return{h:l.h*360,s:l.s,v:l.v,a:this.a}},c.prototype.toHsvString=function(){var l=(0,t.py)(this.r,this.g,this.b),d=Math.round(l.h*360),m=Math.round(l.s*100),b=Math.round(l.v*100);return this.a===1?"hsv(".concat(d,", ").concat(m,"%, ").concat(b,"%)"):"hsva(".concat(d,", ").concat(m,"%, ").concat(b,"%, ").concat(this.roundA,")")},c.prototype.toHsl=function(){var l=(0,t.lC)(this.r,this.g,this.b);return{h:l.h*360,s:l.s,l:l.l,a:this.a}},c.prototype.toHslString=function(){var l=(0,t.lC)(this.r,this.g,this.b),d=Math.round(l.h*360),m=Math.round(l.s*100),b=Math.round(l.l*100);return this.a===1?"hsl(".concat(d,", ").concat(m,"%, ").concat(b,"%)"):"hsla(".concat(d,", ").concat(m,"%, ").concat(b,"%, ").concat(this.roundA,")")},c.prototype.toHex=function(l){return l===void 0&&(l=!1),(0,t.vq)(this.r,this.g,this.b,l)},c.prototype.toHexString=function(l){return l===void 0&&(l=!1),"#"+this.toHex(l)},c.prototype.toHex8=function(l){return l===void 0&&(l=!1),(0,t.s)(this.r,this.g,this.b,this.a,l)},c.prototype.toHex8String=function(l){return l===void 0&&(l=!1),"#"+this.toHex8(l)},c.prototype.toHexShortString=function(l){return l===void 0&&(l=!1),this.a===1?this.toHexString(l):this.toHex8String(l)},c.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},c.prototype.toRgbString=function(){var l=Math.round(this.r),d=Math.round(this.g),m=Math.round(this.b);return this.a===1?"rgb(".concat(l,", ").concat(d,", ").concat(m,")"):"rgba(".concat(l,", ").concat(d,", ").concat(m,", ").concat(this.roundA,")")},c.prototype.toPercentageRgb=function(){var l=function(d){return"".concat(Math.round((0,a.sh)(d,255)*100),"%")};return{r:l(this.r),g:l(this.g),b:l(this.b),a:this.a}},c.prototype.toPercentageRgbString=function(){var l=function(d){return Math.round((0,a.sh)(d,255)*100)};return this.a===1?"rgb(".concat(l(this.r),"%, ").concat(l(this.g),"%, ").concat(l(this.b),"%)"):"rgba(".concat(l(this.r),"%, ").concat(l(this.g),"%, ").concat(l(this.b),"%, ").concat(this.roundA,")")},c.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var l="#"+(0,t.vq)(this.r,this.g,this.b,!1),d=0,m=Object.entries(r.R);d=0,y=!d&&b&&(l.startsWith("hex")||l==="name");return y?l==="name"&&this.a===0?this.toName():this.toRgbString():(l==="rgb"&&(m=this.toRgbString()),l==="prgb"&&(m=this.toPercentageRgbString()),(l==="hex"||l==="hex6")&&(m=this.toHexString()),l==="hex3"&&(m=this.toHexString(!0)),l==="hex4"&&(m=this.toHex8String(!0)),l==="hex8"&&(m=this.toHex8String()),l==="name"&&(m=this.toName()),l==="hsl"&&(m=this.toHslString()),l==="hsv"&&(m=this.toHsvString()),m||this.toHexString())},c.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},c.prototype.clone=function(){return new c(this.toString())},c.prototype.lighten=function(l){l===void 0&&(l=10);var d=this.toHsl();return d.l+=l/100,d.l=(0,a.V2)(d.l),new c(d)},c.prototype.brighten=function(l){l===void 0&&(l=10);var d=this.toRgb();return d.r=Math.max(0,Math.min(255,d.r-Math.round(255*-(l/100)))),d.g=Math.max(0,Math.min(255,d.g-Math.round(255*-(l/100)))),d.b=Math.max(0,Math.min(255,d.b-Math.round(255*-(l/100)))),new c(d)},c.prototype.darken=function(l){l===void 0&&(l=10);var d=this.toHsl();return d.l-=l/100,d.l=(0,a.V2)(d.l),new c(d)},c.prototype.tint=function(l){return l===void 0&&(l=10),this.mix("white",l)},c.prototype.shade=function(l){return l===void 0&&(l=10),this.mix("black",l)},c.prototype.desaturate=function(l){l===void 0&&(l=10);var d=this.toHsl();return d.s-=l/100,d.s=(0,a.V2)(d.s),new c(d)},c.prototype.saturate=function(l){l===void 0&&(l=10);var d=this.toHsl();return d.s+=l/100,d.s=(0,a.V2)(d.s),new c(d)},c.prototype.greyscale=function(){return this.desaturate(100)},c.prototype.spin=function(l){var d=this.toHsl(),m=(d.h+l)%360;return d.h=m<0?360+m:m,new c(d)},c.prototype.mix=function(l,d){d===void 0&&(d=50);var m=this.toRgb(),b=new c(l).toRgb(),y=d/100,f={r:(b.r-m.r)*y+m.r,g:(b.g-m.g)*y+m.g,b:(b.b-m.b)*y+m.b,a:(b.a-m.a)*y+m.a};return new c(f)},c.prototype.analogous=function(l,d){l===void 0&&(l=6),d===void 0&&(d=30);var m=this.toHsl(),b=360/d,y=[this];for(m.h=(m.h-(b*l>>1)+720)%360;--l;)m.h=(m.h+b)%360,y.push(new c(m));return y},c.prototype.complement=function(){var l=this.toHsl();return l.h=(l.h+180)%360,new c(l)},c.prototype.monochromatic=function(l){l===void 0&&(l=6);for(var d=this.toHsv(),m=d.h,b=d.s,y=d.v,f=[],E=1/l;l--;)f.push(new c({h:m,s:b,v:y})),y=(y+E)%1;return f},c.prototype.splitcomplement=function(){var l=this.toHsl(),d=l.h;return[this,new c({h:(d+72)%360,s:l.s,l:l.l}),new c({h:(d+216)%360,s:l.s,l:l.l})]},c.prototype.onBackground=function(l){var d=this.toRgb(),m=new c(l).toRgb(),b=d.a+m.a*(1-d.a);return new c({r:(d.r*d.a+m.r*m.a*(1-d.a))/b,g:(d.g*d.a+m.g*m.a*(1-d.a))/b,b:(d.b*d.a+m.b*m.a*(1-d.a))/b,a:b})},c.prototype.triad=function(){return this.polyad(3)},c.prototype.tetrad=function(){return this.polyad(4)},c.prototype.polyad=function(l){for(var d=this.toHsl(),m=d.h,b=[this],y=360/l,f=1;f1)&&(l=1),l}function u(l){return l<=1?"".concat(Number(l)*100,"%"):l}function c(l){return l.length===1?"0"+l:String(l)}},80298:function(v,p,e){"use strict";e.d(p,{iv:function(){return w},cx:function(){return re}});function t(B){if(B.sheet)return B.sheet;for(var _=0;_-1},M=function(_){return function(D,te,be){if(!(D.type!=="rule"||_.compat)){var ge=D.value.match(/(:first|:nth|:nth-last)-child/g);if(ge){for(var ye=!!D.parent,Ne=ye?D.parent.children:be,ke=Ne.length-1;ke>=0;ke--){var We=Ne[ke];if(We.line=0;te--)if(!P(D[te]))return!0;return!1},O=function(_){_.type="",_.value="",_.return="",_.children="",_.props=""},$=function(_,D,te){P(_)&&(_.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."),O(_)):A(D,te)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),O(_)))};function Z(B,_){switch((0,s.vp)(B,_)){case 5103:return u.G$+"print-"+B+B;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 u.G$+B+B;case 5349:case 4246:case 4810:case 6968:case 2756:return u.G$+B+u.uj+B+u.MS+B+B;case 6828:case 4268:return u.G$+B+u.MS+B+B;case 6165:return u.G$+B+u.MS+"flex-"+B+B;case 5187:return u.G$+B+(0,s.gx)(B,/(\w+).+(:[^]+)/,u.G$+"box-$1$2"+u.MS+"flex-$1$2")+B;case 5443:return u.G$+B+u.MS+"flex-item-"+(0,s.gx)(B,/flex-|-self/,"")+B;case 4675:return u.G$+B+u.MS+"flex-line-pack"+(0,s.gx)(B,/align-content|flex-|-self/,"")+B;case 5548:return u.G$+B+u.MS+(0,s.gx)(B,"shrink","negative")+B;case 5292:return u.G$+B+u.MS+(0,s.gx)(B,"basis","preferred-size")+B;case 6060:return u.G$+"box-"+(0,s.gx)(B,"-grow","")+u.G$+B+u.MS+(0,s.gx)(B,"grow","positive")+B;case 4554:return u.G$+(0,s.gx)(B,/([^-])(transform)/g,"$1"+u.G$+"$2")+B;case 6187:return(0,s.gx)((0,s.gx)((0,s.gx)(B,/(zoom-|grab)/,u.G$+"$1"),/(image-set)/,u.G$+"$1"),B,"")+B;case 5495:case 3959:return(0,s.gx)(B,/(image-set\([^]*)/,u.G$+"$1$`$1");case 4968:return(0,s.gx)((0,s.gx)(B,/(.+:)(flex-)?(.*)/,u.G$+"box-pack:$3"+u.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+u.G$+B+B;case 4095:case 3583:case 4068:case 2532:return(0,s.gx)(B,/(.+)-inline(.+)/,u.G$+"$1$2")+B;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((0,s.to)(B)-1-_>6)switch((0,s.uO)(B,_+1)){case 109:if((0,s.uO)(B,_+4)!==45)break;case 102:return(0,s.gx)(B,/(.+:)(.+)-([^]+)/,"$1"+u.G$+"$2-$3$1"+u.uj+((0,s.uO)(B,_+3)==108?"$3":"$2-$3"))+B;case 115:return~(0,s.Cw)(B,"stretch")?Z((0,s.gx)(B,"stretch","fill-available"),_)+B:B}break;case 4949:if((0,s.uO)(B,_+1)!==115)break;case 6444:switch((0,s.uO)(B,(0,s.to)(B)-3-(~(0,s.Cw)(B,"!important")&&10))){case 107:return(0,s.gx)(B,":",":"+u.G$)+B;case 101:return(0,s.gx)(B,/(.+:)([^;!]+)(;|!.+)?/,"$1"+u.G$+((0,s.uO)(B,14)===45?"inline-":"")+"box$3$1"+u.G$+"$2$3$1"+u.MS+"$2box$3")+B}break;case 5936:switch((0,s.uO)(B,_+11)){case 114:return u.G$+B+u.MS+(0,s.gx)(B,/[svh]\w+-[tblr]{2}/,"tb")+B;case 108:return u.G$+B+u.MS+(0,s.gx)(B,/[svh]\w+-[tblr]{2}/,"tb-rl")+B;case 45:return u.G$+B+u.MS+(0,s.gx)(B,/[svh]\w+-[tblr]{2}/,"lr")+B}return u.G$+B+u.MS+B+B}return B}var Q=function(_,D,te,be){if(_.length>-1&&!_.return)switch(_.type){case u.h5:_.return=Z(_.value,_.length);break;case u.lK:return(0,c.q)([(0,a.JG)(_,{value:(0,s.gx)(_.value,"@","@"+u.G$)})],be);case u.Fr:if(_.length)return(0,s.$e)(_.props,function(ge){switch((0,s.EQ)(ge,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,c.q)([(0,a.JG)(_,{props:[(0,s.gx)(ge,/:(read-\w+)/,":"+u.uj+"$1")]})],be);case"::placeholder":return(0,c.q)([(0,a.JG)(_,{props:[(0,s.gx)(ge,/:(plac\w+)/,":"+u.G$+"input-$1")]}),(0,a.JG)(_,{props:[(0,s.gx)(ge,/:(plac\w+)/,":"+u.uj+"$1")]}),(0,a.JG)(_,{props:[(0,s.gx)(ge,/:(plac\w+)/,u.MS+"input-$1")]})],be)}return""})}},U=[Q],Y=function(_){var D=_.key;if(D==="css"){var te=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(te,function(_t){var Dt=_t.getAttribute("data-emotion");Dt.indexOf(" ")!==-1&&(document.head.appendChild(_t),_t.setAttribute("data-s",""))})}var be=_.stylisPlugins||U,ge={},ye,Ne=[];ye=_.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+D+' "]'),function(_t){for(var Dt=_t.getAttribute("data-emotion").split(" "),Rt=1;Rt=4;++te,be-=4)D=B.charCodeAt(te)&255|(B.charCodeAt(++te)&255)<<8|(B.charCodeAt(++te)&255)<<16|(B.charCodeAt(++te)&255)<<24,D=(D&65535)*1540483477+((D>>>16)*59797<<16),D^=D>>>24,_=(D&65535)*1540483477+((D>>>16)*59797<<16)^(_&65535)*1540483477+((_>>>16)*59797<<16);switch(be){case 3:_^=(B.charCodeAt(te+2)&255)<<16;case 2:_^=(B.charCodeAt(te+1)&255)<<8;case 1:_^=B.charCodeAt(te)&255,_=(_&65535)*1540483477+((_>>>16)*59797<<16)}return _^=_>>>13,_=(_&65535)*1540483477+((_>>>16)*59797<<16),((_^_>>>15)>>>0).toString(36)}var G={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 J(B){var _=Object.create(null);return function(D){return _[D]===void 0&&(_[D]=B(D)),_[D]}}var X=`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`,V="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",q=/[A-Z]|^ms/g,z=/_EMO_([^_]+?)_([^]*?)_EMO_/g,k=function(_){return _.charCodeAt(1)===45},L=function(_){return _!=null&&typeof _!="boolean"},F=J(function(B){return k(B)?B:B.replace(q,"-$&").toLowerCase()}),N=function(_,D){switch(_){case"animation":case"animationName":if(typeof D=="string")return D.replace(z,function(te,be,ge){return Ue={name:be,styles:ge,next:Ue},be})}return G[_]!==1&&!k(_)&&typeof D=="number"&&D!==0?D+"px":D};if(0)var ee,ce,le,se,fe,xe;var Ie=null;function Pe(B,_,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 Ue={name:D.name,styles:D.styles,next:Ue},D.name;if(D.styles!==void 0){var te=D.next;if(te!==void 0)for(;te!==void 0;)Ue={name:te.name,styles:te.styles,next:Ue},te=te.next;var be=D.styles+";";return be}return $e(B,_,D)}case"function":{if(B!==void 0){var ge=Ue,ye=D(B);return Ue=ge,Pe(B,_,ye)}break}case"string":if(0)var Ne,ke;break}if(_==null)return D;var We=_[D];return We!==void 0?We:D}function $e(B,_,D){var te="";if(Array.isArray(D))for(var be=0;be(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var T="rc-util-locker-".concat(Date.now()),C=0;function M(U){var Y=!!U,H=r.useState(function(){return C+=1,"".concat(T,"_").concat(C)}),G=(0,t.Z)(H,1),J=G[0];(0,m.Z)(function(){if(Y){var X=(0,E.o)(document.body).width,V=R();(0,f.hq)(` -html body { - overflow-y: hidden; - `.concat(V?"width: calc(100% - ".concat(X,"px);"):"",` -}`),J)}else(0,f.jL)(J);return function(){(0,f.jL)(J)}},[Y,J])}var P=!1;function A(U){return typeof U=="boolean"&&(P=U),P}var O=function(Y){return Y===!1?!1:!(0,a.Z)()||!Y?null:typeof Y=="string"?document.querySelector(Y):typeof Y=="function"?Y():Y},$=r.forwardRef(function(U,Y){var H=U.open,G=U.autoLock,J=U.getContainer,X=U.debug,V=U.autoDestroy,q=V===void 0?!0:V,z=U.children,k=r.useState(H),L=(0,t.Z)(k,2),F=L[0],N=L[1],ee=F||H;r.useEffect(function(){(q||H)&&N(H)},[H,q]);var ce=r.useState(function(){return O(J)}),le=(0,t.Z)(ce,2),se=le[0],fe=le[1];r.useEffect(function(){var Je=O(J);fe(Je!=null?Je:null)});var xe=y(ee&&!se,X),Ie=(0,t.Z)(xe,2),Pe=Ie[0],$e=Ie[1],at=se!=null?se:Pe;M(G&&H&&(0,a.Z)()&&(at===Pe||at===document.body));var ut=null;if(z&&(0,u.Yr)(z)&&Y){var Ue=z;ut=Ue.ref}var Ye=(0,u.x1)(ut,Y);if(!ee||!(0,a.Z)()||se===void 0)return null;var Xe=at===!1||A(),Fe=z;return Y&&(Fe=r.cloneElement(z,{ref:Ye})),r.createElement(l.Provider,{value:$e},Xe?Fe:(0,o.createPortal)(Fe,at))}),Z=$,Q=Z},40228:function(v,p,e){"use strict";e.d(p,{Z:function(){return Xe}});var t=e(1413),r=e(97685),o=e(91),a=e(2788),s=e(93967),u=e.n(s),c=e(9220),l=e(34203),d=e(27571),m=e(66680),b=e(7028),y=e(8410),f=e(31131),E=e(67294),R=e(87462),T=e(29372),C=e(42550);function M(Fe){var Je=Fe.prefixCls,Le=Fe.align,qe=Fe.arrow,ze=Fe.arrowPos,ie=qe||{},W=ie.className,re=ie.content,x=ze.x,oe=x===void 0?0:x,ve=ze.y,he=ve===void 0?0:ve,w=E.useRef();if(!Le||!Le.points)return null;var S={position:"absolute"};if(Le.autoArrow!==!1){var j=Le.points[0],B=Le.points[1],_=j[0],D=j[1],te=B[0],be=B[1];_===te||!["t","b"].includes(_)?S.top=he:_==="t"?S.top=0:S.bottom=0,D===be||!["l","r"].includes(D)?S.left=oe:D==="l"?S.left=0:S.right=0}return E.createElement("div",{ref:w,className:u()("".concat(Je,"-arrow"),W),style:S},re)}function P(Fe){var Je=Fe.prefixCls,Le=Fe.open,qe=Fe.zIndex,ze=Fe.mask,ie=Fe.motion;return ze?E.createElement(T.ZP,(0,R.Z)({},ie,{motionAppear:!0,visible:Le,removeOnLeave:!0}),function(W){var re=W.className;return E.createElement("div",{style:{zIndex:qe},className:u()("".concat(Je,"-mask"),re)})}):null}var A=E.memo(function(Fe){var Je=Fe.children;return Je},function(Fe,Je){return Je.cache}),O=A,$=E.forwardRef(function(Fe,Je){var Le=Fe.popup,qe=Fe.className,ze=Fe.prefixCls,ie=Fe.style,W=Fe.target,re=Fe.onVisibleChanged,x=Fe.open,oe=Fe.keepDom,ve=Fe.fresh,he=Fe.onClick,w=Fe.mask,S=Fe.arrow,j=Fe.arrowPos,B=Fe.align,_=Fe.motion,D=Fe.maskMotion,te=Fe.forceRender,be=Fe.getPopupContainer,ge=Fe.autoDestroy,ye=Fe.portal,Ne=Fe.zIndex,ke=Fe.onMouseEnter,We=Fe.onMouseLeave,je=Fe.onPointerEnter,Ve=Fe.ready,mt=Fe.offsetX,Pt=Fe.offsetY,bt=Fe.offsetR,_t=Fe.offsetB,Dt=Fe.onAlign,Rt=Fe.onPrepare,Ht=Fe.stretch,$t=Fe.targetWidth,vn=Fe.targetHeight,mn=typeof Le=="function"?Le():Le,zn=x||oe,Xt=(be==null?void 0:be.length)>0,Vn=E.useState(!be||!Xt),Un=(0,r.Z)(Vn,2),_n=Un[0],Ln=Un[1];if((0,y.Z)(function(){!_n&&Xt&&W&&Ln(!0)},[_n,Xt,W]),!_n)return null;var kn="auto",Rn={left:"-1000vw",top:"-1000vh",right:kn,bottom:kn};if(Ve||!x){var Mn,$n=B.points,In=B.dynamicInset||((Mn=B._experimental)===null||Mn===void 0?void 0:Mn.dynamicInset),lr=In&&$n[0][1]==="r",yr=In&&$n[0][0]==="b";lr?(Rn.right=bt,Rn.left=kn):(Rn.left=mt,Rn.right=kn),yr?(Rn.bottom=_t,Rn.top=kn):(Rn.top=Pt,Rn.bottom=kn)}var rr={};return Ht&&(Ht.includes("height")&&vn?rr.height=vn:Ht.includes("minHeight")&&vn&&(rr.minHeight=vn),Ht.includes("width")&&$t?rr.width=$t:Ht.includes("minWidth")&&$t&&(rr.minWidth=$t)),x||(rr.pointerEvents="none"),E.createElement(ye,{open:te||zn,getContainer:be&&function(){return be(W)},autoDestroy:ge},E.createElement(P,{prefixCls:ze,open:x,zIndex:Ne,mask:w,motion:D}),E.createElement(c.Z,{onResize:Dt,disabled:!x},function(Lr){return E.createElement(T.ZP,(0,R.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:te,leavedClassName:"".concat(ze,"-hidden")},_,{onAppearPrepare:Rt,onEnterPrepare:Rt,visible:x,onVisibleChanged:function(br){var Or;_==null||(Or=_.onVisibleChanged)===null||Or===void 0||Or.call(_,br),re(br)}}),function($r,br){var Or=$r.className,Qn=$r.style,ir=u()(ze,Or,qe);return E.createElement("div",{ref:(0,C.sQ)(Lr,Je,br),className:ir,style:(0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)({"--arrow-x":"".concat(j.x||0,"px"),"--arrow-y":"".concat(j.y||0,"px")},Rn),rr),Qn),{},{boxSizing:"border-box",zIndex:Ne},ie),onMouseEnter:ke,onMouseLeave:We,onPointerEnter:je,onClick:he},S&&E.createElement(M,{prefixCls:ze,arrow:S,arrowPos:j,align:B}),E.createElement(O,{cache:!x&&!ve},mn))})}))}),Z=$,Q=E.forwardRef(function(Fe,Je){var Le=Fe.children,qe=Fe.getTriggerDOMNode,ze=(0,C.Yr)(Le),ie=E.useCallback(function(re){(0,C.mH)(Je,qe?qe(re):re)},[qe]),W=(0,C.x1)(ie,Le.ref);return ze?E.cloneElement(Le,{ref:W}):Le}),U=Q,Y=E.createContext(null),H=Y;function G(Fe){return Fe?Array.isArray(Fe)?Fe:[Fe]:[]}function J(Fe,Je,Le,qe){return E.useMemo(function(){var ze=G(Le!=null?Le:Je),ie=G(qe!=null?qe:Je),W=new Set(ze),re=new Set(ie);return Fe&&(W.has("hover")&&(W.delete("hover"),W.add("click")),re.has("hover")&&(re.delete("hover"),re.add("click"))),[W,re]},[Fe,Je,Le,qe])}var X=e(5110);function V(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Le=arguments.length>2?arguments[2]:void 0;return Le?Fe[0]===Je[0]:Fe[0]===Je[0]&&Fe[1]===Je[1]}function q(Fe,Je,Le,qe){for(var ze=Le.points,ie=Object.keys(Fe),W=0;W1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Fe)?Je:Fe}function N(Fe){return F(parseFloat(Fe),0)}function ee(Fe,Je){var Le=(0,t.Z)({},Fe);return(Je||[]).forEach(function(qe){if(!(qe instanceof HTMLBodyElement||qe instanceof HTMLHtmlElement)){var ze=k(qe).getComputedStyle(qe),ie=ze.overflow,W=ze.overflowClipMargin,re=ze.borderTopWidth,x=ze.borderBottomWidth,oe=ze.borderLeftWidth,ve=ze.borderRightWidth,he=qe.getBoundingClientRect(),w=qe.offsetHeight,S=qe.clientHeight,j=qe.offsetWidth,B=qe.clientWidth,_=N(re),D=N(x),te=N(oe),be=N(ve),ge=F(Math.round(he.width/j*1e3)/1e3),ye=F(Math.round(he.height/w*1e3)/1e3),Ne=(j-B-te-be)*ge,ke=(w-S-_-D)*ye,We=_*ye,je=D*ye,Ve=te*ge,mt=be*ge,Pt=0,bt=0;if(ie==="clip"){var _t=N(W);Pt=_t*ge,bt=_t*ye}var Dt=he.x+Ve-Pt,Rt=he.y+We-bt,Ht=Dt+he.width+2*Pt-Ve-mt-Ne,$t=Rt+he.height+2*bt-We-je-ke;Le.left=Math.max(Le.left,Dt),Le.top=Math.max(Le.top,Rt),Le.right=Math.min(Le.right,Ht),Le.bottom=Math.min(Le.bottom,$t)}}),Le}function ce(Fe){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Le="".concat(Je),qe=Le.match(/^(.*)\%$/);return qe?Fe*(parseFloat(qe[1])/100):parseFloat(Le)}function le(Fe,Je){var Le=Je||[],qe=(0,r.Z)(Le,2),ze=qe[0],ie=qe[1];return[ce(Fe.width,ze),ce(Fe.height,ie)]}function se(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Fe[0],Fe[1]]}function fe(Fe,Je){var Le=Je[0],qe=Je[1],ze,ie;return Le==="t"?ie=Fe.y:Le==="b"?ie=Fe.y+Fe.height:ie=Fe.y+Fe.height/2,qe==="l"?ze=Fe.x:qe==="r"?ze=Fe.x+Fe.width:ze=Fe.x+Fe.width/2,{x:ze,y:ie}}function xe(Fe,Je){var Le={t:"b",b:"t",l:"r",r:"l"};return Fe.map(function(qe,ze){return ze===Je?Le[qe]||"c":qe}).join("")}function Ie(Fe,Je,Le,qe,ze,ie,W){var re=E.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ze[qe]||{}}),x=(0,r.Z)(re,2),oe=x[0],ve=x[1],he=E.useRef(0),w=E.useMemo(function(){return Je?L(Je):[]},[Je]),S=E.useRef({}),j=function(){S.current={}};Fe||j();var B=(0,m.Z)(function(){if(Je&&Le&&Fe){let Xr=function(Qr,st){var lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ir,Ge=mn.x+Qr,ct=mn.y+st,Ft=Ge+Mn,fn=ct+Rn,En=Math.max(Ge,lt.left),dn=Math.max(ct,lt.top),hn=Math.min(Ft,lt.right),er=Math.min(fn,lt.bottom);return Math.max(0,(hn-En)*(er-dn))},ga=function(){bn=mn.y+Vt,Sn=bn+Rn,rn=mn.x+Jt,Gn=rn+Mn};var te,be,ge=Je,ye=ge.ownerDocument,Ne=k(ge),ke=Ne.getComputedStyle(ge),We=ke.width,je=ke.height,Ve=ke.position,mt=ge.style.left,Pt=ge.style.top,bt=ge.style.right,_t=ge.style.bottom,Dt=ge.style.overflow,Rt=(0,t.Z)((0,t.Z)({},ze[qe]),ie),Ht=ye.createElement("div");(te=ge.parentElement)===null||te===void 0||te.appendChild(Ht),Ht.style.left="".concat(ge.offsetLeft,"px"),Ht.style.top="".concat(ge.offsetTop,"px"),Ht.style.position=Ve,Ht.style.height="".concat(ge.offsetHeight,"px"),Ht.style.width="".concat(ge.offsetWidth,"px"),ge.style.left="0",ge.style.top="0",ge.style.right="auto",ge.style.bottom="auto",ge.style.overflow="hidden";var $t;if(Array.isArray(Le))$t={x:Le[0],y:Le[1],width:0,height:0};else{var vn=Le.getBoundingClientRect();$t={x:vn.x,y:vn.y,width:vn.width,height:vn.height}}var mn=ge.getBoundingClientRect(),zn=ye.documentElement,Xt=zn.clientWidth,Vn=zn.clientHeight,Un=zn.scrollWidth,_n=zn.scrollHeight,Ln=zn.scrollTop,kn=zn.scrollLeft,Rn=mn.height,Mn=mn.width,$n=$t.height,In=$t.width,lr={left:0,top:0,right:Xt,bottom:Vn},yr={left:-kn,top:-Ln,right:Un-kn,bottom:_n-Ln},rr=Rt.htmlRegion,Lr="visible",$r="visibleFirst";rr!=="scroll"&&rr!==$r&&(rr=Lr);var br=rr===$r,Or=ee(yr,w),Qn=ee(lr,w),ir=rr===Lr?Qn:Or,Pr=br?Qn:ir;ge.style.left="auto",ge.style.top="auto",ge.style.right="0",ge.style.bottom="0";var _r=ge.getBoundingClientRect();ge.style.left=mt,ge.style.top=Pt,ge.style.right=bt,ge.style.bottom=_t,ge.style.overflow=Dt,(be=ge.parentElement)===null||be===void 0||be.removeChild(Ht);var xr=F(Math.round(Mn/parseFloat(We)*1e3)/1e3),nr=F(Math.round(Rn/parseFloat(je)*1e3)/1e3);if(xr===0||nr===0||(0,l.Sh)(Le)&&!(0,X.Z)(Le))return;var Hr=Rt.offset,ar=Rt.targetOffset,na=le(mn,Hr),wr=(0,r.Z)(na,2),Gr=wr[0],Rr=wr[1],Yn=le($t,ar),Wn=(0,r.Z)(Yn,2),ot=Wn[0],Tt=Wn[1];$t.x-=ot,$t.y-=Tt;var Mt=Rt.points||[],Ut=(0,r.Z)(Mt,2),Ot=Ut[0],ft=Ut[1],et=se(ft),dt=se(Ot),ht=fe($t,et),Nt=fe(mn,dt),Qt=(0,t.Z)({},Rt),Jt=ht.x-Nt.x+Gr,Vt=ht.y-Nt.y+Rr,Zt=Xr(Jt,Vt),Ee=Xr(Jt,Vt,Qn),Ce=fe($t,["t","l"]),Te=fe(mn,["t","l"]),Ae=fe($t,["b","r"]),He=fe(mn,["b","r"]),Ct=Rt.overflow||{},wt=Ct.adjustX,tn=Ct.adjustY,an=Ct.shiftX,zt=Ct.shiftY,gn=function(st){return typeof st=="boolean"?st:st>=0},bn,Sn,rn,Gn;ga();var Me=gn(tn),me=dt[0]===et[0];if(Me&&dt[0]==="t"&&(Sn>Pr.bottom||S.current.bt)){var ue=Vt;me?ue-=Rn-$n:ue=Ce.y-He.y-Rr;var Oe=Xr(Jt,ue),pe=Xr(Jt,ue,Qn);Oe>Zt||Oe===Zt&&(!br||pe>=Ee)?(S.current.bt=!0,Vt=ue,Rr=-Rr,Qt.points=[xe(dt,0),xe(et,0)]):S.current.bt=!1}if(Me&&dt[0]==="b"&&(bnZt||_e===Zt&&(!br||ae>=Ee)?(S.current.tb=!0,Vt=De,Rr=-Rr,Qt.points=[xe(dt,0),xe(et,0)]):S.current.tb=!1}var vt=gn(wt),It=dt[1]===et[1];if(vt&&dt[1]==="l"&&(Gn>Pr.right||S.current.rl)){var pt=Jt;It?pt-=Mn-In:pt=Ce.x-He.x-Gr;var nn=Xr(pt,Vt),it=Xr(pt,Vt,Qn);nn>Zt||nn===Zt&&(!br||it>=Ee)?(S.current.rl=!0,Jt=pt,Gr=-Gr,Qt.points=[xe(dt,1),xe(et,1)]):S.current.rl=!1}if(vt&&dt[1]==="r"&&(rnZt||en===Zt&&(!br||un>=Ee)?(S.current.lr=!0,Jt=yn,Gr=-Gr,Qt.points=[xe(dt,1),xe(et,1)]):S.current.lr=!1}ga();var jt=an===!0?0:an;typeof jt=="number"&&(rnQn.right&&(Jt-=Gn-Qn.right-Gr,$t.x>Qn.right-jt&&(Jt+=$t.x-Qn.right+jt)));var Et=zt===!0?0:zt;typeof Et=="number"&&(bnQn.bottom&&(Vt-=Sn-Qn.bottom-Rr,$t.y>Qn.bottom-Et&&(Vt+=$t.y-Qn.bottom+Et)));var rt=mn.x+Jt,xt=rt+Mn,qt=mn.y+Vt,on=qt+Rn,sn=$t.x,Dn=sn+In,xn=$t.y,At=xn+$n,Jn=Math.max(rt,sn),or=Math.min(xt,Dn),Ar=(Jn+or)/2,Mr=Ar-rt,zr=Math.max(qt,xn),qr=Math.min(on,At),Kr=(zr+qr)/2,Jr=Kr-qt;W==null||W(Je,Qt);var da=_r.right-mn.x-(Jt+mn.width),ma=_r.bottom-mn.y-(Vt+mn.height);xr===1&&(Jt=Math.round(Jt),da=Math.round(da)),nr===1&&(Vt=Math.round(Vt),ma=Math.round(ma));var va={ready:!0,offsetX:Jt/xr,offsetY:Vt/nr,offsetR:da/xr,offsetB:ma/nr,arrowX:Mr/xr,arrowY:Jr/nr,scaleX:xr,scaleY:nr,align:Qt};ve(va)}}),_=function(){he.current+=1;var be=he.current;Promise.resolve().then(function(){he.current===be&&B()})},D=function(){ve(function(be){return(0,t.Z)((0,t.Z)({},be),{},{ready:!1})})};return(0,y.Z)(D,[qe]),(0,y.Z)(function(){Fe||D()},[Fe]),[oe.ready,oe.offsetX,oe.offsetY,oe.offsetR,oe.offsetB,oe.arrowX,oe.arrowY,oe.scaleX,oe.scaleY,oe.align,_]}var Pe=e(74902);function $e(Fe,Je,Le,qe,ze){(0,y.Z)(function(){if(Fe&&Je&&Le){let he=function(){qe(),ze()};var ie=Je,W=Le,re=L(ie),x=L(W),oe=k(W),ve=new Set([oe].concat((0,Pe.Z)(re),(0,Pe.Z)(x)));return ve.forEach(function(w){w.addEventListener("scroll",he,{passive:!0})}),oe.addEventListener("resize",he,{passive:!0}),qe(),function(){ve.forEach(function(w){w.removeEventListener("scroll",he),oe.removeEventListener("resize",he)})}}},[Fe,Je,Le])}var at=e(80334);function ut(Fe,Je,Le,qe,ze,ie,W,re){var x=E.useRef(Fe);x.current=Fe,E.useEffect(function(){if(Je&&qe&&(!ze||ie)){var oe=function(D){var te=D.target;x.current&&!W(te)&&re(!1)},ve=k(qe);ve.addEventListener("mousedown",oe,!0),ve.addEventListener("contextmenu",oe,!0);var he=(0,d.A)(Le);if(he&&(he.addEventListener("mousedown",oe,!0),he.addEventListener("contextmenu",oe,!0)),0)var w,S,j,B;return function(){ve.removeEventListener("mousedown",oe,!0),ve.removeEventListener("contextmenu",oe,!0),he&&(he.removeEventListener("mousedown",oe,!0),he.removeEventListener("contextmenu",oe,!0))}}},[Je,Le,qe,ze,ie])}var Ue=["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 Ye(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a.Z,Je=E.forwardRef(function(Le,qe){var ze=Le.prefixCls,ie=ze===void 0?"rc-trigger-popup":ze,W=Le.children,re=Le.action,x=re===void 0?"hover":re,oe=Le.showAction,ve=Le.hideAction,he=Le.popupVisible,w=Le.defaultPopupVisible,S=Le.onPopupVisibleChange,j=Le.afterPopupVisibleChange,B=Le.mouseEnterDelay,_=Le.mouseLeaveDelay,D=_===void 0?.1:_,te=Le.focusDelay,be=Le.blurDelay,ge=Le.mask,ye=Le.maskClosable,Ne=ye===void 0?!0:ye,ke=Le.getPopupContainer,We=Le.forceRender,je=Le.autoDestroy,Ve=Le.destroyPopupOnHide,mt=Le.popup,Pt=Le.popupClassName,bt=Le.popupStyle,_t=Le.popupPlacement,Dt=Le.builtinPlacements,Rt=Dt===void 0?{}:Dt,Ht=Le.popupAlign,$t=Le.zIndex,vn=Le.stretch,mn=Le.getPopupClassNameFromAlign,zn=Le.fresh,Xt=Le.alignPoint,Vn=Le.onPopupClick,Un=Le.onPopupAlign,_n=Le.arrow,Ln=Le.popupMotion,kn=Le.maskMotion,Rn=Le.popupTransitionName,Mn=Le.popupAnimation,$n=Le.maskTransitionName,In=Le.maskAnimation,lr=Le.className,yr=Le.getTriggerDOMNode,rr=(0,o.Z)(Le,Ue),Lr=je||Ve||!1,$r=E.useState(!1),br=(0,r.Z)($r,2),Or=br[0],Qn=br[1];(0,y.Z)(function(){Qn((0,f.Z)())},[]);var ir=E.useRef({}),Pr=E.useContext(H),_r=E.useMemo(function(){return{registerSubPopup:function(ln,Kn){ir.current[ln]=Kn,Pr==null||Pr.registerSubPopup(ln,Kn)}}},[Pr]),xr=(0,b.Z)(),nr=E.useState(null),Hr=(0,r.Z)(nr,2),ar=Hr[0],na=Hr[1],wr=E.useRef(null),Gr=(0,m.Z)(function(cn){wr.current=cn,(0,l.Sh)(cn)&&ar!==cn&&na(cn),Pr==null||Pr.registerSubPopup(xr,cn)}),Rr=E.useState(null),Yn=(0,r.Z)(Rr,2),Wn=Yn[0],ot=Yn[1],Tt=E.useRef(null),Mt=(0,m.Z)(function(cn){(0,l.Sh)(cn)&&Wn!==cn&&(ot(cn),Tt.current=cn)}),Ut=E.Children.only(W),Ot=(Ut==null?void 0:Ut.props)||{},ft={},et=(0,m.Z)(function(cn){var ln,Kn,Ur=Wn;return(Ur==null?void 0:Ur.contains(cn))||((ln=(0,d.A)(Ur))===null||ln===void 0?void 0:ln.host)===cn||cn===Ur||(ar==null?void 0:ar.contains(cn))||((Kn=(0,d.A)(ar))===null||Kn===void 0?void 0:Kn.host)===cn||cn===ar||Object.values(ir.current).some(function(Bn){return(Bn==null?void 0:Bn.contains(cn))||cn===Bn})}),dt=z(ie,Ln,Mn,Rn),ht=z(ie,kn,In,$n),Nt=E.useState(w||!1),Qt=(0,r.Z)(Nt,2),Jt=Qt[0],Vt=Qt[1],Zt=he!=null?he:Jt,Ee=(0,m.Z)(function(cn){he===void 0&&Vt(cn)});(0,y.Z)(function(){Vt(he||!1)},[he]);var Ce=E.useRef(Zt);Ce.current=Zt;var Te=E.useRef([]);Te.current=[];var Ae=(0,m.Z)(function(cn){var ln;Ee(cn),((ln=Te.current[Te.current.length-1])!==null&&ln!==void 0?ln:Zt)!==cn&&(Te.current.push(cn),S==null||S(cn))}),He=E.useRef(),Ct=function(){clearTimeout(He.current)},wt=function(ln){var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ct(),Kn===0?Ae(ln):He.current=setTimeout(function(){Ae(ln)},Kn*1e3)};E.useEffect(function(){return Ct},[]);var tn=E.useState(!1),an=(0,r.Z)(tn,2),zt=an[0],gn=an[1];(0,y.Z)(function(cn){(!cn||Zt)&&gn(!0)},[Zt]);var bn=E.useState(null),Sn=(0,r.Z)(bn,2),rn=Sn[0],Gn=Sn[1],Me=E.useState([0,0]),me=(0,r.Z)(Me,2),ue=me[0],Oe=me[1],pe=function(ln){Oe([ln.clientX,ln.clientY])},De=Ie(Zt,ar,Xt?ue:Wn,_t,Rt,Ht,Un),_e=(0,r.Z)(De,11),ae=_e[0],vt=_e[1],It=_e[2],pt=_e[3],nn=_e[4],it=_e[5],yn=_e[6],en=_e[7],un=_e[8],jt=_e[9],Et=_e[10],rt=J(Or,x,oe,ve),xt=(0,r.Z)(rt,2),qt=xt[0],on=xt[1],sn=qt.has("click"),Dn=on.has("click")||on.has("contextMenu"),xn=(0,m.Z)(function(){zt||Et()}),At=function(){Ce.current&&Xt&&Dn&&wt(!1)};$e(Zt,Wn,ar,xn,At),(0,y.Z)(function(){xn()},[ue,_t]),(0,y.Z)(function(){Zt&&!(Rt!=null&&Rt[_t])&&xn()},[JSON.stringify(Ht)]);var Jn=E.useMemo(function(){var cn=q(Rt,ie,jt,Xt);return u()(cn,mn==null?void 0:mn(jt))},[jt,mn,Rt,ie,Xt]);E.useImperativeHandle(qe,function(){return{nativeElement:Tt.current,popupElement:wr.current,forceAlign:xn}});var or=E.useState(0),Ar=(0,r.Z)(or,2),Mr=Ar[0],zr=Ar[1],qr=E.useState(0),Kr=(0,r.Z)(qr,2),Jr=Kr[0],da=Kr[1],ma=function(){if(vn&&Wn){var ln=Wn.getBoundingClientRect();zr(ln.width),da(ln.height)}},va=function(){ma(),xn()},Xr=function(ln){gn(!1),Et(),j==null||j(ln)},ga=function(){return new Promise(function(ln){ma(),Gn(function(){return ln})})};(0,y.Z)(function(){rn&&(Et(),rn(),Gn(null))},[rn]);function Qr(cn,ln,Kn,Ur){ft[cn]=function(Bn){var ea;Ur==null||Ur(Bn),wt(ln,Kn);for(var ca=arguments.length,fa=new Array(ca>1?ca-1:0),Oa=1;Oa1?Kn-1:0),Bn=1;Bn1?Kn-1:0),Bn=1;Bn10&<.startsWith("/api")){var Ft={Authorization:"Bearer ".concat(ct)};return{url:"".concat("").concat(lt),options:b()(b()({},Ge),{},{interceptors:!0,headers:Ft})}}else return lt.startsWith("http")?{url:"".concat(lt),options:b()(b()({},Ge),{},{interceptors:!0})}:{url:"".concat("").concat(lt),options:b()(b()({},Ge),{},{interceptors:!0})}},O=function(lt,Ge){return lt},$=e(80049),Z=e(23661),Q=function(st){return st[st.SILENT=0]="SILENT",st[st.WARN_MESSAGE=1]="WARN_MESSAGE",st[st.ERROR_MESSAGE=2]="ERROR_MESSAGE",st[st.NOTIFICATION=3]="NOTIFICATION",st[st.REDIRECT=9]="REDIRECT",st}(Q||{}),U={errorConfig:{errorThrower:function(lt){console.log("errorThrower:",lt);var Ge=lt,ct=Ge.success,Ft=Ge.data,fn=Ge.errorCode,En=Ge.errorMessage,dn=Ge.showType;if(!ct){var hn=new Error(En);throw hn.name="BizError",hn.info={errorCode:fn,errorMessage:En,showType:dn,data:Ft},hn}},errorHandler:function(lt,Ge){if(console.log("errorHandler:",lt,Ge),Ge!=null&&Ge.skipErrorHandler)throw lt;lt.response?(lt.response.status===400?(console.log("axios interception error 400"),$.yw.error("400 Bad Request: \u8BF7\u6C42\u53C2\u6570\u9519\u8BEF")):lt.response.status===401?(console.log("axios interception error 401"),$.yw.error("401 Unauthorized: \u7528\u6237\u540D\u6216\u5BC6\u7801/\u9A8C\u8BC1\u7801\u9519\u8BEF"),Z.Z.emit(P.xK4)):lt.response.status===403?(console.log("axios interception error 403"),$.yw.error("403 Forbidden: \u65E0\u6B64\u6743\u9650")):lt.response.status===404?(console.log("axios interception error 404"),$.yw.error("404: \u8BF7\u6C42\u7684\u8D44\u6E90\u4E0D\u5B58\u5728")):lt.response.status===500&&(console.log("axios interception error 500"),$.yw.error("500: \u670D\u52A1\u5668\u9519\u8BEF\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5")),$.yw.error("Response status:".concat(lt.response.status))):lt.request?$.yw.error("None response! Please retry."):$.yw.error("Request error, please retry.")}},requestInterceptors:[function(st){var lt,Ge=st==null||(lt=st.url)===null||lt===void 0?void 0:lt.concat("?token = 123");return b()(b()({},st),{},{url:Ge})}],responseInterceptors:[function(st){var lt=st,Ge=lt.data;return(Ge==null?void 0:Ge.success)===!1&&$.yw.error("\u8BF7\u6C42\u5931\u8D25\uFF01"),st}]},Y=e(39825),H=e(66419),G=e(5574),J=e.n(G),X=e(1413),V=e(67294),q=e(44685),z=e(89099),k=function(lt,Ge){return V.createElement(z.Z,(0,X.Z)((0,X.Z)({},lt),{},{ref:Ge,icon:q.Z}))},L=V.forwardRef(k),F=L,N=e(15613),ee=function(lt,Ge){return V.createElement(z.Z,(0,X.Z)((0,X.Z)({},lt),{},{ref:Ge,icon:N.Z}))},ce=V.forwardRef(ee),le=ce,se=e(83062),fe=e(85893);function xe(){var st=(0,V.useState)(!0),lt=J()(st,2),Ge=lt[0],ct=lt[1],Ft=function(){var hn=document.webkitIsFullScreen;hn?En():fn(),ct(hn)},fn=function(){var hn;hn=document.documentElement,hn.requestFullscreen?hn.requestFullscreen():hn.mozRequestFullScreen?hn.mozRequestFullScreen():(hn.webkitRequestFullScreen||hn.msRequestFullscreen)&&hn.webkitRequestFullScreen()},En=function(){var hn;hn=document,hn.exitFullScreen?hn.exitFullScreen():hn.mozExitFullScreen?hn.mozExitFullScreen():hn.webkitExitFullscreen?hn.webkitExitFullscreen():hn.msExitFullscreen&&hn.msExitFullscreen()};return(0,fe.jsx)(se.Z,{placement:"bottom",title:(0,fe.jsx)("span",{children:Ge?"\u5168\u5C4F":"\u9000\u51FA\u5168\u5C4F"}),children:Ge?(0,fe.jsx)(F,{style:{fontSize:"25px",marginRight:10},onClick:Ft}):(0,fe.jsx)(le,{style:{fontSize:"25px",marginRight:10},onClick:Ft})})}var Ie=function(){var lt=(0,C.useIntl)(),Ge=function(){$.yw.warning("TODO: \u591A\u7EC4\u7EC7\u5207\u6362")};return(0,fe.jsx)("div",{onClick:Ge,children:lt.formatMessage({id:"setting.switchorg"})})},Pe=Ie,$e=function(){var lt=(0,C.useIntl)(),Ge=function(){window.open("http://127.0.0.1:9003/agent")};return(0,fe.jsx)("div",{onClick:Ge,children:lt.formatMessage({id:"setting.agentclient"})})},at=$e,ut=e(69554),Ue=function(){var lt=(0,C.useIntl)(),Ge=function(){window.open("https://www.weiyuai.cn/contact.html")};return(0,fe.jsx)("div",{onClick:Ge,children:lt.formatMessage({id:"pages.footer.contact"})})},Ye=Ue,Xe="/auth/login";function Fe(){return Je.apply(this,arguments)}function Je(){return Je=f()(d()().mark(function st(){var lt,Ge,ct;return d()().wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:if(console.log("getInitialState"),lt=function(){var En=f()(d()().mark(function dn(){var hn,er;return d()().wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:if(hn=localStorage.getItem(P.LA8),!(hn===null||hn.trim().length===0)){ln.next=3;break}return ln.abrupt("return",void 0);case 3:return ln.prev=3,ln.next=6,(0,T.Ai)({skipErrorHandler:!1});case 6:return er=ln.sent,console.log("user profile",er),ln.abrupt("return",er.data);case 11:ln.prev=11,ln.t0=ln.catch(3),C.history.push(Xe);case 14:return ln.abrupt("return",void 0);case 15:case"end":return ln.stop()}},dn,null,[[3,11]])}));return function(){return En.apply(this,arguments)}}(),Ge=C.history.location,Ge.pathname.startsWith("/auth/")){fn.next=8;break}return fn.next=6,lt();case 6:return ct=fn.sent,fn.abrupt("return",{fetchUserInfo:lt,userInfo:ct,settings:M.Z});case 8:return fn.abrupt("return",{fetchUserInfo:lt,settings:M.Z});case 9:case"end":return fn.stop()}},st)})),Je.apply(this,arguments)}var Le=function(lt){var Ge,ct,Ft=lt.initialState,fn=lt.setInitialState;console.log("app.tsx - layout");var En=(0,Y.Z)(),dn=En.isDarkMode;dn?Ft.settings.navTheme="realDark":Ft.settings.navTheme="light";var hn=(0,C.useIntl)(),er=function(){var ln=(0,H.lk)();return hn.formatMessage({id:ln})};return(0,V.useEffect)(function(){(0,H.iE)(),Z.Z.on(P.xK4,function(){console.log("EVENT_TOKEN_INVALID"),(0,H.NZ)()}),(0,H.pr)()},[]),b()({actionsRender:function(){return[(0,fe.jsx)(xe,{},"fullScreen"),(0,fe.jsx)(E.HN,{},"doc"),(0,fe.jsx)(Pe,{},"SwitchOrg"),(0,fe.jsx)(at,{},"GotoAgent"),(0,fe.jsx)(Ye,{},"ContactUs")]},title:er(),logo:(0,H.hX)(),avatarProps:{src:Ft==null||(Ge=Ft.userInfo)===null||Ge===void 0?void 0:Ge.avatar,title:(0,fe.jsx)(E.gj,{}),render:function(ln,Kn){return(0,fe.jsx)(E.Kd,{menu:!0,children:Kn})}},waterMarkProps:{content:Ft==null||(ct=Ft.userInfo)===null||ct===void 0?void 0:ct.nickname},footerRender:function(){return(0,fe.jsx)(E.$_,{})},onPageChange:function(){var ln=C.history.location;!(Ft!=null&&Ft.userInfo)&&ln.pathname!==Xe&&C.history.push(Xe)},menuHeaderRender:void 0,menu:{type:"group",collapsedShowTitle:!0,hideChildrenInMenu:!0},collapsedButtonRender:function(){return(0,fe.jsx)(fe.Fragment,{})},childrenRender:function(ln){return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)(ut.w,{children:(0,fe.jsxs)(R.Z,{children:[(0,fe.jsx)($.ZP,{}),ln]})})})}},Ft==null?void 0:Ft.settings)},qe=b()(b()({},U),{},{requestInterceptors:[A]}),ze=e(45697),ie=e.n(ze),W=e(69590),re=e.n(W),x=e(41143),oe=e.n(x),ve=e(96774),he=e.n(ve);function w(){return w=Object.assign||function(st){for(var lt=1;lt=0||(Ft[Ge]=st[Ge]);return Ft}var _={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},D={rel:["amphtml","canonical","alternate"]},te={type:["application/ld+json"]},be={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"]},ge=Object.keys(_).map(function(st){return _[st]}),ye={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Ne=Object.keys(ye).reduce(function(st,lt){return st[ye[lt]]=lt,st},{}),ke=function(st,lt){for(var Ge=st.length-1;Ge>=0;Ge-=1){var ct=st[Ge];if(Object.prototype.hasOwnProperty.call(ct,lt))return ct[lt]}return null},We=function(st){var lt=ke(st,_.TITLE),Ge=ke(st,"titleTemplate");if(Array.isArray(lt)&&(lt=lt.join("")),Ge&<)return Ge.replace(/%s/g,function(){return lt});var ct=ke(st,"defaultTitle");return lt||ct||void 0},je=function(st){return ke(st,"onChangeClientState")||function(){}},Ve=function(st,lt){return lt.filter(function(Ge){return Ge[st]!==void 0}).map(function(Ge){return Ge[st]}).reduce(function(Ge,ct){return w({},Ge,ct)},{})},mt=function(st,lt){return lt.filter(function(Ge){return Ge[_.BASE]!==void 0}).map(function(Ge){return Ge[_.BASE]}).reverse().reduce(function(Ge,ct){if(!Ge.length)for(var Ft=Object.keys(ct),fn=0;fn/g,">").replace(/"/g,""").replace(/'/g,"'")},vn=function(st){return Object.keys(st).reduce(function(lt,Ge){var ct=st[Ge]!==void 0?Ge+'="'+st[Ge]+'"':""+Ge;return lt?lt+" "+ct:ct},"")},mn=function(st,lt){return lt===void 0&&(lt={}),Object.keys(st).reduce(function(Ge,ct){return Ge[ye[ct]||ct]=st[ct],Ge},lt)},zn=function(st,lt){return lt.map(function(Ge,ct){var Ft,fn=((Ft={key:ct})["data-rh"]=!0,Ft);return Object.keys(Ge).forEach(function(En){var dn=ye[En]||En;dn==="innerHTML"||dn==="cssText"?fn.dangerouslySetInnerHTML={__html:Ge.innerHTML||Ge.cssText}:fn[dn]=Ge[En]}),V.createElement(st,fn)})},Xt=function(st,lt,Ge){switch(st){case _.TITLE:return{toComponent:function(){return Ft=lt.titleAttributes,(fn={key:ct=lt.title})["data-rh"]=!0,En=mn(Ft,fn),[V.createElement(_.TITLE,En,ct)];var ct,Ft,fn,En},toString:function(){return function(ct,Ft,fn,En){var dn=vn(fn),hn=_t(Ft);return dn?"<"+ct+' data-rh="true" '+dn+">"+$t(hn,En)+"":"<"+ct+' data-rh="true">'+$t(hn,En)+""}(st,lt.title,lt.titleAttributes,Ge)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return mn(lt)},toString:function(){return vn(lt)}};default:return{toComponent:function(){return zn(st,lt)},toString:function(){return function(ct,Ft,fn){return Ft.reduce(function(En,dn){var hn=Object.keys(dn).filter(function(ln){return!(ln==="innerHTML"||ln==="cssText")}).reduce(function(ln,Kn){var Ur=dn[Kn]===void 0?Kn:Kn+'="'+$t(dn[Kn],fn)+'"';return ln?ln+" "+Ur:Ur},""),er=dn.innerHTML||dn.cssText||"",cn=Ht.indexOf(ct)===-1;return En+"<"+ct+' data-rh="true" '+hn+(cn?"/>":">"+er+"")},"")}(st,lt,Ge)}}}},Vn=function(st){var lt=st.baseTag,Ge=st.bodyAttributes,ct=st.encode,Ft=st.htmlAttributes,fn=st.noscriptTags,En=st.styleTags,dn=st.title,hn=dn===void 0?"":dn,er=st.titleAttributes,cn=st.linkTags,ln=st.metaTags,Kn=st.scriptTags,Ur={toComponent:function(){},toString:function(){return""}};if(st.prioritizeSeoTags){var Bn=function(ea){var ca=ea.linkTags,fa=ea.scriptTags,Oa=ea.encode,Ia=Dt(ea.metaTags,be),io=Dt(ca,D),wa=Dt(fa,te);return{priorityMethods:{toComponent:function(){return[].concat(zn(_.META,Ia.priority),zn(_.LINK,io.priority),zn(_.SCRIPT,wa.priority))},toString:function(){return Xt(_.META,Ia.priority,Oa)+" "+Xt(_.LINK,io.priority,Oa)+" "+Xt(_.SCRIPT,wa.priority,Oa)}},metaTags:Ia.default,linkTags:io.default,scriptTags:wa.default}}(st);Ur=Bn.priorityMethods,cn=Bn.linkTags,ln=Bn.metaTags,Kn=Bn.scriptTags}return{priority:Ur,base:Xt(_.BASE,lt,ct),bodyAttributes:Xt("bodyAttributes",Ge,ct),htmlAttributes:Xt("htmlAttributes",Ft,ct),link:Xt(_.LINK,cn,ct),meta:Xt(_.META,ln,ct),noscript:Xt(_.NOSCRIPT,fn,ct),script:Xt(_.SCRIPT,Kn,ct),style:Xt(_.STYLE,En,ct),title:Xt(_.TITLE,{title:hn,titleAttributes:er},ct)}},Un=[],_n=function(st,lt){var Ge=this;lt===void 0&&(lt=typeof document!="undefined"),this.instances=[],this.value={setHelmet:function(ct){Ge.context.helmet=ct},helmetInstances:{get:function(){return Ge.canUseDOM?Un:Ge.instances},add:function(ct){(Ge.canUseDOM?Un:Ge.instances).push(ct)},remove:function(ct){var Ft=(Ge.canUseDOM?Un:Ge.instances).indexOf(ct);(Ge.canUseDOM?Un:Ge.instances).splice(Ft,1)}}},this.context=st,this.canUseDOM=lt,lt||(st.helmet=Vn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},Ln=V.createContext({}),kn=ie().shape({setHelmet:ie().func,helmetInstances:ie().shape({get:ie().func,add:ie().func,remove:ie().func})}),Rn=typeof document!="undefined",Mn=function(st){function lt(Ge){var ct;return(ct=st.call(this,Ge)||this).helmetData=new _n(ct.props.context,lt.canUseDOM),ct}return S(lt,st),lt.prototype.render=function(){return V.createElement(Ln.Provider,{value:this.helmetData.value},this.props.children)},lt}(V.Component);Mn.canUseDOM=Rn,Mn.propTypes={context:ie().shape({helmet:ie().shape()}),children:ie().node.isRequired},Mn.defaultProps={context:{}},Mn.displayName="HelmetProvider";var $n=function(st,lt){var Ge,ct=document.head||document.querySelector(_.HEAD),Ft=ct.querySelectorAll(st+"[data-rh]"),fn=[].slice.call(Ft),En=[];return lt&<.length&<.forEach(function(dn){var hn=document.createElement(st);for(var er in dn)Object.prototype.hasOwnProperty.call(dn,er)&&(er==="innerHTML"?hn.innerHTML=dn.innerHTML:er==="cssText"?hn.styleSheet?hn.styleSheet.cssText=dn.cssText:hn.appendChild(document.createTextNode(dn.cssText)):hn.setAttribute(er,dn[er]===void 0?"":dn[er]));hn.setAttribute("data-rh","true"),fn.some(function(cn,ln){return Ge=ln,hn.isEqualNode(cn)})?fn.splice(Ge,1):En.push(hn)}),fn.forEach(function(dn){return dn.parentNode.removeChild(dn)}),En.forEach(function(dn){return ct.appendChild(dn)}),{oldTags:fn,newTags:En}},In=function(st,lt){var Ge=document.getElementsByTagName(st)[0];if(Ge){for(var ct=Ge.getAttribute("data-rh"),Ft=ct?ct.split(","):[],fn=[].concat(Ft),En=Object.keys(lt),dn=0;dn=0;ln-=1)Ge.removeAttribute(fn[ln]);Ft.length===fn.length?Ge.removeAttribute("data-rh"):Ge.getAttribute("data-rh")!==En.join(",")&&Ge.setAttribute("data-rh",En.join(","))}},lr=function(st,lt){var Ge=st.baseTag,ct=st.htmlAttributes,Ft=st.linkTags,fn=st.metaTags,En=st.noscriptTags,dn=st.onChangeClientState,hn=st.scriptTags,er=st.styleTags,cn=st.title,ln=st.titleAttributes;In(_.BODY,st.bodyAttributes),In(_.HTML,ct),function(ea,ca){ea!==void 0&&document.title!==ea&&(document.title=_t(ea)),In(_.TITLE,ca)}(cn,ln);var Kn={baseTag:$n(_.BASE,Ge),linkTags:$n(_.LINK,Ft),metaTags:$n(_.META,fn),noscriptTags:$n(_.NOSCRIPT,En),scriptTags:$n(_.SCRIPT,hn),styleTags:$n(_.STYLE,er)},Ur={},Bn={};Object.keys(Kn).forEach(function(ea){var ca=Kn[ea],fa=ca.newTags,Oa=ca.oldTags;fa.length&&(Ur[ea]=fa),Oa.length&&(Bn[ea]=Kn[ea].oldTags)}),lt&<(),dn(st,Ur,Bn)},yr=null,rr=function(st){function lt(){for(var ct,Ft=arguments.length,fn=new Array(Ft),En=0;En elements are self-closing and can not contain children. Refer to our API for more information.")}},Ge.flattenArrayTypeChildren=function(ct){var Ft,fn=ct.child,En=ct.arrayTypeChildren;return w({},En,((Ft={})[fn.type]=[].concat(En[fn.type]||[],[w({},ct.newChildProps,this.mapNestedChildrenToProps(fn,ct.nestedChildren))]),Ft))},Ge.mapObjectTypeChildren=function(ct){var Ft,fn,En=ct.child,dn=ct.newProps,hn=ct.newChildProps,er=ct.nestedChildren;switch(En.type){case _.TITLE:return w({},dn,((Ft={})[En.type]=er,Ft.titleAttributes=w({},hn),Ft));case _.BODY:return w({},dn,{bodyAttributes:w({},hn)});case _.HTML:return w({},dn,{htmlAttributes:w({},hn)});default:return w({},dn,((fn={})[En.type]=w({},hn),fn))}},Ge.mapArrayTypeChildrenToProps=function(ct,Ft){var fn=w({},Ft);return Object.keys(ct).forEach(function(En){var dn;fn=w({},fn,((dn={})[En]=ct[En],dn))}),fn},Ge.warnOnInvalidChildren=function(ct,Ft){return oe()(ge.some(function(fn){return ct.type===fn}),typeof ct.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 "+ge.join(", ")+" are allowed. Helmet does not support rendering <"+ct.type+"> elements. Refer to our API for more information."),oe()(!Ft||typeof Ft=="string"||Array.isArray(Ft)&&!Ft.some(function(fn){return typeof fn!="string"}),"Helmet expects a string as a child of <"+ct.type+">. Did you forget to wrap your children in braces? ( <"+ct.type+">{``} ) Refer to our API for more information."),!0},Ge.mapChildrenToProps=function(ct,Ft){var fn=this,En={};return V.Children.forEach(ct,function(dn){if(dn&&dn.props){var hn=dn.props,er=hn.children,cn=B(hn,Lr),ln=Object.keys(cn).reduce(function(Ur,Bn){return Ur[Ne[Bn]||Bn]=cn[Bn],Ur},{}),Kn=dn.type;switch(typeof Kn=="symbol"?Kn=Kn.toString():fn.warnOnInvalidChildren(dn,er),Kn){case _.FRAGMENT:Ft=fn.mapChildrenToProps(er,Ft);break;case _.LINK:case _.META:case _.NOSCRIPT:case _.SCRIPT:case _.STYLE:En=fn.flattenArrayTypeChildren({child:dn,arrayTypeChildren:En,newChildProps:ln,nestedChildren:er});break;default:Ft=fn.mapObjectTypeChildren({child:dn,newProps:Ft,newChildProps:ln,nestedChildren:er})}}}),this.mapArrayTypeChildrenToProps(En,Ft)},Ge.render=function(){var ct=this.props,Ft=ct.children,fn=B(ct,$r),En=w({},fn),dn=fn.helmetData;return Ft&&(En=this.mapChildrenToProps(Ft,En)),!dn||dn instanceof _n||(dn=new _n(dn.context,dn.instances)),dn?V.createElement(rr,w({},En,{context:dn.value,helmetData:void 0})):V.createElement(Ln.Consumer,null,function(hn){return V.createElement(rr,w({},En,{context:hn}))})},lt}(V.Component);br.propTypes={base:ie().object,bodyAttributes:ie().object,children:ie().oneOfType([ie().arrayOf(ie().node),ie().node]),defaultTitle:ie().string,defer:ie().bool,encodeSpecialCharacters:ie().bool,htmlAttributes:ie().object,link:ie().arrayOf(ie().object),meta:ie().arrayOf(ie().object),noscript:ie().arrayOf(ie().object),onChangeClientState:ie().func,script:ie().arrayOf(ie().object),style:ie().arrayOf(ie().object),title:ie().string,titleAttributes:ie().object,titleTemplate:ie().string,prioritizeSeoTags:ie().bool,helmetData:ie().object},br.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},br.displayName="Helmet";var Or={},Qn=function(lt){return V.createElement(Mn,{context:Or},lt)};function ir(st){var lt=st!=null?st:{},Ge=lt.userInfo;return{canBytedeskAdmin:function(){if(!Ge)return!1;for(var Ft=!1,fn=0;fn<(Ge==null?void 0:Ge.userOrganizationRoles.length);fn++){var En,dn,hn=Ge==null?void 0:Ge.userOrganizationRoles[fn];if((hn==null||(En=hn.organization)===null||En===void 0?void 0:En.uid)===(Ge==null||(dn=Ge.currentOrganization)===null||dn===void 0?void 0:dn.uid))for(var er=hn==null?void 0:hn.role,cn=0;cn<(er==null||(ln=er.authorities)===null||ln===void 0?void 0:ln.length);cn++){var ln,Kn=er==null?void 0:er.authorities[cn];((Kn==null?void 0:Kn.value)===P.GNu||(Kn==null?void 0:Kn.value)===P.mxI)&&(Ft=!0)}}return Ft&&(Ge==null?void 0:Ge.platform)===P.aIT},canSuper:function(){for(var Ft=!1,fn=0;fn<(Ge==null?void 0:Ge.userOrganizationRoles.length);fn++){var En,dn=Ge==null?void 0:Ge.userOrganizationRoles[fn];if((dn==null?void 0:dn.organization.uid)===(Ge==null||(En=Ge.currentOrganization)===null||En===void 0?void 0:En.uid))for(var hn=dn==null?void 0:dn.role,er=0;er<(hn==null||(cn=hn.authorities)===null||cn===void 0?void 0:cn.length);er++){var cn,ln=hn==null?void 0:hn.authorities[er];(ln==null?void 0:ln.value)===P.mxI&&(Ft=!0)}}return(Ge==null?void 0:Ge.superUser)&&Ft},canDebug:function(){return!1},canBytedesk:function(){return(Ge==null?void 0:Ge.platform)===P.aIT},canLiangshibao:function(){return(Ge==null?void 0:Ge.platform)===P.EL2},canTiku:function(){return(Ge==null?void 0:Ge.platform)===P.SwN},canMeiyu:function(){return(Ge==null?void 0:Ge.platform)===P.gGr},canZhaobiao:function(){return(Ge==null?void 0:Ge.platform)===P.ue3},canReadFoo:!0,canUpdateFoo:function(){return!0}}}var Pr=e(44886),_r=e(78382);function xr(st){var lt=(0,Pr.t)("@@initialState"),Ge=lt.initialState,ct=V.useMemo(function(){return ir(Ge)},[Ge]);return(0,fe.jsx)(_r.J.Provider,{value:ct,children:st.children})}function nr(st){return(0,fe.jsx)(xr,{children:st})}function Hr(){return(0,fe.jsx)("div",{})}function ar(st){var lt=V.useRef(!1),Ge=(0,Pr.t)("@@initialState")||{},ct=Ge.loading,Ft=ct===void 0?!1:ct;return V.useEffect(function(){Ft||(lt.current=!0)},[Ft]),Ft&&!lt.current&&typeof window!="undefined"?(0,fe.jsx)(Hr,{}):st.children}function na(st){return(0,fe.jsx)(ar,{children:st})}var wr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"},Gr=wr,Rr=function(lt,Ge){return V.createElement(z.Z,(0,X.Z)((0,X.Z)({},lt),{},{ref:Ge,icon:Gr}))},Yn=V.forwardRef(Rr),Wn=Yn,ot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"},Tt=ot,Mt=function(lt,Ge){return V.createElement(z.Z,(0,X.Z)((0,X.Z)({},lt),{},{ref:Ge,icon:Tt}))},Ut=V.forwardRef(Mt),Ot=Ut,ft={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"},et=ft,dt=function(lt,Ge){return V.createElement(z.Z,(0,X.Z)((0,X.Z)({},lt),{},{ref:Ge,icon:et}))},ht=V.forwardRef(dt),Nt=ht,Qt=e(50228),Jt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},Vt=Jt,Zt=function(lt,Ge){return V.createElement(z.Z,(0,X.Z)((0,X.Z)({},lt),{},{ref:Ge,icon:Vt}))},Ee=V.forwardRef(Zt),Ce=Ee,Te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"},Ae=Te,He=function(lt,Ge){return V.createElement(z.Z,(0,X.Z)((0,X.Z)({},lt),{},{ref:Ge,icon:Ae}))},Ct=V.forwardRef(He),wt=Ct,tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},an=tn,zt=function(lt,Ge){return V.createElement(z.Z,(0,X.Z)((0,X.Z)({},lt),{},{ref:Ge,icon:an}))},gn=V.forwardRef(zt),bn=gn,Sn={icon:{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 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"}}]},name:"table",theme:"outlined"},rn=Sn,Gn=function(lt,Ge){return V.createElement(z.Z,(0,X.Z)((0,X.Z)({},lt),{},{ref:Ge,icon:rn}))},Me=V.forwardRef(Gn),me=Me,ue=e(51042),Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},pe=Oe,De=function(lt,Ge){return V.createElement(z.Z,(0,X.Z)((0,X.Z)({},lt),{},{ref:Ge,icon:pe}))},_e=V.forwardRef(De),ae=_e,vt=e(43425),It={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zm-126 534.1H250.3l-53.8-409.4 139.8 86.1L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4zM512 509c-62.1 0-112.6 50.5-112.6 112.6S449.9 734.2 512 734.2s112.6-50.5 112.6-112.6S574.1 509 512 509zm0 160.9c-26.6 0-48.2-21.6-48.2-48.3 0-26.6 21.6-48.3 48.2-48.3s48.2 21.6 48.2 48.3c0 26.6-21.6 48.3-48.2 48.3z"}}]},name:"crown",theme:"outlined"},pt=It,nn=function(lt,Ge){return V.createElement(z.Z,(0,X.Z)((0,X.Z)({},lt),{},{ref:Ge,icon:pt}))},it=V.forwardRef(nn),yn=it,en=e(48489),un={DashboardOutlined:Wn,TeamOutlined:Ot,CustomerServiceOutlined:Nt,RobotOutlined:Qt.Z,BookOutlined:Ce,BugOutlined:wt,FormOutlined:bn,TableOutlined:me,PlusOutlined:ue.Z,HistoryOutlined:ae,SettingOutlined:vt.Z,CrownOutlined:yn,QuestionOutlined:en.Z};function jt(st){return st.replace(st[0],st[0].toUpperCase()).replace(/-(w)/g,function(lt,Ge){return Ge.toUpperCase()})}function Et(st){var lt=st.routes;Object.keys(lt).forEach(function(Ge){var ct=lt[Ge].icon;if(ct&&typeof ct=="string"){var Ft=jt(ct);(un[Ft]||un[Ft+"Outlined"])&&(lt[Ge].icon=V.createElement(un[Ft]||un[Ft+"Outlined"]))}})}var rt=e(28459),xt=e(27484),qt=e.n(xt),on=e(25054),sn=e(33852),Dn=e(43901),xn=e(6964);function At(){var st=getLocale();if(moment!=null&&moment.locale){var lt;moment.locale(((lt=localeInfo[st])===null||lt===void 0?void 0:lt.momentLocale)||"")}setIntl(st)}var Jn=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?V.useLayoutEffect:V.useEffect,or=function(lt){var Ge,ct=(0,xn.Kd)(),Ft=V.useState(ct),fn=J()(Ft,2),En=fn[0],dn=fn[1],hn=V.useState(function(){return(0,xn.lw)(En,!0)}),er=J()(hn,2),cn=er[0],ln=er[1],Kn=function(ca){if(qt()!==null&&qt()!==void 0&&qt().locale){var fa;qt().locale(((fa=xn.H8[ca])===null||fa===void 0?void 0:fa.momentLocale)||"en")}dn(ca),ln((0,xn.lw)(ca))};Jn(function(){return xn.B.on(xn.PZ,Kn),function(){xn.B.off(xn.PZ,Kn)}},[]);var Ur={},Bn=(0,xn.Mg)();return(0,fe.jsx)(rt.ZP,{direction:Bn,locale:((Ge=xn.H8[En])===null||Ge===void 0?void 0:Ge.antd)||Ur,children:(0,fe.jsx)(xn.eU,{value:cn,children:lt.children})})};function Ar(st){return V.createElement(or,null,st)}var Mr={initialState:void 0,loading:!0,error:void 0},zr=function(){var st=(0,V.useState)(Mr),lt=J()(st,2),Ge=lt[0],ct=lt[1],Ft=(0,V.useCallback)(f()(d()().mark(function En(){var dn;return d()().wrap(function(er){for(;;)switch(er.prev=er.next){case 0:return ct(function(cn){return b()(b()({},cn),{},{loading:!0,error:void 0})}),er.prev=1,er.next=4,Fe();case 4:dn=er.sent,ct(function(cn){return b()(b()({},cn),{},{initialState:dn,loading:!1})}),er.next=11;break;case 8:er.prev=8,er.t0=er.catch(1),ct(function(cn){return b()(b()({},cn),{},{error:er.t0,loading:!1})});case 11:case"end":return er.stop()}},En,null,[[1,8]])})),[]),fn=(0,V.useCallback)(function(){var En=f()(d()().mark(function dn(hn){return d()().wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:ct(function(ln){return typeof hn=="function"?b()(b()({},ln),{},{initialState:hn(ln.initialState),loading:!1}):b()(b()({},ln),{},{initialState:hn,loading:!1})});case 1:case"end":return cn.stop()}},dn)}));return function(dn){return En.apply(this,arguments)}}(),[]);return(0,V.useEffect)(function(){Ft()},[]),b()(b()({},Ge),{},{refresh:Ft,setInitialState:fn})},qr={model_1:{namespace:"@@initialState",model:zr}};function Kr(st){var lt=V.useMemo(function(){return Object.keys(qr).reduce(function(Ge,ct){return Ge[qr[ct].namespace]=qr[ct].model,Ge},{})},[]);return(0,fe.jsx)(Pr.z,b()(b()({models:lt},st),{},{children:st.children}))}function Jr(st,lt){return(0,fe.jsx)(Kr,b()(b()({},lt),{},{children:st}))}function da(st){return st.default?typeof st.default=="function"?st.default():st.default:st}function ma(){return[{apply:da(t),path:void 0},{apply:r,path:void 0},{apply:o,path:void 0},{apply:a,path:void 0},{apply:s,path:void 0},{apply:u,path:void 0},{apply:c,path:void 0}]}function va(){return["patchRoutes","patchClientRoutes","modifyContextOpts","modifyClientRenderOpts","rootContainer","innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","render","onRouteChange","antd","getInitialState","layout","locale","qiankun","request"]}var Xr=null;function ga(){return Xr=C.PluginManager.create({plugins:ma(),validKeys:va()}),Xr}function Qr(){return Xr}},86745:function(v,p,e){"use strict";e.d(p,{Access:function(){return t.Nv},ApplyPluginsType:function(){return Ut},FormattedMessage:function(){return r._H},Link:function(){return yr},Outlet:function(){return Dt.j3},PluginManager:function(){return Ot},SelectLang:function(){return r.pD},getLocale:function(){return r.Kd},history:function(){return ft.m8},matchRoutes:function(){return Dt.fp},request:function(){return Pt},setLocale:function(){return r.i_},useAccess:function(){return t.md},useAppData:function(){return In.Ov},useIntl:function(){return r.YB},useLocation:function(){return Dt.TH},useModel:function(){return o.t},useNavigate:function(){return Dt.s0},useOutletContext:function(){return Dt.bx}});var t=e(83228),r=e(66999),o=e(44886),a=e(15009),s=e.n(a),u=e(99289),c=e.n(u),l=e(13769),d=e(52677),m=e.n(d),b=e(97857),y=e.n(b),f=e(9669),E=e.n(f),R=e(67294),T=e(91296),C=e.n(T),M=e(93096),P=e.n(M);function A(){return typeof document!="undefined"&&typeof document.visibilityState!="undefined"?document.visibilityState!=="hidden":!0}function O(){return typeof navigator.onLine!="undefined"?navigator.onLine:!0}var $=new Map,Z=function(Ce,Te,Ae){var He=$.get(Ce);He!=null&&He.timer&&clearTimeout(He.timer);var Ct=void 0;Te>-1&&(Ct=setTimeout(function(){$.delete(Ce)},Te)),$.set(Ce,{data:Ae,timer:Ct,startTime:new Date().getTime()})},Q=function(Ce){var Te=$.get(Ce);return{data:Te==null?void 0:Te.data,startTime:Te==null?void 0:Te.startTime}},U=function(Ee,Ce){var Te=typeof Symbol=="function"&&Ee[Symbol.iterator];if(!Te)return Ee;var Ae=Te.call(Ee),He,Ct=[],wt;try{for(;(Ce===void 0||Ce-- >0)&&!(He=Ae.next()).done;)Ct.push(He.value)}catch(tn){wt={error:tn}}finally{try{He&&!He.done&&(Te=Ae.return)&&Te.call(Ae)}finally{if(wt)throw wt.error}}return Ct},Y=function(){for(var Ee=[],Ce=0;Ce0)&&!(He=Ae.next()).done;)Ct.push(He.value)}catch(tn){wt={error:tn}}finally{try{He&&!He.done&&(Te=Ae.return)&&Te.call(Ae)}finally{if(wt)throw wt.error}}return Ct},J=function(){for(var Ee=[],Ce=0;Ce0)&&!(He=Ae.next()).done;)Ct.push(He.value)}catch(tn){wt={error:tn}}finally{try{He&&!He.done&&(Te=Ae.return)&&Te.call(Ae)}finally{if(wt)throw wt.error}}return Ct},$e=function(){for(var Ee=[],Ce=0;Ce0){var Ge=pt&&((lt=getCache(pt))===null||lt===void 0?void 0:lt.startTime)||0;en===-1||new Date().getTime()-Ge<=en||Object.values(Kr).forEach(function(ct){ct.refresh()})}else Xr.current.apply(Xr,$e(pe))},[]);var Qr=useCallback(function(){Object.values(da.current).forEach(function(lt){lt.unmount()}),sn.current=at,Jr({}),da.current={}},[Jr]);useUpdateEffect(function(){wt||Object.values(da.current).forEach(function(lt){lt.refresh()})},$e(He)),useEffect(function(){return function(){Object.values(da.current).forEach(function(lt){lt.unmount()})}},[]);var st=useCallback(function(lt){return function(){console.warn("You should't call "+lt+" when service not executed once.")}},[]);return Ie(Ie({loading:xt&&!wt||Sn,data:Et,error:void 0,params:[],cancel:st("cancel"),refresh:st("refresh"),mutate:st("mutate")},Kr[sn.current]||{}),{run:va,fetches:Kr,reset:Qr})}var Ye=null,Xe=function(){return Xe=Object.assign||function(Ee){for(var Ce,Te=1,Ae=arguments.length;Te0)&&!(He=Ae.next()).done;)Ct.push(He.value)}catch(tn){wt={error:tn}}finally{try{He&&!He.done&&(Te=Ae.return)&&Te.call(Ae)}finally{if(wt)throw wt.error}}return Ct},Le=function(){for(var Ee=[],Ce=0;Ce0)&&!(He=Ae.next()).done;)Ct.push(He.value)}catch(tn){wt={error:tn}}finally{try{He&&!He.done&&(Te=Ae.return)&&Te.call(Ae)}finally{if(wt)throw wt.error}}return Ct},x=function(){for(var Ee=[],Ce=0;Ceon&&(xt=Math.max(1,on)),It({current:xt,pageSize:qt})},[pt,It]),yn=useCallback(function(Et){it(Et,pe)},[it,pe]),en=useCallback(function(Et){it(ue,Et)},[it,ue]),un=useRef(yn);un.current=yn,useUpdateEffect(function(){Ce.manual||un.current(1)},x(wt));var jt=useCallback(function(Et,rt,xt){It({current:Et.current,pageSize:Et.pageSize||He,filters:rt,sorter:xt})},[vt,_e,It]);return ie({loading:rn,data:gn,params:bn,run:Sn,pagination:{current:ue,pageSize:pe,total:pt,totalPage:nn,onChange:it,changeCurrent:yn,changePageSize:en},tableProps:{dataSource:(gn==null?void 0:gn.list)||[],loading:rn,onChange:jt,pagination:{current:ue,pageSize:pe,total:pt}},sorter:_e,filters:vt},Gn)}var ve=null,he=R.createContext({});he.displayName="UseRequestConfigContext";var w=he,S=function(){return S=Object.assign||function(Ee){for(var Ce,Te=1,Ae=arguments.length;Te0)&&!(He=Ae.next()).done;)Ct.push(He.value)}catch(tn){wt={error:tn}}finally{try{He&&!He.done&&(Te=Ae.return)&&Te.call(Ae)}finally{if(wt)throw wt.error}}return Ct},_=function(){for(var Ee=[],Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:{};return useUmiRequest(Ee,_objectSpread({formatResult:function(Ae){return Ae==null?void 0:Ae.data},requestMethod:function(Ae){if(typeof Ae=="string")return Pt(Ae);if(_typeof(Ae)==="object"){var He=Ae.url,Ct=_objectWithoutProperties(Ae,Ne);return Pt(He,Ct)}throw new Error("request options error")}},Ce))}var We,je,Ve=function(){return je||(je=(0,ye.We)().applyPlugins({key:"request",type:Ut.modify,initialValue:{}}),je)},mt=function(){var Ce,Te;if(We)return We;var Ae=Ve();return We=E().create(Ae),Ae==null||(Ce=Ae.requestInterceptors)===null||Ce===void 0||Ce.forEach(function(He){He instanceof Array?We.interceptors.request.use(function(){var Ct=c()(s()().mark(function wt(tn){var an,zt,gn,bn;return s()().wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:if(an=tn.url,He[0].length!==2){rn.next=8;break}return rn.next=4,He[0](an,tn);case 4:return zt=rn.sent,gn=zt.url,bn=zt.options,rn.abrupt("return",y()(y()({},bn),{},{url:gn}));case 8:return rn.abrupt("return",He[0](tn));case 9:case"end":return rn.stop()}},wt)}));return function(wt){return Ct.apply(this,arguments)}}(),He[1]):We.interceptors.request.use(function(){var Ct=c()(s()().mark(function wt(tn){var an,zt,gn,bn;return s()().wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:if(an=tn.url,He.length!==2){rn.next=8;break}return rn.next=4,He(an,tn);case 4:return zt=rn.sent,gn=zt.url,bn=zt.options,rn.abrupt("return",y()(y()({},bn),{},{url:gn}));case 8:return rn.abrupt("return",He(tn));case 9:case"end":return rn.stop()}},wt)}));return function(wt){return Ct.apply(this,arguments)}}())}),Ae==null||(Te=Ae.responseInterceptors)===null||Te===void 0||Te.forEach(function(He){He instanceof Array?We.interceptors.response.use(He[0],He[1]):We.interceptors.response.use(He)}),We.interceptors.response.use(function(He){var Ct,wt=He.data;return(wt==null?void 0:wt.success)===!1&&Ae!==null&&Ae!==void 0&&(Ct=Ae.errorConfig)!==null&&Ct!==void 0&&Ct.errorThrower&&Ae.errorConfig.errorThrower(wt),He}),We},Pt=function(Ce){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{method:"GET"},Ae=mt(),He=Ve(),Ct=Te.getResponse,wt=Ct===void 0?!1:Ct,tn=Te.requestInterceptors,an=Te.responseInterceptors,zt=tn==null?void 0:tn.map(function(bn){return bn instanceof Array?Ae.interceptors.request.use(function(){var Sn=c()(s()().mark(function rn(Gn){var Me,me,ue,Oe;return s()().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(Me=Gn.url,bn[0].length!==2){De.next=8;break}return De.next=4,bn[0](Me,Gn);case 4:return me=De.sent,ue=me.url,Oe=me.options,De.abrupt("return",y()(y()({},Oe),{},{url:ue}));case 8:return De.abrupt("return",bn[0](Gn));case 9:case"end":return De.stop()}},rn)}));return function(rn){return Sn.apply(this,arguments)}}(),bn[1]):Ae.interceptors.request.use(function(){var Sn=c()(s()().mark(function rn(Gn){var Me,me,ue,Oe;return s()().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(Me=Gn.url,bn.length!==2){De.next=8;break}return De.next=4,bn(Me,Gn);case 4:return me=De.sent,ue=me.url,Oe=me.options,De.abrupt("return",y()(y()({},Oe),{},{url:ue}));case 8:return De.abrupt("return",bn(Gn));case 9:case"end":return De.stop()}},rn)}));return function(rn){return Sn.apply(this,arguments)}}())}),gn=an==null?void 0:an.map(function(bn){return bn instanceof Array?Ae.interceptors.response.use(bn[0],bn[1]):Ae.interceptors.response.use(bn)});return new Promise(function(bn,Sn){Ae.request(y()(y()({},Te),{},{url:Ce})).then(function(rn){zt==null||zt.forEach(function(Gn){Ae.interceptors.request.eject(Gn)}),gn==null||gn.forEach(function(Gn){Ae.interceptors.response.eject(Gn)}),bn(wt?rn:rn.data)}).catch(function(rn){zt==null||zt.forEach(function(me){Ae.interceptors.request.eject(me)}),gn==null||gn.forEach(function(me){Ae.interceptors.response.eject(me)});try{var Gn,Me=He==null||(Gn=He.errorConfig)===null||Gn===void 0?void 0:Gn.errorHandler;Me&&Me(rn,Te,He)}catch(me){Sn(me)}Sn(rn)})})},bt=e(58096),_t=e(49647),Dt=e(96974),Rt=e(55648);function Ht(){return Ht=Object.assign||function(Ee){for(var Ce=1;Ce=0)&&(Te[He]=Ee[He]);return Te}const vn=["onClick","reloadDocument","replace","state","target","to"],mn=null;function zn(Ee,Ce){if(!Ee){typeof console!="undefined"&&console.warn(Ce);try{throw new Error(Ce)}catch(Te){}}}function Xt(Ee){let{basename:Ce,children:Te,window:Ae}=Ee,He=useRef();He.current==null&&(He.current=createBrowserHistory({window:Ae}));let Ct=He.current,[wt,tn]=useState({action:Ct.action,location:Ct.location});return useLayoutEffect(()=>Ct.listen(tn),[Ct]),createElement(Router,{basename:Ce,children:Te,location:wt.location,navigationType:wt.action,navigator:Ct})}function Vn(Ee){let{basename:Ce,children:Te,window:Ae}=Ee,He=useRef();He.current==null&&(He.current=createHashHistory({window:Ae}));let Ct=He.current,[wt,tn]=useState({action:Ct.action,location:Ct.location});return useLayoutEffect(()=>Ct.listen(tn),[Ct]),createElement(Router,{basename:Ce,children:Te,location:wt.location,navigationType:wt.action,navigator:Ct})}function Un(Ee){let{basename:Ce,children:Te,history:Ae}=Ee;const[He,Ct]=useState({action:Ae.action,location:Ae.location});return useLayoutEffect(()=>Ae.listen(Ct),[Ae]),createElement(Router,{basename:Ce,children:Te,location:He.location,navigationType:He.action,navigator:Ae})}function _n(Ee){return!!(Ee.metaKey||Ee.altKey||Ee.ctrlKey||Ee.shiftKey)}const Ln=(0,R.forwardRef)(function(Ce,Te){let{onClick:Ae,reloadDocument:He,replace:Ct=!1,state:wt,target:tn,to:an}=Ce,zt=$t(Ce,vn),gn=(0,Dt.oQ)(an),bn=Rn(an,{replace:Ct,state:wt,target:tn});function Sn(rn){Ae&&Ae(rn),!rn.defaultPrevented&&!He&&bn(rn)}return(0,R.createElement)("a",Ht({},zt,{href:gn,onClick:Sn,ref:Te,target:tn}))}),kn=null;function Rn(Ee,Ce){let{target:Te,replace:Ae,state:He}=Ce===void 0?{}:Ce,Ct=(0,Dt.s0)(),wt=(0,Dt.TH)(),tn=(0,Dt.WU)(Ee);return(0,R.useCallback)(an=>{if(an.button===0&&(!Te||Te==="_self")&&!_n(an)){an.preventDefault();let zt=!!Ae||(0,Rt.Ep)(wt)===(0,Rt.Ep)(tn);Ct(Ee,{replace:zt,state:He})}},[wt,Ct,tn,Ae,He,Te,Ee])}function Mn(Ee){let Ce=useRef($n(Ee)),Te=useLocation(),Ae=useMemo(()=>{let wt=$n(Te.search);for(let tn of Ce.current.keys())wt.has(tn)||Ce.current.getAll(tn).forEach(an=>{wt.append(tn,an)});return wt},[Te.search]),He=useNavigate(),Ct=useCallback((wt,tn)=>{He("?"+$n(wt),tn)},[He]);return[Ae,Ct]}function $n(Ee){return Ee===void 0&&(Ee=""),new URLSearchParams(typeof Ee=="string"||Array.isArray(Ee)||Ee instanceof URLSearchParams?Ee:Object.keys(Ee).reduce((Ce,Te)=>{let Ae=Ee[Te];return Ce.concat(Array.isArray(Ae)?Ae.map(He=>[Te,He]):[[Te,Ae]])},[]))}var In=e(34162),lr=["prefetch"];function yr(Ee){var Ce,Te=Ee.prefetch,Ae=(0,_t.Z)(Ee,lr),He=(0,In.Ov)(),Ct=typeof Ee.to=="string"?Ee.to:(Ce=Ee.to)===null||Ce===void 0?void 0:Ce.pathname;return Ct?R.createElement(Ln,(0,bt.Z)({onMouseEnter:function(){var tn;return Te&&Ct&&((tn=He.preloadRoute)===null||tn===void 0?void 0:tn.call(He,Ct))}},Ae),Ee.children):null}function rr(Ee){"@babel/helpers - typeof";return rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ce){return typeof Ce}:function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce},rr(Ee)}function Lr(){"use strict";Lr=function(){return Ce};var Ee,Ce={},Te=Object.prototype,Ae=Te.hasOwnProperty,He=Object.defineProperty||function(Et,rt,xt){Et[rt]=xt.value},Ct=typeof Symbol=="function"?Symbol:{},wt=Ct.iterator||"@@iterator",tn=Ct.asyncIterator||"@@asyncIterator",an=Ct.toStringTag||"@@toStringTag";function zt(Et,rt,xt){return Object.defineProperty(Et,rt,{value:xt,enumerable:!0,configurable:!0,writable:!0}),Et[rt]}try{zt({},"")}catch(Et){zt=function(xt,qt,on){return xt[qt]=on}}function gn(Et,rt,xt,qt){var on=rt&&rt.prototype instanceof ue?rt:ue,sn=Object.create(on.prototype),Dn=new un(qt||[]);return He(sn,"_invoke",{value:nn(Et,xt,Dn)}),sn}function bn(Et,rt,xt){try{return{type:"normal",arg:Et.call(rt,xt)}}catch(qt){return{type:"throw",arg:qt}}}Ce.wrap=gn;var Sn="suspendedStart",rn="suspendedYield",Gn="executing",Me="completed",me={};function ue(){}function Oe(){}function pe(){}var De={};zt(De,wt,function(){return this});var _e=Object.getPrototypeOf,ae=_e&&_e(_e(jt([])));ae&&ae!==Te&&Ae.call(ae,wt)&&(De=ae);var vt=pe.prototype=ue.prototype=Object.create(De);function It(Et){["next","throw","return"].forEach(function(rt){zt(Et,rt,function(xt){return this._invoke(rt,xt)})})}function pt(Et,rt){function xt(on,sn,Dn,xn){var At=bn(Et[on],Et,sn);if(At.type!=="throw"){var Jn=At.arg,or=Jn.value;return or&&rr(or)=="object"&&Ae.call(or,"__await")?rt.resolve(or.__await).then(function(Ar){xt("next",Ar,Dn,xn)},function(Ar){xt("throw",Ar,Dn,xn)}):rt.resolve(or).then(function(Ar){Jn.value=Ar,Dn(Jn)},function(Ar){return xt("throw",Ar,Dn,xn)})}xn(At.arg)}var qt;He(this,"_invoke",{value:function(sn,Dn){function xn(){return new rt(function(At,Jn){xt(sn,Dn,At,Jn)})}return qt=qt?qt.then(xn,xn):xn()}})}function nn(Et,rt,xt){var qt=Sn;return function(on,sn){if(qt===Gn)throw new Error("Generator is already running");if(qt===Me){if(on==="throw")throw sn;return{value:Ee,done:!0}}for(xt.method=on,xt.arg=sn;;){var Dn=xt.delegate;if(Dn){var xn=it(Dn,xt);if(xn){if(xn===me)continue;return xn}}if(xt.method==="next")xt.sent=xt._sent=xt.arg;else if(xt.method==="throw"){if(qt===Sn)throw qt=Me,xt.arg;xt.dispatchException(xt.arg)}else xt.method==="return"&&xt.abrupt("return",xt.arg);qt=Gn;var At=bn(Et,rt,xt);if(At.type==="normal"){if(qt=xt.done?Me:rn,At.arg===me)continue;return{value:At.arg,done:xt.done}}At.type==="throw"&&(qt=Me,xt.method="throw",xt.arg=At.arg)}}}function it(Et,rt){var xt=rt.method,qt=Et.iterator[xt];if(qt===Ee)return rt.delegate=null,xt==="throw"&&Et.iterator.return&&(rt.method="return",rt.arg=Ee,it(Et,rt),rt.method==="throw")||xt!=="return"&&(rt.method="throw",rt.arg=new TypeError("The iterator does not provide a '"+xt+"' method")),me;var on=bn(qt,Et.iterator,rt.arg);if(on.type==="throw")return rt.method="throw",rt.arg=on.arg,rt.delegate=null,me;var sn=on.arg;return sn?sn.done?(rt[Et.resultName]=sn.value,rt.next=Et.nextLoc,rt.method!=="return"&&(rt.method="next",rt.arg=Ee),rt.delegate=null,me):sn:(rt.method="throw",rt.arg=new TypeError("iterator result is not an object"),rt.delegate=null,me)}function yn(Et){var rt={tryLoc:Et[0]};1 in Et&&(rt.catchLoc=Et[1]),2 in Et&&(rt.finallyLoc=Et[2],rt.afterLoc=Et[3]),this.tryEntries.push(rt)}function en(Et){var rt=Et.completion||{};rt.type="normal",delete rt.arg,Et.completion=rt}function un(Et){this.tryEntries=[{tryLoc:"root"}],Et.forEach(yn,this),this.reset(!0)}function jt(Et){if(Et||Et===""){var rt=Et[wt];if(rt)return rt.call(Et);if(typeof Et.next=="function")return Et;if(!isNaN(Et.length)){var xt=-1,qt=function on(){for(;++xt=0;--on){var sn=this.tryEntries[on],Dn=sn.completion;if(sn.tryLoc==="root")return qt("end");if(sn.tryLoc<=this.prev){var xn=Ae.call(sn,"catchLoc"),At=Ae.call(sn,"finallyLoc");if(xn&&At){if(this.prev=0;--qt){var on=this.tryEntries[qt];if(on.tryLoc<=this.prev&&Ae.call(on,"finallyLoc")&&this.prev=0;--xt){var qt=this.tryEntries[xt];if(qt.finallyLoc===rt)return this.complete(qt.completion,qt.afterLoc),en(qt),me}},catch:function(rt){for(var xt=this.tryEntries.length-1;xt>=0;--xt){var qt=this.tryEntries[xt];if(qt.tryLoc===rt){var on=qt.completion;if(on.type==="throw"){var sn=on.arg;en(qt)}return sn}}throw new Error("illegal catch attempt")},delegateYield:function(rt,xt,qt){return this.delegate={iterator:jt(rt),resultName:xt,nextLoc:qt},this.method==="next"&&(this.arg=Ee),me}},Ce}function $r(Ee,Ce){if(rr(Ee)!="object"||!Ee)return Ee;var Te=Ee[Symbol.toPrimitive];if(Te!==void 0){var Ae=Te.call(Ee,Ce||"default");if(rr(Ae)!="object")return Ae;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ce==="string"?String:Number)(Ee)}function br(Ee){var Ce=$r(Ee,"string");return rr(Ce)=="symbol"?Ce:String(Ce)}function Or(Ee,Ce,Te){return Ce=br(Ce),Ce in Ee?Object.defineProperty(Ee,Ce,{value:Te,enumerable:!0,configurable:!0,writable:!0}):Ee[Ce]=Te,Ee}function Qn(Ee,Ce){var Te=Object.keys(Ee);if(Object.getOwnPropertySymbols){var Ae=Object.getOwnPropertySymbols(Ee);Ce&&(Ae=Ae.filter(function(He){return Object.getOwnPropertyDescriptor(Ee,He).enumerable})),Te.push.apply(Te,Ae)}return Te}function ir(Ee){for(var Ce=1;CeEe.length)&&(Ce=Ee.length);for(var Te=0,Ae=new Array(Ce);Te=Ee.length?{done:!0}:{done:!1,value:Ee[Ae++]}},e:function(zt){throw zt},f:He}}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 Ct=!0,wt=!1,tn;return{s:function(){Te=Te.call(Ee)},n:function(){var zt=Te.next();return Ct=zt.done,zt},e:function(zt){wt=!0,tn=zt},f:function(){try{!Ct&&Te.return!=null&&Te.return()}finally{if(wt)throw tn}}}}function ar(Ee){if(Array.isArray(Ee))return Ee}function na(Ee){if(typeof Symbol!="undefined"&&Ee[Symbol.iterator]!=null||Ee["@@iterator"]!=null)return Array.from(Ee)}function wr(){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 Gr(Ee){return ar(Ee)||na(Ee)||nr(Ee)||wr()}function Rr(Ee,Ce){if(!(Ee instanceof Ce))throw new TypeError("Cannot call a class as a function")}function Yn(Ee,Ce){for(var Te=0;Te-1,"register failed, invalid key ".concat(He," ").concat(Te.path?"from plugin ".concat(Te.path):"",".")),Ae.hooks[He]=(Ae.hooks[He]||[]).concat(Te.apply[He])})}},{key:"getHooks",value:function(Te){var Ae=Te.split("."),He=Gr(Ae),Ct=He[0],wt=He.slice(1),tn=this.hooks[Ct]||[];return wt.length&&(tn=tn.map(function(an){try{var zt=an,gn=Hr(wt),bn;try{for(gn.s();!(bn=gn.n()).done;){var Sn=bn.value;zt=zt[Sn]}}catch(rn){gn.e(rn)}finally{gn.f()}return zt}catch(rn){return null}}).filter(Boolean)),tn}},{key:"applyPlugins",value:function(Te){var Ae=Te.key,He=Te.type,Ct=Te.initialValue,wt=Te.args,tn=Te.async,an=this.getHooks(Ae)||[];switch(wt&&ot(rr(wt)==="object","applyPlugins failed, args must be plain object."),tn&&ot(He===Ut.modify||He===Ut.event,"async only works with modify and event type."),He){case Ut.modify:return tn?an.reduce(function(){var zt=_r(Lr().mark(function gn(bn,Sn){var rn;return Lr().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(ot(typeof Sn=="function"||rr(Sn)==="object"||Mt(Sn),"applyPlugins failed, all hooks for key ".concat(Ae," must be function, plain object or Promise.")),!Mt(bn)){Me.next=5;break}return Me.next=4,bn;case 4:bn=Me.sent;case 5:if(typeof Sn!="function"){Me.next=16;break}if(rn=Sn(bn,wt),!Mt(rn)){Me.next=13;break}return Me.next=10,rn;case 10:return Me.abrupt("return",Me.sent);case 13:return Me.abrupt("return",rn);case 14:Me.next=21;break;case 16:if(!Mt(Sn)){Me.next=20;break}return Me.next=19,Sn;case 19:Sn=Me.sent;case 20:return Me.abrupt("return",ir(ir({},bn),Sn));case 21:case"end":return Me.stop()}},gn)}));return function(gn,bn){return zt.apply(this,arguments)}}(),Mt(Ct)?Ct:Promise.resolve(Ct)):an.reduce(function(zt,gn){return ot(typeof gn=="function"||rr(gn)==="object","applyPlugins failed, all hooks for key ".concat(Ae," must be function or plain object.")),typeof gn=="function"?gn(zt,wt):ir(ir({},zt),gn)},Ct);case Ut.event:return _r(Lr().mark(function zt(){var gn,bn,Sn,rn;return Lr().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:gn=Hr(an),Me.prev=1,gn.s();case 3:if((bn=gn.n()).done){Me.next=12;break}if(Sn=bn.value,ot(typeof Sn=="function","applyPlugins failed, all hooks for key ".concat(Ae," must be function.")),rn=Sn(wt),!(tn&&Mt(rn))){Me.next=10;break}return Me.next=10,rn;case 10:Me.next=3;break;case 12:Me.next=17;break;case 14:Me.prev=14,Me.t0=Me.catch(1),gn.e(Me.t0);case 17:return Me.prev=17,gn.f(),Me.finish(17);case 20:case"end":return Me.stop()}},zt,null,[[1,14,17,20]])}))();case Ut.compose:return function(){return Tt({fns:an.concat(Ct),args:wt})()}}}}],[{key:"create",value:function(Te){var Ae=new Ee({validKeys:Te.validKeys});return Te.plugins.forEach(function(He){Ae.register(He)}),Ae}}]),Ee}(),ft=e(10581),et=0,dt=0;function ht(Ee,Ce){if(0)var Te}function Nt(Ee){return JSON.stringify(Ee,null,2)}function Qt(Ee){var Ce=Ee.length>1?Ee.map(Jt).join(" "):Ee[0];return m()(Ce)==="object"?"".concat(Nt(Ce)):Ce.toString()}function Jt(Ee){return m()(Ee)==="object"?"".concat(JSON.stringify(Ee)):Ee.toString()}var Vt={log:function(){for(var Ce=arguments.length,Te=new Array(Ce),Ae=0;Ae2&&arguments[2]!==void 0?arguments[2]:{},Jt=Qt.format,Vt=Jt&&(0,T.TB)(ht,"number",Jt,Nt)||{},Zt=(0,T.L6)(Qt,C,Vt);return et(dt,Zt)}function P(ft,et,dt){var ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{return M(ft,et,ht).format(dt)}catch(Nt){ft.onError((0,T.Tr)("Error formatting number.",Nt))}return String(dt)}function A(ft,et,dt){var ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{return M(ft,et,ht).formatToParts(dt)}catch(Nt){ft.onError((0,T.Tr)("Error formatting number.",Nt))}return[]}var O=["numeric","style"];function $(ft,et){var dt=ft.locale,ht=ft.formats,Nt=ft.onError,Qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=Qt.format,Vt=!!Jt&&(0,T.TB)(ht,"relative",Jt,Nt)||{},Zt=(0,T.L6)(Qt,O,Vt);return et(dt,Zt)}function Z(ft,et,dt,ht){var Nt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};ht||(ht="second");var Qt=Intl.RelativeTimeFormat;Qt||ft.onError((0,T.Tr)(`Intl.RelativeTimeFormat is not available in this environment. -Try polyfilling it using "@formatjs/intl-relativetimeformat" -`));try{return $(ft,et,Nt).format(dt,ht)}catch(Jt){ft.onError((0,T.Tr)("Error formatting relative time.",Jt))}return String(dt)}var Q=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function U(ft,et,dt){var ht=ft.locale,Nt=ft.formats,Qt=ft.onError,Jt=ft.timeZone,Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Zt=Vt.format,Ee=Object.assign(Object.assign({},Jt&&{timeZone:Jt}),Zt&&(0,T.TB)(Nt,et,Zt,Qt)),Ce=(0,T.L6)(Vt,Q,Ee);return et==="time"&&!Ce.hour&&!Ce.minute&&!Ce.second&&(Ce=Object.assign(Object.assign({},Ce),{hour:"numeric",minute:"numeric"})),dt(ht,Ce)}function Y(ft,et,dt){var ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Nt=typeof dt=="string"?new Date(dt||0):dt;try{return U(ft,"date",et,ht).format(Nt)}catch(Qt){ft.onError((0,T.Tr)("Error formatting date.",Qt))}return String(Nt)}function H(ft,et,dt){var ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Nt=typeof dt=="string"?new Date(dt||0):dt;try{return U(ft,"time",et,ht).format(Nt)}catch(Qt){ft.onError((0,T.Tr)("Error formatting time.",Qt))}return String(Nt)}function G(ft,et,dt){var ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Nt=typeof dt=="string"?new Date(dt||0):dt;try{return U(ft,"date",et,ht).formatToParts(Nt)}catch(Qt){ft.onError((0,T.Tr)("Error formatting date.",Qt))}return[]}function J(ft,et,dt){var ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Nt=typeof dt=="string"?new Date(dt||0):dt;try{return U(ft,"time",et,ht).formatToParts(Nt)}catch(Qt){ft.onError((0,T.Tr)("Error formatting time.",Qt))}return[]}var X=["localeMatcher","type"];function V(ft,et,dt){var ht=ft.locale,Nt=ft.onError,Qt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};Intl.PluralRules||Nt((0,T.Tr)(`Intl.PluralRules is not available in this environment. -Try polyfilling it using "@formatjs/intl-pluralrules" -`));var Jt=(0,T.L6)(Qt,X);try{return et(ht,Jt).select(dt)}catch(Vt){Nt((0,T.Tr)("Error formatting plural.",Vt))}return"other"}var q=e(19632),z=e.n(q),k=e(90193),L=e(78689);function F(ft,et){return Object.keys(ft).reduce(function(dt,ht){return dt[ht]=Object.assign({timeZone:et},ft[ht]),dt},{})}function N(ft,et){var dt=Object.keys(Object.assign(Object.assign({},ft),et));return dt.reduce(function(ht,Nt){return ht[Nt]=Object.assign(Object.assign({},ft[Nt]||{}),et[Nt]||{}),ht},{})}function ee(ft,et){if(!et)return ft;var dt=L.ZP.formats;return Object.assign(Object.assign(Object.assign({},dt),ft),{date:N(F(dt.date,et),F(ft.date||{},et)),time:N(F(dt.time,et),F(ft.time||{},et))})}var ce=function(et){return f.createElement.apply(E,[f.Fragment,null].concat(z()(et)))};function le(ft,et){var dt=ft.locale,ht=ft.formats,Nt=ft.messages,Qt=ft.defaultLocale,Jt=ft.defaultFormats,Vt=ft.onError,Zt=ft.timeZone,Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{id:""},Ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Te=Ee.id,Ae=Ee.defaultMessage;(0,k.k)(!!Te,"[React Intl] An `id` must be provided to format a message.");var He=Nt&&Nt[String(Te)];ht=ee(ht,Zt),Jt=ee(Jt,Zt);var Ct=[];if(He)try{var wt=et.getMessageFormat(He,dt,ht,{formatters:et});Ct=wt.formatHTMLMessage(Ce)}catch(an){Vt((0,T.Tr)('Error formatting message: "'.concat(Te,'" for locale: "').concat(dt,'"')+(Ae?", using default message as fallback.":""),an))}else(!Ae||dt&&dt.toLowerCase()!==Qt.toLowerCase())&&Vt((0,T.Tr)('Missing message: "'.concat(Te,'" for locale: "').concat(dt,'"')+(Ae?", using default message as fallback.":"")));if(!Ct.length&&Ae)try{var tn=et.getMessageFormat(Ae,Qt,Jt);Ct=tn.formatHTMLMessage(Ce)}catch(an){Vt((0,T.Tr)('Error formatting the default message for: "'.concat(Te,'"'),an))}return Ct.length?Ct.length===1&&typeof Ct[0]=="string"?Ct[0]||Ae||String(Te):ce(Ct):(Vt((0,T.Tr)('Cannot format message: "'.concat(Te,'", ')+"using message ".concat(He||Ae?"source":"id"," as fallback."))),typeof He=="string"?He||Ae||String(Te):Ae||String(Te))}function se(ft,et){var dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{id:""},ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Nt=Object.keys(ht).reduce(function(Qt,Jt){var Vt=ht[Jt];return Qt[Jt]=typeof Vt=="string"?(0,T.YU)(Vt):Vt,Qt},{});return le(ft,et,dt,Nt)}var fe=e(38138),xe=e.n(fe),Ie=e(52677),Pe=e.n(Ie),$e=["localeMatcher","type","style"],at=Date.now();function ut(ft){return"".concat(at,"_").concat(ft,"_").concat(at)}function Ue(ft,et,dt){var ht=ft.locale,Nt=ft.onError,Qt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Jt=Intl.ListFormat;Jt||Nt((0,T.Tr)(`Intl.ListFormat is not available in this environment. -Try polyfilling it using "@formatjs/intl-listformat" -`));var Vt=(0,T.L6)(Qt,$e);try{var Zt={},Ee=dt.map(function(Te,Ae){if(Pe()(Te)==="object"){var He=ut(Ae);return Zt[He]=Te,He}return String(Te)});if(!Object.keys(Zt).length)return et(ht,Vt).format(Ee);var Ce=et(ht,Vt).formatToParts(Ee);return Ce.reduce(function(Te,Ae){var He=Ae.value;return Zt[He]?Te.push(Zt[He]):typeof Te[Te.length-1]=="string"?Te[Te.length-1]+=He:Te.push(He),Te},[])}catch(Te){Nt((0,T.Tr)("Error formatting list.",Te))}return dt}var Ye=["localeMatcher","style","type","fallback"];function Xe(ft,et,dt){var ht=ft.locale,Nt=ft.onError,Qt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Jt=Intl.DisplayNames;Jt||Nt((0,T.Tr)(`Intl.DisplayNames is not available in this environment. -Try polyfilling it using "@formatjs/intl-displaynames" -`));var Vt=(0,T.L6)(Qt,Ye);try{return et(ht,Vt).of(dt)}catch(Zt){Nt((0,T.Tr)("Error formatting display name.",Zt))}}var Fe=xe()||fe;function Je(ft){return{locale:ft.locale,timeZone:ft.timeZone,formats:ft.formats,textComponent:ft.textComponent,messages:ft.messages,defaultLocale:ft.defaultLocale,defaultFormats:ft.defaultFormats,onError:ft.onError}}function Le(ft,et){var dt=(0,T.ax)(et),ht=Object.assign(Object.assign({},T.Z0),ft),Nt=ht.locale,Qt=ht.defaultLocale,Jt=ht.onError;return Nt?!Intl.NumberFormat.supportedLocalesOf(Nt).length&&Jt?Jt((0,T.Tr)('Missing locale data for locale: "'.concat(Nt,'" in Intl.NumberFormat. Using default locale: "').concat(Qt,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(Nt).length&&Jt&&Jt((0,T.Tr)('Missing locale data for locale: "'.concat(Nt,'" in Intl.DateTimeFormat. Using default locale: "').concat(Qt,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):(Jt&&Jt((0,T.Tr)('"locale" was not configured, using "'.concat(Qt,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details'))),ht.locale=ht.defaultLocale||"en"),Object.assign(Object.assign({},ht),{formatters:dt,formatNumber:P.bind(null,ht,dt.getNumberFormat),formatNumberToParts:A.bind(null,ht,dt.getNumberFormat),formatRelativeTime:Z.bind(null,ht,dt.getRelativeTimeFormat),formatDate:Y.bind(null,ht,dt.getDateTimeFormat),formatDateToParts:G.bind(null,ht,dt.getDateTimeFormat),formatTime:H.bind(null,ht,dt.getDateTimeFormat),formatTimeToParts:J.bind(null,ht,dt.getDateTimeFormat),formatPlural:V.bind(null,ht,dt.getPluralRules),formatMessage:le.bind(null,ht,dt),formatHTMLMessage:se.bind(null,ht,dt),formatList:Ue.bind(null,ht,dt.getListFormat),formatDisplayName:Xe.bind(null,ht,dt.getDisplayNames)})}var qe=function(ft){m()(dt,ft);var et=y()(dt);function dt(){var ht;return u()(this,dt),ht=et.apply(this,arguments),ht.cache=(0,T.Sn)(),ht.state={cache:ht.cache,intl:Le(Je(ht.props),ht.cache),prevConfig:Je(ht.props)},ht}return l()(dt,[{key:"render",value:function(){return(0,T.lq)(this.state.intl),f.createElement(R.zt,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(Nt,Qt){var Jt=Qt.prevConfig,Vt=Qt.cache,Zt=Je(Nt);return Fe(Jt,Zt)?null:{intl:Le(Zt,Vt),prevConfig:Zt}}}]),dt}(f.PureComponent);qe.displayName="IntlProvider",qe.defaultProps=T.Z0;var ze=e(84869),ie=e(48370),W=e.n(ie),re=e(15393),x=e.n(re),oe=function(ft,et){var dt={};for(var ht in ft)Object.prototype.hasOwnProperty.call(ft,ht)&&et.indexOf(ht)<0&&(dt[ht]=ft[ht]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,ht=Object.getOwnPropertySymbols(ft);Nt QuickButton -> Create, then add quickbutton here.",SERVICE:"Customer Service Robot",MARKETING:"Marketing Robot",KNOWLEDGEBASE:"Internal Knowledgebase Robot",QA:"QA Robot(No Kb)",llm:"LLM",keyword:"Keyword",reply:"Reply",third:"ThirdParty",form:"Form",survey:"Survey",history:"History",inputassociation:"Input Association",autoreply:"AutoReply",black:"Black",score:"Score",matchType:"Match Type",EXACT:"Exact Match",FUZZY:"Fuzzy Match",REGULAR:"Regular Match",VECTOR:"Vector Match",ELASTIC:"Elastic Match",enabled:"Enabled",yes:"Yes",no:"No",rate:"Rate",leavemsg:"Leave Message",transfer:"Transfer",visitor:"Visitor",customer:"Customer",browser:"Browser",os:"OS",device:"Device",referrer:"Referrer",captcha:"Captcha",logining:"Logining","login.success":"Login Success","login.error":"Login Failed",registering:"Registering","register.success":"Register Success","register.error":"Register Failed",antiharassment:"AntiHarassment",channelsocial:"Social Channel",channelshop:"Shop Channel",channelforeign:"Foreign Channel","robot.no.agent.now":"Robot does not support agent now","chat.widget.code":"Chat Widget Code",message:"Message",thread:"Thread",showHistory:"Show History",showPreForm:"Show PreForm",showInputAssociation:"Show Input Association",showCaptcha:"Show Captcha","leavemsg.enabled":"Leave Message Enabled","settings.profile":"Profile","settings.basic":"Basic Settings","settings.realname":"Kyc","settings.server":"Server Settings","server.address":"Server Address"},D={"component.globalHeader.search":"Search","component.globalHeader.help":"Help","component.globalHeader.notification":"Notification","component.globalHeader.notification.empty":"You have viewed all notifications.","component.globalHeader.message":"Message","component.globalHeader.message.empty":"You have viewed all messsages.","component.globalHeader.event":"Event","component.globalHeader.event.empty":"You have viewed all events.","component.noticeIcon.clear":"Clear","component.noticeIcon.cleared":"Cleared","component.noticeIcon.empty":"No notifications","component.noticeIcon.view-more":"View more"},te={"menu.welcome":"Welcome","menu.home":"Home","menu.member":"Member","menu.organiztion":"Org","menu.organiztion.organiztion":"Organization","menu.organiztion.member":"Member","menu.organiztion.role":"Role","menu.organiztion.group":"Group","menu.organiztion.column":"Column","menu.organiztion.thread":"Thread","menu.organiztion.message":"Message","menu.organiztion.notice":"Notice","menu.organiztion.tag":"Tag","menu.organiztion.upload":"File","menu.organiztion.action":"Action","menu.organiztion.company":"Company","menu.message":"Message","menu.service":"CustomerService","menu.service.agent":"Agent","menu.service.group":"Group","menu.service.queue":"Queue","menu.service.thread":"Thread","menu.service.message":"Message","menu.service.leavemsg":"LeaveMsg","menu.service.crm":"Crm","menu.service.rate":"Rate","menu.service.transfer":"Transfer","menu.service.monitor":"Monitor","menu.service.quality":"Quality","menu.service.black":"Black","menu.service.visitor":"Visitor","menu.service.statistic":"Statistic","menu.service.column":"Column","menu.ticket":"Ticket","menu.crm":"Crm","menu.setting.profile":"Profile","menu.setting.basic":"Basic","menu.setting.qrcode":"Qrcode","menu.setting.server":"Server","menu.admin":"Admin","menu.admin.user":"User","menu.admin.pay":"Pay","menu.admin.push":"Push","menu.login":"Login","menu.register":"Register","menu.robot":"Robot","menu.robot.robot":"Robot","menu.robot.message":"Message","menu.robot.thread":"Thread","menu.knowledge":"Knowledge","menu.knowledge.helpdoc":"HelpCenter","menu.knowledge.asistant":"Asistant","menu.knowledge.llm":"Llm","menu.knowledge.faq":"Faq","menu.knowledge.faqGuess":"FaqGuess","menu.knowledge.faqHot":"FaqHot","menu.knowledge.faqShortcut":"FaqShortcut","menu.knowledge.quickbutton":"QuickButton","menu.knowledge.autoreply":"AutoReply","menu.knowledge.quickreply":"QuickReply","menu.knowledge.keyword":"Keyword","menu.knowledge.taboo":"Taboo","menu.marketing":"Marketing","menu.marketing.blog":"Blog","menu.marketing.email":"Email","menu.plugins":"Plugins","menu.setting":"Setting","menu.docs":"Help","menu.liangshibao":"Liangshibao","menu.meiyu":"Meiyu","menu.tiku":"Tiku","menu.zhaobiao":"Zhaobiao","menu.quartz":"Quartz","menu.liangshibao.index":"Index","menu.liangshibao.category":"Category","menu.liangshibao.course":"Course","menu.liangshibao.teacher":"Teacher","menu.liangshibao.media":"Media"},be={TEXT:"TEXT",IMAGE:"IMAGE",FILE:"FILE",AUDIO:"AUDIO",VIDEO:"VIDEO",THREAD:"THREAD",ROBOT_QA:"ROBOT_QA",QUICKBUTTON_QA:"QUICKBUTTON_QA",QUICKBUTTON_URL:"QUICKBUTTON_URL",FAQ_QA:"FAQ_QA"},ge={"pages.login.title":"Bytedesk","pages.layouts.userLayout.title":"Team IM && Customer Service && AI ChatBot","pages.layouts.userLayout.title.liangshibao":"Liangshibao","pages.layouts.userLayout.title.tiku":"Tiku","pages.layouts.userLayout.title.meiyu":"Meiyu","pages.layouts.userLayout.title.zhaobiao":"Zhaobiao","pages.login.accountLogin.tab":"Account Login","pages.login.accountLogin.errorMessage":"Incorrect username/password(admin/ant.design)","pages.login.failure":"Login failed, please try again!","pages.login.success":"Login successful!","pages.login.username.placeholder":"Username/Email","pages.login.username.required":"Please input your username!","pages.login.password.placeholder":"Password","pages.login.repassword.placeholder":"RePassword","pages.login.password.required":"Please input your password!","pages.login.repassword.required":"Please input your password!","pages.login.phoneLogin.tab":"Phone Login","pages.login.phoneLogin.errorMessage":"Verification Code Error","pages.login.phoneNumber.placeholder":"Phone Number","pages.login.phoneNumber.required":"Please input your phone number!","pages.login.phoneNumber.invalid":"Phone number is invalid!","pages.login.captcha.placeholder":"Verification Code","pages.login.captcha.required":"Please input verification code!","pages.login.phoneLogin.getVerificationCode":"Get Code","pages.getCaptchaSecondText":"sec(s)","pages.login.scanLogin.tab":"Scan Login","pages.login.rememberMe":"Remember me","pages.login.forgotPassword":"Forgot Password ?","pages.login.submit":"Login","pages.login.loginWith":"Login with :","pages.login.register":"Register","pages.login.registerAccount":"Register Account","pages.login.auto.register":"Unregisterd Mobile will auto register","pages.welcome.link":"Welcome","pages.robot.new":"New","pages.robot.delete":"Delete","pages.robot.upload":"Upload","pages.robot.tab.basic":"Basic","pages.robot.tab.kb":"Knowledge Base","pages.robot.tab.channel":"Channel","pages.robot.tab.statistic":"Statistic","pages.robot.tab.advanced":"Advanced","pages.robot.tab.flow":"Flow","pages.robot.tab.avatar":"Avatar","pages.robot.tab.title":"Title","pages.robot.tab.welcomeTip":"welcomeTip","pages.robot.tab.description":"Description","pages.robot.tab.preview":"Preview","pages.robot.tab.website":"Website","pages.robot.tab.helpdesk":"Helpdesk","pages.robot.tab.icp":"ICP 17041763-1","pages.robot.tab.police":"44030502008688","pages.robot.kb.file":"File","pages.robot.kb.text":"Text","pages.robot.kb.qa":"Q&A","pages.robot.kb.web":"Website","pages.robot.file.title":"Title","pages.robot.file.content":"Content","pages.robot.file.type":"Type","pages.robot.file.size":"Size","pages.robot.file.action":"Action","pages.robot.file.delete":"Delete","pages.robot.file.save":"Save","pages.robot.file.cancel":"Cancel","pages.robot.file.uploading":"Uploading...","pages.robot.file.name_invalid":"File name should not contain _","pages.robot.file.parse":"Parse File Content","pages.agent.service.settings":"Service Settings","pages.agent.robot":"Robot","pages.workgroup.tab.route":"Route","pages.setting":"Settings","pages.logout":"Logout","pages.footer.website":"Bytedesk","pages.footer.helpdoc":"Help","pages.footer.contact":"Contact","pages.settings.reset.password":"Reset Password"},ye={"app.pwa.offline":"You are offline now","app.pwa.serviceworker.updated":"New content is available","app.pwa.serviceworker.updated.hint":'Please press the "Refresh" button to reload current page',"app.pwa.serviceworker.updated.ok":"Refresh"},Ne={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark style","app.setting.pagestyle.light":"Light style","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.daybreak":"Daybreak Blue (default)","app.setting.themecolor.geekblue":"Geek Glue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"Navigation Mode","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","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.copyinfo":"copy success, please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},ke={"app.settings.menuMap.basic":"Basic Settings","app.settings.menuMap.security":"Security Settings","app.settings.menuMap.binding":"Account Binding","app.settings.menuMap.notification":"New Message Notification","app.settings.basic.avatar":"Avatar","app.settings.basic.change-avatar":"Change avatar","app.settings.basic.email":"Email","app.settings.basic.email-message":"Please input your email!","app.settings.basic.nickname":"Nickname","app.settings.basic.nickname-message":"Please input your Nickname!","app.settings.basic.profile":"Personal profile","app.settings.basic.profile-message":"Please input your personal profile!","app.settings.basic.profile-placeholder":"Brief introduction to yourself","app.settings.basic.country":"Country/Region","app.settings.basic.country-message":"Please input your country!","app.settings.basic.geographic":"Province or city","app.settings.basic.geographic-message":"Please input your geographic info!","app.settings.basic.address":"Street Address","app.settings.basic.address-message":"Please input your address!","app.settings.basic.phone":"Phone Number","app.settings.basic.phone-message":"Please input your phone!","app.settings.basic.update":"Update Information","app.settings.security.strong":"Strong","app.settings.security.medium":"Medium","app.settings.security.weak":"Weak","app.settings.security.password":"Account Password","app.settings.security.password-description":"Current password strength","app.settings.security.phone":"Security Phone","app.settings.security.phone-description":"Bound phone","app.settings.security.question":"Security Question","app.settings.security.question-description":"The security question is not set, and the security policy can effectively protect the account security","app.settings.security.email":"Backup Email","app.settings.security.email-description":"Bound Email","app.settings.security.mfa":"MFA Device","app.settings.security.mfa-description":"Unbound MFA device, after binding, can be confirmed twice","app.settings.security.modify":"Modify","app.settings.security.set":"Set","app.settings.security.bind":"Bind","app.settings.notification.password":"Account Password","app.settings.notification.password-description":"Messages from other users will be notified in the form of a station letter","app.settings.notification.messages":"System Messages","app.settings.notification.messages-description":"System messages will be notified in the form of a station letter","app.settings.notification.todo":"To-do Notification","app.settings.notification.todo-description":"The to-do list will be notified in the form of a letter from the station","app.settings.open":"Open","app.settings.close":"Close"},We=a()(a()(a()(a()(a()(a()(a()(a()({"app.title":"Bytedesk","app.title.liangshibao":"Liangshibao","app.title.meiyu":"Meiyu","app.title.tiku":"Tiku","app.title.zhaobiao":"Zhaobiao","app.logout":"Logout","navBar.lang":"Languages","layout.user.link.help":"Help","layout.user.link.privacy":"Privacy","layout.user.link.terms":"Terms","app.copyright.produced":"Produced by Bytedesk.com","app.preview.down.block":"Download this page to your local project","app.welcome.link.fetch-blocks":"Get all block","app.welcome.link.block-list":"Quickly build standard, pages based on `block` development","theme.light":"Light","theme.dark":"Dark","theme.system":"System","setting.lang":"\u8BED\u8A00","setting.theme":"Theme","setting.switchorg":"SwitchOrg","setting.agentclient":"Client","setting.helpdoc":"Helpdocs","i18n.system.notification":"System Notification","i18n.DEPT.ALL":"All","i18n.DEPT.ADMIN":"Admin","i18n.DEPT.HR":"HR","i18n.DEPT.ORG":"Org","i18n.DEPT.IT":"IT","i18n.DEPT.MONEY":"Money","i18n.DEPT.MARKETING":"Marketing","i18n.DEPT.SALES":"Sales","i18n.DEPT.CS":"CustomerService","i18n.ROLE_SUPER":"Super","i18n.ROLE_ADMIN":"Admin","i18n.ROLE_HR":"HR","i18n.ROLE_ORG":"ORG","i18n.ROLE_IT":"IT","i18n.ROLE_MONEY":"Money","i18n.ROLE_MARKETING":"Marketing","i18n.ROLE_SALES":"Sales","i18n.ROLE_CS":"CustomerService","i18n.top.tip":"Top Tip","i18n.leavemsg.tip":"Leave a message","i18n.welcome.tip":"What can i help you?","i18n.under.development":"Under development","i18n.user.description":"User Description","i18n.robot.nickname":"DefaultRobot","i18n.robot.description":"Default Robot Description","i18n.robot.noreply":"No Matching Reply","i18n.llm.prompt":"Role: senior customer service expert; background: professional customer service experience, deep understanding of education, e-commerce, and finance; task: provide useful, detailed, and polite answers to questions based on the context mentioned; requirements: 1. solve customer problems, 2. calm customer emotions, 3. improve customer satisfaction Role: senior customer service expert; background: professional customer service experience, deep understanding of education, e-commerce, and finance; task: provide useful, detailed, and polite answers to questions based on the context mentioned; requirements: 1. solve customer problems, 2. calm customer emotions, 3. improve customer satisfaction","i18n.agent.nickname":"DefaultAgent","i18n.agent.description":"Default Agent Description","i18n.workgroup.nickname":"DefaultWorkgroup","i18n.workgroup.description":"Default Workgroup Description","i18n.contact":"Ask Contact","i18n.thanks":"Thanks","i18n.welcome":"Welcome","i18n.bye":"Bye","i18n.kb.name":"KbName","i18n.kb.platform.name":"Platform KbName","i18n.kb.helpdoc.name":"Helpdoc KbName","i18n.kb.llm.name":"Llm KbName","i18n.kb.keyword.name":"Keyword KbName","i18n.kb.faq.name":"Faq KbName","i18n.kb.autoreply.name":"AutoReply KbName","i18n.kb.quickreply.name":"QuickReply KbName","i18n.kb.taboo.name":"Taboo KbName","i18n.kb.description":"KbDescription","i18n.agent.nicknameKb":"DefaultAgentKbName","i18n.contact.title":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.contact.content":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.thanks.title":"Thank you for visiting, we look forward to seeing you again.","i18n.thanks.content":"Thank you for visiting, we look forward to seeing you again.","i18n.welcome.title":"Hello, how can I assist you?","i18n.welcome.content":"Hello, how can I assist you?","i18n.bye.title":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.bye.content":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"CategoryDemo1","i18n.faq.category.demo.2":"CategoryDemo2","i18n.faq.demo.title.1":"FaqTitleText1","i18n.faq.demo.content.1":"FaqContentText1","i18n.faq.demo.title.2":"FaqTitleImage2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"QuickButtonTitleText1","i18n.quick.button.demo.content.1":"QuickButtonContentText1","i18n.quick.button.demo.title.2":"QuickButtonTitleUrl2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn"},D),te),be),Ne),ke),ye),_),ge),je=e(37029),Ve={"component.tagSelect.expand":"\u5C55\u5F00","component.tagSelect.collapse":"\u6536\u8D77","component.tagSelect.all":"\u5168\u90E8",action:"\u64CD\u4F5C",actions:"\u64CD\u4F5C",refresh:"\u5237\u65B0",loading:"\u52A0\u8F7D\u4E2D",create:"\u521B\u5EFA",createKb:"\u521B\u5EFA\u77E5\u8BC6\u5E93",creating:"\u521B\u5EFA\u4E2D...","create.success":"\u521B\u5EFA\u6210\u529F","create.fail":"\u521B\u5EFA\u5931\u8D25",update:"\u66F4\u65B0",updating:"\u66F4\u65B0\u4E2D...","update.success":"\u66F4\u65B0\u6210\u529F","update.fail":"\u66F4\u65B0\u5931\u8D25",save:"\u4FDD\u5B58",saving:"\u6B63\u5728\u4FDD\u5B58...",upload:"\u4E0A\u4F20",import:"\u5BFC\u5165",export:"\u5BFC\u51FA","download.template":"\u4E0B\u8F7D\u6A21\u677F",open:"\u6253\u5F00",copy:"\u590D\u5236","copy.success":"\u590D\u5236\u6210\u529F",ok:"\u786E\u5B9A",cancel:"\u53D6\u6D88",edit:"\u7F16\u8F91",editing:"\u4FEE\u6539\u4E2D...","edit.success":"\u4FEE\u6539\u6210\u529F","edit.fail":"\u4FEE\u6539\u5931\u8D25",delete:"\u5220\u9664",deleting:"\u5220\u9664\u4E2D...",deleteTip:"\u5220\u9664\u63D0\u793A",deleteAfirm:"\u786E\u5B9A\u8981\u5220\u9664","delete.success":"\u5220\u9664\u6210\u529F","delete.fail":"\u5220\u9664\u5931\u8D25","process.success":"\u5904\u7406\u6210\u529F","process.fail":"\u5904\u7406\u5931\u8D25",preview:"\u9884\u89C8",close:"\u5173\u95ED",closing:"\u5173\u95ED\u4E2D...",closeTip:"\u5173\u95ED\u63D0\u793A",closeASure:"\u786E\u5B9A\u8981\u5173\u95ED","close.success":"\u5173\u95ED\u6210\u529F",title:"\u6807\u9898",name:"\u540D\u5B57",nickname:"\u6635\u79F0","username.change.tip":"\u767B\u5F55\u7528\u6237\u540D(\u4FEE\u6539\u7528\u6237\u540D\u4E4B\u540E\uFF0C\u9700\u8981\u91CD\u65B0\u767B\u5F55)",email:"\u90AE\u7BB1","email.verified":"\u90AE\u7BB1(\u5DF2\u9A8C\u8BC1)","email.unverified":"\u90AE\u7BB1(\u5F85\u9A8C\u8BC1)",mobile:"\u624B\u673A\u53F7","mobile.verified":"\u624B\u673A\u53F7(\u5DF2\u9A8C\u8BC1)","mobile.unverified":"\u624B\u673A\u53F7(\u5F85\u9A8C\u8BC1)",telephone:"\u5EA7\u673A",jobNo:"\u5DE5\u53F7",seatNo:"\u5EA7\u4F4D\u53F7",department:"\u90E8\u95E8",fileName:"\u6587\u4EF6\u540D",fileType:"\u6587\u4EF6\u7C7B\u578B",type:"\u7C7B\u578B",status:"\u72B6\u6001",contact:"\u8054\u7CFB\u65B9\u5F0F",content:"\u5185\u5BB9",city:"\u57CE\u5E02",client:"\u5BA2\u6237\u7AEF",category:"\u5206\u7C7B",description:"\u63CF\u8FF0",unreadCount:"\u672A\u8BFB\u6570",createdAt:"\u521B\u5EFA\u65F6\u95F4",updatedAt:"\u66F4\u65B0\u65F6\u95F4",choose:"\u8BF7\u9009\u62E9",log:"\u65E5\u5FD7",info:"\u4FE1\u606F",auth:"\u5B9E\u540D\u8BA4\u8BC1",data:"\u6570\u636E",statistic:"\u7EDF\u8BA1",monitor:"\u76D1\u63A7",quality:"\u8D28\u68C0",summary:"\u5C0F\u7ED3",quickbutton:"\u5FEB\u6377\u6309\u94AE","quickbutton.guide":"\u8BF7\u5148\u5230 \u77E5\u8BC6\u5E93 -> \u5FEB\u6377\u6309\u94AE -> \u65B0\u5EFA\uFF0C\u521B\u5EFA\u5FEB\u6377\u6309\u94AE\u4E4B\u540E\uFF0C\u518D\u6765\u6DFB\u52A0.",SERVICE:"\u5BA2\u670D\u673A\u5668\u4EBA(\u5916\u90E8)",MARKETING:"\u8425\u9500\u673A\u5668\u4EBA(\u5916\u90E8)",KNOWLEDGEBASE:"\u77E5\u8BC6\u5E93\u673A\u5668\u4EBA(\u5185\u90E8)",QA:"\u95EE\u7B54\u673A\u5668\u4EBA(\u76F4\u63A5\u8C03\u7528\u5927\u6A21\u578B)",llm:"\u5927\u6A21\u578B",keyword:"\u5173\u952E\u8BCD",reply:"\u56DE\u590D",third:"\u7B2C\u4E09\u65B9",form:"\u8868\u5355",survey:"\u8BE2\u524D\u8868\u5355",history:"\u5386\u53F2\u6D88\u606F",inputassociation:"\u8F93\u5165\u8054\u60F3",autoreply:"\u81EA\u52A8\u56DE\u590D",black:"\u9ED1\u540D\u5355",score:"\u8BC4\u5206",matchType:"\u5339\u914D\u7C7B\u578B",EXACT:"\u7CBE\u786E\u5339\u914D",FUZZY:"\u6A21\u7CCA\u5339\u914D",REGULAR:"\u6B63\u5219\u5339\u914D",VECTOR:"\u5411\u91CF\u5339\u914D",ELASTIC:"ES\u641C\u7D22",enabled:"\u662F\u5426\u542F\u7528",yes:"\u662F",no:"\u5426",rate:"\u6EE1\u610F\u5EA6\u8BC4\u4EF7",leavemsg:"\u7559\u8A00\u8BBE\u7F6E",transfer:"\u8F6C\u4EBA\u5DE5",visitor:"\u8BBF\u5BA2",customer:"\u5BA2\u6237",browser:"\u6D4F\u89C8\u5668",os:"\u64CD\u4F5C\u7CFB\u7EDF",device:"\u8BBE\u5907",referrer:"\u6765\u6E90\u7F51\u5740",captcha:"\u9A8C\u8BC1\u7801",logining:"\u767B\u5F55\u4E2D...","login.success":"\u767B\u5F55\u6210\u529F","login.error":"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",registering:"\u6CE8\u518C\u4E2D...","register.success":"\u6CE8\u518C\u6210\u529F","register.error":"\u6CE8\u518C\u5931\u8D25",antiharassment:"\u9632\u9A9A\u6270",channelsocial:"\u793E\u4EA4\u6E20\u9053",channelshop:"\u7535\u5546\u6E20\u9053",channelforeign:"\u6D77\u5916\u6E20\u9053","robot.no.agent.now":"\u673A\u5668\u4EBA\u5BF9\u8BDD\uFF0C\u6682\u4E0D\u652F\u6301\u8F6C\u4EBA\u5DE5","chat.widget.code":"\u5BA2\u670D\u4EE3\u7801",message:"\u6D88\u606F",thread:"\u4F1A\u8BDD",showHistory:"\u662F\u5426\u663E\u793A\u5386\u53F2\u8BB0\u5F55",showPreForm:"\u662F\u5426\u663E\u793A\u8BE2\u524D\u8868\u5355",showInputAssociation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u8054\u60F3",showCaptcha:"\u662F\u5426\u663E\u793A\u9A8C\u8BC1\u7801","leavemsg.enabled":"\u662F\u5426\u542F\u7528\u7559\u8A00","settings.profile":"\u4E2A\u4EBA\u8D44\u6599","settings.basic":"\u57FA\u672C\u8BBE\u7F6E","settings.realname":"\u5B9E\u540D\u8BA4\u8BC1","settings.server":"\u670D\u52A1\u5668\u8BBE\u7F6E","server.address":"\u670D\u52A1\u5668\u5730\u5740"},mt={"component.globalHeader.search":"\u7AD9\u5185\u641C\u7D22","component.globalHeader.help":"\u4F7F\u7528\u6587\u6863","component.globalHeader.notification":"\u901A\u77E5","component.globalHeader.notification.empty":"\u4F60\u5DF2\u67E5\u770B\u6240\u6709\u901A\u77E5","component.globalHeader.message":"\u6D88\u606F","component.globalHeader.message.empty":"\u60A8\u5DF2\u8BFB\u5B8C\u6240\u6709\u6D88\u606F","component.globalHeader.event":"\u5F85\u529E","component.globalHeader.event.empty":"\u4F60\u5DF2\u5B8C\u6210\u6240\u6709\u5F85\u529E","component.noticeIcon.clear":"\u6E05\u7A7A","component.noticeIcon.cleared":"\u6E05\u7A7A\u4E86","component.noticeIcon.empty":"\u6682\u65E0\u6570\u636E","component.noticeIcon.view-more":"\u67E5\u770B\u66F4\u591A"},Pt={"menu.welcome":"\u6B22\u8FCE","menu.home":"\u9996\u9875","menu.member":"\u6210\u5458","menu.organiztion":"\u7EC4\u7EC7","menu.organiztion.organiztion":"\u7EC4\u7EC7","menu.organiztion.member":"\u6210\u5458","menu.organiztion.role":"\u89D2\u8272","menu.organiztion.group":"\u7FA4\u7EC4","menu.organiztion.column":"\u5B57\u6BB5","menu.organiztion.thread":"\u4F1A\u8BDD","menu.organiztion.message":"\u6D88\u606F","menu.organiztion.notice":"\u901A\u77E5","menu.organiztion.tag":"\u6807\u7B7E","menu.organiztion.upload":"\u6587\u4EF6","menu.organiztion.action":"\u65E5\u5FD7","menu.organiztion.company":"\u516C\u53F8","menu.message":"\u6D88\u606F","menu.service":"\u5BA2\u670D","menu.service.agent":"\u4E00\u5BF9\u4E00","menu.service.group":"\u6280\u80FD\u7EC4","menu.service.queue":"\u6392\u961F","menu.service.thread":"\u4F1A\u8BDD","menu.service.message":"\u6D88\u606F","menu.service.leavemsg":"\u7559\u8A00","menu.service.rate":"\u8BC4\u4EF7","menu.service.crm":"Crm","menu.service.transfer":"\u8F6C\u63A5","menu.service.monitor":"\u76D1\u63A7","menu.service.quality":"\u8D28\u68C0","menu.service.black":"\u9ED1\u540D\u5355","menu.service.visitor":"\u8BBF\u5BA2","menu.service.statistic":"\u62A5\u8868","menu.service.column":"\u5B57\u6BB5","menu.ticket":"\u5DE5\u5355","menu.crm":"\u5BA2\u6237","menu.setting.profile":"\u4E2A\u4EBA\u4FE1\u606F","menu.setting.basic":"\u57FA\u672C\u8BBE\u7F6E","menu.setting.qrcode":"\u4E8C\u7EF4\u7801","menu.setting.server":"\u670D\u52A1\u5668","menu.admin":"\u7BA1\u7406","menu.admin.user":"\u7528\u6237","menu.admin.pay":"\u652F\u4ED8","menu.admin.push":"\u63A8\u9001/\u77ED\u4FE1","menu.login":"\u767B\u5F55","menu.register":"\u6CE8\u518C","menu.robot":"AI\u52A9\u624B","menu.robot.robot":"\u673A\u5668\u4EBA","menu.robot.message":"\u6D88\u606F","menu.robot.thread":"\u4F1A\u8BDD","menu.knowledge":"\u77E5\u8BC6\u5E93","menu.knowledge.helpdoc":"\u5E2E\u52A9\u4E2D\u5FC3","menu.knowledge.asistant":"\u6587\u6863\u52A9\u624B","menu.knowledge.llm":"\u5927\u6A21\u578B","menu.knowledge.faq":"\u5E38\u89C1\u95EE\u9898","menu.knowledge.faqGuess":"\u731C\u4F60\u60F3\u95EE","menu.knowledge.faqHot":"\u70ED\u95E8\u95EE\u9898","menu.knowledge.faqShortcut":"\u5FEB\u6377\u8DEF\u5F84","menu.knowledge.quickbutton":"\u5FEB\u6377\u6309\u94AE","menu.knowledge.autoreply":"\u81EA\u52A8\u56DE\u590D","menu.knowledge.quickreply":"\u5FEB\u6377\u56DE\u590D","menu.knowledge.keyword":"\u5173\u952E\u8BCD","menu.knowledge.taboo":"\u654F\u611F\u8BCD","menu.marketing":"\u8425\u9500","menu.marketing.blog":"\u535A\u5BA2","menu.marketing.email":"\u90AE\u4EF6","menu.plugins":"\u63D2\u4EF6","menu.setting":"\u8BBE\u7F6E","menu.docs":"\u5E2E\u52A9","menu.liangshibao":"\u826F\u5E08\u5B9D","menu.meiyu":"\u7F8E\u8BED","menu.tiku":"\u9898\u5E93","menu.zhaobiao":"\u62DB\u6807","menu.quartz":"\u5B9A\u65F6\u4EFB\u52A1","menu.liangshibao.index":"\u9996\u9875","menu.liangshibao.course":"\u8BFE\u7A0B","menu.liangshibao.category":"\u7C7B\u522B","menu.liangshibao.teacher":"\u6559\u5E08","menu.liangshibao.media":"\u5A92\u4F53"},bt={TEXT:"\u6587\u672C",IMAGE:"\u56FE\u7247",FILE:"\u6587\u4EF6",AUDIO:"\u8BED\u97F3",VIDEO:"\u89C6\u9891",THREAD:"\u65B0\u4F1A\u8BDD",ROBOT_QA:"\u673A\u5668\u4EBA\u95EE\u7B54",QUICKBUTTON_QA:"\u5FEB\u6377\u6309\u94AE\u95EE\u7B54",QUICKBUTTON_URL:"\u5FEB\u6377\u6309\u94AE\u94FE\u63A5",FAQ_QA:"\u5E38\u89C1\u95EE\u9898\u95EE\u7B54"},_t={"pages.login.title":"\u5FAE\u8BED","pages.layouts.userLayout.title":"\u5BF9\u8BDD\u5373\u670D\u52A1","pages.layouts.userLayout.title.liangshibao":"\u826F\u5E08\u5B9D\u7BA1\u7406\u540E\u53F0","pages.layouts.userLayout.title.tiku":"\u9898\u5E93\u5927\u5168","pages.layouts.userLayout.title.meiyu":"\u6BCF\u65E5\u6700\u65B0\u82F1\u8BED\u542C\u529B","pages.layouts.userLayout.title.zhaobiao":"\u6700\u65B0\u6700\u5168\u62DB\u6807\u4FE1\u606F","pages.login.accountLogin.tab":"\u8D26\u6237\u5BC6\u7801\u767B\u5F55","pages.login.accountLogin.errorMessage":"\u9519\u8BEF\u7684\u7528\u6237\u540D\u548C\u5BC6\u7801","pages.login.failure":"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7528\u6237\u540D\u5BC6\u7801\uFF01","pages.login.failureCode":"\u9A8C\u8BC1\u7801\u9519\u8BEF","pages.login.success":"\u767B\u5F55\u6210\u529F\uFF01","pages.login.username.placeholder":"\u7528\u6237\u540D/\u90AE\u7BB1","pages.login.username.required":"\u7528\u6237\u540D\u662F\u5FC5\u586B\u9879\uFF01","pages.login.password.placeholder":"\u5BC6\u7801","pages.login.repassword.placeholder":"\u786E\u8BA4\u5BC6\u7801","pages.login.password.required":"\u5BC6\u7801\u662F\u5FC5\u586B\u9879\uFF01","pages.login.repassword.required":"\u786E\u8BA4\u5BC6\u7801\u662F\u5FC5\u586B\u9879!","pages.login.phoneLogin.tab":"\u624B\u673A\u53F7\u767B\u5F55","pages.login.phoneLogin.errorMessage":"\u9A8C\u8BC1\u7801\u9519\u8BEF","pages.login.phoneNumber.placeholder":"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\uFF01","pages.login.phoneNumber.required":"\u624B\u673A\u53F7\u662F\u5FC5\u586B\u9879\uFF01","pages.login.phoneNumber.invalid":"\u4E0D\u5408\u6CD5\u7684\u624B\u673A\u53F7\uFF01","pages.login.captcha.placeholder":"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01","pages.login.captcha.required":"\u9A8C\u8BC1\u7801\u662F\u5FC5\u586B\u9879\uFF01","pages.login.phoneLogin.getVerificationCode":"\u83B7\u53D6\u9A8C\u8BC1\u7801","pages.getCaptchaSecondText":"\u79D2\u540E\u91CD\u65B0\u83B7\u53D6","pages.login.scanLogin.tab":"\u626B\u7801\u767B\u5F55","pages.login.rememberMe":"\u81EA\u52A8\u767B\u5F55","pages.login.forgotPassword":" \u5FD8\u8BB0\u5BC6\u7801","pages.login.submit":"\u5DF2\u6709\u8D26\u53F7\uFF0C\u53BB\u767B\u5F55","pages.login.loginWith":"\u5176\u4ED6\u767B\u5F55\u65B9\u5F0F :","pages.login.register":"\u6CE8\u518C","pages.login.registerAccount":" \u6CE8\u518C\u8D26\u6237","pages.login.auto.register":"\u672A\u6CE8\u518C\u624B\u673A\u53F7\u4F1A\u81EA\u52A8\u6CE8\u518C","pages.welcome.link":"\u6B22\u8FCE\u4F7F\u7528","pages.robot.new":"\u65B0\u5EFA","pages.robot.delete":"\u5220\u9664","pages.robot.upload":"\u4E0A\u4F20","pages.robot.tab.basic":"\u57FA\u672C\u4FE1\u606F","pages.robot.tab.kb":"\u77E5\u8BC6\u5E93","pages.robot.tab.channel":"\u5E73\u53F0\u6E20\u9053","pages.robot.tab.statistic":"\u6570\u636E\u7EDF\u8BA1","pages.robot.tab.advanced":"\u9AD8\u7EA7\u8BBE\u7F6E","pages.robot.tab.flow":"\u6D41\u7A0B\u7F16\u6392","pages.robot.tab.avatar":"\u5934\u50CF","pages.robot.tab.title":"\u6807\u9898","pages.robot.tab.welcomeTip":"\u6B22\u8FCE\u8BED","pages.robot.tab.description":"\u7B80\u4ECB","pages.robot.tab.preview":"\u5B9E\u65F6\u9884\u89C8","pages.robot.tab.website":"\u5B98\u7F51","pages.robot.tab.helpdesk":"\u5E2E\u52A9\u6587\u6863","pages.robot.tab.icp":"\u4EACICP\u5907\u6848 17041763\u53F7-1","pages.robot.tab.police":"\u7CA4\u516C\u5B89\u5907\u6848 44030502008688\u53F7","pages.robot.kb.file":"\u6587\u4EF6","pages.robot.kb.text":"\u6587\u672C","pages.robot.kb.qa":"\u95EE\u7B54","pages.robot.kb.web":"\u7F51\u7AD9","pages.robot.file.title":"\u6587\u4EF6\u540D","pages.robot.file.type":"\u6587\u4EF6\u7C7B\u578B","pages.robot.file.size":"\u6587\u4EF6\u5927\u5C0F","pages.robot.file.action":"\u64CD\u4F5C","pages.robot.file.delete":"\u5220\u9664","pages.robot.file.save":"\u4FDD\u5B58","pages.robot.file.cancel":"\u53D6\u6D88","pages.robot.file.uploading":"\u4E0A\u4F20\u4E2D...","pages.robot.file.name_invalid":"\u6587\u4EF6\u540D\u4E0D\u80FD\u5305\u542B _ ","pages.robot.file.parse":"\u89E3\u6790\u6587\u4EF6\u5185\u5BB9","pages.agent.service.settings":"\u63A5\u5F85\u914D\u7F6E","pages.agent.robot":"\u673A\u5668\u4EBA","pages.workgroup.tab.route":"\u8DEF\u7531\u914D\u7F6E","pages.setting":"\u8BBE\u7F6E","pages.logout":"\u9000\u51FA\u767B\u5F55","pages.footer.website":"\u5FAE\u8BED\u5B98\u7F51","pages.footer.helpdoc":"\u5E2E\u52A9\u6587\u6863","pages.footer.contact":"\u8054\u7CFB","pages.settings.reset.password":"\u91CD\u7F6E\u5BC6\u7801"},Dt={"app.pwa.offline":"\u5F53\u524D\u5904\u4E8E\u79BB\u7EBF\u72B6\u6001","app.pwa.serviceworker.updated":"\u6709\u65B0\u5185\u5BB9","app.pwa.serviceworker.updated.hint":"\u8BF7\u70B9\u51FB\u201C\u5237\u65B0\u201D\u6309\u94AE\u6216\u8005\u624B\u52A8\u5237\u65B0\u9875\u9762","app.pwa.serviceworker.updated.ok":"\u5237\u65B0"},Rt={"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.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.daybreak":"\u62C2\u6653\u84DD\uFF08\u9ED8\u8BA4\uFF09","app.setting.themecolor.geekblue":"\u6781\u5BA2\u84DD","app.setting.themecolor.purple":"\u9171\u7D2B","app.setting.navigationmode":"\u5BFC\u822A\u6A21\u5F0F","app.setting.sidemenu":"\u4FA7\u8FB9\u83DC\u5355\u5E03\u5C40","app.setting.topmenu":"\u9876\u90E8\u83DC\u5355\u5E03\u5C40","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.copyinfo":"\u62F7\u8D1D\u6210\u529F\uFF0C\u8BF7\u5230 config/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"},Ht={"app.settings.menuMap.basic":"\u57FA\u672C\u8BBE\u7F6E","app.settings.menuMap.security":"\u5B89\u5168\u8BBE\u7F6E","app.settings.menuMap.binding":"\u8D26\u53F7\u7ED1\u5B9A","app.settings.menuMap.notification":"\u65B0\u6D88\u606F\u901A\u77E5","app.settings.basic.avatar":"\u5934\u50CF","app.settings.basic.change-avatar":"\u66F4\u6362\u5934\u50CF","app.settings.basic.email":"\u90AE\u7BB1","app.settings.basic.email-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u90AE\u7BB1!","app.settings.basic.nickname":"\u6635\u79F0","app.settings.basic.nickname-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u6635\u79F0!","app.settings.basic.profile":"\u4E2A\u4EBA\u7B80\u4ECB","app.settings.basic.profile-message":"\u8BF7\u8F93\u5165\u4E2A\u4EBA\u7B80\u4ECB!","app.settings.basic.profile-placeholder":"\u4E2A\u4EBA\u7B80\u4ECB","app.settings.basic.country":"\u56FD\u5BB6/\u5730\u533A","app.settings.basic.country-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u56FD\u5BB6\u6216\u5730\u533A!","app.settings.basic.geographic":"\u6240\u5728\u7701\u5E02","app.settings.basic.geographic-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u6240\u5728\u7701\u5E02!","app.settings.basic.address":"\u8857\u9053\u5730\u5740","app.settings.basic.address-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u8857\u9053\u5730\u5740!","app.settings.basic.phone":"\u8054\u7CFB\u7535\u8BDD","app.settings.basic.phone-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u8054\u7CFB\u7535\u8BDD!","app.settings.basic.update":"\u66F4\u65B0\u57FA\u672C\u4FE1\u606F","app.settings.security.strong":"\u5F3A","app.settings.security.medium":"\u4E2D","app.settings.security.weak":"\u5F31","app.settings.security.password":"\u8D26\u6237\u5BC6\u7801","app.settings.security.password-description":"\u5F53\u524D\u5BC6\u7801\u5F3A\u5EA6","app.settings.security.phone":"\u5BC6\u4FDD\u624B\u673A","app.settings.security.phone-description":"\u5DF2\u7ED1\u5B9A\u624B\u673A","app.settings.security.question":"\u5BC6\u4FDD\u95EE\u9898","app.settings.security.question-description":"\u672A\u8BBE\u7F6E\u5BC6\u4FDD\u95EE\u9898\uFF0C\u5BC6\u4FDD\u95EE\u9898\u53EF\u6709\u6548\u4FDD\u62A4\u8D26\u6237\u5B89\u5168","app.settings.security.email":"\u5907\u7528\u90AE\u7BB1","app.settings.security.email-description":"\u5DF2\u7ED1\u5B9A\u90AE\u7BB1","app.settings.security.mfa":"MFA \u8BBE\u5907","app.settings.security.mfa-description":"\u672A\u7ED1\u5B9A MFA \u8BBE\u5907\uFF0C\u7ED1\u5B9A\u540E\uFF0C\u53EF\u4EE5\u8FDB\u884C\u4E8C\u6B21\u786E\u8BA4","app.settings.security.modify":"\u4FEE\u6539","app.settings.security.set":"\u8BBE\u7F6E","app.settings.security.bind":"\u7ED1\u5B9A","app.settings.notification.password":"\u8D26\u6237\u5BC6\u7801","app.settings.notification.password-description":"\u5176\u4ED6\u7528\u6237\u7684\u6D88\u606F\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5","app.settings.notification.messages":"\u7CFB\u7EDF\u6D88\u606F","app.settings.notification.messages-description":"\u7CFB\u7EDF\u6D88\u606F\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5","app.settings.notification.todo":"\u5F85\u529E\u4EFB\u52A1","app.settings.notification.todo-description":"\u5F85\u529E\u4EFB\u52A1\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5","app.settings.open":"\u5F00","app.settings.close":"\u5173"},$t=a()(a()(a()(a()(a()(a()(a()(a()({"app.title":"\u5FAE\u8BED","app.title.liangshibao":"\u826F\u5E08\u4E91","app.title.meiyu":"\u7F8E\u8BED","app.title.tiku":"\u9898\u5E93","app.title.zhaobiao":"\u62DB\u6807","app.logout":"\u767B\u51FA","navBar.lang":"\u8BED\u8A00","layout.user.link.help":"\u5E2E\u52A9","layout.user.link.privacy":"\u9690\u79C1","layout.user.link.terms":"\u6761\u6B3E","app.copyright.produced":"\u5FAE\u8BED\u51FA\u54C1","app.preview.down.block":"\u4E0B\u8F7D\u6B64\u9875\u9762\u5230\u672C\u5730\u9879\u76EE","app.welcome.link.fetch-blocks":"\u83B7\u53D6\u5168\u90E8\u533A\u5757","app.welcome.link.block-list":"\u57FA\u4E8E block \u5F00\u53D1\uFF0C\u5FEB\u901F\u6784\u5EFA\u6807\u51C6\u9875\u9762","theme.light":"\u6D45\u8272","theme.dark":"\u6DF1\u8272","theme.system":"\u81EA\u52A8","setting.lang":"Languages","setting.theme":"\u4E3B\u9898","setting.switchorg":"\u5207\u6362\u7EC4\u7EC7","setting.agentclient":"\u5BA2\u6237\u7AEF","setting.helpdoc":"\u5E2E\u52A9\u6587\u6863","i18n.system.notification":"\u7CFB\u7EDF\u901A\u77E5","i18n.DEPT.ALL":"\u5168\u90E8","i18n.DEPT.ADMIN":"\u7BA1\u7406\u5458","i18n.DEPT.HR":"\u4EBA\u4E8B\u90E8","i18n.DEPT.ORG":"\u884C\u653F\u90E8","i18n.DEPT.IT":"\u6280\u672F\u90E8","i18n.DEPT.MONEY":"\u8D22\u52A1\u90E8","i18n.DEPT.MARKETING":"\u5E02\u573A\u90E8","i18n.DEPT.SALES":"\u9500\u552E\u90E8","i18n.DEPT.CS":"\u5BA2\u670D\u90E8","i18n.ROLE_SUPER":"\u8D85\u7EA7\u7BA1\u7406\u5458","i18n.ROLE_ADMIN":"\u7BA1\u7406\u5458","i18n.ROLE_HR":"\u4EBA\u4E8B","i18n.ROLE_ORG":"\u884C\u653F","i18n.ROLE_IT":"IT","i18n.ROLE_MONEY":"\u8D22\u52A1","i18n.ROLE_MARKETING":"\u8425\u9500","i18n.ROLE_SALES":"\u9500\u552E","i18n.ROLE_CS":"\u5BA2\u670D","i18n.top.tip":"\u9ED8\u8BA4\u7F6E\u9876\u8BED","i18n.leavemsg.tip":"\u65E0\u5BA2\u670D\u5728\u7EBF\uFF0C\u8BF7\u7559\u8A00","i18n.welcome.tip":"\u60A8\u597D\uFF0C\u6709\u4EC0\u4E48\u53EF\u4EE5\u5E2E\u60A8\u7684?","i18n.under.development":"\u8FD1\u671F\u4E0A\u7EBF\uFF0C\u656C\u8BF7\u671F\u5F85...","i18n.user.description":"\u9ED8\u8BA4\u7528\u6237\u63CF\u8FF0","i18n.robot.nickname":"\u9ED8\u8BA4\u673A\u5668\u4EBA","i18n.robot.description":"\u9ED8\u8BA4\u673A\u5668\u4EBA\u63CF\u8FF0","i18n.robot.noreply":"\u672A\u627E\u5230\u76F8\u5E94\u7B54\u6848","i18n.llm.prompt":"\u89D2\u8272\uFF1A\u8D44\u6DF1\u5BA2\u670D\u4E13\u5BB6; \u80CC\u666F\uFF1A\u6709\u4E13\u4E1A\u5BA2\u670D\u7ECF\u9A8C\uFF0C\u5BF9\u6559\u80B2\u3001\u7535\u5546\u3001\u91D1\u878D\u9886\u57DF\u6709\u6DF1\u523B\u7406\u89E3; \u4EFB\u52A1\uFF1A\u6839\u636E\u4E0A\u4E0B\u6587\u4E2D\u63D0\u5230\u7684\u5185\u5BB9\uFF0C\u5BF9\u63D0\u51FA\u7684\u95EE\u9898\u7ED9\u51FA\u6709\u7528\u3001\u8BE6\u7EC6\u3001\u793C\u8C8C\u7684\u56DE\u7B54; \u8981\u6C42\uFF1A1. \u89E3\u51B3\u5BA2\u6237\u63D0\u51FA\u7684\u95EE\u9898\uFF0C2. \u5B89\u629A\u5BA2\u6237\u60C5\u7EEA\uFF0C3. \u63D0\u5347\u5BA2\u6237\u6EE1\u610F\u5EA6","i18n.agent.nickname":"\u9ED8\u8BA4\u5BA2\u670D","i18n.agent.description":"\u9ED8\u8BA4\u5BA2\u670D\u63CF\u8FF0","i18n.workgroup.nickname":"\u9ED8\u8BA4\u6280\u80FD\u7EC4","i18n.workgroup.description":"\u9ED8\u8BA4\u6280\u80FD\u7EC4\u63CF\u8FF0","i18n.contact":"\u8BE2\u95EE\u8054\u7CFB\u65B9\u5F0F","i18n.thanks":"\u611F\u8C22","i18n.welcome":"\u95EE\u5019","i18n.bye":"\u544A\u522B","i18n.kb.name":"\u9ED8\u8BA4\u77E5\u8BC6\u5E93","i18n.kb.platform.name":"\u5E73\u53F0\u77E5\u8BC6\u5E93","i18n.kb.helpdoc.name":"\u5E2E\u52A9\u6587\u6863\u77E5\u8BC6\u5E93","i18n.kb.llm.name":"\u5927\u6A21\u578B\u77E5\u8BC6\u5E93","i18n.kb.keyword.name":"\u5173\u952E\u8BCD\u77E5\u8BC6\u5E93","i18n.kb.faq.name":"\u5E38\u89C1\u95EE\u9898\u77E5\u8BC6\u5E93","i18n.kb.autoreply.name":"\u81EA\u52A8\u56DE\u590D\u77E5\u8BC6\u5E93","i18n.kb.quickreply.name":"\u5FEB\u6377\u56DE\u590D\u77E5\u8BC6\u5E93","i18n.kb.taboo.name":"\u654F\u611F\u8BCD\u77E5\u8BC6\u5E93","i18n.kb.description":"\u77E5\u8BC6\u5E93\u9ED8\u8BA4\u63CF\u8FF0","i18n.agent.nicknameKb":"\u9ED8\u8BA4\u5BA2\u670D\u77E5\u8BC6\u5E93","i18n.contact.title":"\u65B9\u4FBF\u7684\u8BDD\u8BF7\u60A8\u63D0\u4F9B\u4E00\u4E0B\u60A8\u7684\u8054\u7CFB\u7535\u8BDD","i18n.contact.content":"\u65B9\u4FBF\u7684\u8BDD\u8BF7\u60A8\u63D0\u4F9B\u4E00\u4E0B\u60A8\u7684\u8054\u7CFB\u7535\u8BDD\uFF0C\u6211\u7535\u8BDD\u7ED9\u60A8\u6C9F\u901A\u4E00\u4E0B\uFF0C\u8FD9\u6837\u66F4\u52A0\u76F4\u89C2","i18n.thanks.title":"\u611F\u8C22\u5149\u4E34","i18n.thanks.content":"\u611F\u8C22\u5149\u4E34\uFF0C\u6B22\u8FCE\u518D\u6765","i18n.welcome.title":"\u60A8\u597D","i18n.welcome.content":"\u60A8\u597D\uFF0C\u6709\u4EC0\u4E48\u53EF\u4EE5\u5E2E\u60A8\u7684","i18n.bye.title":"\u60A8\u7684\u6EE1\u610F\u4E00\u76F4\u662F\u6211\u4EEC\u7684\u76EE\u6807","i18n.bye.content":"\u60A8\u7684\u6EE1\u610F\u4E00\u76F4\u662F\u6211\u4EEC\u7684\u76EE\u6807\uFF0C\u5982\u679C\u6709\u4EFB\u4F55\u7591\u95EE\u6B22\u8FCE\u60A8\u968F\u65F6\u8054\u7CFB","i18n.vip.api":"VIP\u63A5\u53E3\uFF0C\u6682\u65E0\u6743\u9650\uFF0C\u8BF7\u8054\u7CFB\uFF1Aweiyuai.cn","i18n.faq.category.demo.1":"\u5E38\u89C1\u95EE\u9898\u5206\u7C7BDemo1","i18n.faq.category.demo.2":"\u5E38\u89C1\u95EE\u9898\u5206\u7C7BDemo2","i18n.faq.demo.title.1":"\u5E38\u89C1\u95EE\u9898\u6587\u5B57Demo1","i18n.faq.demo.content.1":"\u5E38\u89C1\u95EE\u9898\u6587\u5B57Demo1","i18n.faq.demo.title.2":"\u5E38\u89C1\u95EE\u9898\u56FE\u7247Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"\u5FEB\u6377\u6309\u94AE\u6587\u5B57Demo1","i18n.quick.button.demo.content.1":"\u5FEB\u6377\u6309\u94AE\u6587\u5B57Demo1","i18n.quick.button.demo.title.2":"\u5FEB\u6377\u6309\u94AE\u94FE\u63A5Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn"},_t),mt),Pt),bt),Rt),Ht),Dt),Ve),vn={items_per_page:"\u689D/\u9801",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u78BA\u5B9A",page:"\u9801",prev_page:"\u4E0A\u4E00\u9801",next_page:"\u4E0B\u4E00\u9801",prev_5:"\u5411\u524D 5 \u9801",next_5:"\u5411\u5F8C 5 \u9801",prev_3:"\u5411\u524D 3 \u9801",next_3:"\u5411\u5F8C 3 \u9801",page_size:"\u9801\u78BC"},mn=vn,zn={locale:"zh_TW",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u78BA\u5B9A",timeSelect:"\u9078\u64C7\u6642\u9593",dateSelect:"\u9078\u64C7\u65E5\u671F",weekSelect:"\u9078\u64C7\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u500B\u6708 (\u7FFB\u9801\u4E0A\u9375)",nextMonth:"\u4E0B\u500B\u6708 (\u7FFB\u9801\u4E0B\u9375)",monthSelect:"\u9078\u64C7\u6708\u4EFD",yearSelect:"\u9078\u64C7\u5E74\u4EFD",decadeSelect:"\u9078\u64C7\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u6642mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u9375\u52A0\u5DE6\u65B9\u5411\u9375)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u9375\u52A0\u53F3\u65B9\u5411\u9375)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7D00",nextCentury:"\u4E0B\u4E00\u4E16\u7D00"},Xt=zn,Un={placeholder:"\u8ACB\u9078\u64C7\u6642\u9593"};const _n={lang:Object.assign({placeholder:"\u8ACB\u9078\u64C7\u65E5\u671F",yearPlaceholder:"\u8ACB\u9078\u64C7\u5E74\u4EFD",quarterPlaceholder:"\u8ACB\u9078\u64C7\u5B63\u5EA6",monthPlaceholder:"\u8ACB\u9078\u64C7\u6708\u4EFD",weekPlaceholder:"\u8ACB\u9078\u64C7\u5468",rangePlaceholder:["\u958B\u59CB\u65E5\u671F","\u7D50\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u958B\u59CB\u5E74\u4EFD","\u7D50\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u958B\u59CB\u6708\u4EFD","\u7D50\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u958B\u59CB\u5B63\u5EA6","\u7D50\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u958B\u59CB\u5468","\u7D50\u675F\u5468"]},Xt),timePickerLocale:Object.assign({},Un)};_n.lang.ok="\u78BA \u5B9A";var Ln=_n,kn=Ln;const Rn="${label}\u4E0D\u662F\u4E00\u500B\u6709\u6548\u7684${type}";var $n={locale:"zh-tw",Pagination:mn,DatePicker:Ln,TimePicker:Un,Calendar:kn,global:{placeholder:"\u8ACB\u9078\u64C7"},Table:{filterTitle:"\u7BE9\u9078\u5668",filterConfirm:"\u78BA\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u7121\u7BE9\u9078\u9805",filterCheckall:"\u5168\u9078",filterSearchPlaceholder:"\u5728\u7BE9\u9078\u9805\u4E2D\u641C\u5C0B",emptyText:"\u66AB\u7121\u6578\u64DA",selectAll:"\u5168\u90E8\u9078\u53D6",selectInvert:"\u53CD\u5411\u9078\u53D6",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9078\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u958B\u884C",collapse:"\u95DC\u9589\u884C",triggerDesc:"\u9EDE\u64CA\u964D\u5E8F",triggerAsc:"\u9EDE\u64CA\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u78BA\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7D50\u675F\u5C0E\u89BD"},Popconfirm:{okText:"\u78BA\u5B9A",cancelText:"\u53D6\u6D88"},Transfer:{titles:["",""],searchPlaceholder:"\u641C\u5C0B\u8CC7\u6599",itemUnit:"\u9805\u76EE",itemsUnit:"\u9805\u76EE",remove:"\u5220\u9664",selectCurrent:"\u5168\u9078\u7576\u9801",removeCurrent:"\u5220\u9664\u7576\u9801",selectAll:"\u5168\u9078\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9078\u7576\u9801"},Upload:{uploading:"\u6B63\u5728\u4E0A\u50B3...",removeFile:"\u522A\u9664\u6A94\u6848",uploadError:"\u4E0A\u50B3\u5931\u6557",previewFile:"\u6A94\u6848\u9810\u89BD",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u7121\u6B64\u8CC7\u6599"},Icon:{icon:"\u5716\u6A19"},Text:{edit:"\u7DE8\u8F2F",copy:"\u8907\u88FD",copied:"\u8907\u88FD\u6210\u529F",expand:"\u5C55\u958B"},Form:{optional:"\uFF08\u53EF\u9078\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A57\u8B49\u932F\u8AA4${label}",required:"\u8ACB\u8F38\u5165${label}",enum:"${label}\u5FC5\u9808\u662F\u5176\u4E2D\u4E00\u500B[${enum}]",whitespace:"${label}\u4E0D\u80FD\u70BA\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u7121\u6548",parse:"${label}\u4E0D\u80FD\u8F49\u63DB\u70BA\u65E5\u671F",invalid:"${label}\u662F\u4E00\u500B\u7121\u6548\u65E5\u671F"},types:{string:Rn,method:Rn,array:Rn,object:Rn,number:Rn,date:Rn,boolean:Rn,integer:Rn,float:Rn,regexp:Rn,email:Rn,url:Rn,hex:Rn},string:{len:"${label}\u9808\u70BA${len}\u500B\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u500B\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u500B\u5B57\u7B26",range:"${label}\u9808\u5728${min}-${max}\u5B57\u7B26\u4E4B\u9593"},number:{len:"${label}\u5FC5\u9808\u7B49\u65BC${len}",min:"${label}\u6700\u5C0F\u503C\u70BA${min}",max:"${label}\u6700\u5927\u503C\u70BA${max}",range:"${label}\u9808\u5728${min}-${max}\u4E4B\u9593"},array:{len:"\u9808\u70BA${len}\u500B${label}",min:"\u6700\u5C11${min}\u500B${label}",max:"\u6700\u591A${max}\u500B${label}",range:"${label}\u6578\u91CF\u9808\u5728${min}-${max}\u4E4B\u9593"},pattern:{mismatch:"${label}\u8207\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9810\u89BD"},QRCode:{expired:"\u4E8C\u7DAD\u78BC\u904E\u671F",refresh:"\u9EDE\u64CA\u5237\u65B0",scanned:"\u5DF2\u6383\u63CF"}},In={"component.tagSelect.expand":"\u5C55\u958B","component.tagSelect.collapse":"\u6536\u5408","component.tagSelect.all":"\u5168\u90E8",action:"\u64CD\u4F5C",actions:"\u64CD\u4F5C",refresh:"\u91CD\u65B0\u6574\u7406",loading:"\u8F09\u5165\u4E2D",create:"\u65B0\u589E",createKb:"\u521B\u5EFA\u77E5\u8BC6\u5E93",creating:"\u65B0\u589E\u4E2D...","create.success":"\u65B0\u589E\u6210\u529F","create.fail":"\u65B0\u589E\u5931\u6557",update:"\u66F4\u65B0",updating:"\u66F4\u65B0\u4E2D...","update.success":"\u66F4\u65B0\u6210\u529F","update.fail":"\u66F4\u65B0\u5931\u6557",save:"\u5132\u5B58",saving:"\u6B63\u5728\u5132\u5B58...",upload:"\u4E0A\u4F20",import:"\u532F\u5165",export:"\u532F\u51FA","download.template":"\u4E0B\u8F7D\u6A21\u677F",open:"\u958B\u555F",copy:"\u8907\u88FD","copy.success":"\u8907\u88FD\u6210\u529F",ok:"\u78BA\u5B9A",cancel:"\u53D6\u6D88",edit:"\u7DE8\u8F2F",editing:"\u7DE8\u8F2F\u4E2D...","edit.success":"\u7DE8\u8F2F\u6210\u529F","edit.fail":"\u7DE8\u8F2F\u5931\u6557",delete:"\u522A\u9664",deleting:"\u5220\u9664\u4E2D...",deleteTip:"\u522A\u9664\u63D0\u793A",deleteAfirm:"\u78BA\u5B9A\u8981\u522A\u9664","delete.success":"\u522A\u9664\u6210\u529F","delete.fail":"\u5220\u9664\u5931\u8D25","process.success":"\u5904\u7406\u6210\u529F","process.fail":"\u5904\u7406\u5931\u8D25",preview:"\u9810\u89BD",close:"\u95DC\u9589",closing:"\u95DC\u9589\u4E2D...",closeTip:"\u95DC\u9589\u63D0\u793A",closeASure:"\u78BA\u5B9A\u8981\u95DC\u9589","close.success":"\u95DC\u9589\u6210\u529F",title:"\u6A19\u984C",name:"\u59D3\u540D",nickname:"\u66B1\u7A31","username.change.tip":"\u767B\u5165\u7528\u6236\u540D(\u4FEE\u6539\u7528\u6236\u540D\u4E4B\u5F8C\uFF0C\u9700\u8981\u91CD\u65B0\u767B\u5165)",email:"\u96FB\u5B50\u90F5\u4EF6","email.verified":"\u96FB\u5B50\u90F5\u4EF6(\u5DF2\u9A57\u8B49)","email.unverified":"\u96FB\u5B50\u90F5\u4EF6(\u5F85\u9A57\u8B49)",mobile:"\u624B\u6A5F\u865F\u78BC","mobile.verified":"\u624B\u6A5F\u865F\u78BC(\u5DF2\u9A57\u8B49)","mobile.unverified":"\u624B\u6A5F\u865F\u78BC(\u5F85\u9A57\u8B49)",telephone:"\u96FB\u8A71",jobNo:"\u5DE5\u865F",seatNo:"\u5EA7\u4F4D\u865F",department:"\u90E8\u9580",fileName:"\u6587\u4EF6\u540D",fileType:"\u6587\u4EF6\u7C7B\u578B",status:"\u72C0\u614B",type:"\u985E\u578B",contact:"\u8054\u7CFB\u65B9\u5F0F",content:"\u5167\u5BB9",city:"\u57CE\u5E02",client:"\u5BA2\u6236\u7AEF",category:"\u5206\u985E",description:"\u63CF\u8FF0",unreadCount:"\u672A\u8B80\u6578",createdAt:"\u5EFA\u7ACB\u6642\u9593",updatedAt:"\u66F4\u65B0\u6642\u9593",choose:"\u8ACB\u9078\u64C7",log:"\u65E5\u8A8C",info:"\u8CC7\u8A0A",auth:"\u5B9E\u540D\u8BA4\u8BC1",data:"\u8CC7\u6599",statistic:"\u7D71\u8A08",monitor:"\u76E3\u63A7",quality:"\u8D28\u68C0",summary:"\u7E3D\u7D50",quickbutton:"\u5FEB\u901F\u6309\u9215","quickbutton.guide":"\u8ACB\u5148\u5230 \u77E5\u8B58\u5EAB -> \u5FEB\u901F\u6309\u9215 -> \u65B0\u589E\uFF0C\u5EFA\u7ACB\u5FEB\u901F\u6309\u9215\u4E4B\u5F8C\uFF0C\u518D\u4F86\u6DFB\u52A0\u3002",SERVICE:"\u5BA2\u670D\u6A5F\u5668\u4EBA(\u5916\u90E8)",MARKETING:"\u71DF\u92B7\u6A5F\u5668\u4EBA(\u5916\u90E8)",KNOWLEDGEBASE:"\u77E5\u8B58\u5EAB\u6A5F\u5668\u4EBA(\u5185\u90E8)",QA:"\u554F\u7B54\u6A5F\u5668\u4EBA(\u76F4\u63A5\u8C03\u7528\u5927\u6A21\u578B)",llm:"\u5927\u6A21\u578B",keyword:"\u5173\u952E\u8BCD",reply:"\u56DE\u590D",third:"\u7B2C\u4E09\u65B9",form:"\u8868\u5355",survey:"\u8BE2\u524D\u8868\u5355",history:"\u5386\u53F2\u6D88\u606F",inputassociation:"\u8F93\u5165\u8054\u60F3",autoreply:"\u81EA\u52A8\u56DE\u590D",black:"\u9ED1\u540D\u5355",score:"\u8BC4\u5206",matchType:"\u5339\u914D\u7C7B\u578B",EXACT:"\u7CBE\u786E\u5339\u914D",FUZZY:"\u6A21\u7CCA\u5339\u914D",REGULAR:"\u6B63\u5219\u5339\u914D",VECTOR:"\u5411\u91CF\u5339\u914D",ELASTIC:"ES\u641C\u7D22",enabled:"\u662F\u5426\u542F\u7528",yes:"\u662F",no:"\u5426",rate:"\u6EE1\u610F\u5EA6\u8BC4\u4EF7",leavemsg:"\u7559\u8A00\u8BBE\u7F6E",transfer:"\u8F6C\u4EBA\u5DE5",visitor:"\u8BBF\u5BA2",customer:"\u5BA2\u6237",browser:"\u6D4F\u89C8\u5668",os:"\u64CD\u4F5C\u7CFB\u7EDF",device:"\u8BBE\u5907",referrer:"\u6765\u6E90\u7F51\u5740",captcha:"\u9A8C\u8BC1\u7801",logining:"\u767B\u5F55\u4E2D...","login.success":"\u767B\u5F55\u6210\u529F","login.error":"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",registering:"\u6CE8\u518C\u4E2D...","register.success":"\u6CE8\u518C\u6210\u529F","register.error":"\u6CE8\u518C\u5931\u8D25",antiharassment:"\u9632\u9A9A\u6270",channelsocial:"\u793E\u4EA4\u6E20\u9053",channelshop:"\u7535\u5546\u6E20\u9053",channelforeign:"\u6D77\u5916\u6E20\u9053","robot.no.agent.now":"\u6A5F\u5668\u4EBA\u5C0D\u8A71\uFF0C\u66AB\u4E0D\u652F\u63F4\u8F49\u4EBA\u5DE5","chat.widget.code":"\u5BA2\u670D\u7A0B\u5F0F\u78BC",message:"\u8A0A\u606F",thread:"\u6703\u8A71",showHistory:"\u662F\u5426\u663E\u793A\u5386\u53F2\u8BB0\u5F55",showPreForm:"\u662F\u5426\u663E\u793A\u8BE2\u524D\u8868\u5355",showInputAssociation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u8054\u60F3",showCaptcha:"\u662F\u5426\u663E\u793A\u9A8C\u8BC1\u7801","leavemsg.enabled":"\u662F\u5426\u542F\u7528\u7559\u8A00","settings.profile":"\u500B\u4EBA\u8CC7\u6599","settings.basic":"\u57FA\u672C\u8A2D\u7F6E","settings.realname":"\u5B9E\u540D\u8BA4\u8BC1","settings.server":"\u4F3A\u670D\u5668\u8A2D\u7F6E","server.address":"\u4F3A\u670D\u5668\u5730\u5740"},lr={"component.globalHeader.search":"\u7AD9\u5167\u641C\u7D22","component.globalHeader.help":"\u4F7F\u7528\u6587\u6A94","component.globalHeader.notification":"\u901A\u77E5","component.globalHeader.notification.empty":"\u4F60\u5DF2\u67E5\u770B\u6240\u6709\u901A\u77E5","component.globalHeader.message":"\u6D88\u606F","component.globalHeader.message.empty":"\u60A8\u5DF2\u8B80\u5B8C\u6240\u6709\u6D88\u606F","component.globalHeader.event":"\u5F85\u8FA6","component.globalHeader.event.empty":"\u4F60\u5DF2\u5B8C\u6210\u6240\u6709\u5F85\u8FA6","component.noticeIcon.clear":"\u6E05\u7A7A","component.noticeIcon.cleared":"\u6E05\u7A7A\u4E86","component.noticeIcon.empty":"\u66AB\u7121\u6578\u64DA","component.noticeIcon.view-more":"\u67E5\u770B\u66F4\u591A"},yr={"menu.welcome":"\u6B61\u8FCE","menu.home":"\u9996\u9801","menu.member":"\u6210\u54E1","menu.organiztion":"\u7D44\u7E54","menu.organiztion.organiztion":"\u7D44\u7E54","menu.organiztion.member":"\u6210\u54E1","menu.organiztion.role":"\u89D2\u8272","menu.organiztion.group":"\u7FA4\u7D44","menu.organiztion.column":"\u6B04\u4F4D","menu.organiztion.thread":"\u4F1A\u8BDD","menu.organiztion.message":"\u8A0A\u606F","menu.organiztion.notice":"\u901A\u77E5","menu.organiztion.tag":"\u6807\u7B7E","menu.organiztion.upload":"\u6587\u4EF6","menu.organiztion.action":"\u65E5\u8A8C","menu.organiztion.company":"\u516C\u53F8","menu.message":"\u8A0A\u606F","menu.service":"\u5BA2\u670D","menu.service.agent":"\u4E00\u5C0D\u4E00","menu.service.group":"\u6280\u80FD\u7D44","menu.service.queue":"\u6392\u968A","menu.service.thread":"\u6703\u8A71","menu.service.message":"\u8A0A\u606F","menu.service.leavemsg":"\u7559\u8A00","menu.service.crm":"Crm","menu.service.rate":"\u8A55\u50F9","menu.service.transfer":"\u8F6C\u63A5","menu.service.monitor":"\u76E3\u63A7","menu.service.quality":"\u8D28\u68C0","menu.service.black":"\u9ED1\u540D\u5355","menu.service.visitor":"\u8BBF\u5BA2","menu.service.statistic":"\u62A5\u8868","menu.service.column":"\u6B04\u4F4D","menu.ticket":"\u5DE5\u55AE","menu.crm":"\u5BA2\u6236","menu.setting.profile":"\u500B\u4EBA\u8CC7\u8A0A","menu.setting.basic":"\u57FA\u672C\u8A2D\u7F6E","menu.setting.qrcode":"\u4E8C\u7DAD\u78BC","menu.setting.server":"\u4F3A\u670D\u5668","menu.admin":"\u7BA1\u7406","menu.admin.user":"\u7528\u6237","menu.admin.pay":"\u652F\u4ED8","menu.admin.push":"\u63A8\u9001/\u77ED\u4FE1","menu.login":"\u767B\u5165","menu.register":"\u8A3B\u518A","menu.robot":"AI\u52A9\u624B","menu.robot.robot":"\u6A5F\u5668\u4EBA","menu.robot.message":"\u8A0A\u606F","menu.robot.thread":"\u6703\u8A71","menu.knowledge":"\u77E5\u8B58\u5EAB","menu.knowledge.helpdoc":"\u5E6B\u52A9\u4E2D\u5FC3","menu.knowledge.asistant":"\u6587\u6863\u52A9\u624B","menu.knowledge.llm":"\u5927\u6A21\u578B","menu.knowledge.faq":"\u5E38\u898B\u554F\u984C","menu.knowledge.faqGuess":"\u731C\u4F60\u60F3\u95EE","menu.knowledge.faqHot":"\u70ED\u95E8\u95EE\u9898","menu.knowledge.faqShortcut":"\u5FEB\u6377\u8DEF\u5F84","menu.knowledge.quickbutton":"\u5FEB\u6377\u6309\u9215","menu.knowledge.autoreply":"\u81EA\u52A8\u56DE\u590D","menu.knowledge.quickreply":"\u5FEB\u6377\u56DE\u5FA9","menu.knowledge.keyword":"\u5173\u952E\u8BCD","menu.knowledge.taboo":"\u654F\u611F\u8BCD","menu.marketing":"\u71DF\u92B7","menu.marketing.blog":"\u90E8\u843D\u683C","menu.marketing.email":"\u90F5\u4EF6","menu.plugins":"\u63D2\u4EF6","menu.setting":"\u8A2D\u7F6E","menu.docs":"\u5E6B\u52A9","menu.liangshibao":"\u826F\u5E2B\u5BF6","menu.meiyu":"\u7F8E\u8A9E","menu.tiku":"\u984C\u5EAB","menu.zhaobiao":"\u62DB\u6A19","menu.quartz":"\u5B9A\u6642\u4EFB\u52D9","menu.liangshibao.index":"\u9996\u9801","menu.liangshibao.course":"\u8AB2\u7A0B","menu.liangshibao.category":"\u985E\u5225","menu.liangshibao.teacher":"\u6559\u5E2B","menu.liangshibao.media":"\u5A92\u9AD4"},rr={TEXT:"\u6587\u672C",IMAGE:"\u56FE\u7247",FILE:"\u6587\u4EF6",AUDIO:"\u8BED\u97F3",VIDEO:"\u89C6\u9891",THREAD:"\u65B0\u4F1A\u8BDD",ROBOT_QA:"\u673A\u5668\u4EBA\u95EE\u7B54",QUICKBUTTON_QA:"\u5FEB\u6377\u6309\u94AE\u95EE\u7B54",QUICKBUTTON_URL:"\u5FEB\u6377\u6309\u94AE\u94FE\u63A5",FAQ_QA:"\u5E38\u89C1\u95EE\u9898\u95EE\u7B54"},Lr={"pages.login.title":"\u5FAE\u8A9E","pages.layouts.userLayout.title":"\u5C0D\u8A71\u5373\u670D\u52D9","pages.layouts.userLayout.title.liangshibao":"\u826F\u5E2B\u5BF6\u7BA1\u7406\u5F8C\u53F0","pages.layouts.userLayout.title.tiku":"\u984C\u5EAB\u5927\u5168","pages.layouts.userLayout.title.meiyu":"\u6BCF\u65E5\u6700\u65B0\u82F1\u8A9E\u807D\u529B","pages.layouts.userLayout.title.zhaobiao":"\u6700\u65B0\u6700\u5168\u62DB\u6A19\u4FE1\u606F","pages.login.accountLogin.tab":"\u8CEC\u6236\u5BC6\u78BC\u767B\u9304","pages.login.accountLogin.errorMessage":"\u932F\u8AA4\u7684\u7528\u6236\u540D\u548C\u5BC6\u78BC","pages.login.failure":"\u767B\u9304\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7528\u6236\u540D\u5BC6\u78BC\uFF01","pages.login.failureCode":"\u9A57\u8B49\u78BC\u932F\u8AA4","pages.login.success":"\u767B\u9304\u6210\u529F\uFF01","pages.login.username.placeholder":"\u7528\u6236\u540D/\u90F5\u7BB1","pages.login.username.required":"\u7528\u6236\u540D\u662F\u5FC5\u586B\u9805\uFF01","pages.login.password.placeholder":"\u5BC6\u78BC","pages.login.repassword.placeholder":"\u78BA\u8A8D\u5BC6\u78BC","pages.login.password.required":"\u5BC6\u78BC\u662F\u5FC5\u586B\u9805\uFF01","pages.login.repassword.required":"\u78BA\u8A8D\u5BC6\u78BC\u662F\u5FC5\u586B\u9805\uFF01","pages.login.phoneLogin.tab":"\u624B\u6A5F\u865F\u767B\u9304","pages.login.phoneLogin.errorMessage":"\u9A57\u8B49\u78BC\u932F\u8AA4","pages.login.phoneNumber.placeholder":"\u8ACB\u8F38\u5165\u624B\u6A5F\u865F\uFF01","pages.login.phoneNumber.required":"\u624B\u6A5F\u865F\u662F\u5FC5\u586B\u9805\uFF01","pages.login.phoneNumber.invalid":"\u4E0D\u5408\u6CD5\u7684\u624B\u6A5F\u865F\uFF01","pages.login.captcha.placeholder":"\u8ACB\u8F38\u5165\u9A57\u8B49\u78BC\uFF01","pages.login.captcha.required":"\u9A57\u8B49\u78BC\u662F\u5FC5\u586B\u9805\uFF01","pages.login.phoneLogin.getVerificationCode":"\u7372\u53D6\u9A57\u8B49\u78BC","pages.getCaptchaSecondText":"\u79D2\u5F8C\u91CD\u65B0\u7372\u53D6","pages.login.scanLogin.tab":"\u6383\u78BC\u767B\u9304","pages.login.rememberMe":"\u81EA\u52D5\u767B\u9304","pages.login.forgotPassword":" \u5FD8\u8A18\u5BC6\u78BC","pages.login.submit":"\u5DF2\u6709\u8CEC\u865F\uFF0C\u53BB\u767B\u9304","pages.login.loginWith":"\u5176\u4ED6\u767B\u9304\u65B9\u5F0F :","pages.login.register":"\u8A3B\u518A","pages.login.registerAccount":" \u8A3B\u518A\u8CEC\u6236","pages.login.auto.register":"\u672A\u8A3B\u518A\u624B\u6A5F\u865F\u6703\u81EA\u52D5\u8A3B\u518A","pages.welcome.link":"\u6B61\u8FCE\u4F7F\u7528","pages.robot.new":"\u65B0\u5EFA","pages.robot.delete":"\u522A\u9664","pages.robot.upload":"\u4E0A\u50B3","pages.robot.tab.basic":"\u57FA\u672C\u8CC7\u8A0A","pages.robot.tab.kb":"\u77E5\u8B58\u5EAB","pages.robot.tab.channel":"\u6E20\u9053\u5C0D\u63A5","pages.robot.tab.statistic":"\u6578\u64DA\u7D71\u8A08","pages.robot.tab.advanced":"\u9AD8\u7D1A\u8A2D\u7F6E","pages.robot.tab.flow":"\u6D41\u7A0B\u8A2D\u8A08","pages.robot.tab.avatar":"\u982D\u50CF","pages.robot.tab.title":"\u6A19\u984C","pages.robot.tab.welcomeTip":"\u6B61\u8FCE\u8A9E","pages.robot.tab.description":"\u7C21\u4ECB","pages.robot.tab.preview":"\u5BE6\u6642\u9810\u89BD","pages.robot.tab.website":"\u5B98\u7DB2","pages.robot.tab.helpdesk":"\u5E6B\u52A9\u6587\u6A94","pages.robot.tab.icp":"\u4EACICP\u5099\u6848 17041763\u865F-1","pages.robot.tab.police":"\u7CB5\u516C\u5B89\u5099\u6848 44030502008688\u865F","pages.robot.kb.file":"\u6587\u4EF6","pages.robot.kb.text":"\u6587\u672C","pages.robot.kb.qa":"\u554F\u7B54","pages.robot.kb.web":"\u7DB2\u7AD9","pages.robot.file.title":"\u6A94\u6848\u540D","pages.robot.file.type":"\u6A94\u6848\u985E\u578B","pages.robot.file.size":"\u6A94\u6848\u5927\u5C0F","pages.robot.file.action":"\u64CD\u4F5C","pages.robot.file.delete":"\u522A\u9664","pages.robot.file.save":"\u5132\u5B58","pages.robot.file.cancel":"\u53D6\u6D88","pages.robot.file.uploading":"\u4E0A\u50B3\u4E2D...","pages.robot.file.name_invalid":"\u6A94\u6848\u540D\u4E0D\u80FD\u5305\u542B _ ","pages.robot.file.parse":"\u89E3\u6790\u6A94\u6848\u5167\u5BB9","pages.agent.service.settings":"\u63A5\u5F85\u914D\u7F6E","pages.agent.robot":"\u673A\u5668\u4EBA","pages.workgroup.tab.route":"\u8DEF\u7531\u914D\u7F6E","pages.setting":"\u8A2D\u7F6E","pages.logout":"\u9000\u51FA\u767B\u5165","pages.footer.website":"\u5FAE\u8A9E\u5B98\u7DB2","pages.footer.helpdoc":"\u5E6B\u52A9\u6587\u6A94","pages.footer.contact":"\u8054\u7CFB\u6211\u4EEC","pages.settings.reset.password":"\u91CD\u8A2D\u5BC6\u78BC"},$r={"app.pwa.offline":"\u5F53\u524D\u5904\u4E8E\u79BB\u7EBF\u72B6\u6001","app.pwa.serviceworker.updated":"\u6709\u65B0\u5185\u5BB9","app.pwa.serviceworker.updated.hint":"\u8BF7\u70B9\u51FB\u201C\u5237\u65B0\u201D\u6309\u94AE\u6216\u8005\u624B\u52A8\u5237\u65B0\u9875\u9762","app.pwa.serviceworker.updated.ok":"\u5237\u65B0"},br={"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.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.daybreak":"\u62C2\u6653\u84DD\uFF08\u9ED8\u8BA4\uFF09","app.setting.themecolor.geekblue":"\u6781\u5BA2\u84DD","app.setting.themecolor.purple":"\u9171\u7D2B","app.setting.navigationmode":"\u5BFC\u822A\u6A21\u5F0F","app.setting.sidemenu":"\u4FA7\u8FB9\u83DC\u5355\u5E03\u5C40","app.setting.topmenu":"\u9876\u90E8\u83DC\u5355\u5E03\u5C40","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.copyinfo":"\u62F7\u8D1D\u6210\u529F\uFF0C\u8BF7\u5230 config/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"},Or={"app.settings.menuMap.basic":"\u57FA\u672C\u8BBE\u7F6E","app.settings.menuMap.security":"\u5B89\u5168\u8BBE\u7F6E","app.settings.menuMap.binding":"\u8D26\u53F7\u7ED1\u5B9A","app.settings.menuMap.notification":"\u65B0\u6D88\u606F\u901A\u77E5","app.settings.basic.avatar":"\u5934\u50CF","app.settings.basic.change-avatar":"\u66F4\u6362\u5934\u50CF","app.settings.basic.email":"\u90AE\u7BB1","app.settings.basic.email-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u90AE\u7BB1!","app.settings.basic.nickname":"\u6635\u79F0","app.settings.basic.nickname-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u6635\u79F0!","app.settings.basic.profile":"\u4E2A\u4EBA\u7B80\u4ECB","app.settings.basic.profile-message":"\u8BF7\u8F93\u5165\u4E2A\u4EBA\u7B80\u4ECB!","app.settings.basic.profile-placeholder":"\u4E2A\u4EBA\u7B80\u4ECB","app.settings.basic.country":"\u56FD\u5BB6/\u5730\u533A","app.settings.basic.country-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u56FD\u5BB6\u6216\u5730\u533A!","app.settings.basic.geographic":"\u6240\u5728\u7701\u5E02","app.settings.basic.geographic-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u6240\u5728\u7701\u5E02!","app.settings.basic.address":"\u8857\u9053\u5730\u5740","app.settings.basic.address-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u8857\u9053\u5730\u5740!","app.settings.basic.phone":"\u8054\u7CFB\u7535\u8BDD","app.settings.basic.phone-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u8054\u7CFB\u7535\u8BDD!","app.settings.basic.update":"\u66F4\u65B0\u57FA\u672C\u4FE1\u606F","app.settings.security.strong":"\u5F3A","app.settings.security.medium":"\u4E2D","app.settings.security.weak":"\u5F31","app.settings.security.password":"\u8D26\u6237\u5BC6\u7801","app.settings.security.password-description":"\u5F53\u524D\u5BC6\u7801\u5F3A\u5EA6","app.settings.security.phone":"\u5BC6\u4FDD\u624B\u673A","app.settings.security.phone-description":"\u5DF2\u7ED1\u5B9A\u624B\u673A","app.settings.security.question":"\u5BC6\u4FDD\u95EE\u9898","app.settings.security.question-description":"\u672A\u8BBE\u7F6E\u5BC6\u4FDD\u95EE\u9898\uFF0C\u5BC6\u4FDD\u95EE\u9898\u53EF\u6709\u6548\u4FDD\u62A4\u8D26\u6237\u5B89\u5168","app.settings.security.email":"\u5907\u7528\u90AE\u7BB1","app.settings.security.email-description":"\u5DF2\u7ED1\u5B9A\u90AE\u7BB1","app.settings.security.mfa":"MFA \u8BBE\u5907","app.settings.security.mfa-description":"\u672A\u7ED1\u5B9A MFA \u8BBE\u5907\uFF0C\u7ED1\u5B9A\u540E\uFF0C\u53EF\u4EE5\u8FDB\u884C\u4E8C\u6B21\u786E\u8BA4","app.settings.security.modify":"\u4FEE\u6539","app.settings.security.set":"\u8BBE\u7F6E","app.settings.security.bind":"\u7ED1\u5B9A","app.settings.notification.password":"\u8D26\u6237\u5BC6\u7801","app.settings.notification.password-description":"\u5176\u4ED6\u7528\u6237\u7684\u6D88\u606F\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5","app.settings.notification.messages":"\u7CFB\u7EDF\u6D88\u606F","app.settings.notification.messages-description":"\u7CFB\u7EDF\u6D88\u606F\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5","app.settings.notification.todo":"\u5F85\u529E\u4EFB\u52A1","app.settings.notification.todo-description":"\u5F85\u529E\u4EFB\u52A1\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5","app.settings.open":"\u5F00","app.settings.close":"\u5173"},Qn=a()(a()(a()(a()(a()(a()(a()(a()({"app.title":"\u5FAE\u8A9E","app.title.liangshibao":"\u826F\u5E2B\u96F2","app.title.meiyu":"\u7F8E\u8A9E","app.title.tiku":"\u984C\u5EAB","app.title.zhaobiao":"\u62DB\u6A19","app.logout":"\u767B\u51FA","navBar.lang":"\u8A9E\u8A00","layout.user.link.help":"\u5E6B\u52A9","layout.user.link.privacy":"\u96B1\u79C1","layout.user.link.terms":"\u689D\u6B3E","app.copyright.produced":"\u5FAE\u8A9E\u51FA\u54C1","app.preview.down.block":"\u4E0B\u8F09\u6B64\u9801\u9762\u5230\u672C\u5730\u9805\u76EE","app.welcome.link.fetch-blocks":"\u7372\u53D6\u5168\u90E8\u5340\u584A","app.welcome.link.block-list":"\u57FA\u65BC block \u958B\u767C\uFF0C\u5FEB\u901F\u69CB\u5EFA\u6A19\u6E96\u9801\u9762","theme.light":"\u6DFA\u8272","theme.dark":"\u6DF1\u8272","theme.system":"\u81EA\u52D5","setting.lang":"\u8A9E\u8A00","setting.theme":"\u4E3B\u984C","setting.switchorg":"\u5207\u63DB\u7D44\u7E54","setting.agentclient":"\u5BA2\u6236\u7AEF","setting.helpdoc":"\u5E6B\u52A9\u6587\u6A94","i18n.system.notification":"\u7CFB\u7EDF\u901A\u77E5","i18n.DEPT.ALL":"\u5168\u90E8","i18n.DEPT.ADMIN":"\u7BA1\u7406\u54E1","i18n.DEPT.HR":"\u4EBA\u4E8B\u90E8","i18n.DEPT.ORG":"\u884C\u653F\u90E8","i18n.DEPT.IT":"\u6280\u8853\u90E8","i18n.DEPT.MONEY":"\u8CA1\u52D9\u90E8","i18n.DEPT.MARKETING":"\u5E02\u5834\u90E8","i18n.DEPT.SALES":"\u92B7\u552E\u90E8","i18n.DEPT.CS":"\u5BA2\u670D\u90E8","i18n.ROLE_SUPER":"\u8D85\u7D1A\u7BA1\u7406\u54E1","i18n.ROLE_ADMIN":"\u7BA1\u7406\u54E1","i18n.ROLE_HR":"\u4EBA\u4E8B","i18n.ROLE_ORG":"\u884C\u653F","i18n.ROLE_IT":"IT","i18n.ROLE_MONEY":"\u8CA1\u52D9","i18n.ROLE_MARKETING":"\u71DF\u92B7","i18n.ROLE_SALES":"\u92B7\u552E","i18n.ROLE_CS":"\u5BA2\u670D","i18n.top.tip":"\u9ED8\u8A8D\u7F6E\u9876\u8A9E","i18n.leavemsg.tip":"\u7121\u5BA2\u670D\u5728\u7DDA\uFF0C\u8ACB\u7559\u8A00","i18n.welcome.tip":"\u60A8\u597D\uFF0C\u6709\u4EC0\u9EBC\u53EF\u4EE5\u5E6B\u60A8\u7684?","i18n.under.development":"\u958B\u767C\u4E2D...","i18n.user.description":"\u9ED8\u8A8D\u7528\u6236\u63CF\u8FF0","i18n.robot.nickname":"\u9ED8\u8A8D\u6A5F\u5668\u4EBA","i18n.robot.description":"\u9ED8\u8A8D\u6A5F\u5668\u4EBA\u63CF\u8FF0","i18n.robot.noreply":"\u672A\u627E\u5230\u76F8\u5E94\u7B54\u6848","i18n.llm.prompt":"\u89D2\u8272\uFF1A\u8CC7\u6DF1\u5BA2\u670D\u5C08\u5BB6; \u80CC\u666F\uFF1A\u64C1\u6709\u5C08\u696D\u5BA2\u670D\u7D93\u9A57\uFF0C\u5C0D\u6559\u80B2\u3001\u96FB\u5546\u3001\u91D1\u878D\u9818\u57DF\u6709\u6DF1\u523B\u7406\u89E3; \u4EFB\u52D9\uFF1A\u6839\u64DA\u4E0A\u4E0B\u6587\u4E2D\u63D0\u5230\u7684\u5167\u5BB9\uFF0C\u5C0D\u63D0\u51FA\u7684\u554F\u984C\u7D66\u51FA\u6709\u7528\u3001\u8A73\u7D30\u3001\u79AE\u8C8C\u7684\u56DE\u7B54; \u8981\u6C42\uFF1A1. \u89E3\u6C7A\u5BA2\u6236\u63D0\u51FA\u7684\u554F\u984C\uFF0C2. \u5B89\u64AB\u5BA2\u6236\u60C5\u7DD2\uFF0C3. \u63D0\u5347\u5BA2\u6236\u6EFF\u610F\u5EA6\uFF1A","i18n.agent.nickname":"\u9ED8\u8A8D\u5BA2\u670D","i18n.agent.description":"\u9ED8\u8A8D\u5BA2\u670D\u63CF\u8FF0","i18n.workgroup.nickname":"\u9810\u8A2D\u6280\u80FD\u7D44","i18n.workgroup.description":"\u9810\u8A2D\u6280\u80FD\u7D44\u63CF\u8FF0","i18n.contact":"\u8A62\u554F\u806F\u7E6B\u65B9\u5F0F","i18n.thanks":"\u611F\u8B1D","i18n.welcome":"\u554F\u5019","i18n.bye":"\u544A\u5225","i18n.kb.name":"\u9ED8\u8BA4\u77E5\u8BC6\u5E93","i18n.kb.platform.name":"\u5E73\u53F0\u77E5\u8BC6\u5E93","i18n.kb.helpdoc.name":"\u5E2E\u52A9\u6587\u6863\u77E5\u8BC6\u5E93","i18n.kb.llm.name":"\u5927\u6A21\u578B\u77E5\u8BC6\u5E93","i18n.kb.keyword.name":"\u5173\u952E\u8BCD\u77E5\u8BC6\u5E93","i18n.kb.faq.name":"\u5E38\u89C1\u95EE\u9898\u77E5\u8BC6\u5E93","i18n.kb.autoreply.name":"\u81EA\u52A8\u56DE\u590D\u77E5\u8BC6\u5E93","i18n.kb.quickreply.name":"\u5FEB\u6377\u56DE\u590D\u77E5\u8BC6\u5E93","i18n.kb.taboo.name":"\u654F\u611F\u8BCD\u77E5\u8BC6\u5E93","i18n.kb.description":"\u77E5\u8BC6\u5E93\u9ED8\u8BA4\u63CF\u8FF0","i18n.agent.nicknameKb":"\u9ED8\u8BA4\u5BA2\u670D\u77E5\u8BC6\u5E93","i18n.contact.title":"\u65B9\u4FBF\u7684\u8A71\u8ACB\u60A8\u63D0\u4F9B\u4E00\u4E0B\u60A8\u7684\u806F\u7E6B\u96FB\u8A71","i18n.contact.content":"\u65B9\u4FBF\u7684\u8A71\u8ACB\u60A8\u63D0\u4F9B\u4E00\u4E0B\u60A8\u7684\u806F\u7E6B\u96FB\u8A71\uFF0C\u6211\u96FB\u8A71\u7D66\u60A8\u6E9D\u901A\u4E00\u4E0B\uFF0C\u9019\u6A23\u66F4\u52A0\u76F4\u89C0","i18n.thanks.title":"\u611F\u8B1D\u5149\u81E8","i18n.thanks.content":"\u611F\u8B1D\u5149\u81E8\uFF0C\u6B61\u8FCE\u518D\u4F86","i18n.welcome.title":"\u60A8\u597D","i18n.welcome.content":"\u60A8\u597D\uFF0C\u6709\u4EC0\u9EBC\u53EF\u4EE5\u5E6B\u60A8\u7684","i18n.bye.title":"\u60A8\u7684\u6EFF\u610F\u4E00\u76F4\u662F\u6211\u5011\u7684\u76EE\u6A19","i18n.bye.content":"\u60A8\u7684\u6EFF\u610F\u4E00\u76F4\u662F\u6211\u5011\u7684\u76EE\u6A19\uFF0C\u5982\u679C\u6709\u4EFB\u4F55\u7591\u554F\u6B61\u8FCE\u60A8\u96A8\u6642\u806F\u7E6B","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"\u5E38\u89C1\u95EE\u9898\u5206\u7C7BDemo1","i18n.faq.category.demo.2":"\u5E38\u89C1\u95EE\u9898\u5206\u7C7BDemo2","i18n.faq.demo.title.1":"\u5E38\u89C1\u95EE\u9898\u6587\u5B57Demo1","i18n.faq.demo.content.1":"\u5E38\u89C1\u95EE\u9898\u6587\u5B57Demo1","i18n.faq.demo.title.2":"\u5E38\u89C1\u95EE\u9898\u56FE\u7247Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"\u5FEB\u6377\u6309\u94AE\u6587\u5B57Demo1","i18n.quick.button.demo.content.1":"\u5FEB\u6377\u6309\u94AE\u6587\u5B57Demo1","i18n.quick.button.demo.title.2":"\u5FEB\u6377\u6309\u94AE\u94FE\u63A5Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn"},Lr),lr),yr),rr),br),Or),$r),In),ir=["cache"],Pr,_r=!0,xr=new(W()),nr=Symbol("LANG_CHANGE"),Hr=function ft(et){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(et).reduce(function(ht,Nt){var Qt=et[Nt],Jt=dt?"".concat(dt,".").concat(Nt):Nt;return typeof Qt=="string"?ht[Jt]=Qt:Object.assign(ht,ft(Qt,Jt)),ht},{})},ar={"en-US":{messages:a()({},Hr(We)),locale:"en-US",antd:a()({},B.Z),momentLocale:"en"},"zh-CN":{messages:a()({},Hr($t)),locale:"zh-CN",antd:a()({},je.Z),momentLocale:"zh-cn"},"zh-TW":{messages:a()({},Hr(Qn)),locale:"zh-TW",antd:a()({},$n),momentLocale:"zh-tw"}},na=function(et,dt,ht){var Nt,Qt,Jt,Vt;if(et){var Zt=(Nt=ar[et])!==null&&Nt!==void 0&&Nt.messages?Object.assign({},ar[et].messages,dt):dt,Ee=ht||{},Ce=Ee.momentLocale,Te=Ce===void 0?(Qt=ar[et])===null||Qt===void 0?void 0:Qt.momentLocale:Ce,Ae=Ee.antd,He=Ae===void 0?(Jt=ar[et])===null||Jt===void 0?void 0:Jt.antd:Ae,Ct=(Vt=et.split("-"))===null||Vt===void 0?void 0:Vt.join("-");ar[et]={messages:Zt,locale:Ct,momentLocale:Te,antd:He},Ct===Wn()&&xr.emit(nr,Ct)}},wr=function(et){return(0,ze.We)().applyPlugins({key:"locale",type:"modify",initialValue:et})},Gr=function(et){var dt=wr(ar[et]),ht=dt.cache,Nt=r()(dt,ir);return Le(Nt,ht)},Rr=function(et,dt){return Pr&&!dt&&!et?Pr:(et||(et=Wn()),et&&ar[et]?Gr(et):(x()(!et||!!ar[et],"The current popular language does not exist, please check the locales folder!"),ar["zh-CN"]?Gr("zh-CN"):Le({locale:"zh-CN",messages:{}})))},Yn=function(et){Pr=Rr(et,!0)},Wn=function(){var et=wr({});if(typeof(et==null?void 0:et.getLocale)=="function")return et.getLocale();var dt=navigator.cookieEnabled&&typeof localStorage!="undefined"&&_r?window.localStorage.getItem("umi_locale"):"",ht,Nt=typeof navigator!="undefined"&&typeof navigator.language=="string";return ht=Nt?navigator.language.split("-").join("-"):"",dt||ht||"zh-CN"},ot=function(){var et=Wn(),dt=["he","ar","fa","ku"],ht=dt.filter(function(Nt){return et.startsWith(Nt)}).length?"rtl":"ltr";return ht},Tt=function(et){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ht=function(){if(Wn()!==et){if(navigator.cookieEnabled&&typeof window.localStorage!="undefined"&&_r&&window.localStorage.setItem("umi_locale",et||""),Yn(et),dt)window.location.reload();else if(xr.emit(nr,et),window.dispatchEvent){var Qt=new Event("languagechange");window.dispatchEvent(Qt)}}};ht()},Mt=!0,Ut=function(et,dt){return Mt&&(warning(!1,`Using this API will cause automatic refresh when switching languages, please use useIntl or injectIntl. - -\u4F7F\u7528\u6B64 api \u4F1A\u9020\u6210\u5207\u6362\u8BED\u8A00\u7684\u65F6\u5019\u65E0\u6CD5\u81EA\u52A8\u5237\u65B0\uFF0C\u8BF7\u4F7F\u7528 useIntl \u6216 injectIntl\u3002 - -http://j.mp/37Fkd5Q - `),Mt=!1),Pr||Yn(Wn()),Pr.formatMessage(et,dt)},Ot=function(){return Object.keys(ar)}},44886:function(v,p,e){"use strict";e.d(p,{t:function(){return M},z:function(){return C}});var t=e(5574),r=e.n(t),o=e(72004),a=e.n(o),s=e(12444),u=e.n(s),c=e(9783),l=e.n(c),d=e(64063),m=e.n(d),b=e(67294),y=e(85893),f=b.createContext(null),E=a()(function P(){var A=this;u()(this,P),l()(this,"callbacks",{}),l()(this,"data",{}),l()(this,"update",function(O){A.callbacks[O]&&A.callbacks[O].forEach(function($){try{var Z=A.data[O];$(Z)}catch(Q){$(void 0)}})})});function R(P){var A=P.hook,O=P.onUpdate,$=P.namespace,Z=(0,b.useRef)(O),Q=(0,b.useRef)(!1),U;try{U=A()}catch(Y){console.error("plugin-model: Invoking '".concat($||"unknown","' model failed:"),Y)}return(0,b.useMemo)(function(){Z.current(U)},[]),(0,b.useEffect)(function(){Q.current?Z.current(U):Q.current=!0}),null}var T=new E;function C(P){return(0,y.jsxs)(f.Provider,{value:{dispatcher:T},children:[Object.keys(P.models).map(function(A){return(0,y.jsx)(R,{hook:P.models[A],namespace:A,onUpdate:function($){T.data[A]=$,T.update(A)}},A)}),P.children]})}function M(P,A){var O=(0,b.useContext)(f),$=O.dispatcher,Z=(0,b.useRef)(A);Z.current=A;var Q=(0,b.useState)(function(){return Z.current?Z.current($.data[P]):$.data[P]}),U=r()(Q,2),Y=U[0],H=U[1],G=(0,b.useRef)(Y);G.current=Y;var J=(0,b.useRef)(!1);return(0,b.useEffect)(function(){return J.current=!0,function(){J.current=!1}},[]),(0,b.useEffect)(function(){var X,V=function(z){if(!J.current)setTimeout(function(){$.data[P]=z,$.update(P)});else{var k=Z.current?Z.current(z):z,L=G.current;m()(k,L)||(G.current=k,H(k))}};return(X=$.callbacks)[P]||(X[P]=new Set),$.callbacks[P].add(V),$.update(P),function(){$.callbacks[P].delete(V)}},[P]),Y}},80049:function(v,p,e){"use strict";e.d(p,{yw:function(){return r}});var t=e(31418),r,o,a;p.ZP=function(){var s=t.Z.useApp();return r=s.message,a=s.modal,o=s.notification,null}},98661:function(v,p,e){"use strict";e.d(p,{N9:function(){return f},Y7:function(){return b},kS:function(){return C},x4:function(){return d},z2:function(){return R}});var t=e(15009),r=e.n(t),o=e(97857),a=e.n(o),s=e(99289),u=e.n(s),c=e(85615),l=e(86745);function d(P){return m.apply(this,arguments)}function m(){return m=u()(r()().mark(function P(A){return r()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.abrupt("return",(0,l.request)("/auth/v1/login",{method:"POST",data:a()(a()({},A),{},{client:c.bVn})}));case 1:case"end":return $.stop()}},P)})),m.apply(this,arguments)}function b(P){return y.apply(this,arguments)}function y(){return y=u()(r()().mark(function P(A){return r()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.abrupt("return",(0,l.request)("/auth/v1/send/mobile",{method:"POST",data:a()(a()({},A),{},{client:c.bVn})}));case 1:case"end":return $.stop()}},P)})),y.apply(this,arguments)}function f(P){return E.apply(this,arguments)}function E(){return E=u()(r()().mark(function P(A){return r()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.abrupt("return",(0,l.request)("/auth/v1/login/mobile",{method:"POST",data:a()(a()({},A),{},{client:c.bVn})}));case 1:case"end":return $.stop()}},P)})),E.apply(this,arguments)}function R(P){return T.apply(this,arguments)}function T(){return T=u()(r()().mark(function P(A){return r()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.abrupt("return",(0,l.request)("/auth/v1/register",{method:"POST",data:a()({},A)}));case 1:case"end":return $.stop()}},P)})),T.apply(this,arguments)}function C(P){return M.apply(this,arguments)}function M(){return M=u()(r()().mark(function P(A){return r()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.abrupt("return",(0,l.request)("/api/v1/user/logout",a()({method:"POST",data:{client:c.bVn}},A||{})));case 1:case"end":return $.stop()}},P)})),M.apply(this,arguments)}},16761:function(v,p,e){"use strict";e.d(p,{Ai:function(){return d},Cp:function(){return f},Nq:function(){return Z},_9:function(){return P},ck:function(){return b},r4:function(){return O}});var t=e(15009),r=e.n(t),o=e(97857),a=e.n(o),s=e(99289),u=e.n(s),c=e(85615),l=e(86745);function d(H){return m.apply(this,arguments)}function m(){return m=u()(r()().mark(function H(G){return r()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.abrupt("return",(0,l.request)("/api/v1/user/profile",a()({method:"GET",params:{client:c.bVn}},G||{})));case 1:case"end":return X.stop()}},H)})),m.apply(this,arguments)}function b(H){return y.apply(this,arguments)}function y(){return y=u()(r()().mark(function H(G){return r()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.abrupt("return",(0,l.request)("/api/v1/user/update",{method:"POST",data:a()(a()({},G),{},{client:c.bVn})}));case 1:case"end":return X.stop()}},H)})),y.apply(this,arguments)}function f(H){return E.apply(this,arguments)}function E(){return E=u()(r()().mark(function H(G){return r()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.abrupt("return",(0,l.request)("/api/v1/user/change/password",{method:"POST",data:a()(a()({},G),{},{client:c.bVn})}));case 1:case"end":return X.stop()}},H)})),E.apply(this,arguments)}function R(){return T.apply(this,arguments)}function T(){return T=_asyncToGenerator(_regeneratorRuntime().mark(function H(){return _regeneratorRuntime().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.abrupt("return",request("/api/v1/user/test/super",{method:"GET",params:{client:HTTP_CLIENT}}));case 1:case"end":return J.stop()}},H)})),T.apply(this,arguments)}function C(){return M.apply(this,arguments)}function M(){return M=_asyncToGenerator(_regeneratorRuntime().mark(function H(){return _regeneratorRuntime().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.abrupt("return",request("/api/v1/user/test/cs",{method:"GET",params:{client:HTTP_CLIENT}}));case 1:case"end":return J.stop()}},H)})),M.apply(this,arguments)}function P(H){return A.apply(this,arguments)}function A(){return A=u()(r()().mark(function H(G){return r()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.abrupt("return",(0,l.request)("/api/v1/vip/user/query/org",{method:"GET",params:a()(a()({},G),{},{client:c.bVn})}));case 1:case"end":return X.stop()}},H)})),A.apply(this,arguments)}function O(H){return $.apply(this,arguments)}function $(){return $=u()(r()().mark(function H(G){return r()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.abrupt("return",(0,l.request)("/api/v1/user/create",{method:"POST",data:a()(a()({},G),{},{client:c.bVn})}));case 1:case"end":return X.stop()}},H)})),$.apply(this,arguments)}function Z(H){return Q.apply(this,arguments)}function Q(){return Q=u()(r()().mark(function H(G){return r()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.abrupt("return",(0,l.request)("/api/v1/user/update",{method:"POST",data:a()(a()({},G),{},{client:c.bVn})}));case 1:case"end":return X.stop()}},H)})),Q.apply(this,arguments)}function U(H){return Y.apply(this,arguments)}function Y(){return Y=_asyncToGenerator(_regeneratorRuntime().mark(function H(G){return _regeneratorRuntime().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.abrupt("return",request("/api/v1/user/delete",{method:"POST",data:_objectSpread(_objectSpread({},G),{},{client:HTTP_CLIENT})}));case 1:case"end":return X.stop()}},H)})),Y.apply(this,arguments)}},59203:function(v,p,e){"use strict";e.d(p,{Kd:function(){return ze},gj:function(){return qe},$_:function(){return u},HN:function(){return C}});var t=e(87909),r=e(86745),o=e(67294),a=e(85893),s=function(){var W=new Date().getFullYear();return(0,a.jsx)(t.q,{style:{},copyright:"".concat(W," bytedesk.com"),links:[{key:"weiyuai.cn",title:(0,a.jsx)(r.FormattedMessage,{id:"pages.footer.website"}),href:"https://www.weiyuai.cn/",blankTarget:!0},{key:"docs",title:(0,a.jsx)(r.FormattedMessage,{id:"pages.footer.contact"}),href:"https://www.weiyuai.cn/contact.html",blankTarget:!0}]})},u=s,c=function(){return _jsx(DefaultHeader,{style:{background:"#3875F6"},matchMenuKeys:[]})},l=null,d=e(85615),m=e(1413),b=e(36688),y=e(89099),f=function(W,re){return o.createElement(y.Z,(0,m.Z)((0,m.Z)({},W),{},{ref:re,icon:b.Z}))},E=o.forwardRef(f),R=E,T=function(){return _jsx(UmiSelectLang,{style:{}})},C=function(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{display:"flex",marginLeft:12,height:26},onClick:function(){window.open(d.rVq)},children:(0,a.jsx)(R,{})})})},M=e(19632),P=e.n(M),A=e(97857),O=e.n(A),$=e(87547),Z=e(43425),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"},U=Q,Y=function(W,re){return o.createElement(y.Z,(0,m.Z)((0,m.Z)({},W),{},{ref:re,icon:U}))},H=o.forwardRef(Y),G=H,J={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8zm-650.3-80h85c4.2 0 8-2.7 9.3-6.8l53.7-166h219.2l53.2 166c1.3 4 5 6.8 9.3 6.8h89.1c1.1 0 2.2-.2 3.2-.5a9.7 9.7 0 006-12.4L573.6 118.6a9.9 9.9 0 00-9.2-6.6H462.1c-4.2 0-7.9 2.6-9.2 6.6L244.5 723.1c-.4 1-.5 2.1-.5 3.2-.1 5.3 4.3 9.7 9.7 9.7zm255.9-516.1h4.1l83.8 263.8H424.9l84.7-263.8z"}}]},name:"font-colors",theme:"outlined"},X=J,V=function(W,re){return o.createElement(y.Z,(0,m.Z)((0,m.Z)({},W),{},{ref:re,icon:X}))},q=o.forwardRef(V),z=q,k={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M766.4 744.3c43.7 0 79.4-36.2 79.4-80.5 0-53.5-79.4-140.8-79.4-140.8S687 610.3 687 663.8c0 44.3 35.7 80.5 79.4 80.5zm-377.1-44.1c7.1 7.1 18.6 7.1 25.6 0l256.1-256c7.1-7.1 7.1-18.6 0-25.6l-256-256c-.6-.6-1.3-1.2-2-1.7l-78.2-78.2a9.11 9.11 0 00-12.8 0l-48 48a9.11 9.11 0 000 12.8l67.2 67.2-207.8 207.9c-7.1 7.1-7.1 18.6 0 25.6l255.9 256zm12.9-448.6l178.9 178.9H223.4l178.8-178.9zM904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8z"}}]},name:"bg-colors",theme:"outlined"},L=k,F=function(W,re){return o.createElement(y.Z,(0,m.Z)((0,m.Z)({},W),{},{ref:re,icon:L}))},N=o.forwardRef(F),ee=N,ce=e(92443),le=e(92879),se=e(74330),fe=e(73935),xe=e(9783),Ie=e.n(xe),Pe=e(13769),$e=e.n(Pe),at=e(83159),ut=e(93967),Ue=e.n(ut),Ye=["overlayClassName"],Xe=function(W){var re=W.overlayClassName,x=$e()(W,Ye),oe=(0,le.l)(function(ve){var he=ve.token;return Ie()({},"@media screen and (max-width: ".concat(he.screenXS,"px)"),{width:"100%"})});return(0,a.jsx)(at.Z,O()({overlayClassName:Ue()(oe,re)},x))},Fe=Xe,Je=e(66419),Le=e(39825),qe=function(){var W=(0,r.useModel)("@@initialState"),re=W.initialState,x=re||{},oe=x.userInfo;return(0,a.jsx)("span",{className:"anticon",children:oe==null?void 0:oe.nickname})},ze=function(W){var re=W.menu,x=W.children,oe=(0,le.l)(function(ye){var Ne=ye.token;return{display:"flex",height:"48px",overflow:"hidden",alignItems:"center",cursor:"pointer",borderRadius:Ne.borderRadius,"&:hover":{backgroundColor:Ne.colorBgTextHover}}}),ve=(0,r.useModel)("@@initialState"),he=ve.initialState,w=ve.setInitialState,S=(0,Le.Z)(),j=S.themeMode,B=S.setThemeMode,_=(0,r.getLocale)(),D=(0,o.useCallback)(function(ye){var Ne=ye.key;if(Ne==="logout"){(0,Je.Qk)(),(0,fe.flushSync)(function(){w(function(ke){return O()(O()({},ke),{},{userInfo:void 0})})});return}else if(Ne==="profile"){r.history.push("/setting/profile");return}else if(Ne==="basic"){r.history.push("/setting/basic");return}else if(Ne==="server"){r.history.push("/setting/server");return}else Ne==="lang.en-US"?(0,r.setLocale)("en-US"):Ne==="lang.zh-CN"?(0,r.setLocale)("zh-CN"):Ne==="lang.zh-TW"?(0,r.setLocale)("zh-TW"):Ne==="theme.light"?(B("light"),window.location.reload()):Ne==="theme.dark"?(B("dark"),window.location.reload()):Ne==="theme.system"&&(B("system"),window.location.reload())},[w]),te=(0,a.jsx)("span",{className:oe,children:(0,a.jsx)(se.Z,{size:"small",style:{marginRight:8}})});if(!he)return te;var be=he.userInfo;if(!be||!be.nickname)return te;var ge=[].concat(P()(re?[{key:"profile",icon:(0,a.jsx)($.Z,{}),label:(0,a.jsx)(r.FormattedMessage,{id:"menu.setting.profile"})},{key:"basic",icon:(0,a.jsx)(Z.Z,{}),label:(0,a.jsx)(r.FormattedMessage,{id:"menu.setting.basic"})},{key:"server",icon:(0,a.jsx)(G,{}),label:(0,a.jsx)(r.FormattedMessage,{id:"menu.setting.server"})},{type:"divider"},{key:"lang",icon:(0,a.jsx)(z,{}),label:(0,a.jsx)(r.FormattedMessage,{id:"setting.lang"}),children:[{key:"lang.en-US",label:"English"},{key:"lang.zh-CN",label:"\u7B80\u4F53\u4E2D\u6587"},{key:"lang.zh-TW",label:"\u7E41\u4F53\u4E2D\u6587"}]},{key:"theme",icon:(0,a.jsx)(ee,{}),label:(0,a.jsx)(r.FormattedMessage,{id:"setting.theme"}),children:[{key:"theme.light",label:(0,a.jsx)(r.FormattedMessage,{id:"theme.light"})},{key:"theme.dark",label:(0,a.jsx)(r.FormattedMessage,{id:"theme.dark"})},{key:"theme.system",label:(0,a.jsx)(r.FormattedMessage,{id:"theme.system"})}]},{type:"divider"}]:[]),[{key:"logout",icon:(0,a.jsx)(ce.Z,{}),label:(0,a.jsx)(r.FormattedMessage,{id:"app.logout"})}]);return(0,a.jsx)(Fe,{menu:{selectedKeys:[],onClick:D,items:ge},children:x})}},69554:function(v,p,e){"use strict";e.d(p,{w:function(){return d}});var t=e(5574),r=e.n(t),o=e(67294),a=e(82925),s=e(39825),u=e(63998),c=e(85893),l=(0,o.createContext)({}),d=function(b){var y=b.children,f=(0,u.t)(function(Q){return Q.accessToken}),E=(0,o.useMemo)(function(){return!!f&&f.trim().length>0},[f]),R=(0,s.Z)(),T=R.themeMode,C=R.setThemeMode,M=R.isDarkMode,P=(0,o.useState)(a.Z),A=r()(P,2),O=A[0],$=A[1],Z=function(U){var Y=U.target.value;console.log("localeValue:",Y),$(Y)};return(0,c.jsx)(l.Provider,{value:{isLoggedIn:E,isDarkMode:M,themeMode:T,setThemeMode:C,locale:O,changeLocale:Z},children:y})}},39825:function(v,p,e){"use strict";var t=e(5574),r=e.n(t),o=e(85615),a=e(67294);function s(){var u=localStorage.getItem(o.AEB)||"light",c=(0,a.useState)(u),l=r()(c,2),d=l[0],m=l[1],b=localStorage.getItem(o.sxn)||"system",y=(0,a.useState)(b),f=r()(y,2),E=f[0],R=f[1];return(0,a.useEffect)(function(){b==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?m("dark"):m("light"),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",function(T){T.matches?m("dark"):m("light")}))},[]),(0,a.useEffect)(function(){localStorage.setItem(o.sxn,E),E==="light"?m("light"):E==="dark"?m("dark"):E==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?m("dark"):m("light"))},[E]),(0,a.useEffect)(function(){localStorage.setItem(o.AEB,d)},[d]),{themeName:d,setThemeName:m,themeMode:E,setThemeMode:R,isDarkMode:d==="dark",isLightMode:d==="light"}}p.Z=s},63998:function(v,p,e){"use strict";e.d(p,{t:function(){return s}});var t=e(85615),r=e(73445),o=e(782),a=e(18753),s=(0,r.Ue)()((0,o.mW)((0,o.tJ)((0,a.n)(function(u,c){return{accessToken:"",setAccessToken:function(d){localStorage.setItem(t.LA8,d),u({accessToken:d})},getAccessToken:function(){return c().accessToken},removeAccessToken:function(){localStorage.removeItem(t.LA8),u({accessToken:""})}}}),{name:t.qtN})))},85615:function(v,p,e){"use strict";e.d(p,{AEB:function(){return V},Cap:function(){return bt},DST:function(){return ya},DiZ:function(){return S},EL2:function(){return o},Eis:function(){return ze},EmD:function(){return oe},GNu:function(){return L},Jxp:function(){return Pt},LA8:function(){return Le},LZ1:function(){return xt},MLd:function(){return sn},NDq:function(){return Ar},Njn:function(){return d},OMm:function(){return ke},PQL:function(){return re},PYi:function(){return _r},PZ1:function(){return de},PcP:function(){return Re},Q2z:function(){return Dt},QPQ:function(){return dn},Qm:function(){return xr},Qn:function(){return nr},R8f:function(){return Bn},Ra4:function(){return Et},SsI:function(){return mt},SwN:function(){return u},TAc:function(){return xn},Vdp:function(){return _t},VoP:function(){return y},WvL:function(){return ln},X6W:function(){return Ur},Xzy:function(){return he},YjS:function(){return za},Yu1:function(){return Hr},_FS:function(){return cn},_X4:function(){return m},aIT:function(){return r},aZD:function(){return l},b6l:function(){return qe},bE7:function(){return er},bVn:function(){return t},bjp:function(){return En},c7i:function(){return Jn},cn9:function(){return x},eRd:function(){return ie},es0:function(){return ae},f4h:function(){return qt},gGr:function(){return s},h5w:function(){return E},hS2:function(){return ye},i_k:function(){return Ye},iu4:function(){return Dn},iw8:function(){return c},j87:function(){return j},jNC:function(){return hn},lEl:function(){return At},mxI:function(){return k},nvV:function(){return je},qAy:function(){return Kn},qtN:function(){return Je},rVq:function(){return b},sOn:function(){return or},sxn:function(){return H},tU$:function(){return rt},tVi:function(){return ar},uaR:function(){return ve},ue3:function(){return a},vCH:function(){return ge},vPY:function(){return vt},wAM:function(){return B},wG_:function(){return on},wKE:function(){return Ve},xK4:function(){return U},xY_:function(){return W},xtN:function(){return It},yCI:function(){return Ue},z3B:function(){return D},zBg:function(){return f},zzK:function(){return w}});var t="WEB",r="BYTEDESK",o="LIANGSHIBAO",a="ZHAOBIAO",s="MEIYU",u="TIKU",c=r,l="workgroup",d="agent",m="robot",b="https://www.weiyuai.cn/docs/zh-CN",y="i18n.",f=y+"DEPT.ALL",E=y+"under.development",R="organization",T="department",C="member",M="EVENT_BUS_LOGIN_TIMEOUT",P="EVENT_BUS_LOGIN_ERROR_400",A="EVENT_BUS_SERVER_ERROR_500",O="EVENT_BUS_FLOW_NODE_RUN",$="EVENT_BUS_FLOW_NODE_COPY",Z="EVENT_BUS_FLOW_NODE_PASTE",Q="EVENT_BUS_FLOW_NODE_DELETE",U="EVENT_TOKEN_INVALID",Y="SWITCH_THEME",H="THEME_MODE_TYPE",G="light",J="dark",X="system",V="THEME_NAME_TYPE",q="dark",z="light",k="SUPER",L="ADMIN",F="HR",N="ORG",ee="IT",ce="MONEY",le="MARKETING",se="SALES",fe="CS",xe="system",Ie="user",Pe="development",$e="opensource",at="saas",ut="private",Ue="login",Ye="register",Xe="forget",Fe="verify",Je="AUTH_STORE",Le="ACCESS_TOKEN",qe="WORKGROUP_STORE",ze="ROBOT_STORE",ie="ORGANIZTION_STORE",W="DEPARTMENT_STORE",re="MEMBER_STORE",x="KB_STORE",oe="USER_STORE",ve="ROLE_STORE",he="GROUP_STORE",w="AGENT_STORE",S="THREAD_STORE",j="MESSAGE_STORE",B="QUARTZ_STORE",_="LIANGSHIBAO_STORE",D="MEIYU_STORE",te="TIKU_STORE",be="ZHAOBIAO_STORE",ge="COURSE_STORE",ye="MEDIA_STORE",Ne="TEACHER_STORE",ke="CATEGORY_STORE",We="CITY_STORE",je="ACTION_STORE",Ve="KBASE_STORE",mt="ARTICLE_STORE",Pt="ROBIN",bt="AVERAGE",_t="IDLE",Dt="LESS",Rt="BOARDCAST",Ht="SENDING",$t="TIMEOUT",vn="BLOCKED",mn="NOTFRIEND",zn="ERROR",Xt="SUCCESS",Vn="RECALL",Un="DELIVERED",_n="READ",Ln="DESTROYED",kn="UNPRECESSED",Rn="PROCESSED",Mn="LEAVE_MSG_SUBMIT",$n="RATE_SUBMIT",In="RATE_CANCEL",lr="RATE_UP",yr="RATE_DOWN",rr="TRANSFER_ACCEPT",Lr="TRANSFER_REJECT",$r="INVITE_ACCEPT",br="INVITE_REJECT",Or="WELCOME",Qn="CONTINUE",ir="SYSTEM",Pr="NOTICE",_r="TEXT",xr="IMAGE",nr="FILE",Hr="AUDIO",ar="VIDEO",na="MUSIC",wr="LOCATION",Gr="GOODS",Rr="CARD",Yn="EVENT",Wn="GUESS",ot="HOT",Tt="SHORTCUT",Mt="ORDER",Ut="POLL",Ot="FORM",ft="LEAVE_MSG",et="LEAVE_MSG_SUBMIT",dt="TICKET",ht="TYPING",Nt="PROCESSING",Qt="STREAM",Jt="PREVIEW",Vt="RECALL",Zt="DELIVERED",Ee="READ",Ce="QUOTATION",Te="KICKOFF",Ae="SHAKE",He="FAQ",Ct="FAQ_Q",wt="FAQ_A",tn="FAQ_UP",an="FAQ_DOWN",zt="ROBOT",gn="ROBOT_UP",bn="ROBOT_DOWN",Sn="RATE",rn="RATE_INVITE",Gn="RATE_SUBMIT",Me="RATE_CANCEL",me="TRANSFER",ue="TRANSFER_ACCEPT",Oe="TRANSFER_REJECT",pe="INVITE",De="INVITE_ACCEPT",_e="INVITE_REJECT",ae="0",vt="1",It="2",pt="3",nn="4",it="5",yn="6",en="7",un="8",jt="9",Et="AVAILABLE",rt="BUSY",xt="OFFLINE",qt="SERVICE",on="MARKETING",sn="KNOWLEDGEBASE",Dn="QA",xn="EXACT",At="FUZZY",Jn="REGULAR",or="VECTOR",Ar="ELASTIC",Mr="file",zr="system",qr="user/",Kr="private/",Jr="group/",da="file/",ma="system/",va="robot/",Xr="org/",ga="org/member/",Qr="org/department/",st="org/group/",lt="org/private/",Ge="org/robot/",ct="org/agent/",Ft="org/workgroup/",fn="ASISTANT",En="HELPDOC",dn="LLM",hn="KEYWORD",er="FAQ",cn="QUICKREPLY",ln="AUTOREPLY",Kn="BLOG",Ur="EMAIL",Bn="TABOO",ea="ASISTANT",ca="HELPDOC",fa="LLM",Oa="KEYWORD",Ia="FAQ",io="QUICKREPLY",wa="AUTOREPLY",jo="BLOG",So="EMAIL",La="TABOO",Bo="CHAT",za="ATTACHMENT",ya="FIXED",de="KEYWORD",Re="LLM"},23661:function(v,p,e){"use strict";e.d(p,{Z:function(){return o}});function t(a){return{all:a=a||new Map,on:function(s,u){var c=a.get(s);c?c.push(u):a.set(s,[u])},off:function(s,u){var c=a.get(s);c&&(u?c.splice(c.indexOf(u)>>>0,1):a.set(s,[]))},emit:function(s,u){var c=a.get(s);c&&c.slice().map(function(l){l(u)}),(c=a.get("*"))&&c.slice().map(function(l){l(s,u)})}}}var r=t(),o=r},66419:function(v,p,e){"use strict";e.d(p,{Bc:function(){return $},NZ:function(){return A},Qk:function(){return P},aS:function(){return Y},hX:function(){return Z},iE:function(){return R},lk:function(){return Q},pr:function(){return k},z:function(){return U}});var t=e(5574),r=e.n(t),o=e(15009),a=e.n(o),s=e(99289),u=e.n(s),c=e(98661),l=e(17673),d=e(86745),m=e(85615),b=e(27484),y=e.n(b),f=e(9669),E=e.n(f);function R(){E().get("/admin/config.json").then(function(L){var F=L.data;console.log("config: ",F.enabled,F.restHost,F.htmlHost)}).catch(function(L){console.log("error: ",L)})}function T(){return""}function C(){return""}function M(){return moment().format("YYYY-MM-DD HH:mm:ss")}var P=function(){var L=u()(a()().mark(function F(){return a()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.next=2,(0,c.kS)();case 2:A();case 3:case"end":return ee.stop()}},F)}));return function(){return L.apply(this,arguments)}}(),A=function(){var F=window.location,N=F.search,ee=F.pathname,ce=new URL(window.location.href).searchParams,le=ce.get("redirect");window.location.pathname!=="/auth/login"&&!le&&d.history.replace({pathname:"/auth/login",search:(0,l.stringify)({redirect:ee+N})}),localStorage.removeItem(m.LA8),localStorage.removeItem(m.qtN),localStorage.removeItem(m.nvV),localStorage.removeItem(m.b6l),localStorage.removeItem(m.eRd),localStorage.removeItem(m.Eis),localStorage.removeItem(m.xY_),localStorage.removeItem(m.PQL),localStorage.removeItem(m.cn9),localStorage.removeItem(m.EmD),localStorage.removeItem(m.uaR),localStorage.removeItem(m.Xzy),localStorage.removeItem(m.zzK),localStorage.removeItem(m.b6l),localStorage.removeItem(m.DiZ),localStorage.removeItem(m.j87),localStorage.removeItem(m.wAM),window.location.reload()},O=["localhost","127.0.0.1","weiyu","kefux","bytedesk","jikao","meiyu","liangshi","tiku","zhaobiao","weikefu","luobosi"];function $(){var L=window.location.href;if(!L)return console.error("currentUrl is undefined or empty."),!1;for(var F=0;FF?L.slice(0,F-3)+"...":L}function H(L,F){var N=new Blob([L]),ee=document.createElement("a");ee.style.display="none";var ce=window.URL.createObjectURL(N);ee.href=ce,ee.download=F,document.body.appendChild(ee),ee.click(),document.body.removeChild(ee),window.URL.revokeObjectURL(ce)}function G(L){}function J(L){return btoa(encodeURIComponent(L))}function X(L){return decodeURIComponent(atob(L))}function V(L){var F=L.split("&"),N="";return F.forEach(function(ee){var ce=ee.split("="),le=_slicedToArray(ce,2),se=le[0],fe=le[1];if(se==="t"){N=fe;return}}),N}function q(L){var F=L.split("&"),N="";return F.forEach(function(ee){var ce=ee.split("="),le=_slicedToArray(ce,2),se=le[0],fe=le[1];if(se==="sid"){N=fe;return}}),N}function z(){return uuidv4().replaceAll(/-/g,"")}function k(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub\uFF1Ahttps://github.com/bytedesk/bytedesk")}},26251:function(v,p,e){"use strict";e.d(p,{_y:function(){return y},zt:function(){return b}});var t=e(9783),r=e.n(t),o=e(67294),a=e(8679),s=e.n(a),u=s()||a;function c(E){return E.displayName||E.name||"Component"}var l=o.createContext(null),d=l.Consumer,m=l.Provider,b=m,y=l;function f(E,R){var T=R||{},C=T.intlPropName,M=C===void 0?"intl":C,P=T.forwardRef,A=P===void 0?!1:P,O=T.enforceContext,$=O===void 0?!0:O,Z=function(U){return React.createElement(d,null,function(Y){return $&&invariantIntlContext(Y),React.createElement(E,Object.assign({},U,_defineProperty({},M,Y),{ref:A?U.forwardedRef:null}))})};return Z.displayName="injectIntl(".concat(c(E),")"),Z.WrappedComponent=E,u(A?React.forwardRef(function(Q,U){return React.createElement(Z,Object.assign({},Q,{forwardedRef:U}))}):Z,E)}},11443:function(v,p,e){"use strict";e.d(p,{Z:function(){return a}});var t=e(67294),r=e(26251),o=e(10611);function a(){var s=(0,t.useContext)(r._y);return(0,o.lq)(s),s}},10611:function(v,p,e){"use strict";e.d(p,{L6:function(){return l},Sn:function(){return f},TB:function(){return R},Tr:function(){return m},YU:function(){return c},Z0:function(){return y},ax:function(){return E},lq:function(){return d}});var t=e(67294),r=e(78689),o=e(22418),a=e(90193),s={38:"&",62:">",60:"<",34:""",39:"'"},u=/[&><"']/g;function c(T){return(""+T).replace(u,function(C){return s[C.charCodeAt(0)]})}function l(T,C){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return C.reduce(function(P,A){return A in T?P[A]=T[A]:A in M&&(P[A]=M[A]),P},{})}function d(T){(0,a.k)(T,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function m(T,C){var M=C?` -`.concat(C.stack):"";return"[React Intl] ".concat(T).concat(M)}function b(T){}var y={formats:{},messages:{},timeZone:void 0,textComponent:t.Fragment,defaultLocale:"en",defaultFormats:{},onError:b};function f(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function E(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f(),C=Intl.RelativeTimeFormat,M=Intl.ListFormat,P=Intl.DisplayNames;return{getDateTimeFormat:(0,o.Z)(Intl.DateTimeFormat,T.dateTime),getNumberFormat:(0,o.Z)(Intl.NumberFormat,T.number),getMessageFormat:(0,o.Z)(r.ZP,T.message),getRelativeTimeFormat:(0,o.Z)(C,T.relativeTime),getPluralRules:(0,o.Z)(Intl.PluralRules,T.pluralRules),getListFormat:(0,o.Z)(M,T.list),getDisplayNames:(0,o.Z)(P,T.displayNames)}}function R(T,C,M,P){var A=T&&T[C],O;if(A&&(O=A[M]),O)return O;P(m("No ".concat(C," format named: ").concat(M)))}},15393:function(v){"use strict";var p=!1,e=function(){};if(p){var t=function(o,a){var s=arguments.length;a=new Array(s>1?s-1:0);for(var u=1;u2?s-2:0);for(var u=2;u=0;--F){var N=this.tryEntries[F],ee=N.completion;if(N.tryLoc==="root")return L("end");if(N.tryLoc<=this.prev){var ce=r.call(N,"catchLoc"),le=r.call(N,"finallyLoc");if(ce&&le){if(this.prev=0;--L){var F=this.tryEntries[L];if(F.tryLoc<=this.prev&&r.call(F,"finallyLoc")&&this.prev=0;--k){var L=this.tryEntries[k];if(L.finallyLoc===z)return this.complete(L.completion,L.afterLoc),J(L),T}},catch:function(z){for(var k=this.tryEntries.length-1;k>=0;--k){var L=this.tryEntries[k];if(L.tryLoc===z){var F=L.completion;if(F.type==="throw"){var N=F.arg;J(L)}return N}}throw new Error("illegal catch attempt")},delegateYield:function(z,k,L){return this.delegate={iterator:V(z),resultName:k,nextLoc:L},this.method==="next"&&(this.arg=a),T}},e}(v.exports);try{regeneratorRuntime=p}catch(e){typeof globalThis=="object"?globalThis.regeneratorRuntime=p:Function("r","regeneratorRuntime = r")(p)}},34162:function(v,p,e){"use strict";e.d(p,{Il:function(){return s},Ov:function(){return u},T$:function(){return l}});var t=e(49647),r=e(67294),o=e(96974),a=["element"],s=r.createContext({});function u(){return r.useContext(s)}function c(){var y=(0,o.TH)(),f=u(),E=f.clientRoutes,R=(0,o.fp)(E,y.pathname);return R||[]}function l(){var y,f=c().slice(-1),E=((y=f[0])===null||y===void 0?void 0:y.route)||{},R=E.element,T=(0,t.Z)(E,a);return T}function d(){var y=c(),f=u(),E=f.serverLoaderData,R=f.basename,T=React.useState(function(){var A={},O=!1;return y.forEach(function($){var Z=E[$.route.id];Z&&(Object.assign(A,Z),O=!0)}),O?A:void 0}),C=_slicedToArray(T,2),M=C[0],P=C[1];return React.useEffect(function(){window.__UMI_LOADER_DATA__||Promise.all(y.filter(function(A){return A.route.hasServerLoader}).map(function(A){return new Promise(function(O){fetchServerLoader({id:A.route.id,basename:R,cb:O})})})).then(function(A){if(A.length){var O={};A.forEach(function($){Object.assign(O,$)}),P(O)}})},[]),{data:M}}function m(){var y=useRouteData(),f=u();return{data:f.clientLoaderData[y.route.id]}}function b(){var y=d(),f=m();return{data:_objectSpread(_objectSpread({},y.data),f.data)}}},40873:function(v){var p={en_GB:"en-gb",en_US:"en",zh_CN:"zh-cn",zh_TW:"zh-tw"},e=function(r){var o=p[r];return o||r.split("_")[0]};v.exports=function(t,r,o){var a=r.prototype.locale;r.prototype.locale=function(s){return typeof s=="string"&&(s=e(s)),a.call(this,s)}}},86743:function(v,p,e){"use strict";var t=e(67294),r=e(30470),o=e(14726),a=e(33671);function s(c){return!!(c!=null&&c.then)}const u=c=>{const{type:l,children:d,prefixCls:m,buttonProps:b,close:y,autoFocus:f,emitEvent:E,isSilent:R,quitOnNullishReturnValue:T,actionFn:C}=c,M=t.useRef(!1),P=t.useRef(null),[A,O]=(0,r.Z)(!1),$=function(){y==null||y.apply(void 0,arguments)};t.useEffect(()=>{let U=null;return f&&(U=setTimeout(()=>{var Y;(Y=P.current)===null||Y===void 0||Y.focus()})),()=>{U&&clearTimeout(U)}},[]);const Z=U=>{s(U)&&(O(!0),U.then(function(){O(!1,!0),$.apply(void 0,arguments),M.current=!1},Y=>{if(O(!1,!0),M.current=!1,!(R!=null&&R()))return Promise.reject(Y)}))},Q=U=>{if(M.current)return;if(M.current=!0,!C){$();return}let Y;if(E){if(Y=C(U),T&&!s(Y)){M.current=!1,$(U);return}}else if(C.length)Y=C(y),M.current=!1;else if(Y=C(),!s(Y)){$();return}Z(Y)};return t.createElement(o.ZP,Object.assign({},(0,a.nx)(l),{onClick:Q,loading:A,prefixCls:m},b,{ref:P}),d)};p.Z=u},89942:function(v,p,e){"use strict";var t=e(67294),r=e(65223),o=e(4173);const a=s=>{const{space:u,form:c,children:l}=s;if(l==null)return null;let d=l;return c&&(d=t.createElement(r.Ux,{override:!0,status:!0},d)),u&&(d=t.createElement(o.BR,null,d)),d};p.Z=a},8745:function(v,p,e){"use strict";e.d(p,{i:function(){return s}});var t=e(67294),r=e(21770),o=e(28459),a=e(53124);function s(c){return l=>t.createElement(o.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},t.createElement(c,Object.assign({},l)))}const u=(c,l,d,m)=>s(y=>{const{prefixCls:f,style:E}=y,R=t.useRef(null),[T,C]=t.useState(0),[M,P]=t.useState(0),[A,O]=(0,r.Z)(!1,{value:y.open}),{getPrefixCls:$}=t.useContext(a.E_),Z=$(l||"select",f);t.useEffect(()=>{if(O(!0),typeof ResizeObserver!="undefined"){const Y=new ResizeObserver(G=>{const J=G[0].target;C(J.offsetHeight+8),P(J.offsetWidth)}),H=setInterval(()=>{var G;const J=d?`.${d(Z)}`:`.${Z}-dropdown`,X=(G=R.current)===null||G===void 0?void 0:G.querySelector(J);X&&(clearInterval(H),Y.observe(X))},10);return()=>{clearInterval(H),Y.disconnect()}}},[]);let Q=Object.assign(Object.assign({},y),{style:Object.assign(Object.assign({},E),{margin:0}),open:A,visible:A,getPopupContainer:()=>R.current});m&&(Q=m(Q));const U={paddingBottom:T,position:"relative",minWidth:M};return t.createElement("div",{ref:R,style:U},t.createElement(c,Object.assign({},Q)))});p.Z=u},98787:function(v,p,e){"use strict";e.d(p,{o2:function(){return s},yT:function(){return u}});var t=e(74902),r=e(8796);const o=r.i.map(c=>`${c}-inverse`),a=["success","processing","error","default","warning"];function s(c){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,t.Z)(o),(0,t.Z)(r.i)).includes(c):r.i.includes(c)}function u(c){return a.includes(c)}},98065:function(v,p,e){"use strict";e.d(p,{T:function(){return r},n:function(){return t}});function t(o){return["small","middle","large"].includes(o)}function r(o){return o?typeof o=="number"&&!Number.isNaN(o):!1}},69760:function(v,p,e){"use strict";e.d(p,{Z:function(){return l},w:function(){return a}});var t=e(67294),r=e(84481),o=e(64217);function a(d){if(d)return{closable:d.closable,closeIcon:d.closeIcon}}function s(d){const{closable:m,closeIcon:b}=d||{};return t.useMemo(()=>{if(!m&&(m===!1||b===!1||b===null))return!1;if(m===void 0&&b===void 0)return null;let y={closeIcon:typeof b!="boolean"&&b!==null?b:void 0};return m&&typeof m=="object"&&(y=Object.assign(Object.assign({},y),m)),y},[m,b])}function u(){const d={};for(var m=arguments.length,b=new Array(m),y=0;y{f&&Object.keys(f).forEach(E=>{f[E]!==void 0&&(d[E]=f[E])})}),d}const c={};function l(d,m){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:c;const y=s(d),f=s(m),E=t.useMemo(()=>Object.assign({closeIcon:t.createElement(r.Z,null)},b),[b]),R=t.useMemo(()=>y===!1?!1:y?u(E,f,y):f===!1?!1:f?u(E,f):E.closable?E:!1,[y,f,E]);return t.useMemo(()=>{if(R===!1)return[!1,null];const{closeIconRender:T}=E,{closeIcon:C}=R;let M=C;if(M!=null){T&&(M=T(C));const P=(0,o.Z)(R,!0);Object.keys(P).length&&(M=t.isValidElement(M)?t.cloneElement(M,P):t.createElement("span",Object.assign({},P),M))}return[!0,M]},[R,E])}},87263:function(v,p,e){"use strict";e.d(p,{Cn:function(){return m},u6:function(){return u}});var t=e(67294),r=e(29691),o=e(43945);const a=100,u=a*10,c={Modal:a,Drawer:a,Popover:a,Popconfirm:a,Tooltip:a,Tour:a},l={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function d(b){return b in c}function m(b,y){const[,f]=(0,r.ZP)(),E=t.useContext(o.Z),R=d(b);let T;if(y!==void 0)T=[y,y];else{let C=E!=null?E:0;R?C+=(E?0:f.zIndexPopupBase)+c[b]:C+=l[b],T=[E===void 0?y:C,C]}return T}},33603:function(v,p,e){"use strict";e.d(p,{m:function(){return c}});const t=()=>({height:0,opacity:0}),r=l=>{const{scrollHeight:d}=l;return{height:d,opacity:1}},o=l=>({height:l?l.offsetHeight:0}),a=(l,d)=>(d==null?void 0:d.deadline)===!0||d.propertyName==="height",s=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:t,onEnterStart:t,onAppearActive:r,onEnterActive:r,onLeaveStart:o,onLeaveActive:t,onAppearEnd:a,onEnterEnd:a,onLeaveEnd:a,motionDeadline:500}},u=null,c=(l,d,m)=>m!==void 0?m:`${l}-${d}`;p.Z=s},80636:function(v,p,e){"use strict";e.d(p,{Z:function(){return u}});var t=e(97414);function r(c,l,d,m){if(m===!1)return{adjustX:!1,adjustY:!1};const b=m&&typeof m=="object"?m:{},y={};switch(c){case"top":case"bottom":y.shiftX=l.arrowOffsetHorizontal*2+d,y.shiftY=!0,y.adjustY=!0;break;case"left":case"right":y.shiftY=l.arrowOffsetVertical*2+d,y.shiftX=!0,y.adjustX=!0;break}const f=Object.assign(Object.assign({},y),b);return f.shiftX||(f.adjustX=!0),f.shiftY||(f.adjustY=!0),f}const o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},a={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},s=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function u(c){const{arrowWidth:l,autoAdjustOverflow:d,arrowPointAtCenter:m,offset:b,borderRadius:y,visibleFirst:f}=c,E=l/2,R={};return Object.keys(o).forEach(T=>{const C=m&&a[T]||o[T],M=Object.assign(Object.assign({},C),{offset:[0,0],dynamicInset:!0});switch(R[T]=M,s.has(T)&&(M.autoArrow=!1),T){case"top":case"topLeft":case"topRight":M.offset[1]=-E-b;break;case"bottom":case"bottomLeft":case"bottomRight":M.offset[1]=E+b;break;case"left":case"leftTop":case"leftBottom":M.offset[0]=-E-b;break;case"right":case"rightTop":case"rightBottom":M.offset[0]=E+b;break}const P=(0,t.wZ)({contentRadius:y,limitVerticalRadius:!0});if(m)switch(T){case"topLeft":case"bottomLeft":M.offset[0]=-P.arrowOffsetHorizontal-E;break;case"topRight":case"bottomRight":M.offset[0]=P.arrowOffsetHorizontal+E;break;case"leftTop":case"rightTop":M.offset[1]=-P.arrowOffsetHorizontal-E;break;case"leftBottom":case"rightBottom":M.offset[1]=P.arrowOffsetHorizontal+E;break}M.overflow=r(T,P,l,d),f&&(M.htmlRegion="visibleFirst")}),R}},96159:function(v,p,e){"use strict";e.d(p,{M2:function(){return r},Tm:function(){return a},wm:function(){return o}});var t=e(67294);function r(s){return s&&t.isValidElement(s)&&s.type===t.Fragment}const o=(s,u,c)=>t.isValidElement(s)?t.cloneElement(s,typeof c=="function"?c(s.props||{}):c):u;function a(s,u){return o(s,s,u)}},27288:function(v,p,e){"use strict";e.d(p,{G8:function(){return c},ln:function(){return l}});var t=e(67294),r=e(80334);function o(){}let a=null;function s(){a=null,rcResetWarned()}let u=null;const c=t.createContext({}),l=()=>{const m=()=>{};return m.deprecated=o,m};var d=null},45353:function(v,p,e){"use strict";e.d(p,{Z:function(){return H}});var t=e(67294),r=e(93967),o=e.n(r),a=e(5110),s=e(42550),u=e(53124),c=e(96159),l=e(27036);const d=G=>{const{componentCls:J,colorPrimary:X}=G;return{[J]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${X})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${G.motionEaseOutCirc}`,`opacity 2s ${G.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${G.motionDurationSlow} ${G.motionEaseInOut}`,`opacity ${G.motionDurationSlow} ${G.motionEaseInOut}`].join(",")}}}}};var m=(0,l.ZP)("Wave",G=>[d(G)]),b=e(56790),y=e(75164),f=e(29691),E=e(17415),R=e(29372),T=e(38135);function C(G){const J=(G||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return J&&J[1]&&J[2]&&J[3]?!(J[1]===J[2]&&J[2]===J[3]):!0}function M(G){return G&&G!=="#fff"&&G!=="#ffffff"&&G!=="rgb(255, 255, 255)"&&G!=="rgba(255, 255, 255, 1)"&&C(G)&&!/rgba\((?:\d*, ){3}0\)/.test(G)&&G!=="transparent"}function P(G){const{borderTopColor:J,borderColor:X,backgroundColor:V}=getComputedStyle(G);return M(J)?J:M(X)?X:M(V)?V:null}function A(G){return Number.isNaN(G)?0:G}const O=G=>{const{className:J,target:X,component:V}=G,q=t.useRef(null),[z,k]=t.useState(null),[L,F]=t.useState([]),[N,ee]=t.useState(0),[ce,le]=t.useState(0),[se,fe]=t.useState(0),[xe,Ie]=t.useState(0),[Pe,$e]=t.useState(!1),at={left:N,top:ce,width:se,height:xe,borderRadius:L.map(Ye=>`${Ye}px`).join(" ")};z&&(at["--wave-color"]=z);function ut(){const Ye=getComputedStyle(X);k(P(X));const Xe=Ye.position==="static",{borderLeftWidth:Fe,borderTopWidth:Je}=Ye;ee(Xe?X.offsetLeft:A(-parseFloat(Fe))),le(Xe?X.offsetTop:A(-parseFloat(Je))),fe(X.offsetWidth),Ie(X.offsetHeight);const{borderTopLeftRadius:Le,borderTopRightRadius:qe,borderBottomLeftRadius:ze,borderBottomRightRadius:ie}=Ye;F([Le,qe,ie,ze].map(W=>A(parseFloat(W))))}if(t.useEffect(()=>{if(X){const Ye=(0,y.Z)(()=>{ut(),$e(!0)});let Xe;return typeof ResizeObserver!="undefined"&&(Xe=new ResizeObserver(ut),Xe.observe(X)),()=>{y.Z.cancel(Ye),Xe==null||Xe.disconnect()}}},[]),!Pe)return null;const Ue=(V==="Checkbox"||V==="Radio")&&(X==null?void 0:X.classList.contains(E.A));return t.createElement(R.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(Ye,Xe)=>{var Fe;if(Xe.deadline||Xe.propertyName==="opacity"){const Je=(Fe=q.current)===null||Fe===void 0?void 0:Fe.parentElement;(0,T.v)(Je).then(()=>{Je==null||Je.remove()})}return!1}},(Ye,Xe)=>{let{className:Fe}=Ye;return t.createElement("div",{ref:(0,s.sQ)(q,Xe),className:o()(J,Fe,{"wave-quick":Ue}),style:at})})};var Z=(G,J)=>{var X;const{component:V}=J;if(V==="Checkbox"&&!(!((X=G.querySelector("input"))===null||X===void 0)&&X.checked))return;const q=document.createElement("div");q.style.position="absolute",q.style.left="0px",q.style.top="0px",G==null||G.insertBefore(q,G==null?void 0:G.firstChild),(0,T.s)(t.createElement(O,Object.assign({},J,{target:G})),q)},U=(G,J,X)=>{const{wave:V}=t.useContext(u.E_),[,q,z]=(0,f.ZP)(),k=(0,b.zX)(N=>{const ee=G.current;if(V!=null&&V.disabled||!ee)return;const ce=ee.querySelector(`.${E.A}`)||ee,{showEffect:le}=V||{};(le||Z)(ce,{className:J,token:q,component:X,event:N,hashId:z})}),L=t.useRef();return N=>{y.Z.cancel(L.current),L.current=(0,y.Z)(()=>{k(N)})}},H=G=>{const{children:J,disabled:X,component:V}=G,{getPrefixCls:q}=(0,t.useContext)(u.E_),z=(0,t.useRef)(null),k=q("wave"),[,L]=m(k),F=U(z,o()(k,L),V);if(t.useEffect(()=>{const ee=z.current;if(!ee||ee.nodeType!==1||X)return;const ce=le=>{!(0,a.Z)(le.target)||!ee.getAttribute||ee.getAttribute("disabled")||ee.disabled||ee.className.includes("disabled")||ee.className.includes("-leave")||F(le)};return ee.addEventListener("click",ce,!0),()=>{ee.removeEventListener("click",ce,!0)}},[X]),!t.isValidElement(J))return J!=null?J:null;const N=(0,s.Yr)(J)?(0,s.sQ)(J.ref,z):z;return(0,c.Tm)(J,{ref:N})}},17415:function(v,p,e){"use strict";e.d(p,{A:function(){return r}});var t=e(28459);const r=`${t.Rf}-wave-target`},43945:function(v,p,e){"use strict";var t=e(67294);const r=t.createContext(void 0);p.Z=r},66968:function(v,p,e){"use strict";e.d(p,{J:function(){return r}});var t=e(67294);const r=t.createContext({}),o=t.createContext({message:{},notification:{},modal:{}});p.Z=o},31418:function(v,p,e){"use strict";e.d(p,{Z:function(){return T}});var t=e(67294),r=e(93967),o=e.n(r),a=e(27288),s=e(53124),u=e(16474),c=e(94423),l=e(48311),d=e(66968),m=e(27036);const b=C=>{const{componentCls:M,colorText:P,fontSize:A,lineHeight:O,fontFamily:$}=C;return{[M]:{color:P,fontSize:A,lineHeight:O,fontFamily:$}}},y=()=>({});var f=(0,m.I$)("App",b,y);const E=()=>t.useContext(d.Z),R=C=>{const{prefixCls:M,children:P,className:A,rootClassName:O,message:$,notification:Z,style:Q,component:U="div"}=C,{getPrefixCls:Y}=(0,t.useContext)(s.E_),H=Y("app",M),[G,J,X]=f(H),V=o()(J,H,A,O,X),q=(0,t.useContext)(d.J),z=t.useMemo(()=>({message:Object.assign(Object.assign({},q.message),$),notification:Object.assign(Object.assign({},q.notification),Z)}),[$,Z,q.message,q.notification]),[k,L]=(0,u.Z)(z.message),[F,N]=(0,l.Z)(z.notification),[ee,ce]=(0,c.Z)(),le=t.useMemo(()=>({message:k,notification:F,modal:ee}),[k,F,ee]);(0,a.ln)("App")(!(X&&U===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const se=U===!1?t.Fragment:U,fe={className:V,style:Q};return G(t.createElement(d.Z.Provider,{value:le},t.createElement(d.J.Provider,{value:z},t.createElement(se,Object.assign({},U===!1?void 0:fe),ce,L,N,P))))};R.useApp=E;var T=R},33671:function(v,p,e){"use strict";e.d(p,{Te:function(){return c},aG:function(){return a},hU:function(){return d},nx:function(){return s}});var t=e(67294),r=e(96159);const o=/^[\u4e00-\u9fa5]{2}$/,a=o.test.bind(o);function s(f){return f==="danger"?{danger:!0}:{type:f}}function u(f){return typeof f=="string"}function c(f){return f==="text"||f==="link"}function l(f,E){if(f==null)return;const R=E?" ":"";return typeof f!="string"&&typeof f!="number"&&u(f.type)&&a(f.props.children)?(0,r.Tm)(f,{children:f.props.children.split("").join(R)}):u(f)?a(f)?t.createElement("span",null,f.split("").join(R)):t.createElement("span",null,f):(0,r.M2)(f)?t.createElement("span",null,f):f}function d(f,E){let R=!1;const T=[];return t.Children.forEach(f,C=>{const M=typeof C,P=M==="string"||M==="number";if(R&&P){const A=T.length-1,O=T[A];T[A]=`${O}${C}`}else T.push(C);R=P}),t.Children.map(T,C=>l(C,E))}const m=null,b=null,y=null},14726:function(v,p,e){"use strict";e.d(p,{ZP:function(){return _}});var t=e(67294),r=e(93967),o=e.n(r),a=e(98423),s=e(42550),u=e(45353),c=e(53124),l=e(98866),d=e(98675),m=e(4173),b=e(29691),y=function(D,te){var be={};for(var ge in D)Object.prototype.hasOwnProperty.call(D,ge)&&te.indexOf(ge)<0&&(be[ge]=D[ge]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,ge=Object.getOwnPropertySymbols(D);ye{const{getPrefixCls:te,direction:be}=t.useContext(c.E_),{prefixCls:ge,size:ye,className:Ne}=D,ke=y(D,["prefixCls","size","className"]),We=te("btn-group",ge),[,,je]=(0,b.ZP)();let Ve="";switch(ye){case"large":Ve="lg";break;case"small":Ve="sm";break;default:}const mt=o()(We,{[`${We}-${Ve}`]:Ve,[`${We}-rtl`]:be==="rtl"},Ne,je);return t.createElement(f.Provider,{value:ye},t.createElement("div",Object.assign({},ke,{className:mt})))},T=e(33671),M=(0,t.forwardRef)((D,te)=>{const{className:be,style:ge,children:ye,prefixCls:Ne}=D,ke=o()(`${Ne}-icon`,be);return t.createElement("span",{ref:te,className:ke,style:ge},ye)}),P=e(19267),A=e(29372);const O=(0,t.forwardRef)((D,te)=>{const{prefixCls:be,className:ge,style:ye,iconClassName:Ne}=D,ke=o()(`${be}-loading-icon`,ge);return t.createElement(M,{prefixCls:be,className:ke,style:ye,ref:te},t.createElement(P.Z,{className:Ne}))}),$=()=>({width:0,opacity:0,transform:"scale(0)"}),Z=D=>({width:D.scrollWidth,opacity:1,transform:"scale(1)"});var U=D=>{const{prefixCls:te,loading:be,existIcon:ge,className:ye,style:Ne}=D,ke=!!be;return ge?t.createElement(O,{prefixCls:te,className:ye,style:Ne}):t.createElement(A.ZP,{visible:ke,motionName:`${te}-loading-icon-motion`,motionLeave:ke,removeOnLeave:!0,onAppearStart:$,onAppearActive:Z,onEnterStart:$,onEnterActive:Z,onLeaveStart:Z,onLeaveActive:$},(We,je)=>{let{className:Ve,style:mt}=We;return t.createElement(O,{prefixCls:te,className:ye,style:Object.assign(Object.assign({},Ne),mt),ref:je,iconClassName:Ve})})},Y=e(85982),H=e(14747),G=e(45503),J=e(27036);const X=(D,te)=>({[`> span, > ${D}`]:{"&:not(:last-child)":{[`&, & > ${D}`]:{"&:not(:disabled)":{borderInlineEndColor:te}}},"&:not(:first-child)":{[`&, & > ${D}`]:{"&:not(:disabled)":{borderInlineStartColor:te}}}}});var q=D=>{const{componentCls:te,fontSize:be,lineWidth:ge,groupBorderColor:ye,colorErrorHover:Ne}=D;return{[`${te}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${te}`]:{"&:not(:last-child)":{[`&, & > ${te}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:D.calc(ge).mul(-1).equal(),[`&, & > ${te}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[te]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${te}-icon-only`]:{fontSize:be}},X(`${te}-primary`,ye),X(`${te}-danger`,Ne)]}},z=e(51734);const k=D=>{const{paddingInline:te,onlyIconSize:be,paddingBlock:ge}=D;return(0,G.TS)(D,{buttonPaddingHorizontal:te,buttonPaddingVertical:ge,buttonIconOnlyFontSize:be})},L=D=>{var te,be,ge,ye,Ne,ke;const We=(te=D.contentFontSize)!==null&&te!==void 0?te:D.fontSize,je=(be=D.contentFontSizeSM)!==null&&be!==void 0?be:D.fontSize,Ve=(ge=D.contentFontSizeLG)!==null&&ge!==void 0?ge:D.fontSizeLG,mt=(ye=D.contentLineHeight)!==null&&ye!==void 0?ye:(0,z.D)(We),Pt=(Ne=D.contentLineHeightSM)!==null&&Ne!==void 0?Ne:(0,z.D)(je),bt=(ke=D.contentLineHeightLG)!==null&&ke!==void 0?ke:(0,z.D)(Ve);return{fontWeight:400,defaultShadow:`0 ${D.controlOutlineWidth}px 0 ${D.controlTmpOutline}`,primaryShadow:`0 ${D.controlOutlineWidth}px 0 ${D.controlOutline}`,dangerShadow:`0 ${D.controlOutlineWidth}px 0 ${D.colorErrorOutline}`,primaryColor:D.colorTextLightSolid,dangerColor:D.colorTextLightSolid,borderColorDisabled:D.colorBorder,defaultGhostColor:D.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:D.colorBgContainer,paddingInline:D.paddingContentHorizontal-D.lineWidth,paddingInlineLG:D.paddingContentHorizontal-D.lineWidth,paddingInlineSM:8-D.lineWidth,onlyIconSize:D.fontSizeLG,onlyIconSizeSM:D.fontSizeLG-2,onlyIconSizeLG:D.fontSizeLG+2,groupBorderColor:D.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:D.colorBgTextHover,defaultColor:D.colorText,defaultBg:D.colorBgContainer,defaultBorderColor:D.colorBorder,defaultBorderColorDisabled:D.colorBorder,defaultHoverBg:D.colorBgContainer,defaultHoverColor:D.colorPrimaryHover,defaultHoverBorderColor:D.colorPrimaryHover,defaultActiveBg:D.colorBgContainer,defaultActiveColor:D.colorPrimaryActive,defaultActiveBorderColor:D.colorPrimaryActive,contentFontSize:We,contentFontSizeSM:je,contentFontSizeLG:Ve,contentLineHeight:mt,contentLineHeightSM:Pt,contentLineHeightLG:bt,paddingBlock:Math.max((D.controlHeight-We*mt)/2-D.lineWidth,0),paddingBlockSM:Math.max((D.controlHeightSM-je*Pt)/2-D.lineWidth,0),paddingBlockLG:Math.max((D.controlHeightLG-Ve*bt)/2-D.lineWidth,0)}},F=D=>{const{componentCls:te,iconCls:be,fontWeight:ge}=D;return{[te]:{outline:"none",position:"relative",display:"inline-flex",gap:D.marginXS,alignItems:"center",justifyContent:"center",fontWeight:ge,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,Y.bf)(D.lineWidth)} ${D.lineType} transparent`,cursor:"pointer",transition:`all ${D.motionDurationMid} ${D.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:D.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${te}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,H.Qy)(D)),[`&${te}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${te}-two-chinese-chars > *:not(${be})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},N=(D,te,be)=>({[`&:not(:disabled):not(${D}-disabled)`]:{"&:hover":te,"&:active":be}}),ee=D=>({minWidth:D.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ce=D=>({borderRadius:D.controlHeight,paddingInlineStart:D.calc(D.controlHeight).div(2).equal(),paddingInlineEnd:D.calc(D.controlHeight).div(2).equal()}),le=D=>({cursor:"not-allowed",borderColor:D.borderColorDisabled,color:D.colorTextDisabled,background:D.colorBgContainerDisabled,boxShadow:"none"}),se=(D,te,be,ge,ye,Ne,ke,We)=>({[`&${D}-background-ghost`]:Object.assign(Object.assign({color:be||void 0,background:te,borderColor:ge||void 0,boxShadow:"none"},N(D,Object.assign({background:te},ke),Object.assign({background:te},We))),{"&:disabled":{cursor:"not-allowed",color:ye||void 0,borderColor:Ne||void 0}})}),fe=D=>({[`&:disabled, &${D.componentCls}-disabled`]:Object.assign({},le(D))}),xe=D=>Object.assign({},fe(D)),Ie=D=>({[`&:disabled, &${D.componentCls}-disabled`]:{cursor:"not-allowed",color:D.colorTextDisabled}}),Pe=D=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xe(D)),{background:D.defaultBg,borderColor:D.defaultBorderColor,color:D.defaultColor,boxShadow:D.defaultShadow}),N(D.componentCls,{color:D.defaultHoverColor,borderColor:D.defaultHoverBorderColor,background:D.defaultHoverBg},{color:D.defaultActiveColor,borderColor:D.defaultActiveBorderColor,background:D.defaultActiveBg})),se(D.componentCls,D.ghostBg,D.defaultGhostColor,D.defaultGhostBorderColor,D.colorTextDisabled,D.colorBorder)),{[`&${D.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:D.colorError,borderColor:D.colorError},N(D.componentCls,{color:D.colorErrorHover,borderColor:D.colorErrorBorderHover},{color:D.colorErrorActive,borderColor:D.colorErrorActive})),se(D.componentCls,D.ghostBg,D.colorError,D.colorError,D.colorTextDisabled,D.colorBorder)),fe(D))}),$e=D=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xe(D)),{color:D.primaryColor,background:D.colorPrimary,boxShadow:D.primaryShadow}),N(D.componentCls,{color:D.colorTextLightSolid,background:D.colorPrimaryHover},{color:D.colorTextLightSolid,background:D.colorPrimaryActive})),se(D.componentCls,D.ghostBg,D.colorPrimary,D.colorPrimary,D.colorTextDisabled,D.colorBorder,{color:D.colorPrimaryHover,borderColor:D.colorPrimaryHover},{color:D.colorPrimaryActive,borderColor:D.colorPrimaryActive})),{[`&${D.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:D.colorError,boxShadow:D.dangerShadow,color:D.dangerColor},N(D.componentCls,{background:D.colorErrorHover},{background:D.colorErrorActive})),se(D.componentCls,D.ghostBg,D.colorError,D.colorError,D.colorTextDisabled,D.colorBorder,{color:D.colorErrorHover,borderColor:D.colorErrorHover},{color:D.colorErrorActive,borderColor:D.colorErrorActive})),fe(D))}),at=D=>Object.assign(Object.assign({},Pe(D)),{borderStyle:"dashed"}),ut=D=>Object.assign(Object.assign(Object.assign({color:D.colorLink},N(D.componentCls,{color:D.colorLinkHover,background:D.linkHoverBg},{color:D.colorLinkActive})),Ie(D)),{[`&${D.componentCls}-dangerous`]:Object.assign(Object.assign({color:D.colorError},N(D.componentCls,{color:D.colorErrorHover},{color:D.colorErrorActive})),Ie(D))}),Ue=D=>Object.assign(Object.assign(Object.assign({},N(D.componentCls,{color:D.colorText,background:D.textHoverBg},{color:D.colorText,background:D.colorBgTextActive})),Ie(D)),{[`&${D.componentCls}-dangerous`]:Object.assign(Object.assign({color:D.colorError},Ie(D)),N(D.componentCls,{color:D.colorErrorHover,background:D.colorErrorBg},{color:D.colorErrorHover,background:D.colorErrorBgActive}))}),Ye=D=>{const{componentCls:te}=D;return{[`${te}-default`]:Pe(D),[`${te}-primary`]:$e(D),[`${te}-dashed`]:at(D),[`${te}-link`]:ut(D),[`${te}-text`]:Ue(D),[`${te}-ghost`]:se(D.componentCls,D.ghostBg,D.colorBgContainer,D.colorBgContainer,D.colorTextDisabled,D.colorBorder)}},Xe=function(D){let te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:be,controlHeight:ge,fontSize:ye,lineHeight:Ne,borderRadius:ke,buttonPaddingHorizontal:We,iconCls:je,buttonPaddingVertical:Ve}=D,mt=`${be}-icon-only`;return[{[`${te}`]:{fontSize:ye,lineHeight:Ne,height:ge,padding:`${(0,Y.bf)(Ve)} ${(0,Y.bf)(We)}`,borderRadius:ke,[`&${mt}`]:{width:ge,paddingInline:0,[`&${be}-compact-item`]:{flex:"none"},[`&${be}-round`]:{width:"auto"},[je]:{fontSize:D.buttonIconOnlyFontSize}},[`&${be}-loading`]:{opacity:D.opacityLoading,cursor:"default"},[`${be}-loading-icon`]:{transition:`width ${D.motionDurationSlow} ${D.motionEaseInOut}, opacity ${D.motionDurationSlow} ${D.motionEaseInOut}`}}},{[`${be}${be}-circle${te}`]:ee(D)},{[`${be}${be}-round${te}`]:ce(D)}]},Fe=D=>{const te=(0,G.TS)(D,{fontSize:D.contentFontSize,lineHeight:D.contentLineHeight});return Xe(te,D.componentCls)},Je=D=>{const te=(0,G.TS)(D,{controlHeight:D.controlHeightSM,fontSize:D.contentFontSizeSM,lineHeight:D.contentLineHeightSM,padding:D.paddingXS,buttonPaddingHorizontal:D.paddingInlineSM,buttonPaddingVertical:D.paddingBlockSM,borderRadius:D.borderRadiusSM,buttonIconOnlyFontSize:D.onlyIconSizeSM});return Xe(te,`${D.componentCls}-sm`)},Le=D=>{const te=(0,G.TS)(D,{controlHeight:D.controlHeightLG,fontSize:D.contentFontSizeLG,lineHeight:D.contentLineHeightLG,buttonPaddingHorizontal:D.paddingInlineLG,buttonPaddingVertical:D.paddingBlockLG,borderRadius:D.borderRadiusLG,buttonIconOnlyFontSize:D.onlyIconSizeLG});return Xe(te,`${D.componentCls}-lg`)},qe=D=>{const{componentCls:te}=D;return{[te]:{[`&${te}-block`]:{width:"100%"}}}};var ze=(0,J.I$)("Button",D=>{const te=k(D);return[F(te),Fe(te),Je(te),Le(te),qe(te),Ye(te),q(te)]},L,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}}),ie=e(80110);function W(D,te){return{[`&-item:not(${te}-last-item)`]:{marginBottom:D.calc(D.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function re(D,te){return{[`&-item:not(${te}-first-item):not(${te}-last-item)`]:{borderRadius:0},[`&-item${te}-first-item:not(${te}-last-item)`]:{[`&, &${D}-sm, &${D}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${te}-last-item:not(${te}-first-item)`]:{[`&, &${D}-sm, &${D}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function x(D){const te=`${D.componentCls}-compact-vertical`;return{[te]:Object.assign(Object.assign({},W(D,te)),re(D.componentCls,te))}}const oe=D=>{const{componentCls:te,calc:be}=D;return{[te]:{[`&-compact-item${te}-primary`]:{[`&:not([disabled]) + ${te}-compact-item${te}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:be(D.lineWidth).mul(-1).equal(),insetInlineStart:be(D.lineWidth).mul(-1).equal(),display:"inline-block",width:D.lineWidth,height:`calc(100% + ${(0,Y.bf)(D.lineWidth)} * 2)`,backgroundColor:D.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${te}-primary`]:{[`&:not([disabled]) + ${te}-compact-vertical-item${te}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:be(D.lineWidth).mul(-1).equal(),insetInlineStart:be(D.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${(0,Y.bf)(D.lineWidth)} * 2)`,height:D.lineWidth,backgroundColor:D.colorPrimaryHover,content:'""'}}}}}}};var ve=(0,J.bk)(["Button","compact"],D=>{const te=k(D);return[(0,ie.c)(te),x(te),oe(te)]},L),he=function(D,te){var be={};for(var ge in D)Object.prototype.hasOwnProperty.call(D,ge)&&te.indexOf(ge)<0&&(be[ge]=D[ge]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,ge=Object.getOwnPropertySymbols(D);ye{var be,ge,ye;const{loading:Ne=!1,prefixCls:ke,type:We,danger:je=!1,shape:Ve="default",size:mt,styles:Pt,disabled:bt,className:_t,rootClassName:Dt,children:Rt,icon:Ht,iconPosition:$t="start",ghost:vn=!1,block:mn=!1,htmlType:zn="button",classNames:Xt,style:Vn={},autoInsertSpace:Un}=D,_n=he(D,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),Ln=We||"default",{getPrefixCls:kn,direction:Rn,button:Mn}=(0,t.useContext)(c.E_),$n=(be=Un!=null?Un:Mn==null?void 0:Mn.autoInsertSpace)!==null&&be!==void 0?be:!0,In=kn("btn",ke),[lr,yr,rr]=ze(In),Lr=(0,t.useContext)(l.Z),$r=bt!=null?bt:Lr,br=(0,t.useContext)(f),Or=(0,t.useMemo)(()=>w(Ne),[Ne]),[Qn,ir]=(0,t.useState)(Or.loading),[Pr,_r]=(0,t.useState)(!1),xr=(0,t.createRef)(),nr=(0,s.sQ)(te,xr),Hr=t.Children.count(Rt)===1&&!Ht&&!(0,T.Te)(Ln);(0,t.useEffect)(()=>{let ht=null;Or.delay>0?ht=setTimeout(()=>{ht=null,ir(!0)},Or.delay):ir(Or.loading);function Nt(){ht&&(clearTimeout(ht),ht=null)}return Nt},[Or]),(0,t.useEffect)(()=>{if(!nr||!nr.current||!$n)return;const ht=nr.current.textContent;Hr&&(0,T.aG)(ht)?Pr||_r(!0):Pr&&_r(!1)},[nr]);const ar=ht=>{const{onClick:Nt}=D;if(Qn||$r){ht.preventDefault();return}Nt==null||Nt(ht)},{compactSize:na,compactItemClassnames:wr}=(0,m.ri)(In,Rn),Gr={large:"lg",small:"sm",middle:void 0},Rr=(0,d.Z)(ht=>{var Nt,Qt;return(Qt=(Nt=mt!=null?mt:na)!==null&&Nt!==void 0?Nt:br)!==null&&Qt!==void 0?Qt:ht}),Yn=Rr&&Gr[Rr]||"",Wn=Qn?"loading":Ht,ot=(0,a.Z)(_n,["navigate"]),Tt=o()(In,yr,rr,{[`${In}-${Ve}`]:Ve!=="default"&&Ve,[`${In}-${Ln}`]:Ln,[`${In}-${Yn}`]:Yn,[`${In}-icon-only`]:!Rt&&Rt!==0&&!!Wn,[`${In}-background-ghost`]:vn&&!(0,T.Te)(Ln),[`${In}-loading`]:Qn,[`${In}-two-chinese-chars`]:Pr&&$n&&!Qn,[`${In}-block`]:mn,[`${In}-dangerous`]:je,[`${In}-rtl`]:Rn==="rtl",[`${In}-icon-end`]:$t==="end"},wr,_t,Dt,Mn==null?void 0:Mn.className),Mt=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),Vn),Ut=o()(Xt==null?void 0:Xt.icon,(ge=Mn==null?void 0:Mn.classNames)===null||ge===void 0?void 0:ge.icon),Ot=Object.assign(Object.assign({},(Pt==null?void 0:Pt.icon)||{}),((ye=Mn==null?void 0:Mn.styles)===null||ye===void 0?void 0:ye.icon)||{}),ft=Ht&&!Qn?t.createElement(M,{prefixCls:In,className:Ut,style:Ot},Ht):t.createElement(U,{existIcon:!!Ht,prefixCls:In,loading:Qn}),et=Rt||Rt===0?(0,T.hU)(Rt,Hr&&$n):null;if(ot.href!==void 0)return lr(t.createElement("a",Object.assign({},ot,{className:o()(Tt,{[`${In}-disabled`]:$r}),href:$r?void 0:ot.href,style:Mt,onClick:ar,ref:nr,tabIndex:$r?-1:0}),ft,et));let dt=t.createElement("button",Object.assign({},_n,{type:zn,className:Tt,style:Mt,onClick:ar,disabled:$r,ref:nr}),ft,et,!!wr&&t.createElement(ve,{key:"compact",prefixCls:In}));return(0,T.Te)(Ln)||(dt=t.createElement(u.Z,{component:"Button",disabled:Qn},dt)),lr(dt)});j.Group=R,j.__ANT_BUTTON=!0;var B=j,_=B},98866:function(v,p,e){"use strict";e.d(p,{n:function(){return o}});var t=e(67294);const r=t.createContext(!1),o=a=>{let{children:s,disabled:u}=a;const c=t.useContext(r);return t.createElement(r.Provider,{value:u!=null?u:c},s)};p.Z=r},97647:function(v,p,e){"use strict";e.d(p,{q:function(){return o}});var t=e(67294);const r=t.createContext(void 0),o=a=>{let{children:s,size:u}=a;const c=t.useContext(r);return t.createElement(r.Provider,{value:u||c},s)};p.Z=r},53124:function(v,p,e){"use strict";e.d(p,{E_:function(){return s},oR:function(){return r},tr:function(){return o}});var t=e(67294);const r="anticon",o=["outlined","borderless","filled"],a=(c,l)=>l||(c?`ant-${c}`:"ant"),s=t.createContext({getPrefixCls:a,iconPrefixCls:r}),{Consumer:u}=s},35792:function(v,p,e){"use strict";var t=e(29691);const r=o=>{const[,,,,a]=(0,t.ZP)();return a?`${o}-css-var`:""};p.Z=r},98675:function(v,p,e){"use strict";var t=e(67294),r=e(97647);const o=a=>{const s=t.useContext(r.Z);return t.useMemo(()=>a?typeof a=="string"?a!=null?a:s:a instanceof Function?a(s):s:s,[a,s])};p.Z=o},28459:function(v,p,e){"use strict";e.d(p,{ZP:function(){return re},Rf:function(){return at},w6:function(){return ze}});var t=e(67294),r=e.t(t,2),o=e(85982),a=e(54775),s=e(56982),u=e(8880),c=e(27288),l=e(37920),d=e(83008),m=e(76745);const b="internalMark";var f=x=>{const{locale:oe={},children:ve,_ANT_MARK__:he}=x;t.useEffect(()=>(0,d.f)(oe==null?void 0:oe.Modal),[oe]);const w=t.useMemo(()=>Object.assign(Object.assign({},oe),{exist:!0}),[oe]);return t.createElement(m.Z.Provider,{value:w},ve)},E=e(24457),R=e(33083),T=e(2790),C=e(53124),M=e(84898),P=e(10274),A=e(98924),O=e(44958);const $=`-ant-${Date.now()}-${Math.random()}`;function Z(x,oe){const ve={},he=(j,B)=>{let _=j.clone();return _=(B==null?void 0:B(_))||_,_.toRgbString()},w=(j,B)=>{const _=new P.C(j),D=(0,M.R_)(_.toRgbString());ve[`${B}-color`]=he(_),ve[`${B}-color-disabled`]=D[1],ve[`${B}-color-hover`]=D[4],ve[`${B}-color-active`]=D[6],ve[`${B}-color-outline`]=_.clone().setAlpha(.2).toRgbString(),ve[`${B}-color-deprecated-bg`]=D[0],ve[`${B}-color-deprecated-border`]=D[2]};if(oe.primaryColor){w(oe.primaryColor,"primary");const j=new P.C(oe.primaryColor),B=(0,M.R_)(j.toRgbString());B.forEach((D,te)=>{ve[`primary-${te+1}`]=D}),ve["primary-color-deprecated-l-35"]=he(j,D=>D.lighten(35)),ve["primary-color-deprecated-l-20"]=he(j,D=>D.lighten(20)),ve["primary-color-deprecated-t-20"]=he(j,D=>D.tint(20)),ve["primary-color-deprecated-t-50"]=he(j,D=>D.tint(50)),ve["primary-color-deprecated-f-12"]=he(j,D=>D.setAlpha(D.getAlpha()*.12));const _=new P.C(B[0]);ve["primary-color-active-deprecated-f-30"]=he(_,D=>D.setAlpha(D.getAlpha()*.3)),ve["primary-color-active-deprecated-d-02"]=he(_,D=>D.darken(2))}return oe.successColor&&w(oe.successColor,"success"),oe.warningColor&&w(oe.warningColor,"warning"),oe.errorColor&&w(oe.errorColor,"error"),oe.infoColor&&w(oe.infoColor,"info"),` - :root { - ${Object.keys(ve).map(j=>`--${x}-${j}: ${ve[j]};`).join(` -`)} - } - `.trim()}function Q(x,oe){const ve=Z(x,oe);(0,A.Z)()&&(0,O.hq)(ve,`${$}-dynamic-theme`)}var U=e(98866),Y=e(97647);function H(){const x=(0,t.useContext)(U.Z),oe=(0,t.useContext)(Y.Z);return{componentDisabled:x,componentSize:oe}}var G=H,J=e(91881);const X=Object.assign({},r),{useId:V}=X;var k=typeof V=="undefined"?()=>"":V;function L(x,oe,ve){var he,w;const S=(0,c.ln)("ConfigProvider"),j=x||{},B=j.inherit===!1||!oe?Object.assign(Object.assign({},R.u_),{hashed:(he=oe==null?void 0:oe.hashed)!==null&&he!==void 0?he:R.u_.hashed,cssVar:oe==null?void 0:oe.cssVar}):oe,_=k();return(0,s.Z)(()=>{var D,te;if(!x)return oe;const be=Object.assign({},B.components);Object.keys(x.components||{}).forEach(Ne=>{be[Ne]=Object.assign(Object.assign({},be[Ne]),x.components[Ne])});const ge=`css-var-${_.replace(/:/g,"")}`,ye=((D=j.cssVar)!==null&&D!==void 0?D:B.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:ve==null?void 0:ve.prefixCls},typeof B.cssVar=="object"?B.cssVar:{}),typeof j.cssVar=="object"?j.cssVar:{}),{key:typeof j.cssVar=="object"&&((te=j.cssVar)===null||te===void 0?void 0:te.key)||ge});return Object.assign(Object.assign(Object.assign({},B),j),{token:Object.assign(Object.assign({},B.token),j.token),components:be,cssVar:ye})},[j,B],(D,te)=>D.some((be,ge)=>{const ye=te[ge];return!(0,J.Z)(be,ye,!0)}))}var F=e(29372),N=e(29691);function ee(x){const{children:oe}=x,[,ve]=(0,N.ZP)(),{motion:he}=ve,w=t.useRef(!1);return w.current=w.current||he===!1,w.current?t.createElement(F.zt,{motion:he},oe):oe}const ce=null;var le=()=>null,se=e(53269),fe=function(x,oe){var ve={};for(var he in x)Object.prototype.hasOwnProperty.call(x,he)&&oe.indexOf(he)<0&&(ve[he]=x[he]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,he=Object.getOwnPropertySymbols(x);woe.endsWith("Color"))}const qe=x=>{const{prefixCls:oe,iconPrefixCls:ve,theme:he,holderRender:w}=x;oe!==void 0&&(ut=oe),ve!==void 0&&(Ue=ve),"holderRender"in x&&(Xe=w),he&&(Le(he)?Q(Fe(),he):Ye=he)},ze=()=>({getPrefixCls:(x,oe)=>oe||(x?`${Fe()}-${x}`:Fe()),getIconPrefixCls:Je,getRootPrefixCls:()=>ut||Fe(),getTheme:()=>Ye,holderRender:Xe}),ie=x=>{const{children:oe,csp:ve,autoInsertSpaceInButton:he,alert:w,anchor:S,form:j,locale:B,componentSize:_,direction:D,space:te,virtual:be,dropdownMatchSelectWidth:ge,popupMatchSelectWidth:ye,popupOverflow:Ne,legacyLocale:ke,parentContext:We,iconPrefixCls:je,theme:Ve,componentDisabled:mt,segmented:Pt,statistic:bt,spin:_t,calendar:Dt,carousel:Rt,cascader:Ht,collapse:$t,typography:vn,checkbox:mn,descriptions:zn,divider:Xt,drawer:Vn,skeleton:Un,steps:_n,image:Ln,layout:kn,list:Rn,mentions:Mn,modal:$n,progress:In,result:lr,slider:yr,breadcrumb:rr,menu:Lr,pagination:$r,input:br,textArea:Or,empty:Qn,badge:ir,radio:Pr,rate:_r,switch:xr,transfer:nr,avatar:Hr,message:ar,tag:na,table:wr,card:Gr,tabs:Rr,timeline:Yn,timePicker:Wn,upload:ot,notification:Tt,tree:Mt,colorPicker:Ut,datePicker:Ot,rangePicker:ft,flex:et,wave:dt,dropdown:ht,warning:Nt,tour:Qt,floatButtonGroup:Jt,variant:Vt,inputNumber:Zt,treeSelect:Ee}=x,Ce=t.useCallback((Sn,rn)=>{const{prefixCls:Gn}=x;if(rn)return rn;const Me=Gn||We.getPrefixCls("");return Sn?`${Me}-${Sn}`:Me},[We.getPrefixCls,x.prefixCls]),Te=je||We.iconPrefixCls||C.oR,Ae=ve||We.csp;(0,se.Z)(Te,Ae);const He=L(Ve,We.theme,{prefixCls:Ce("")}),Ct={csp:Ae,autoInsertSpaceInButton:he,alert:w,anchor:S,locale:B||ke,direction:D,space:te,virtual:be,popupMatchSelectWidth:ye!=null?ye:ge,popupOverflow:Ne,getPrefixCls:Ce,iconPrefixCls:Te,theme:He,segmented:Pt,statistic:bt,spin:_t,calendar:Dt,carousel:Rt,cascader:Ht,collapse:$t,typography:vn,checkbox:mn,descriptions:zn,divider:Xt,drawer:Vn,skeleton:Un,steps:_n,image:Ln,input:br,textArea:Or,layout:kn,list:Rn,mentions:Mn,modal:$n,progress:In,result:lr,slider:yr,breadcrumb:rr,menu:Lr,pagination:$r,empty:Qn,badge:ir,radio:Pr,rate:_r,switch:xr,transfer:nr,avatar:Hr,message:ar,tag:na,table:wr,card:Gr,tabs:Rr,timeline:Yn,timePicker:Wn,upload:ot,notification:Tt,tree:Mt,colorPicker:Ut,datePicker:Ot,rangePicker:ft,flex:et,wave:dt,dropdown:ht,warning:Nt,tour:Qt,floatButtonGroup:Jt,variant:Vt,inputNumber:Zt,treeSelect:Ee},wt=Object.assign({},We);Object.keys(Ct).forEach(Sn=>{Ct[Sn]!==void 0&&(wt[Sn]=Ct[Sn])}),$e.forEach(Sn=>{const rn=x[Sn];rn&&(wt[Sn]=rn)}),typeof he!="undefined"&&(wt.button=Object.assign({autoInsertSpace:he},wt.button));const tn=(0,s.Z)(()=>wt,wt,(Sn,rn)=>{const Gn=Object.keys(Sn),Me=Object.keys(rn);return Gn.length!==Me.length||Gn.some(me=>Sn[me]!==rn[me])}),an=t.useMemo(()=>({prefixCls:Te,csp:Ae}),[Te,Ae]);let zt=t.createElement(t.Fragment,null,t.createElement(le,{dropdownMatchSelectWidth:ge}),oe);const gn=t.useMemo(()=>{var Sn,rn,Gn,Me;return(0,u.T)(((Sn=E.Z.Form)===null||Sn===void 0?void 0:Sn.defaultValidateMessages)||{},((Gn=(rn=tn.locale)===null||rn===void 0?void 0:rn.Form)===null||Gn===void 0?void 0:Gn.defaultValidateMessages)||{},((Me=tn.form)===null||Me===void 0?void 0:Me.validateMessages)||{},(j==null?void 0:j.validateMessages)||{})},[tn,j==null?void 0:j.validateMessages]);Object.keys(gn).length>0&&(zt=t.createElement(l.Z.Provider,{value:gn},zt)),B&&(zt=t.createElement(f,{locale:B,_ANT_MARK__:b},zt)),(Te||Ae)&&(zt=t.createElement(a.Z.Provider,{value:an},zt)),_&&(zt=t.createElement(Y.q,{size:_},zt)),zt=t.createElement(ee,null,zt);const bn=t.useMemo(()=>{const Sn=He||{},{algorithm:rn,token:Gn,components:Me,cssVar:me}=Sn,ue=fe(Sn,["algorithm","token","components","cssVar"]),Oe=rn&&(!Array.isArray(rn)||rn.length>0)?(0,o.jG)(rn):R.uH,pe={};Object.entries(Me||{}).forEach(_e=>{let[ae,vt]=_e;const It=Object.assign({},vt);"algorithm"in It&&(It.algorithm===!0?It.theme=Oe:(Array.isArray(It.algorithm)||typeof It.algorithm=="function")&&(It.theme=(0,o.jG)(It.algorithm)),delete It.algorithm),pe[ae]=It});const De=Object.assign(Object.assign({},T.Z),Gn);return Object.assign(Object.assign({},ue),{theme:Oe,token:De,components:pe,override:Object.assign({override:De},pe),cssVar:me})},[He]);return Ve&&(zt=t.createElement(R.Mj.Provider,{value:bn},zt)),tn.warning&&(zt=t.createElement(c.G8.Provider,{value:tn.warning},zt)),mt!==void 0&&(zt=t.createElement(U.n,{disabled:mt},zt)),t.createElement(C.E_.Provider,{value:tn},zt)},W=x=>{const oe=t.useContext(C.E_),ve=t.useContext(m.Z);return t.createElement(ie,Object.assign({parentContext:oe,legacyLocale:ve},x))};W.ConfigContext=C.E_,W.SizeContext=Y.Z,W.config=qe,W.useConfig=G,Object.defineProperty(W,"SizeContext",{get:()=>Y.Z});var re=W},87206:function(v,p,e){"use strict";e.d(p,{Z:function(){return s}});var t={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},r=t,o=e(42115),s={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},r),timePickerLocale:Object.assign({},o.Z)}},83159:function(v,p,e){"use strict";e.d(p,{Z:function(){return ut}});var t=e(67294),r=e(62994),o=e(93967),a=e.n(o),s=e(29171),u=e(56790),c=e(21770),l=e(98423),d=e(87263),m=e(80636),b=e(8745),y=e(96159),f=e(27288),E=e(43945),R=e(53124),T=e(35792),C=e(50136),M=e(76529),P=e(29691),A=e(85982),O=e(14747),$=e(67771),Z=e(33297),Q=e(50438),U=e(97414),Y=e(79511),H=e(27036),G=e(45503),X=Ue=>{const{componentCls:Ye,menuCls:Xe,colorError:Fe,colorTextLightSolid:Je}=Ue,Le=`${Xe}-item`;return{[`${Ye}, ${Ye}-menu-submenu`]:{[`${Xe} ${Le}`]:{[`&${Le}-danger:not(${Le}-disabled)`]:{color:Fe,"&:hover":{color:Je,backgroundColor:Fe}}}}}};const V=Ue=>{const{componentCls:Ye,menuCls:Xe,zIndexPopup:Fe,dropdownArrowDistance:Je,sizePopupArrow:Le,antCls:qe,iconCls:ze,motionDurationMid:ie,paddingBlock:W,fontSize:re,dropdownEdgeChildPadding:x,colorTextDisabled:oe,fontSizeIcon:ve,controlPaddingHorizontal:he,colorBgElevated:w}=Ue;return[{[Ye]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Fe,display:"block","&::before":{position:"absolute",insetBlock:Ue.calc(Le).div(2).sub(Je).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${qe}-btn`]:{[`& > ${ze}-down, & > ${qe}-btn-icon > ${ze}-down`]:{fontSize:ve}},[`${Ye}-wrap`]:{position:"relative",[`${qe}-btn > ${ze}-down`]:{fontSize:ve},[`${ze}-down::before`]:{transition:`transform ${ie}`}},[`${Ye}-wrap-open`]:{[`${ze}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${qe}-slide-down-enter${qe}-slide-down-enter-active${Ye}-placement-bottomLeft, - &${qe}-slide-down-appear${qe}-slide-down-appear-active${Ye}-placement-bottomLeft, - &${qe}-slide-down-enter${qe}-slide-down-enter-active${Ye}-placement-bottom, - &${qe}-slide-down-appear${qe}-slide-down-appear-active${Ye}-placement-bottom, - &${qe}-slide-down-enter${qe}-slide-down-enter-active${Ye}-placement-bottomRight, - &${qe}-slide-down-appear${qe}-slide-down-appear-active${Ye}-placement-bottomRight`]:{animationName:$.fJ},[`&${qe}-slide-up-enter${qe}-slide-up-enter-active${Ye}-placement-topLeft, - &${qe}-slide-up-appear${qe}-slide-up-appear-active${Ye}-placement-topLeft, - &${qe}-slide-up-enter${qe}-slide-up-enter-active${Ye}-placement-top, - &${qe}-slide-up-appear${qe}-slide-up-appear-active${Ye}-placement-top, - &${qe}-slide-up-enter${qe}-slide-up-enter-active${Ye}-placement-topRight, - &${qe}-slide-up-appear${qe}-slide-up-appear-active${Ye}-placement-topRight`]:{animationName:$.Qt},[`&${qe}-slide-down-leave${qe}-slide-down-leave-active${Ye}-placement-bottomLeft, - &${qe}-slide-down-leave${qe}-slide-down-leave-active${Ye}-placement-bottom, - &${qe}-slide-down-leave${qe}-slide-down-leave-active${Ye}-placement-bottomRight`]:{animationName:$.Uw},[`&${qe}-slide-up-leave${qe}-slide-up-leave-active${Ye}-placement-topLeft, - &${qe}-slide-up-leave${qe}-slide-up-leave-active${Ye}-placement-top, - &${qe}-slide-up-leave${qe}-slide-up-leave-active${Ye}-placement-topRight`]:{animationName:$.ly}}},(0,U.ZP)(Ue,w,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ye} ${Xe}`]:{position:"relative",margin:0},[`${Xe}-submenu-popup`]:{position:"absolute",zIndex:Fe,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ye}, ${Ye}-menu-submenu`]:Object.assign(Object.assign({},(0,O.Wf)(Ue)),{[Xe]:Object.assign(Object.assign({padding:x,listStyleType:"none",backgroundColor:w,backgroundClip:"padding-box",borderRadius:Ue.borderRadiusLG,outline:"none",boxShadow:Ue.boxShadowSecondary},(0,O.Qy)(Ue)),{"&:empty":{padding:0,boxShadow:"none"},[`${Xe}-item-group-title`]:{padding:`${(0,A.bf)(W)} ${(0,A.bf)(he)}`,color:Ue.colorTextDescription,transition:`all ${ie}`},[`${Xe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Xe}-item-icon`]:{minWidth:re,marginInlineEnd:Ue.marginXS,fontSize:Ue.fontSizeSM},[`${Xe}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ie}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Xe}-item, ${Xe}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${(0,A.bf)(W)} ${(0,A.bf)(he)}`,color:Ue.colorText,fontWeight:"normal",fontSize:re,lineHeight:Ue.lineHeight,cursor:"pointer",transition:`all ${ie}`,borderRadius:Ue.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ue.controlItemBgHover}},(0,O.Qy)(Ue)),{"&-selected":{color:Ue.colorPrimary,backgroundColor:Ue.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ue.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:w,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,A.bf)(Ue.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ue.colorSplit},[`${Ye}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ue.paddingXS,[`${Ye}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ue.colorTextDescription,fontSize:ve,fontStyle:"normal"}}}),[`${Xe}-item-group-list`]:{margin:`0 ${(0,A.bf)(Ue.marginXS)}`,padding:0,listStyle:"none"},[`${Xe}-submenu-title`]:{paddingInlineEnd:Ue.calc(he).add(Ue.fontSizeSM).equal()},[`${Xe}-submenu-vertical`]:{position:"relative"},[`${Xe}-submenu${Xe}-submenu-disabled ${Ye}-menu-submenu-title`]:{[`&, ${Ye}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:w,cursor:"not-allowed"}},[`${Xe}-submenu-selected ${Ye}-menu-submenu-title`]:{color:Ue.colorPrimary}})})},[(0,$.oN)(Ue,"slide-up"),(0,$.oN)(Ue,"slide-down"),(0,Z.Fm)(Ue,"move-up"),(0,Z.Fm)(Ue,"move-down"),(0,Q._y)(Ue,"zoom-big")]]},q=Ue=>Object.assign(Object.assign({zIndexPopup:Ue.zIndexPopupBase+50,paddingBlock:(Ue.controlHeight-Ue.fontSize*Ue.lineHeight)/2},(0,U.wZ)({contentRadius:Ue.borderRadiusLG,limitVerticalRadius:!0})),(0,Y.w)(Ue));var z=(0,H.I$)("Dropdown",Ue=>{const{marginXXS:Ye,sizePopupArrow:Xe,paddingXXS:Fe,componentCls:Je}=Ue,Le=(0,G.TS)(Ue,{menuCls:`${Je}-menu`,dropdownArrowDistance:Ue.calc(Xe).div(2).add(Ye).equal(),dropdownEdgeChildPadding:Fe});return[V(Le),X(Le)]},q,{resetStyle:!1});const k=null,L=Ue=>{var Ye;const{menu:Xe,arrow:Fe,prefixCls:Je,children:Le,trigger:qe,disabled:ze,dropdownRender:ie,getPopupContainer:W,overlayClassName:re,rootClassName:x,overlayStyle:oe,open:ve,onOpenChange:he,visible:w,onVisibleChange:S,mouseEnterDelay:j=.15,mouseLeaveDelay:B=.1,autoAdjustOverflow:_=!0,placement:D="",overlay:te,transitionName:be}=Ue,{getPopupContainer:ge,getPrefixCls:ye,direction:Ne,dropdown:ke}=t.useContext(R.E_),We=(0,f.ln)("Dropdown"),je=t.useMemo(()=>{const In=ye();return be!==void 0?be:D.includes("top")?`${In}-slide-down`:`${In}-slide-up`},[ye,D,be]),Ve=t.useMemo(()=>D?D.includes("Center")?D.slice(0,D.indexOf("Center")):D:Ne==="rtl"?"bottomRight":"bottomLeft",[D,Ne]),mt=ye("dropdown",Je),Pt=(0,T.Z)(mt),[bt,_t,Dt]=z(mt,Pt),[,Rt]=(0,P.ZP)(),Ht=t.Children.only(Le),$t=(0,y.Tm)(Ht,{className:a()(`${mt}-trigger`,{[`${mt}-rtl`]:Ne==="rtl"},Ht.props.className),disabled:(Ye=Ht.props.disabled)!==null&&Ye!==void 0?Ye:ze}),vn=ze?[]:qe,mn=!!(vn!=null&&vn.includes("contextMenu")),[zn,Xt]=(0,c.Z)(!1,{value:ve!=null?ve:w}),Vn=(0,u.zX)(In=>{he==null||he(In,{source:"trigger"}),S==null||S(In),Xt(In)}),Un=a()(re,x,_t,Dt,Pt,ke==null?void 0:ke.className,{[`${mt}-rtl`]:Ne==="rtl"}),_n=(0,m.Z)({arrowPointAtCenter:typeof Fe=="object"&&Fe.pointAtCenter,autoAdjustOverflow:_,offset:Rt.marginXXS,arrowWidth:Fe?Rt.sizePopupArrow:0,borderRadius:Rt.borderRadius}),Ln=t.useCallback(()=>{Xe!=null&&Xe.selectable&&(Xe!=null&&Xe.multiple)||(he==null||he(!1,{source:"menu"}),Xt(!1))},[Xe==null?void 0:Xe.selectable,Xe==null?void 0:Xe.multiple]),kn=()=>{let In;return Xe!=null&&Xe.items?In=t.createElement(C.Z,Object.assign({},Xe)):typeof te=="function"?In=te():In=te,ie&&(In=ie(In)),In=t.Children.only(typeof In=="string"?t.createElement("span",null,In):In),t.createElement(M.J,{prefixCls:`${mt}-menu`,rootClassName:a()(Dt,Pt),expandIcon:t.createElement("span",{className:`${mt}-menu-submenu-arrow`},t.createElement(r.Z,{className:`${mt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ln,validator:lr=>{let{mode:yr}=lr}},In)},[Rn,Mn]=(0,d.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let $n=t.createElement(s.Z,Object.assign({alignPoint:mn},(0,l.Z)(Ue,["rootClassName"]),{mouseEnterDelay:j,mouseLeaveDelay:B,visible:zn,builtinPlacements:_n,arrow:!!Fe,overlayClassName:Un,prefixCls:mt,getPopupContainer:W||ge,transitionName:je,trigger:vn,overlay:kn,placement:Ve,onVisibleChange:Vn,overlayStyle:Object.assign(Object.assign(Object.assign({},ke==null?void 0:ke.style),oe),{zIndex:Rn})}),$t);return Rn&&($n=t.createElement(E.Z.Provider,{value:Mn},$n)),bt($n)};function F(Ue){return Object.assign(Object.assign({},Ue),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const N=(0,b.Z)(L,"dropdown",Ue=>Ue,F),ee=Ue=>t.createElement(N,Object.assign({},Ue),t.createElement("span",null));L._InternalPanelDoNotUseOrYouWillBeFired=ee;var ce=L,le=e(35872),se=e(14726),fe=e(42075),xe=e(4173),Ie=function(Ue,Ye){var Xe={};for(var Fe in Ue)Object.prototype.hasOwnProperty.call(Ue,Fe)&&Ye.indexOf(Fe)<0&&(Xe[Fe]=Ue[Fe]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Fe=Object.getOwnPropertySymbols(Ue);Je{const{getPopupContainer:Ye,getPrefixCls:Xe,direction:Fe}=t.useContext(R.E_),{prefixCls:Je,type:Le="default",danger:qe,disabled:ze,loading:ie,onClick:W,htmlType:re,children:x,className:oe,menu:ve,arrow:he,autoFocus:w,overlay:S,trigger:j,align:B,open:_,onOpenChange:D,placement:te,getPopupContainer:be,href:ge,icon:ye=t.createElement(le.Z,null),title:Ne,buttonsRender:ke=_n=>_n,mouseEnterDelay:We,mouseLeaveDelay:je,overlayClassName:Ve,overlayStyle:mt,destroyPopupOnHide:Pt,dropdownRender:bt}=Ue,_t=Ie(Ue,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Dt=Xe("dropdown",Je),Rt=`${Dt}-button`,Ht={menu:ve,arrow:he,autoFocus:w,align:B,disabled:ze,trigger:ze?[]:j,onOpenChange:D,getPopupContainer:be||Ye,mouseEnterDelay:We,mouseLeaveDelay:je,overlayClassName:Ve,overlayStyle:mt,destroyPopupOnHide:Pt,dropdownRender:bt},{compactSize:$t,compactItemClassnames:vn}=(0,xe.ri)(Dt,Fe),mn=a()(Rt,vn,oe);"overlay"in Ue&&(Ht.overlay=S),"open"in Ue&&(Ht.open=_),"placement"in Ue?Ht.placement=te:Ht.placement=Fe==="rtl"?"bottomLeft":"bottomRight";const zn=t.createElement(se.ZP,{type:Le,danger:qe,disabled:ze,loading:ie,onClick:W,htmlType:re,href:ge,title:Ne},x),Xt=t.createElement(se.ZP,{type:Le,danger:qe,icon:ye}),[Vn,Un]=ke([zn,Xt]);return t.createElement(fe.Z.Compact,Object.assign({className:mn,size:$t,block:!0},_t),Vn,t.createElement(ce,Object.assign({},Ht),Un))};Pe.__ANT_BUTTON=!0;var $e=Pe;const at=ce;at.Button=$e;var ut=at},65223:function(v,p,e){"use strict";e.d(p,{RV:function(){return u},Rk:function(){return c},Ux:function(){return d},aM:function(){return l},pg:function(){return m},q3:function(){return a},qI:function(){return s}});var t=e(67294),r=e(12617),o=e(98423);const a=t.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),s=t.createContext(null),u=b=>{const y=(0,o.Z)(b,["prefixCls"]);return t.createElement(r.RV,Object.assign({},y))},c=t.createContext({prefixCls:""}),l=t.createContext({}),d=b=>{let{children:y,status:f,override:E}=b;const R=(0,t.useContext)(l),T=(0,t.useMemo)(()=>{const C=Object.assign({},R);return E&&delete C.isFormItemInput,f&&(delete C.status,delete C.hasFeedback,delete C.feedbackIcon),C},[f,E,R]);return t.createElement(l.Provider,{value:T},y)},m=(0,t.createContext)(void 0)},37920:function(v,p,e){"use strict";var t=e(67294);p.Z=(0,t.createContext)(void 0)},10130:function(v,p,e){"use strict";e.d(p,{D:function(){return A},Z:function(){return Z}});var t=e(67294),r=e(87462),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},a=o,s=e(93771),u=function(U,Y){return t.createElement(s.Z,(0,r.Z)({},U,{ref:Y,icon:a}))},c=t.forwardRef(u),l=c,d=e(62946),m=e(62994),b=e(93967),y=e.n(b),f=e(98423),R=Q=>!isNaN(parseFloat(Q))&&isFinite(Q),T=e(53124),C=e(82401),M=function(Q,U){var Y={};for(var H in Q)Object.prototype.hasOwnProperty.call(Q,H)&&U.indexOf(H)<0&&(Y[H]=Q[H]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,H=Object.getOwnPropertySymbols(Q);G{let Q=0;return function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Q+=1,`${U}${Q}`}})();var Z=t.forwardRef((Q,U)=>{const{prefixCls:Y,className:H,trigger:G,children:J,defaultCollapsed:X=!1,theme:V="dark",style:q={},collapsible:z=!1,reverseArrow:k=!1,width:L=200,collapsedWidth:F=80,zeroWidthTriggerStyle:N,breakpoint:ee,onCollapse:ce,onBreakpoint:le}=Q,se=M(Q,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:fe}=(0,t.useContext)(C.V),[xe,Ie]=(0,t.useState)("collapsed"in Q?Q.collapsed:X),[Pe,$e]=(0,t.useState)(!1);(0,t.useEffect)(()=>{"collapsed"in Q&&Ie(Q.collapsed)},[Q.collapsed]);const at=(Je,Le)=>{"collapsed"in Q||Ie(Je),ce==null||ce(Je,Le)},ut=(0,t.useRef)();ut.current=Je=>{$e(Je.matches),le==null||le(Je.matches),xe!==Je.matches&&at(Je.matches,"responsive")},(0,t.useEffect)(()=>{function Je(qe){return ut.current(qe)}let Le;if(typeof window!="undefined"){const{matchMedia:qe}=window;if(qe&&ee&&ee in P){Le=qe(`screen and (max-width: ${P[ee]})`);try{Le.addEventListener("change",Je)}catch(ze){Le.addListener(Je)}Je(Le)}}return()=>{try{Le==null||Le.removeEventListener("change",Je)}catch(qe){Le==null||Le.removeListener(Je)}}},[ee]),(0,t.useEffect)(()=>{const Je=O("ant-sider-");return fe.addSider(Je),()=>fe.removeSider(Je)},[]);const Ue=()=>{at(!xe,"clickTrigger")},{getPrefixCls:Ye}=(0,t.useContext)(T.E_),Xe=()=>{const Je=Ye("layout-sider",Y),Le=(0,f.Z)(se,["collapsed"]),qe=xe?F:L,ze=R(qe)?`${qe}px`:String(qe),ie=parseFloat(String(F||0))===0?t.createElement("span",{onClick:Ue,className:y()(`${Je}-zero-width-trigger`,`${Je}-zero-width-trigger-${k?"right":"left"}`),style:N},G||t.createElement(l,null)):null,x={expanded:k?t.createElement(m.Z,null):t.createElement(d.Z,null),collapsed:k?t.createElement(d.Z,null):t.createElement(m.Z,null)}[xe?"collapsed":"expanded"],oe=G!==null?ie||t.createElement("div",{className:`${Je}-trigger`,onClick:Ue,style:{width:ze}},G||x):null,ve=Object.assign(Object.assign({},q),{flex:`0 0 ${ze}`,maxWidth:ze,minWidth:ze,width:ze}),he=y()(Je,`${Je}-${V}`,{[`${Je}-collapsed`]:!!xe,[`${Je}-has-trigger`]:z&&G!==null&&!ie,[`${Je}-below`]:!!Pe,[`${Je}-zero-width`]:parseFloat(ze)===0},H);return t.createElement("aside",Object.assign({className:he},Le,{style:ve,ref:U}),t.createElement("div",{className:`${Je}-children`},J),z||Pe&&ie?oe:null)},Fe=t.useMemo(()=>({siderCollapsed:xe}),[xe]);return t.createElement(A.Provider,{value:Fe},Xe())})},82401:function(v,p,e){"use strict";e.d(p,{V:function(){return r}});var t=e(67294);const r=t.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},21612:function(v,p,e){"use strict";e.d(p,{Z:function(){return G}});var t=e(74902),r=e(67294),o=e(93967),a=e.n(o),s=e(98423),u=e(53124),c=e(82401),l=e(50344),d=e(10130);function m(J,X,V){return typeof V=="boolean"?V:J.length?!0:(0,l.Z)(X).some(z=>z.type===d.Z)}var b=e(85982),y=e(27036),E=J=>{const{componentCls:X,bodyBg:V,lightSiderBg:q,lightTriggerBg:z,lightTriggerColor:k}=J;return{[`${X}-sider-light`]:{background:q,[`${X}-sider-trigger`]:{color:k,background:z},[`${X}-sider-zero-width-trigger`]:{color:k,background:z,border:`1px solid ${V}`,borderInlineStart:0}}}};const R=J=>{const{antCls:X,componentCls:V,colorText:q,triggerColor:z,footerBg:k,triggerBg:L,headerHeight:F,headerPadding:N,headerColor:ee,footerPadding:ce,triggerHeight:le,zeroTriggerHeight:se,zeroTriggerWidth:fe,motionDurationMid:xe,motionDurationSlow:Ie,fontSize:Pe,borderRadius:$e,bodyBg:at,headerBg:ut,siderBg:Ue}=J;return{[V]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:at,"&, *":{boxSizing:"border-box"},[`&${V}-has-sider`]:{flexDirection:"row",[`> ${V}, > ${V}-content`]:{width:0}},[`${V}-header, &${V}-footer`]:{flex:"0 0 auto"},[`${V}-sider`]:{position:"relative",minWidth:0,background:Ue,transition:`all ${xe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${X}-menu${X}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:le,color:z,lineHeight:(0,b.bf)(le),textAlign:"center",background:L,cursor:"pointer",transition:`all ${xe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:F,insetInlineEnd:J.calc(fe).mul(-1).equal(),zIndex:1,width:fe,height:se,color:z,fontSize:J.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ue,borderStartStartRadius:0,borderStartEndRadius:$e,borderEndEndRadius:$e,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ie} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ie}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:J.calc(fe).mul(-1).equal(),borderStartStartRadius:$e,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:$e}}}}},E(J)),{"&-rtl":{direction:"rtl"}}),[`${V}-header`]:{height:F,padding:N,color:ee,lineHeight:(0,b.bf)(F),background:ut,[`${X}-menu`]:{lineHeight:"inherit"}},[`${V}-footer`]:{padding:ce,color:q,fontSize:Pe,background:k},[`${V}-content`]:{flex:"auto",color:q,minHeight:0}}},T=J=>{const{colorBgLayout:X,controlHeight:V,controlHeightLG:q,colorText:z,controlHeightSM:k,marginXXS:L,colorTextLightSolid:F,colorBgContainer:N}=J,ee=q*1.25;return{colorBgHeader:"#001529",colorBgBody:X,colorBgTrigger:"#002140",bodyBg:X,headerBg:"#001529",headerHeight:V*2,headerPadding:`0 ${ee}px`,headerColor:z,footerPadding:`${k}px ${ee}px`,footerBg:X,siderBg:"#001529",triggerHeight:q+L*2,triggerBg:"#002140",triggerColor:F,zeroTriggerWidth:q,zeroTriggerHeight:q,lightSiderBg:N,lightTriggerBg:N,lightTriggerColor:z}};var C=(0,y.I$)("Layout",J=>[R(J)],T,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),M=function(J,X){var V={};for(var q in J)Object.prototype.hasOwnProperty.call(J,q)&&X.indexOf(q)<0&&(V[q]=J[q]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,q=Object.getOwnPropertySymbols(J);zr.forwardRef((L,F)=>r.createElement(z,Object.assign({ref:F,suffixCls:X,tagName:V},L)))}const A=r.forwardRef((J,X)=>{const{prefixCls:V,suffixCls:q,className:z,tagName:k}=J,L=M(J,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:F}=r.useContext(u.E_),N=F("layout",V),[ee,ce,le]=C(N),se=q?`${N}-${q}`:N;return ee(r.createElement(k,Object.assign({className:a()(V||se,z,ce,le),ref:X},L)))}),O=r.forwardRef((J,X)=>{const{direction:V}=r.useContext(u.E_),[q,z]=r.useState([]),{prefixCls:k,className:L,rootClassName:F,children:N,hasSider:ee,tagName:ce,style:le}=J,se=M(J,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),fe=(0,s.Z)(se,["suffixCls"]),{getPrefixCls:xe,layout:Ie}=r.useContext(u.E_),Pe=xe("layout",k),$e=m(q,N,ee),[at,ut,Ue]=C(Pe),Ye=a()(Pe,{[`${Pe}-has-sider`]:$e,[`${Pe}-rtl`]:V==="rtl"},Ie==null?void 0:Ie.className,L,F,ut,Ue),Xe=r.useMemo(()=>({siderHook:{addSider:Fe=>{z(Je=>[].concat((0,t.Z)(Je),[Fe]))},removeSider:Fe=>{z(Je=>Je.filter(Le=>Le!==Fe))}}}),[]);return at(r.createElement(c.V.Provider,{value:Xe},r.createElement(ce,Object.assign({ref:X,className:Ye,style:Object.assign(Object.assign({},Ie==null?void 0:Ie.style),le)},fe),N)))}),$=P({tagName:"div",displayName:"Layout"})(O),Z=P({suffixCls:"header",tagName:"header",displayName:"Header"})(A),Q=P({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(A),U=P({suffixCls:"content",tagName:"main",displayName:"Content"})(A);var Y=$;const H=Y;H.Header=Z,H.Footer=Q,H.Content=U,H.Sider=d.Z,H._InternalSiderContext=d.D;var G=H},76745:function(v,p,e){"use strict";var t=e(67294);const r=(0,t.createContext)(void 0);p.Z=r},24457:function(v,p,e){"use strict";e.d(p,{Z:function(){return c}});var t=e(62906),r=e(87206),o=r.Z,a=e(42115);const s="${label} is not a valid ${type}";var c={locale:"en",Pagination:t.Z,DatePicker:r.Z,TimePicker:a.Z,Calendar:o,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}}},10110:function(v,p,e){"use strict";var t=e(67294),r=e(76745),o=e(24457);const a=(s,u)=>{const c=t.useContext(r.Z),l=t.useMemo(()=>{var m;const b=u||o.Z[s],y=(m=c==null?void 0:c[s])!==null&&m!==void 0?m:{};return Object.assign(Object.assign({},typeof b=="function"?b():b),y||{})},[s,u,c]),d=t.useMemo(()=>{const m=c==null?void 0:c.locale;return c!=null&&c.exist&&!m?o.Z.locale:m},[c]);return[l,d]};p.Z=a},37029:function(v,p,e){"use strict";e.d(p,{Z:function(){return b}});var t=e(81626),r={locale:"zh_CN",yearFormat:"YYYY\u5E74",cellDateFormat:"D",cellMeridiemFormat:"A",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},o=r,s={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};const u={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},o),timePickerLocale:Object.assign({},s)};u.lang.ok="\u786E\u5B9A";var c=u,l=c;const d="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}";var b={locale:"zh-cn",Pagination:t.Z,DatePicker:c,TimePicker:s,Calendar:l,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",emptyText:"\u6682\u65E0\u6570\u636E",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",deselectAll:"\u53D6\u6D88\u5168\u9009",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00",collapse:"\u6536\u8D77"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:d,method:d,array:d,object:d,number:d,date:d,boolean:d,integer:d,float:d,regexp:d,email:d,url:d,hex:d},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0",scanned:"\u5DF2\u626B\u63CF"},ColorPicker:{presetEmpty:"\u6682\u65E0"}}},76529:function(v,p,e){"use strict";e.d(p,{J:function(){return u}});var t=e(67294),r=e(56790),o=e(89942),a=function(c,l){var d={};for(var m in c)Object.prototype.hasOwnProperty.call(c,m)&&l.indexOf(m)<0&&(d[m]=c[m]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,m=Object.getOwnPropertySymbols(c);b{const{children:d}=c,m=a(c,["children"]),b=t.useContext(s),y=t.useMemo(()=>Object.assign(Object.assign({},b),m),[b,m.prefixCls,m.mode,m.selectable,m.rootClassName]),f=(0,r.t4)(d),E=(0,r.x1)(l,f?d.ref:null);return t.createElement(s.Provider,{value:y},t.createElement(o.Z,{space:!0},f?t.cloneElement(d,{ref:E}):d))});p.Z=s},50136:function(v,p,e){"use strict";e.d(p,{Z:function(){return qe}});var t=e(67294),r=e(72512),o=e(10130),a=e(35872),s=e(93967),u=e.n(s),c=e(56790),l=e(98423),d=e(33603),m=e(96159),b=e(53124),y=e(35792),E=(0,t.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),R=function(ze,ie){var W={};for(var re in ze)Object.prototype.hasOwnProperty.call(ze,re)&&ie.indexOf(re)<0&&(W[re]=ze[re]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,re=Object.getOwnPropertySymbols(ze);x{const{prefixCls:ie,className:W,dashed:re}=ze,x=R(ze,["prefixCls","className","dashed"]),{getPrefixCls:oe}=t.useContext(b.E_),ve=oe("menu",ie),he=u()({[`${ve}-item-divider-dashed`]:!!re},W);return t.createElement(r.iz,Object.assign({className:he},x))},M=e(50344),P=e(83062),O=ze=>{var ie;const{className:W,children:re,icon:x,title:oe,danger:ve}=ze,{prefixCls:he,firstLevel:w,direction:S,disableMenuItemTitleTooltip:j,inlineCollapsed:B}=t.useContext(E),_=Ne=>{const ke=t.createElement("span",{className:`${he}-title-content`},re);return(!x||t.isValidElement(re)&&re.type==="span")&&re&&Ne&&w&&typeof re=="string"?t.createElement("div",{className:`${he}-inline-collapsed-noicon`},re.charAt(0)):ke},{siderCollapsed:D}=t.useContext(o.D);let te=oe;typeof oe=="undefined"?te=w?re:"":oe===!1&&(te="");const be={title:te};!D&&!B&&(be.title=null,be.open=!1);const ge=(0,M.Z)(re).length;let ye=t.createElement(r.ck,Object.assign({},(0,l.Z)(ze,["title","icon","danger"]),{className:u()({[`${he}-item-danger`]:ve,[`${he}-item-only-child`]:(x?ge+1:ge)===1},W),title:typeof oe=="string"?oe:void 0}),(0,m.Tm)(x,{className:u()(t.isValidElement(x)?(ie=x.props)===null||ie===void 0?void 0:ie.className:"",`${he}-item-icon`)}),_(B));return j||(ye=t.createElement(P.Z,Object.assign({},be,{placement:S==="rtl"?"left":"right",overlayClassName:`${he}-inline-collapsed-tooltip`}),ye)),ye},$=e(76529),Z=e(85982),Q=e(10274),U=e(14747),Y=e(33507),H=e(67771),G=e(50438),J=e(27036),X=e(45503),q=ze=>{const{componentCls:ie,motionDurationSlow:W,horizontalLineHeight:re,colorSplit:x,lineWidth:oe,lineType:ve,itemPaddingInline:he}=ze;return{[`${ie}-horizontal`]:{lineHeight:re,border:0,borderBottom:`${(0,Z.bf)(oe)} ${ve} ${x}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ie}-item, ${ie}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:he},[`> ${ie}-item:hover, - > ${ie}-item-active, - > ${ie}-submenu ${ie}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ie}-item, ${ie}-submenu-title`]:{transition:[`border-color ${W}`,`background ${W}`].join(",")},[`${ie}-submenu-arrow`]:{display:"none"}}}},k=ze=>{let{componentCls:ie,menuArrowOffset:W,calc:re}=ze;return{[`${ie}-rtl`]:{direction:"rtl"},[`${ie}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ie}-rtl${ie}-vertical, - ${ie}-submenu-rtl ${ie}-vertical`]:{[`${ie}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,Z.bf)(re(W).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Z.bf)(W)})`}}}}};const L=ze=>Object.assign({},(0,U.oN)(ze));var N=(ze,ie)=>{const{componentCls:W,itemColor:re,itemSelectedColor:x,groupTitleColor:oe,itemBg:ve,subMenuItemBg:he,itemSelectedBg:w,activeBarHeight:S,activeBarWidth:j,activeBarBorderWidth:B,motionDurationSlow:_,motionEaseInOut:D,motionEaseOut:te,itemPaddingInline:be,motionDurationMid:ge,itemHoverColor:ye,lineType:Ne,colorSplit:ke,itemDisabledColor:We,dangerItemColor:je,dangerItemHoverColor:Ve,dangerItemSelectedColor:mt,dangerItemActiveBg:Pt,dangerItemSelectedBg:bt,popupBg:_t,itemHoverBg:Dt,itemActiveBg:Rt,menuSubMenuBg:Ht,horizontalItemSelectedColor:$t,horizontalItemSelectedBg:vn,horizontalItemBorderRadius:mn,horizontalItemHoverBg:zn}=ze;return{[`${W}-${ie}, ${W}-${ie} > ${W}`]:{color:re,background:ve,[`&${W}-root:focus-visible`]:Object.assign({},L(ze)),[`${W}-item-group-title`]:{color:oe},[`${W}-submenu-selected`]:{[`> ${W}-submenu-title`]:{color:x}},[`${W}-item, ${W}-submenu-title`]:{color:re,[`&:not(${W}-item-disabled):focus-visible`]:Object.assign({},L(ze))},[`${W}-item-disabled, ${W}-submenu-disabled`]:{color:`${We} !important`},[`${W}-item:not(${W}-item-selected):not(${W}-submenu-selected)`]:{[`&:hover, > ${W}-submenu-title:hover`]:{color:ye}},[`&:not(${W}-horizontal)`]:{[`${W}-item:not(${W}-item-selected)`]:{"&:hover":{backgroundColor:Dt},"&:active":{backgroundColor:Rt}},[`${W}-submenu-title`]:{"&:hover":{backgroundColor:Dt},"&:active":{backgroundColor:Rt}}},[`${W}-item-danger`]:{color:je,[`&${W}-item:hover`]:{[`&:not(${W}-item-selected):not(${W}-submenu-selected)`]:{color:Ve}},[`&${W}-item:active`]:{background:Pt}},[`${W}-item a`]:{"&, &:hover":{color:"inherit"}},[`${W}-item-selected`]:{color:x,[`&${W}-item-danger`]:{color:mt},"a, a:hover":{color:"inherit"}},[`& ${W}-item-selected`]:{backgroundColor:w,[`&${W}-item-danger`]:{backgroundColor:bt}},[`&${W}-submenu > ${W}`]:{backgroundColor:Ht},[`&${W}-popup > ${W}`]:{backgroundColor:_t},[`&${W}-submenu-popup > ${W}`]:{backgroundColor:_t},[`&${W}-horizontal`]:Object.assign(Object.assign({},ie==="dark"?{borderBottom:0}:{}),{[`> ${W}-item, > ${W}-submenu`]:{top:B,marginTop:ze.calc(B).mul(-1).equal(),marginBottom:0,borderRadius:mn,"&::after":{position:"absolute",insetInline:be,bottom:0,borderBottom:`${(0,Z.bf)(S)} solid transparent`,transition:`border-color ${_} ${D}`,content:'""'},"&:hover, &-active, &-open":{background:zn,"&::after":{borderBottomWidth:S,borderBottomColor:$t}},"&-selected":{color:$t,backgroundColor:vn,"&:hover":{backgroundColor:vn},"&::after":{borderBottomWidth:S,borderBottomColor:$t}}}}),[`&${W}-root`]:{[`&${W}-inline, &${W}-vertical`]:{borderInlineEnd:`${(0,Z.bf)(B)} ${Ne} ${ke}`}},[`&${W}-inline`]:{[`${W}-sub${W}-inline`]:{background:he},[`${W}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Z.bf)(j)} solid ${x}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ge} ${te}`,`opacity ${ge} ${te}`].join(","),content:'""'},[`&${W}-item-danger`]:{"&::after":{borderInlineEndColor:mt}}},[`${W}-selected, ${W}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ge} ${D}`,`opacity ${ge} ${D}`].join(",")}}}}}};const ee=ze=>{const{componentCls:ie,itemHeight:W,itemMarginInline:re,padding:x,menuArrowSize:oe,marginXS:ve,itemMarginBlock:he,itemWidth:w}=ze,S=ze.calc(oe).add(x).add(ve).equal();return{[`${ie}-item`]:{position:"relative",overflow:"hidden"},[`${ie}-item, ${ie}-submenu-title`]:{height:W,lineHeight:(0,Z.bf)(W),paddingInline:x,overflow:"hidden",textOverflow:"ellipsis",marginInline:re,marginBlock:he,width:w},[`> ${ie}-item, - > ${ie}-submenu > ${ie}-submenu-title`]:{height:W,lineHeight:(0,Z.bf)(W)},[`${ie}-item-group-list ${ie}-submenu-title, - ${ie}-submenu-title`]:{paddingInlineEnd:S}}};var le=ze=>{const{componentCls:ie,iconCls:W,itemHeight:re,colorTextLightSolid:x,dropdownWidth:oe,controlHeightLG:ve,motionDurationMid:he,motionEaseOut:w,paddingXL:S,itemMarginInline:j,fontSizeLG:B,motionDurationSlow:_,paddingXS:D,boxShadowSecondary:te,collapsedWidth:be,collapsedIconSize:ge}=ze,ye={height:re,lineHeight:(0,Z.bf)(re),listStylePosition:"inside",listStyleType:"disc"};return[{[ie]:{"&-inline, &-vertical":Object.assign({[`&${ie}-root`]:{boxShadow:"none"}},ee(ze))},[`${ie}-submenu-popup`]:{[`${ie}-vertical`]:Object.assign(Object.assign({},ee(ze)),{boxShadow:te})}},{[`${ie}-submenu-popup ${ie}-vertical${ie}-sub`]:{minWidth:oe,maxHeight:`calc(100vh - ${(0,Z.bf)(ze.calc(ve).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ie}-inline`]:{width:"100%",[`&${ie}-root`]:{[`${ie}-item, ${ie}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${_}`,`background ${_}`,`padding ${he} ${w}`,`padding-inline calc(50% - ${(0,Z.bf)(ze.calc(B).div(2).equal())} - ${(0,Z.bf)(j)})`].join(","),[`> ${ie}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ie}-sub${ie}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ie}-submenu > ${ie}-submenu-title`]:ye,[`& ${ie}-item-group-title`]:{paddingInlineStart:S}},[`${ie}-item`]:ye}},{[`${ie}-inline-collapsed`]:{width:be,[`&${ie}-root`]:{[`${ie}-item, ${ie}-submenu ${ie}-submenu-title`]:{[`> ${ie}-inline-collapsed-noicon`]:{fontSize:B,textAlign:"center"}}},[`> ${ie}-item, - > ${ie}-item-group > ${ie}-item-group-list > ${ie}-item, - > ${ie}-item-group > ${ie}-item-group-list > ${ie}-submenu > ${ie}-submenu-title, - > ${ie}-submenu > ${ie}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,Z.bf)(ze.calc(B).div(2).equal())} - ${(0,Z.bf)(j)})`,textOverflow:"clip",[` - ${ie}-submenu-arrow, - ${ie}-submenu-expand-icon - `]:{opacity:0},[`${ie}-item-icon, ${W}`]:{margin:0,fontSize:ge,lineHeight:(0,Z.bf)(re),"+ span":{display:"inline-block",opacity:0}}},[`${ie}-item-icon, ${W}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ie}-item-icon, ${W}`]:{display:"none"},"a, a:hover":{color:x}},[`${ie}-item-group-title`]:Object.assign(Object.assign({},U.vS),{paddingInline:D})}}]};const se=ze=>{const{componentCls:ie,motionDurationSlow:W,motionDurationMid:re,motionEaseInOut:x,motionEaseOut:oe,iconCls:ve,iconSize:he,iconMarginInlineEnd:w}=ze;return{[`${ie}-item, ${ie}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${W}`,`background ${W}`,`padding ${W} ${x}`].join(","),[`${ie}-item-icon, ${ve}`]:{minWidth:he,fontSize:he,transition:[`font-size ${re} ${oe}`,`margin ${W} ${x}`,`color ${W}`].join(","),"+ span":{marginInlineStart:w,opacity:1,transition:[`opacity ${W} ${x}`,`margin ${W}`,`color ${W}`].join(",")}},[`${ie}-item-icon`]:Object.assign({},(0,U.Ro)()),[`&${ie}-item-only-child`]:{[`> ${ve}, > ${ie}-item-icon`]:{marginInlineEnd:0}}},[`${ie}-item-disabled, ${ie}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ie}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},fe=ze=>{const{componentCls:ie,motionDurationSlow:W,motionEaseInOut:re,borderRadius:x,menuArrowSize:oe,menuArrowOffset:ve}=ze;return{[`${ie}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ze.margin,width:oe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${W} ${re}, opacity ${W}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ze.calc(oe).mul(.6).equal(),height:ze.calc(oe).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:x,transition:[`background ${W} ${re}`,`transform ${W} ${re}`,`top ${W} ${re}`,`color ${W} ${re}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Z.bf)(ze.calc(ve).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Z.bf)(ve)})`}}}}},xe=ze=>{const{antCls:ie,componentCls:W,fontSize:re,motionDurationSlow:x,motionDurationMid:oe,motionEaseInOut:ve,paddingXS:he,padding:w,colorSplit:S,lineWidth:j,zIndexPopup:B,borderRadiusLG:_,subMenuItemBorderRadius:D,menuArrowSize:te,menuArrowOffset:be,lineType:ge,groupTitleLineHeight:ye,groupTitleFontSize:Ne}=ze;return[{"":{[`${W}`]:Object.assign(Object.assign({},(0,U.dF)()),{"&-hidden":{display:"none"}})},[`${W}-submenu-hidden`]:{display:"none"}},{[W]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,U.Wf)(ze)),(0,U.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:re,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${x} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${W}-item`]:{flex:"none"}},[`${W}-item, ${W}-submenu, ${W}-submenu-title`]:{borderRadius:ze.itemBorderRadius},[`${W}-item-group-title`]:{padding:`${(0,Z.bf)(he)} ${(0,Z.bf)(w)}`,fontSize:Ne,lineHeight:ye,transition:`all ${x}`},[`&-horizontal ${W}-submenu`]:{transition:[`border-color ${x} ${ve}`,`background ${x} ${ve}`].join(",")},[`${W}-submenu, ${W}-submenu-inline`]:{transition:[`border-color ${x} ${ve}`,`background ${x} ${ve}`,`padding ${oe} ${ve}`].join(",")},[`${W}-submenu ${W}-sub`]:{cursor:"initial",transition:[`background ${x} ${ve}`,`padding ${x} ${ve}`].join(",")},[`${W}-title-content`]:{transition:`color ${x}`,[`> ${ie}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${W}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${W}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:S,borderStyle:ge,borderWidth:0,borderTopWidth:j,marginBlock:j,padding:0,"&-dashed":{borderStyle:"dashed"}}}),se(ze)),{[`${W}-item-group`]:{[`${W}-item-group-list`]:{margin:0,padding:0,[`${W}-item, ${W}-submenu-title`]:{paddingInline:`${(0,Z.bf)(ze.calc(re).mul(2).equal())} ${(0,Z.bf)(w)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:B,borderRadius:_,boxShadow:"none",transformOrigin:"0 0",[`&${W}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${W}`]:Object.assign(Object.assign(Object.assign({borderRadius:_},se(ze)),fe(ze)),{[`${W}-item, ${W}-submenu > ${W}-submenu-title`]:{borderRadius:D},[`${W}-submenu-title::after`]:{transition:`transform ${x} ${ve}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:ze.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ze.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ze.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ze.paddingXS}}}),fe(ze)),{[`&-inline-collapsed ${W}-submenu-arrow, - &-inline ${W}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Z.bf)(be)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Z.bf)(ze.calc(be).mul(-1).equal())})`}},[`${W}-submenu-open${W}-submenu-inline > ${W}-submenu-title > ${W}-submenu-arrow`]:{transform:`translateY(${(0,Z.bf)(ze.calc(te).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Z.bf)(ze.calc(be).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Z.bf)(be)})`}}})},{[`${ie}-layout-header`]:{[W]:{lineHeight:"inherit"}}}]},Ie=ze=>{var ie,W,re;const{colorPrimary:x,colorError:oe,colorTextDisabled:ve,colorErrorBg:he,colorText:w,colorTextDescription:S,colorBgContainer:j,colorFillAlter:B,colorFillContent:_,lineWidth:D,lineWidthBold:te,controlItemBgActive:be,colorBgTextHover:ge,controlHeightLG:ye,lineHeight:Ne,colorBgElevated:ke,marginXXS:We,padding:je,fontSize:Ve,controlHeightSM:mt,fontSizeLG:Pt,colorTextLightSolid:bt,colorErrorHover:_t}=ze,Dt=(ie=ze.activeBarWidth)!==null&&ie!==void 0?ie:0,Rt=(W=ze.activeBarBorderWidth)!==null&&W!==void 0?W:D,Ht=(re=ze.itemMarginInline)!==null&&re!==void 0?re:ze.marginXXS,$t=new Q.C(bt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ze.zIndexPopupBase+50,radiusItem:ze.borderRadiusLG,itemBorderRadius:ze.borderRadiusLG,radiusSubMenuItem:ze.borderRadiusSM,subMenuItemBorderRadius:ze.borderRadiusSM,colorItemText:w,itemColor:w,colorItemTextHover:w,itemHoverColor:w,colorItemTextHoverHorizontal:x,horizontalItemHoverColor:x,colorGroupTitle:S,groupTitleColor:S,colorItemTextSelected:x,itemSelectedColor:x,colorItemTextSelectedHorizontal:x,horizontalItemSelectedColor:x,colorItemBg:j,itemBg:j,colorItemBgHover:ge,itemHoverBg:ge,colorItemBgActive:_,itemActiveBg:be,colorSubItemBg:B,subMenuItemBg:B,colorItemBgSelected:be,itemSelectedBg:be,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Dt,colorActiveBarHeight:te,activeBarHeight:te,colorActiveBarBorderSize:D,activeBarBorderWidth:Rt,colorItemTextDisabled:ve,itemDisabledColor:ve,colorDangerItemText:oe,dangerItemColor:oe,colorDangerItemTextHover:oe,dangerItemHoverColor:oe,colorDangerItemTextSelected:oe,dangerItemSelectedColor:oe,colorDangerItemBgActive:he,dangerItemActiveBg:he,colorDangerItemBgSelected:he,dangerItemSelectedBg:he,itemMarginInline:Ht,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ye,groupTitleLineHeight:Ne,collapsedWidth:ye*2,popupBg:ke,itemMarginBlock:We,itemPaddingInline:je,horizontalLineHeight:`${ye*1.15}px`,iconSize:Ve,iconMarginInlineEnd:mt-Ve,collapsedIconSize:Pt,groupTitleFontSize:Ve,darkItemDisabledColor:new Q.C(bt).setAlpha(.25).toRgbString(),darkItemColor:$t,darkDangerItemColor:oe,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:bt,darkItemSelectedBg:x,darkDangerItemSelectedBg:oe,darkItemHoverBg:"transparent",darkGroupTitleColor:$t,darkItemHoverColor:bt,darkDangerItemHoverColor:_t,darkDangerItemSelectedColor:bt,darkDangerItemActiveBg:oe,itemWidth:Dt?`calc(100% + ${Rt}px)`:`calc(100% - ${Ht*2}px)`}};var Pe=function(ze){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ze,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,J.I$)("Menu",x=>{const{colorBgElevated:oe,controlHeightLG:ve,fontSize:he,darkItemColor:w,darkDangerItemColor:S,darkItemBg:j,darkSubMenuItemBg:B,darkItemSelectedColor:_,darkItemSelectedBg:D,darkDangerItemSelectedBg:te,darkItemHoverBg:be,darkGroupTitleColor:ge,darkItemHoverColor:ye,darkItemDisabledColor:Ne,darkDangerItemHoverColor:ke,darkDangerItemSelectedColor:We,darkDangerItemActiveBg:je,popupBg:Ve,darkPopupBg:mt}=x,Pt=x.calc(he).div(7).mul(5).equal(),bt=(0,X.TS)(x,{menuArrowSize:Pt,menuHorizontalHeight:x.calc(ve).mul(1.15).equal(),menuArrowOffset:x.calc(Pt).mul(.25).equal(),menuSubMenuBg:oe,calc:x.calc,popupBg:Ve}),_t=(0,X.TS)(bt,{itemColor:w,itemHoverColor:ye,groupTitleColor:ge,itemSelectedColor:_,itemBg:j,popupBg:mt,subMenuItemBg:B,itemActiveBg:"transparent",itemSelectedBg:D,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:be,itemDisabledColor:Ne,dangerItemColor:S,dangerItemHoverColor:ke,dangerItemSelectedColor:We,dangerItemActiveBg:je,dangerItemSelectedBg:te,menuSubMenuBg:B,horizontalItemSelectedColor:_,horizontalItemSelectedBg:D});return[xe(bt),q(bt),le(bt),N(bt,"light"),N(_t,"dark"),k(bt),(0,Y.Z)(bt),(0,H.oN)(bt,"slide-up"),(0,H.oN)(bt,"slide-down"),(0,G._y)(bt,"zoom-big")]},Ie,{deprecatedTokens:[["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"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:W,unitless:{groupTitleLineHeight:!0}})(ze,ie)},$e=e(87263),ut=ze=>{var ie;const{popupClassName:W,icon:re,title:x,theme:oe}=ze,ve=t.useContext(E),{prefixCls:he,inlineCollapsed:w,theme:S}=ve,j=(0,r.Xl)();let B;if(!re)B=w&&!j.length&&x&&typeof x=="string"?t.createElement("div",{className:`${he}-inline-collapsed-noicon`},x.charAt(0)):t.createElement("span",{className:`${he}-title-content`},x);else{const te=t.isValidElement(x)&&x.type==="span";B=t.createElement(t.Fragment,null,(0,m.Tm)(re,{className:u()(t.isValidElement(re)?(ie=re.props)===null||ie===void 0?void 0:ie.className:"",`${he}-item-icon`)}),te?x:t.createElement("span",{className:`${he}-title-content`},x))}const _=t.useMemo(()=>Object.assign(Object.assign({},ve),{firstLevel:!1}),[ve]),[D]=(0,$e.Cn)("Menu");return t.createElement(E.Provider,{value:_},t.createElement(r.Wd,Object.assign({},(0,l.Z)(ze,["icon"]),{title:B,popupClassName:u()(he,W,`${he}-${oe||S}`),popupStyle:{zIndex:D}})))},Ue=function(ze,ie){var W={};for(var re in ze)Object.prototype.hasOwnProperty.call(ze,re)&&ie.indexOf(re)<0&&(W[re]=ze[re]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,re=Object.getOwnPropertySymbols(ze);x{var W;const re=t.useContext($.Z),x=re||{},{getPrefixCls:oe,getPopupContainer:ve,direction:he,menu:w}=t.useContext(b.E_),S=oe(),{prefixCls:j,className:B,style:_,theme:D="light",expandIcon:te,_internalDisableMenuItemTitleTooltip:be,inlineCollapsed:ge,siderCollapsed:ye,rootClassName:Ne,mode:ke,selectable:We,onClick:je,overflowedIndicatorPopupClassName:Ve}=ze,mt=Ue(ze,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Pt=(0,l.Z)(mt,["collapsedWidth"]);(W=x.validator)===null||W===void 0||W.call(x,{mode:ke});const bt=(0,c.zX)(function(){var Ln;je==null||je.apply(void 0,arguments),(Ln=x.onClick)===null||Ln===void 0||Ln.call(x)}),_t=x.mode||ke,Dt=We!=null?We:x.selectable,Rt=t.useMemo(()=>ye!==void 0?ye:ge,[ge,ye]),Ht={horizontal:{motionName:`${S}-slide-up`},inline:(0,d.Z)(S),other:{motionName:`${S}-zoom-big`}},$t=oe("menu",j||x.prefixCls),vn=(0,y.Z)($t),[mn,zn,Xt]=Pe($t,vn,!re),Vn=u()(`${$t}-${D}`,w==null?void 0:w.className,B),Un=t.useMemo(()=>{var Ln,kn;if(typeof te=="function"||Ye(te))return te||null;if(typeof x.expandIcon=="function"||Ye(x.expandIcon))return x.expandIcon||null;if(typeof(w==null?void 0:w.expandIcon)=="function"||Ye(w==null?void 0:w.expandIcon))return(w==null?void 0:w.expandIcon)||null;const Rn=(Ln=te!=null?te:x==null?void 0:x.expandIcon)!==null&&Ln!==void 0?Ln:w==null?void 0:w.expandIcon;return(0,m.Tm)(Rn,{className:u()(`${$t}-submenu-expand-icon`,t.isValidElement(Rn)?(kn=Rn.props)===null||kn===void 0?void 0:kn.className:void 0)})},[te,x==null?void 0:x.expandIcon,w==null?void 0:w.expandIcon,$t]),_n=t.useMemo(()=>({prefixCls:$t,inlineCollapsed:Rt||!1,direction:he,firstLevel:!0,theme:D,mode:_t,disableMenuItemTitleTooltip:be}),[$t,Rt,he,be,D]);return mn(t.createElement($.Z.Provider,{value:null},t.createElement(E.Provider,{value:_n},t.createElement(r.ZP,Object.assign({getPopupContainer:ve,overflowedIndicator:t.createElement(a.Z,null),overflowedIndicatorPopupClassName:u()($t,`${$t}-${D}`,Ve),mode:_t,selectable:Dt,onClick:bt},Pt,{inlineCollapsed:Rt,style:Object.assign(Object.assign({},w==null?void 0:w.style),_),className:Vn,prefixCls:$t,direction:he,defaultMotions:Ht,expandIcon:Un,ref:ie,rootClassName:u()(Ne,zn,x.rootClassName,Xt,vn),_internalComponents:Xe})))))});const Le=(0,t.forwardRef)((ze,ie)=>{const W=(0,t.useRef)(null),re=t.useContext(o.D);return(0,t.useImperativeHandle)(ie,()=>({menu:W.current,focus:x=>{var oe;(oe=W.current)===null||oe===void 0||oe.focus(x)}})),t.createElement(Je,Object.assign({ref:W},ze,re))});Le.Item=O,Le.SubMenu=ut,Le.Divider=C,Le.ItemGroup=r.BW;var qe=Le},66277:function(v,p,e){"use strict";e.d(p,{CW:function(){return R}});var t=e(67294),r=e(76278),o=e(17012),a=e(26702),s=e(1558),u=e(19267),c=e(93967),l=e.n(c),d=e(42999),m=e(53124),b=e(35792),y=e(34792),f=function(C,M){var P={};for(var A in C)Object.prototype.hasOwnProperty.call(C,A)&&M.indexOf(A)<0&&(P[A]=C[A]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,A=Object.getOwnPropertySymbols(C);O{let{prefixCls:M,type:P,icon:A,children:O}=C;return t.createElement("div",{className:l()(`${M}-custom-content`,`${M}-${P}`)},A||E[P],t.createElement("span",null,O))},T=C=>{const{prefixCls:M,className:P,type:A,icon:O,content:$}=C,Z=f(C,["prefixCls","className","type","icon","content"]),{getPrefixCls:Q}=t.useContext(m.E_),U=M||Q("message"),Y=(0,b.Z)(U),[H,G,J]=(0,y.Z)(U,Y);return H(t.createElement(d.qX,Object.assign({},Z,{prefixCls:U,className:l()(P,G,`${U}-notice-pure-panel`,J,Y),eventKey:"pure",duration:null,content:t.createElement(R,{prefixCls:U,type:A,icon:O},$)})))};p.ZP=T},45360:function(v,p,e){"use strict";var t=e(74902),r=e(67294),o=e(38135),a=e(66968),s=e(53124),u=e(28459),c=e(66277),l=e(16474),d=e(84926);let m=null,b=G=>G(),y=[],f={};function E(){const{getContainer:G,duration:J,rtl:X,maxCount:V,top:q}=f,z=(G==null?void 0:G())||document.body;return{getContainer:()=>z,duration:J,rtl:X,maxCount:V,top:q}}const R=r.forwardRef((G,J)=>{const{messageConfig:X,sync:V}=G,{getPrefixCls:q}=(0,r.useContext)(s.E_),z=f.prefixCls||q("message"),k=(0,r.useContext)(a.J),[L,F]=(0,l.K)(Object.assign(Object.assign(Object.assign({},X),{prefixCls:z}),k.message));return r.useImperativeHandle(J,()=>{const N=Object.assign({},L);return Object.keys(N).forEach(ee=>{N[ee]=function(){return V(),L[ee].apply(L,arguments)}}),{instance:N,sync:V}}),F}),T=r.forwardRef((G,J)=>{const[X,V]=r.useState(E),q=()=>{V(E)};r.useEffect(q,[]);const z=(0,u.w6)(),k=z.getRootPrefixCls(),L=z.getIconPrefixCls(),F=z.getTheme(),N=r.createElement(R,{ref:J,sync:q,messageConfig:X});return r.createElement(u.ZP,{prefixCls:k,iconPrefixCls:L,theme:F},z.holderRender?z.holderRender(N):N)});function C(){if(!m){const G=document.createDocumentFragment(),J={fragment:G};m=J,b(()=>{(0,o.s)(r.createElement(T,{ref:X=>{const{instance:V,sync:q}=X||{};Promise.resolve().then(()=>{!J.instance&&V&&(J.instance=V,J.sync=q,C())})}}),G)});return}m.instance&&(y.forEach(G=>{const{type:J,skipped:X}=G;if(!X)switch(J){case"open":{b(()=>{const V=m.instance.open(Object.assign(Object.assign({},f),G.config));V==null||V.then(G.resolve),G.setCloseFn(V)});break}case"destroy":b(()=>{m==null||m.instance.destroy(G.key)});break;default:b(()=>{var V;const q=(V=m.instance)[J].apply(V,(0,t.Z)(G.args));q==null||q.then(G.resolve),G.setCloseFn(q)})}}),y=[])}function M(G){f=Object.assign(Object.assign({},f),G),b(()=>{var J;(J=m==null?void 0:m.sync)===null||J===void 0||J.call(m)})}function P(G){const J=(0,d.J)(X=>{let V;const q={type:"open",config:G,resolve:X,setCloseFn:z=>{V=z}};return y.push(q),()=>{V?b(()=>{V()}):q.skipped=!0}});return C(),J}function A(G,J){const X=(0,u.w6)(),V=(0,d.J)(q=>{let z;const k={type:G,args:J,resolve:q,setCloseFn:L=>{z=L}};return y.push(k),()=>{z?b(()=>{z()}):k.skipped=!0}});return C(),V}const O=G=>{y.push({type:"destroy",key:G}),C()},$=["success","info","warning","error","loading"],Q={open:P,destroy:O,config:M,useMessage:l.Z,_InternalPanelDoNotUseOrYouWillBeFired:c.ZP};$.forEach(G=>{Q[G]=function(){for(var J=arguments.length,X=new Array(J),V=0;V{};let Y=null,H=null;p.ZP=Q},34792:function(v,p,e){"use strict";var t=e(85982),r=e(87263),o=e(14747),a=e(27036),s=e(45503);const u=l=>{const{componentCls:d,iconCls:m,boxShadow:b,colorText:y,colorSuccess:f,colorError:E,colorWarning:R,colorInfo:T,fontSizeLG:C,motionEaseInOutCirc:M,motionDurationSlow:P,marginXS:A,paddingXS:O,borderRadiusLG:$,zIndexPopup:Z,contentPadding:Q,contentBg:U}=l,Y=`${d}-notice`,H=new t.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:O,transform:"translateY(0)",opacity:1}}),G=new t.E4("MessageMoveOut",{"0%":{maxHeight:l.height,padding:O,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),J={padding:O,textAlign:"center",[`${d}-custom-content`]:{display:"flex",alignItems:"center"},[`${d}-custom-content > ${m}`]:{marginInlineEnd:A,fontSize:C},[`${Y}-content`]:{display:"inline-block",padding:Q,background:U,borderRadius:$,boxShadow:b,pointerEvents:"all"},[`${d}-success > ${m}`]:{color:f},[`${d}-error > ${m}`]:{color:E},[`${d}-warning > ${m}`]:{color:R},[`${d}-info > ${m}, - ${d}-loading > ${m}`]:{color:T}};return[{[d]:Object.assign(Object.assign({},(0,o.Wf)(l)),{color:y,position:"fixed",top:A,width:"100%",pointerEvents:"none",zIndex:Z,[`${d}-move-up`]:{animationFillMode:"forwards"},[` - ${d}-move-up-appear, - ${d}-move-up-enter - `]:{animationName:H,animationDuration:P,animationPlayState:"paused",animationTimingFunction:M},[` - ${d}-move-up-appear${d}-move-up-appear-active, - ${d}-move-up-enter${d}-move-up-enter-active - `]:{animationPlayState:"running"},[`${d}-move-up-leave`]:{animationName:G,animationDuration:P,animationPlayState:"paused",animationTimingFunction:M},[`${d}-move-up-leave${d}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[d]:{[`${Y}-wrapper`]:Object.assign({},J)}},{[`${d}-notice-pure-panel`]:Object.assign(Object.assign({},J),{padding:0,textAlign:"start"})}]},c=l=>({zIndexPopup:l.zIndexPopupBase+r.u6+10,contentBg:l.colorBgElevated,contentPadding:`${(l.controlHeightLG-l.fontSize*l.lineHeight)/2}px ${l.paddingSM}px`});p.Z=(0,a.I$)("Message",l=>{const d=(0,s.TS)(l,{height:150});return[u(d)]},c)},16474:function(v,p,e){"use strict";e.d(p,{K:function(){return P},Z:function(){return A}});var t=e(67294),r=e(84481),o=e(93967),a=e.n(o),s=e(42999),u=e(27288),c=e(53124),l=e(35792),d=e(66277),m=e(34792),b=e(84926),y=function(O,$){var Z={};for(var Q in O)Object.prototype.hasOwnProperty.call(O,Q)&&$.indexOf(Q)<0&&(Z[Q]=O[Q]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,Q=Object.getOwnPropertySymbols(O);U{let{children:$,prefixCls:Z}=O;const Q=(0,l.Z)(Z),[U,Y,H]=(0,m.Z)(Z,Q);return U(t.createElement(s.JB,{classNames:{list:a()(Y,H,Q)}},$))},T=(O,$)=>{let{prefixCls:Z,key:Q}=$;return t.createElement(R,{prefixCls:Z,key:Q},O)},C=t.forwardRef((O,$)=>{const{top:Z,prefixCls:Q,getContainer:U,maxCount:Y,duration:H=E,rtl:G,transitionName:J,onAllRemoved:X}=O,{getPrefixCls:V,getPopupContainer:q,message:z,direction:k}=t.useContext(c.E_),L=Q||V("message"),F=()=>({left:"50%",transform:"translateX(-50%)",top:Z!=null?Z:f}),N=()=>a()({[`${L}-rtl`]:G!=null?G:k==="rtl"}),ee=()=>(0,b.g)(L,J),ce=t.createElement("span",{className:`${L}-close-x`},t.createElement(r.Z,{className:`${L}-close-icon`})),[le,se]=(0,s.lm)({prefixCls:L,style:F,className:N,motion:ee,closable:!1,closeIcon:ce,duration:H,getContainer:()=>(U==null?void 0:U())||(q==null?void 0:q())||document.body,maxCount:Y,onAllRemoved:X,renderNotifications:T});return t.useImperativeHandle($,()=>Object.assign(Object.assign({},le),{prefixCls:L,message:z})),se});let M=0;function P(O){const $=t.useRef(null),Z=(0,u.ln)("Message");return[t.useMemo(()=>{const U=X=>{var V;(V=$.current)===null||V===void 0||V.close(X)},Y=X=>{if(!$.current){const Ie=()=>{};return Ie.then=()=>{},Ie}const{open:V,prefixCls:q,message:z}=$.current,k=`${q}-notice`,{content:L,icon:F,type:N,key:ee,className:ce,style:le,onClose:se}=X,fe=y(X,["content","icon","type","key","className","style","onClose"]);let xe=ee;return xe==null&&(M+=1,xe=`antd-message-${M}`),(0,b.J)(Ie=>(V(Object.assign(Object.assign({},fe),{key:xe,content:t.createElement(d.CW,{prefixCls:q,type:N,icon:F},L),placement:"top",className:a()(N&&`${k}-${N}`,ce,z==null?void 0:z.className),style:Object.assign(Object.assign({},z==null?void 0:z.style),le),onClose:()=>{se==null||se(),Ie()}})),()=>{U(xe)}))},G={open:Y,destroy:X=>{var V;X!==void 0?U(X):(V=$.current)===null||V===void 0||V.destroy()}};return["info","success","warning","error","loading"].forEach(X=>{const V=(q,z,k)=>{let L;q&&typeof q=="object"&&"content"in q?L=q:L={content:q};let F,N;typeof z=="function"?N=z:(F=z,N=k);const ee=Object.assign(Object.assign({onClose:N,duration:F},L),{type:X});return Y(ee)};G[X]=V}),G},[]),t.createElement(C,Object.assign({key:"message-holder"},O,{ref:$}))]}function A(O){return P(O)}},84926:function(v,p,e){"use strict";e.d(p,{J:function(){return r},g:function(){return t}});function t(o,a){return{motionName:a!=null?a:`${o}-move-up`}}function r(o){let a;const s=new Promise(c=>{a=o(()=>{c(!0)})}),u=()=>{a==null||a()};return u.then=(c,l)=>s.then(c,l),u.promise=s,u}},32409:function(v,p,e){"use strict";e.d(p,{O:function(){return G},Z:function(){return V}});var t=e(74902),r=e(67294),o=e(76278),a=e(17012),s=e(26702),u=e(1558),c=e(93967),l=e.n(c),d=e(87263),m=e(33603),b=e(28459),y=e(10110),f=e(29691),E=e(86743),R=e(23745),C=()=>{const{autoFocusButton:q,cancelButtonProps:z,cancelTextLocale:k,isSilent:L,mergedOkCancel:F,rootPrefixCls:N,close:ee,onCancel:ce,onConfirm:le}=(0,r.useContext)(R.t);return F?r.createElement(E.Z,{isSilent:L,actionFn:ce,close:function(){ee==null||ee.apply(void 0,arguments),le==null||le(!1)},autoFocus:q==="cancel",buttonProps:z,prefixCls:`${N}-btn`},k):null},P=()=>{const{autoFocusButton:q,close:z,isSilent:k,okButtonProps:L,rootPrefixCls:F,okTextLocale:N,okType:ee,onConfirm:ce,onOk:le}=(0,r.useContext)(R.t);return r.createElement(E.Z,{isSilent:k,type:ee||"primary",actionFn:le,close:function(){z==null||z.apply(void 0,arguments),ce==null||ce(!0)},autoFocus:q==="ok",buttonProps:L,prefixCls:`${F}-btn`},N)},A=e(56745),O=e(85982),$=e(71194),Z=e(14747),Q=e(27036);const U=q=>{const{componentCls:z,titleFontSize:k,titleLineHeight:L,modalConfirmIconSize:F,fontSize:N,lineHeight:ee,modalTitleHeight:ce,fontHeight:le,confirmBodyPadding:se}=q,fe=`${z}-confirm`;return{[fe]:{"&-rtl":{direction:"rtl"},[`${q.antCls}-modal-header`]:{display:"none"},[`${fe}-body-wrapper`]:Object.assign({},(0,Z.dF)()),[`&${z} ${z}-body`]:{padding:se},[`${fe}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${q.iconCls}`]:{flex:"none",fontSize:F,marginInlineEnd:q.confirmIconMarginInlineEnd,marginTop:q.calc(q.calc(le).sub(F).equal()).div(2).equal()},[`&-has-title > ${q.iconCls}`]:{marginTop:q.calc(q.calc(ce).sub(F).equal()).div(2).equal()}},[`${fe}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:q.marginXS},[`${q.iconCls} + ${fe}-paragraph`]:{maxWidth:`calc(100% - ${(0,O.bf)(q.calc(q.modalConfirmIconSize).add(q.marginSM).equal())})`},[`${fe}-title`]:{color:q.colorTextHeading,fontWeight:q.fontWeightStrong,fontSize:k,lineHeight:L},[`${fe}-content`]:{color:q.colorText,fontSize:N,lineHeight:ee},[`${fe}-btns`]:{textAlign:"end",marginTop:q.confirmBtnsMarginTop,[`${q.antCls}-btn + ${q.antCls}-btn`]:{marginBottom:0,marginInlineStart:q.marginXS}}},[`${fe}-error ${fe}-body > ${q.iconCls}`]:{color:q.colorError},[`${fe}-warning ${fe}-body > ${q.iconCls}, - ${fe}-confirm ${fe}-body > ${q.iconCls}`]:{color:q.colorWarning},[`${fe}-info ${fe}-body > ${q.iconCls}`]:{color:q.colorInfo},[`${fe}-success ${fe}-body > ${q.iconCls}`]:{color:q.colorSuccess}}};var Y=(0,Q.bk)(["Modal","confirm"],q=>{const z=(0,$.B4)(q);return[U(z)]},$.eh,{order:-1e3}),H=function(q,z){var k={};for(var L in q)Object.prototype.hasOwnProperty.call(q,L)&&z.indexOf(L)<0&&(k[L]=q[L]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,L=Object.getOwnPropertySymbols(q);FYe,(0,t.Z)(Object.values(Ye))),Fe=r.createElement(r.Fragment,null,r.createElement(C,null),r.createElement(P,null)),Je=q.title!==void 0&&q.title!==null,Le=`${N}-body`;return r.createElement("div",{className:`${N}-body-wrapper`},r.createElement("div",{className:l()(Le,{[`${Le}-has-title`]:Je})},xe,r.createElement("div",{className:`${N}-paragraph`},Je&&r.createElement("span",{className:`${N}-title`},q.title),r.createElement("div",{className:`${N}-content`},q.content))),le===void 0||typeof le=="function"?r.createElement(R.n,{value:Xe},r.createElement("div",{className:`${N}-btns`},typeof le=="function"?le(Fe,{OkBtn:P,CancelBtn:C}):Fe)):le,r.createElement(Y,{prefixCls:z}))}const J=q=>{const{close:z,zIndex:k,afterClose:L,open:F,keyboard:N,centered:ee,getContainer:ce,maskStyle:le,direction:se,prefixCls:fe,wrapClassName:xe,rootPrefixCls:Ie,bodyStyle:Pe,closable:$e=!1,closeIcon:at,modalRender:ut,focusTriggerAfterClose:Ue,onConfirm:Ye,styles:Xe}=q,Fe=`${fe}-confirm`,Je=q.width||416,Le=q.style||{},qe=q.mask===void 0?!0:q.mask,ze=q.maskClosable===void 0?!1:q.maskClosable,ie=l()(Fe,`${Fe}-${q.type}`,{[`${Fe}-rtl`]:se==="rtl"},q.className),[,W]=(0,f.ZP)(),re=r.useMemo(()=>k!==void 0?k:W.zIndexPopupBase+d.u6,[k,W]);return r.createElement(A.Z,{prefixCls:fe,className:ie,wrapClassName:l()({[`${Fe}-centered`]:!!q.centered},xe),onCancel:()=>{z==null||z({triggerCancel:!0}),Ye==null||Ye(!1)},open:F,title:"",footer:null,transitionName:(0,m.m)(Ie||"","zoom",q.transitionName),maskTransitionName:(0,m.m)(Ie||"","fade",q.maskTransitionName),mask:qe,maskClosable:ze,style:Le,styles:Object.assign({body:Pe,mask:le},Xe),width:Je,zIndex:re,afterClose:L,keyboard:N,centered:ee,getContainer:ce,closable:$e,closeIcon:at,modalRender:ut,focusTriggerAfterClose:Ue},r.createElement(G,Object.assign({},q,{confirmPrefixCls:Fe})))};var V=q=>{const{rootPrefixCls:z,iconPrefixCls:k,direction:L,theme:F}=q;return r.createElement(b.ZP,{prefixCls:z,iconPrefixCls:k,direction:L,theme:F},r.createElement(J,Object.assign({},q)))}},56745:function(v,p,e){"use strict";e.d(p,{Z:function(){return Z}});var t=e(67294),r=e(84481),o=e(93967),a=e.n(o),s=e(40974),u=e(89942),c=e(69760),l=e(87263),d=e(33603),m=e(98924);const b=()=>(0,m.Z)()&&window.document.documentElement;var y=e(43945),f=e(53124),E=e(35792),R=e(99559),T=e(16569),C=e(4941),M=e(71194),P=function(Q,U){var Y={};for(var H in Q)Object.prototype.hasOwnProperty.call(Q,H)&&U.indexOf(H)<0&&(Y[H]=Q[H]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,H=Object.getOwnPropertySymbols(Q);G{A={x:Q.pageX,y:Q.pageY},setTimeout(()=>{A=null},100)};b()&&document.documentElement.addEventListener("click",O,!0);var Z=Q=>{var U;const{getPopupContainer:Y,getPrefixCls:H,direction:G,modal:J}=t.useContext(f.E_),X=ve=>{const{onCancel:he}=Q;he==null||he(ve)},V=ve=>{const{onOk:he}=Q;he==null||he(ve)},{prefixCls:q,className:z,rootClassName:k,open:L,wrapClassName:F,centered:N,getContainer:ee,focusTriggerAfterClose:ce=!0,style:le,visible:se,width:fe=520,footer:xe,classNames:Ie,styles:Pe,children:$e,loading:at}=Q,ut=P(Q,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),Ue=H("modal",q),Ye=H(),Xe=(0,E.Z)(Ue),[Fe,Je,Le]=(0,M.ZP)(Ue,Xe),qe=a()(F,{[`${Ue}-centered`]:!!N,[`${Ue}-wrap-rtl`]:G==="rtl"}),ze=xe!==null&&!at?t.createElement(C.$,Object.assign({},Q,{onOk:V,onCancel:X})):null,[ie,W]=(0,c.Z)((0,c.w)(Q),(0,c.w)(J),{closable:!0,closeIcon:t.createElement(r.Z,{className:`${Ue}-close-icon`}),closeIconRender:ve=>(0,C.b)(Ue,ve)}),re=(0,T.H)(`.${Ue}-content`),[x,oe]=(0,l.Cn)("Modal",ut.zIndex);return Fe(t.createElement(u.Z,{form:!0,space:!0},t.createElement(y.Z.Provider,{value:oe},t.createElement(s.Z,Object.assign({width:fe},ut,{zIndex:x,getContainer:ee===void 0?Y:ee,prefixCls:Ue,rootClassName:a()(Je,k,Le,Xe),footer:ze,visible:L!=null?L:se,mousePosition:(U=ut.mousePosition)!==null&&U!==void 0?U:A,onClose:X,closable:ie,closeIcon:W,focusTriggerAfterClose:ce,transitionName:(0,d.m)(Ye,"zoom",Q.transitionName),maskTransitionName:(0,d.m)(Ye,"fade",Q.maskTransitionName),className:a()(Je,z,J==null?void 0:J.className),style:Object.assign(Object.assign({},J==null?void 0:J.style),le),classNames:Object.assign(Object.assign(Object.assign({},J==null?void 0:J.classNames),Ie),{wrapper:a()(qe,Ie==null?void 0:Ie.wrapper)}),styles:Object.assign(Object.assign({},J==null?void 0:J.styles),Pe),panelRef:re}),at?t.createElement(R.Z,{active:!0,title:!1,paragraph:{rows:4},className:`${Ue}-body-skeleton`}):$e))))}},56080:function(v,p,e){"use strict";e.d(p,{AQ:function(){return T},Au:function(){return C},ZP:function(){return y},ai:function(){return M},cw:function(){return E},uW:function(){return f},vq:function(){return R}});var t=e(74902),r=e(67294),o=e(38135),a=e(53124),s=e(28459),u=e(32409),c=e(38657),l=e(83008);let d="";function m(){return d}const b=P=>{var A,O;const{prefixCls:$,getContainer:Z,direction:Q}=P,U=(0,l.A)(),Y=(0,r.useContext)(a.E_),H=m()||Y.getPrefixCls(),G=$||`${H}-modal`;let J=Z;return J===!1&&(J=void 0),r.createElement(u.Z,Object.assign({},P,{rootPrefixCls:H,prefixCls:G,iconPrefixCls:Y.iconPrefixCls,theme:Y.theme,direction:Q!=null?Q:Y.direction,locale:(O=(A=Y.locale)===null||A===void 0?void 0:A.Modal)!==null&&O!==void 0?O:U,getContainer:J}))};function y(P){const A=(0,s.w6)(),O=document.createDocumentFragment();let $=Object.assign(Object.assign({},P),{close:Y,open:!0}),Z;function Q(){for(var G,J=arguments.length,X=new Array(J),V=0;Vk==null?void 0:k.triggerCancel)){var z;(G=P.onCancel)===null||G===void 0||(z=G).call.apply(z,[P,()=>{}].concat((0,t.Z)(X.slice(1))))}for(let k=0;k{const J=A.getPrefixCls(void 0,m()),X=A.getIconPrefixCls(),V=A.getTheme(),q=r.createElement(b,Object.assign({},G));(0,o.s)(r.createElement(s.ZP,{prefixCls:J,iconPrefixCls:X,theme:V},A.holderRender?A.holderRender(q):q),O)})}function Y(){for(var G=arguments.length,J=new Array(G),X=0;X{typeof P.afterClose=="function"&&P.afterClose(),Q.apply(this,J)}}),$.visible&&delete $.visible,U($)}function H(G){typeof G=="function"?$=G($):$=Object.assign(Object.assign({},$),G),U($)}return U($),c.Z.push(Y),{destroy:Y,update:H}}function f(P){return Object.assign(Object.assign({},P),{type:"warning"})}function E(P){return Object.assign(Object.assign({},P),{type:"info"})}function R(P){return Object.assign(Object.assign({},P),{type:"success"})}function T(P){return Object.assign(Object.assign({},P),{type:"error"})}function C(P){return Object.assign(Object.assign({},P),{type:"confirm"})}function M(P){let{rootPrefixCls:A}=P;d=A}},23745:function(v,p,e){"use strict";e.d(p,{n:function(){return o},t:function(){return r}});var t=e(67294);const r=t.createContext({}),{Provider:o}=r},38657:function(v,p){"use strict";const e=[];p.Z=e},83008:function(v,p,e){"use strict";e.d(p,{A:function(){return u},f:function(){return s}});var t=e(24457);let r=Object.assign({},t.Z.Modal),o=[];const a=()=>o.reduce((c,l)=>Object.assign(Object.assign({},c),l),t.Z.Modal);function s(c){if(c){const l=Object.assign({},c);return o.push(l),r=a(),()=>{o=o.filter(d=>d!==l),r=a()}}r=Object.assign({},t.Z.Modal)}function u(){return r}},4941:function(v,p,e){"use strict";e.d(p,{$:function(){return R},b:function(){return E}});var t=e(74902),r=e(67294),o=e(84481),a=e(98866),s=e(10110),u=e(14726),c=e(23745),d=()=>{const{cancelButtonProps:T,cancelTextLocale:C,onCancel:M}=(0,r.useContext)(c.t);return r.createElement(u.ZP,Object.assign({onClick:M},T),C)},m=e(33671),y=()=>{const{confirmLoading:T,okButtonProps:C,okType:M,okTextLocale:P,onOk:A}=(0,r.useContext)(c.t);return r.createElement(u.ZP,Object.assign({},(0,m.nx)(M),{loading:T,onClick:A},C),P)},f=e(83008);function E(T,C){return r.createElement("span",{className:`${T}-close-x`},C||r.createElement(o.Z,{className:`${T}-close-icon`}))}const R=T=>{const{okText:C,okType:M="primary",cancelText:P,confirmLoading:A,onOk:O,onCancel:$,okButtonProps:Z,cancelButtonProps:Q,footer:U}=T,[Y]=(0,s.Z)("Modal",(0,f.A)()),H=C||(Y==null?void 0:Y.okText),G=P||(Y==null?void 0:Y.cancelText),J={confirmLoading:A,okButtonProps:Z,cancelButtonProps:Q,okTextLocale:H,cancelTextLocale:G,okType:M,onOk:O,onCancel:$},X=r.useMemo(()=>J,(0,t.Z)(Object.values(J)));let V;return typeof U=="function"||typeof U=="undefined"?(V=r.createElement(r.Fragment,null,r.createElement(d,null),r.createElement(y,null)),typeof U=="function"&&(V=U(V,{OkBtn:y,CancelBtn:d})),V=r.createElement(c.n,{value:X},V)):V=U,r.createElement(a.n,{disabled:!1},V)}},71194:function(v,p,e){"use strict";e.d(p,{B4:function(){return b},QA:function(){return l},eh:function(){return y}});var t=e(85982),r=e(14747),o=e(16932),a=e(50438),s=e(45503),u=e(27036);function c(f){return{position:f,inset:0}}const l=f=>{const{componentCls:E,antCls:R}=f;return[{[`${E}-root`]:{[`${E}${R}-zoom-enter, ${E}${R}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:f.motionDurationSlow,userSelect:"none"},[`${E}${R}-zoom-leave ${E}-content`]:{pointerEvents:"none"},[`${E}-mask`]:Object.assign(Object.assign({},c("fixed")),{zIndex:f.zIndexPopupBase,height:"100%",backgroundColor:f.colorBgMask,pointerEvents:"none",[`${E}-hidden`]:{display:"none"}}),[`${E}-wrap`]:Object.assign(Object.assign({},c("fixed")),{zIndex:f.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${E}-root`]:(0,o.J$)(f)}]},d=f=>{const{componentCls:E}=f;return[{[`${E}-root`]:{[`${E}-wrap-rtl`]:{direction:"rtl"},[`${E}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[E]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${f.screenSMMax}px)`]:{[E]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,t.bf)(f.marginXS)} auto`},[`${E}-centered`]:{[E]:{flex:1}}}}},{[E]:Object.assign(Object.assign({},(0,r.Wf)(f)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,t.bf)(f.calc(f.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:f.paddingLG,[`${E}-title`]:{margin:0,color:f.titleColor,fontWeight:f.fontWeightStrong,fontSize:f.titleFontSize,lineHeight:f.titleLineHeight,wordWrap:"break-word"},[`${E}-content`]:{position:"relative",backgroundColor:f.contentBg,backgroundClip:"padding-box",border:0,borderRadius:f.borderRadiusLG,boxShadow:f.boxShadow,pointerEvents:"auto",padding:f.contentPadding},[`${E}-close`]:Object.assign({position:"absolute",top:f.calc(f.modalHeaderHeight).sub(f.modalCloseBtnSize).div(2).equal(),insetInlineEnd:f.calc(f.modalHeaderHeight).sub(f.modalCloseBtnSize).div(2).equal(),zIndex:f.calc(f.zIndexPopupBase).add(10).equal(),padding:0,color:f.modalCloseIconColor,fontWeight:f.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:f.borderRadiusSM,width:f.modalCloseBtnSize,height:f.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${f.motionDurationMid}, background-color ${f.motionDurationMid}`,"&-x":{display:"flex",fontSize:f.fontSizeLG,fontStyle:"normal",lineHeight:`${(0,t.bf)(f.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:f.modalCloseIconHoverColor,backgroundColor:f.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:f.colorBgTextActive}},(0,r.Qy)(f)),[`${E}-header`]:{color:f.colorText,background:f.headerBg,borderRadius:`${(0,t.bf)(f.borderRadiusLG)} ${(0,t.bf)(f.borderRadiusLG)} 0 0`,marginBottom:f.headerMarginBottom,padding:f.headerPadding,borderBottom:f.headerBorderBottom},[`${E}-body`]:{fontSize:f.fontSize,lineHeight:f.lineHeight,wordWrap:"break-word",padding:f.bodyPadding,[`${E}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${(0,t.bf)(f.margin)} auto`}},[`${E}-footer`]:{textAlign:"end",background:f.footerBg,marginTop:f.footerMarginTop,padding:f.footerPadding,borderTop:f.footerBorderTop,borderRadius:f.footerBorderRadius,[`> ${f.antCls}-btn + ${f.antCls}-btn`]:{marginInlineStart:f.marginXS}},[`${E}-open`]:{overflow:"hidden"}})},{[`${E}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${E}-content, - ${E}-body, - ${E}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${E}-confirm-body`]:{marginBottom:"auto"}}}]},m=f=>{const{componentCls:E}=f;return{[`${E}-root`]:{[`${E}-wrap-rtl`]:{direction:"rtl",[`${E}-confirm-body`]:{direction:"rtl"}}}}},b=f=>{const E=f.padding,R=f.fontSizeHeading5,T=f.lineHeightHeading5;return(0,s.TS)(f,{modalHeaderHeight:f.calc(f.calc(T).mul(R).equal()).add(f.calc(E).mul(2).equal()).equal(),modalFooterBorderColorSplit:f.colorSplit,modalFooterBorderStyle:f.lineType,modalFooterBorderWidth:f.lineWidth,modalCloseIconColor:f.colorIcon,modalCloseIconHoverColor:f.colorIconHover,modalCloseBtnSize:f.controlHeight,modalConfirmIconSize:f.fontHeight,modalTitleHeight:f.calc(f.titleFontSize).mul(f.titleLineHeight).equal()})},y=f=>({footerBg:"transparent",headerBg:f.colorBgElevated,titleLineHeight:f.lineHeightHeading5,titleFontSize:f.fontSizeHeading5,contentBg:f.colorBgElevated,titleColor:f.colorTextHeading,contentPadding:f.wireframe?0:`${(0,t.bf)(f.paddingMD)} ${(0,t.bf)(f.paddingContentHorizontalLG)}`,headerPadding:f.wireframe?`${(0,t.bf)(f.padding)} ${(0,t.bf)(f.paddingLG)}`:0,headerBorderBottom:f.wireframe?`${(0,t.bf)(f.lineWidth)} ${f.lineType} ${f.colorSplit}`:"none",headerMarginBottom:f.wireframe?0:f.marginXS,bodyPadding:f.wireframe?f.paddingLG:0,footerPadding:f.wireframe?`${(0,t.bf)(f.paddingXS)} ${(0,t.bf)(f.padding)}`:0,footerBorderTop:f.wireframe?`${(0,t.bf)(f.lineWidth)} ${f.lineType} ${f.colorSplit}`:"none",footerBorderRadius:f.wireframe?`0 0 ${(0,t.bf)(f.borderRadiusLG)} ${(0,t.bf)(f.borderRadiusLG)}`:0,footerMarginTop:f.wireframe?0:f.marginSM,confirmBodyPadding:f.wireframe?`${(0,t.bf)(f.padding*2)} ${(0,t.bf)(f.padding*2)} ${(0,t.bf)(f.paddingLG)}`:0,confirmIconMarginInlineEnd:f.wireframe?f.margin:f.marginSM,confirmBtnsMarginTop:f.wireframe?f.marginLG:f.marginSM});p.ZP=(0,u.I$)("Modal",f=>{const E=b(f);return[d(E),m(E),l(E),(0,a._y)(E,"zoom")]},y,{unitless:{titleLineHeight:!0}})},94423:function(v,p,e){"use strict";e.d(p,{Z:function(){return T}});var t=e(74902),r=e(67294);function o(){const[C,M]=r.useState([]),P=r.useCallback(A=>(M(O=>[].concat((0,t.Z)(O),[A])),()=>{M(O=>O.filter($=>$!==A))}),[]);return[C,P]}var a=e(56080),s=e(38657),u=e(53124),c=e(24457),l=e(10110),d=e(32409),m=function(C,M){var P={};for(var A in C)Object.prototype.hasOwnProperty.call(C,A)&&M.indexOf(A)<0&&(P[A]=C[A]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,A=Object.getOwnPropertySymbols(C);O{var P,{afterClose:A,config:O}=C,$=m(C,["afterClose","config"]);const[Z,Q]=r.useState(!0),[U,Y]=r.useState(O),{direction:H,getPrefixCls:G}=r.useContext(u.E_),J=G("modal"),X=G(),V=()=>{var L;A(),(L=U.afterClose)===null||L===void 0||L.call(U)},q=function(){var L;Q(!1);for(var F=arguments.length,N=new Array(F),ee=0;eese==null?void 0:se.triggerCancel)){var le;(L=U.onCancel)===null||L===void 0||(le=L).call.apply(le,[U,()=>{}].concat((0,t.Z)(N.slice(1))))}};r.useImperativeHandle(M,()=>({destroy:q,update:L=>{Y(F=>Object.assign(Object.assign({},F),L))}}));const z=(P=U.okCancel)!==null&&P!==void 0?P:U.type==="confirm",[k]=(0,l.Z)("Modal",c.Z.Modal);return r.createElement(d.Z,Object.assign({prefixCls:J,rootPrefixCls:X},U,{close:q,open:Z,afterClose:V,okText:U.okText||(z?k==null?void 0:k.okText:k==null?void 0:k.justOkText),direction:U.direction||H,cancelText:U.cancelText||(k==null?void 0:k.cancelText)},$))};var y=r.forwardRef(b);let f=0;const E=r.memo(r.forwardRef((C,M)=>{const[P,A]=o();return r.useImperativeHandle(M,()=>({patchElement:A}),[]),r.createElement(r.Fragment,null,P)}));function R(){const C=r.useRef(null),[M,P]=r.useState([]);r.useEffect(()=>{M.length&&((0,t.Z)(M).forEach(Z=>{Z()}),P([]))},[M]);const A=r.useCallback($=>function(Q){var U;f+=1;const Y=r.createRef();let H;const G=new Promise(z=>{H=z});let J=!1,X;const V=r.createElement(y,{key:`modal-${f}`,config:$(Q),ref:Y,afterClose:()=>{X==null||X()},isSilent:()=>J,onConfirm:z=>{H(z)}});return X=(U=C.current)===null||U===void 0?void 0:U.patchElement(V),X&&s.Z.push(X),{destroy:()=>{function z(){var k;(k=Y.current)===null||k===void 0||k.destroy()}Y.current?z():P(k=>[].concat((0,t.Z)(k),[z]))},update:z=>{function k(){var L;(L=Y.current)===null||L===void 0||L.update(z)}Y.current?k():P(L=>[].concat((0,t.Z)(L),[k]))},then:z=>(J=!0,G.then(z))}},[]);return[r.useMemo(()=>({info:A(a.cw),success:A(a.vq),error:A(a.AQ),warning:A(a.uW),confirm:A(a.Au)}),[]),r.createElement(E,{key:"modal-holder",ref:C})]}var T=R},66494:function(v,p,e){"use strict";e.d(p,{CW:function(){return O},ZP:function(){return Z},z5:function(){return P}});var t=e(67294),r=e(76278),o=e(17012),a=e(84481),s=e(26702),u=e(1558),c=e(19267),l=e(93967),d=e.n(l),m=e(42999),b=e(53124),y=e(35792),f=e(59135),E=e(85982),R=e(27036),T=(0,R.bk)(["Notification","PurePanel"],Q=>{const U=`${Q.componentCls}-notice`,Y=(0,f.Rp)(Q);return{[`${U}-pure-panel`]:Object.assign(Object.assign({},(0,f.$e)(Y)),{width:Y.width,maxWidth:`calc(100vw - ${(0,E.bf)(Q.calc(Y.notificationMarginEdge).mul(2).equal())})`,margin:0})}},f.eh),C=function(Q,U){var Y={};for(var H in Q)Object.prototype.hasOwnProperty.call(Q,H)&&U.indexOf(H)<0&&(Y[H]=Q[H]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,H=Object.getOwnPropertySymbols(Q);G{const{prefixCls:U,icon:Y,type:H,message:G,description:J,btn:X,role:V="alert"}=Q;let q=null;return Y?q=t.createElement("span",{className:`${U}-icon`},Y):H&&(q=t.createElement(A[H]||null,{className:d()(`${U}-icon`,`${U}-icon-${H}`)})),t.createElement("div",{className:d()({[`${U}-with-icon`]:q}),role:V},q,t.createElement("div",{className:`${U}-message`},G),t.createElement("div",{className:`${U}-description`},J),X&&t.createElement("div",{className:`${U}-btn`},X))};var Z=Q=>{const{prefixCls:U,className:Y,icon:H,type:G,message:J,description:X,btn:V,closable:q=!0,closeIcon:z,className:k}=Q,L=C(Q,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:F}=t.useContext(b.E_),N=U||F("notification"),ee=`${N}-notice`,ce=(0,y.Z)(N),[le,se,fe]=(0,f.ZP)(N,ce);return le(t.createElement("div",{className:d()(`${ee}-pure-panel`,se,Y,fe,ce)},t.createElement(T,{prefixCls:N}),t.createElement(m.qX,Object.assign({},L,{prefixCls:N,eventKey:"pure",duration:null,closable:q,className:d()({notificationClassName:k}),closeIcon:P(N,z),content:t.createElement(O,{prefixCls:ee,icon:H,type:G,message:J,description:X,btn:V})}))))}},26855:function(v,p,e){"use strict";var t=e(67294),r=e(38135),o=e(66968),a=e(53124),s=e(28459),u=e(66494),c=e(48311);let l=null,d=U=>U(),m=[],b={};function y(){const{getContainer:U,rtl:Y,maxCount:H,top:G,bottom:J,showProgress:X,pauseOnHover:V}=b,q=(U==null?void 0:U())||document.body;return{getContainer:()=>q,rtl:Y,maxCount:H,top:G,bottom:J,showProgress:X,pauseOnHover:V}}const f=t.forwardRef((U,Y)=>{const{notificationConfig:H,sync:G}=U,{getPrefixCls:J}=(0,t.useContext)(a.E_),X=b.prefixCls||J("notification"),V=(0,t.useContext)(o.J),[q,z]=(0,c.k)(Object.assign(Object.assign(Object.assign({},H),{prefixCls:X}),V.notification));return t.useEffect(G,[]),t.useImperativeHandle(Y,()=>{const k=Object.assign({},q);return Object.keys(k).forEach(L=>{k[L]=function(){return G(),q[L].apply(q,arguments)}}),{instance:k,sync:G}}),z}),E=t.forwardRef((U,Y)=>{const[H,G]=t.useState(y),J=()=>{G(y)};t.useEffect(J,[]);const X=(0,s.w6)(),V=X.getRootPrefixCls(),q=X.getIconPrefixCls(),z=X.getTheme(),k=t.createElement(f,{ref:Y,sync:J,notificationConfig:H});return t.createElement(s.ZP,{prefixCls:V,iconPrefixCls:q,theme:z},X.holderRender?X.holderRender(k):k)});function R(){if(!l){const U=document.createDocumentFragment(),Y={fragment:U};l=Y,d(()=>{(0,r.s)(t.createElement(E,{ref:H=>{const{instance:G,sync:J}=H||{};Promise.resolve().then(()=>{!Y.instance&&G&&(Y.instance=G,Y.sync=J,R())})}}),U)});return}l.instance&&(m.forEach(U=>{switch(U.type){case"open":{d(()=>{l.instance.open(Object.assign(Object.assign({},b),U.config))});break}case"destroy":d(()=>{l==null||l.instance.destroy(U.key)});break}}),m=[])}function T(U){b=Object.assign(Object.assign({},b),U),d(()=>{var Y;(Y=l==null?void 0:l.sync)===null||Y===void 0||Y.call(l)})}function C(U){const Y=(0,s.w6)();m.push({type:"open",config:U}),R()}const M=U=>{m.push({type:"destroy",key:U}),R()},P=["success","info","warning","error"],O={open:C,destroy:M,config:T,useNotification:c.Z,_InternalPanelDoNotUseOrYouWillBeFired:u.ZP};P.forEach(U=>{O[U]=Y=>C(Object.assign(Object.assign({},Y),{type:U}))});const $=()=>{};let Z=null,Q=null;p.ZP=O},59135:function(v,p,e){"use strict";e.d(p,{ZP:function(){return P},$e:function(){return R},eh:function(){return C},Rp:function(){return M}});var t=e(85982),r=e(87263),o=e(14747),a=e(45503),s=e(27036),c=A=>{const{componentCls:O,notificationMarginEdge:$,animationMaxHeight:Z}=A,Q=`${O}-notice`,U=new t.E4("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),Y=new t.E4("antNotificationTopFadeIn",{"0%":{top:-Z,opacity:0},"100%":{top:0,opacity:1}}),H=new t.E4("antNotificationBottomFadeIn",{"0%":{bottom:A.calc(Z).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),G=new t.E4("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[O]:{[`&${O}-top, &${O}-bottom`]:{marginInline:0,[Q]:{marginInline:"auto auto"}},[`&${O}-top`]:{[`${O}-fade-enter${O}-fade-enter-active, ${O}-fade-appear${O}-fade-appear-active`]:{animationName:Y}},[`&${O}-bottom`]:{[`${O}-fade-enter${O}-fade-enter-active, ${O}-fade-appear${O}-fade-appear-active`]:{animationName:H}},[`&${O}-topRight, &${O}-bottomRight`]:{[`${O}-fade-enter${O}-fade-enter-active, ${O}-fade-appear${O}-fade-appear-active`]:{animationName:U}},[`&${O}-topLeft, &${O}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:$,_skip_check_:!0},[Q]:{marginInlineEnd:"auto",marginInlineStart:0},[`${O}-fade-enter${O}-fade-enter-active, ${O}-fade-appear${O}-fade-appear-active`]:{animationName:G}}}}};const l=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],d={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},m=(A,O)=>{const{componentCls:$}=A;return{[`${$}-${O}`]:{[`&${$}-stack > ${$}-notice-wrapper`]:{[O.startsWith("top")?"top":"bottom"]:0,[d[O]]:{value:0,_skip_check_:!0}}}}},b=A=>{const O={};for(let $=1;$ ${A.componentCls}-notice`]:{opacity:0,transition:`opacity ${A.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${A.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},O)},y=A=>{const O={};for(let $=1;${const{componentCls:O}=A;return Object.assign({[`${O}-stack`]:{[`& > ${O}-notice-wrapper`]:Object.assign({transition:`all ${A.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},b(A))},[`${O}-stack:not(${O}-stack-expanded)`]:{[`& > ${O}-notice-wrapper`]:Object.assign({},y(A))},[`${O}-stack${O}-stack-expanded`]:{[`& > ${O}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${A.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:A.margin,width:"100%",insetInline:0,bottom:A.calc(A.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},l.map($=>m(A,$)).reduce(($,Z)=>Object.assign(Object.assign({},$),Z),{}))};const R=A=>{const{iconCls:O,componentCls:$,boxShadow:Z,fontSizeLG:Q,notificationMarginBottom:U,borderRadiusLG:Y,colorSuccess:H,colorInfo:G,colorWarning:J,colorError:X,colorTextHeading:V,notificationBg:q,notificationPadding:z,notificationMarginEdge:k,notificationProgressBg:L,notificationProgressHeight:F,fontSize:N,lineHeight:ee,width:ce,notificationIconSize:le,colorText:se}=A,fe=`${$}-notice`;return{position:"relative",marginBottom:U,marginInlineStart:"auto",background:q,borderRadius:Y,boxShadow:Z,[fe]:{padding:z,width:ce,maxWidth:`calc(100vw - ${(0,t.bf)(A.calc(k).mul(2).equal())})`,overflow:"hidden",lineHeight:ee,wordWrap:"break-word"},[`${fe}-message`]:{marginBottom:A.marginXS,color:V,fontSize:Q,lineHeight:A.lineHeightLG},[`${fe}-description`]:{fontSize:N,color:se},[`${fe}-closable ${fe}-message`]:{paddingInlineEnd:A.paddingLG},[`${fe}-with-icon ${fe}-message`]:{marginBottom:A.marginXS,marginInlineStart:A.calc(A.marginSM).add(le).equal(),fontSize:Q},[`${fe}-with-icon ${fe}-description`]:{marginInlineStart:A.calc(A.marginSM).add(le).equal(),fontSize:N},[`${fe}-icon`]:{position:"absolute",fontSize:le,lineHeight:1,[`&-success${O}`]:{color:H},[`&-info${O}`]:{color:G},[`&-warning${O}`]:{color:J},[`&-error${O}`]:{color:X}},[`${fe}-close`]:Object.assign({position:"absolute",top:A.notificationPaddingVertical,insetInlineEnd:A.notificationPaddingHorizontal,color:A.colorIcon,outline:"none",width:A.notificationCloseButtonSize,height:A.notificationCloseButtonSize,borderRadius:A.borderRadiusSM,transition:`background-color ${A.motionDurationMid}, color ${A.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:A.colorIconHover,backgroundColor:A.colorBgTextHover},"&:active":{backgroundColor:A.colorBgTextActive}},(0,o.Qy)(A)),[`${fe}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${(0,t.bf)(Y)} * 2)`,left:{_skip_check_:!0,value:Y},right:{_skip_check_:!0,value:Y},bottom:0,blockSize:F,border:0,"&, &::-webkit-progress-bar":{borderRadius:Y,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:L},"&::-webkit-progress-value":{borderRadius:Y,background:L}},[`${fe}-btn`]:{float:"right",marginTop:A.marginSM}}},T=A=>{const{componentCls:O,notificationMarginBottom:$,notificationMarginEdge:Z,motionDurationMid:Q,motionEaseInOut:U}=A,Y=`${O}-notice`,H=new t.E4("antNotificationFadeOut",{"0%":{maxHeight:A.animationMaxHeight,marginBottom:$},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[O]:Object.assign(Object.assign({},(0,o.Wf)(A)),{position:"fixed",zIndex:A.zIndexPopup,marginRight:{value:Z,_skip_check_:!0},[`${O}-hook-holder`]:{position:"relative"},[`${O}-fade-appear-prepare`]:{opacity:"0 !important"},[`${O}-fade-enter, ${O}-fade-appear`]:{animationDuration:A.motionDurationMid,animationTimingFunction:U,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${O}-fade-leave`]:{animationTimingFunction:U,animationFillMode:"both",animationDuration:Q,animationPlayState:"paused"},[`${O}-fade-enter${O}-fade-enter-active, ${O}-fade-appear${O}-fade-appear-active`]:{animationPlayState:"running"},[`${O}-fade-leave${O}-fade-leave-active`]:{animationName:H,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${Y}-btn`]:{float:"left"}}})},{[O]:{[`${Y}-wrapper`]:Object.assign({},R(A))}}]},C=A=>({zIndexPopup:A.zIndexPopupBase+r.u6+50,width:384}),M=A=>{const O=A.paddingMD,$=A.paddingLG;return(0,a.TS)(A,{notificationBg:A.colorBgElevated,notificationPaddingVertical:O,notificationPaddingHorizontal:$,notificationIconSize:A.calc(A.fontSizeLG).mul(A.lineHeightLG).equal(),notificationCloseButtonSize:A.calc(A.controlHeightLG).mul(.55).equal(),notificationMarginBottom:A.margin,notificationPadding:`${(0,t.bf)(A.paddingMD)} ${(0,t.bf)(A.paddingContentHorizontalLG)}`,notificationMarginEdge:A.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${A.colorPrimaryBorderHover}, ${A.colorPrimary})`})};var P=(0,s.I$)("Notification",A=>{const O=M(A);return[T(O),c(O),E(O)]},C)},48311:function(v,p,e){"use strict";e.d(p,{Z:function(){return O},k:function(){return A}});var t=e(67294),r=e(93967),o=e.n(r),a=e(42999),s=e(27288),u=e(53124),c=e(35792),l=e(29691),d=e(66494),m=e(59135);function b($,Z,Q){let U;switch($){case"top":U={left:"50%",transform:"translateX(-50%)",right:"auto",top:Z,bottom:"auto"};break;case"topLeft":U={left:0,top:Z,bottom:"auto"};break;case"topRight":U={right:0,top:Z,bottom:"auto"};break;case"bottom":U={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:Q};break;case"bottomLeft":U={left:0,top:"auto",bottom:Q};break;default:U={right:0,top:"auto",bottom:Q};break}return U}function y($){return{motionName:`${$}-fade`}}var f=function($,Z){var Q={};for(var U in $)Object.prototype.hasOwnProperty.call($,U)&&Z.indexOf(U)<0&&(Q[U]=$[U]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,U=Object.getOwnPropertySymbols($);Y{let{children:Z,prefixCls:Q}=$;const U=(0,c.Z)(Q),[Y,H,G]=(0,m.ZP)(Q,U);return Y(t.createElement(a.JB,{classNames:{list:o()(H,G,U)}},Z))},M=($,Z)=>{let{prefixCls:Q,key:U}=Z;return t.createElement(C,{prefixCls:Q,key:U},$)},P=t.forwardRef(($,Z)=>{const{top:Q,bottom:U,prefixCls:Y,getContainer:H,maxCount:G,rtl:J,onAllRemoved:X,stack:V,duration:q,pauseOnHover:z=!0,showProgress:k}=$,{getPrefixCls:L,getPopupContainer:F,notification:N,direction:ee}=(0,t.useContext)(u.E_),[,ce]=(0,l.ZP)(),le=Y||L("notification"),se=$e=>b($e,Q!=null?Q:E,U!=null?U:E),fe=()=>o()({[`${le}-rtl`]:J!=null?J:ee==="rtl"}),xe=()=>y(le),[Ie,Pe]=(0,a.lm)({prefixCls:le,style:se,className:fe,motion:xe,closable:!0,closeIcon:(0,d.z5)(le),duration:q!=null?q:R,getContainer:()=>(H==null?void 0:H())||(F==null?void 0:F())||document.body,maxCount:G,pauseOnHover:z,showProgress:k,onAllRemoved:X,renderNotifications:M,stack:V===!1?!1:{threshold:typeof V=="object"?V==null?void 0:V.threshold:void 0,offset:8,gap:ce.margin}});return t.useImperativeHandle(Z,()=>Object.assign(Object.assign({},Ie),{prefixCls:le,notification:N})),Pe});function A($){const Z=t.useRef(null),Q=(0,s.ln)("Notification");return[t.useMemo(()=>{const Y=X=>{var V;if(!Z.current)return;const{open:q,prefixCls:z,notification:k}=Z.current,L=`${z}-notice`,{message:F,description:N,icon:ee,type:ce,btn:le,className:se,style:fe,role:xe="alert",closeIcon:Ie,closable:Pe}=X,$e=f(X,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),at=(0,d.z5)(L,typeof Ie!="undefined"?Ie:k==null?void 0:k.closeIcon);return q(Object.assign(Object.assign({placement:(V=$==null?void 0:$.placement)!==null&&V!==void 0?V:T},$e),{content:t.createElement(d.CW,{prefixCls:L,icon:ee,type:ce,message:F,description:N,btn:le,role:xe}),className:o()(ce&&`${L}-${ce}`,se,k==null?void 0:k.className),style:Object.assign(Object.assign({},k==null?void 0:k.style),fe),closeIcon:at,closable:Pe!=null?Pe:!!at}))},G={open:Y,destroy:X=>{var V,q;X!==void 0?(V=Z.current)===null||V===void 0||V.close(X):(q=Z.current)===null||q===void 0||q.destroy()}};return["success","info","warning","error"].forEach(X=>{G[X]=V=>Y(Object.assign(Object.assign({},V),{type:X}))}),G},[]),t.createElement(P,Object.assign({key:"notification-holder"},$,{ref:Z}))]}function O($){return A($)}},99559:function(v,p,e){"use strict";e.d(p,{Z:function(){return ze}});var t=e(67294),r=e(93967),o=e.n(r),a=e(53124),s=e(98423),c=ie=>{const{prefixCls:W,className:re,style:x,size:oe,shape:ve}=ie,he=o()({[`${W}-lg`]:oe==="large",[`${W}-sm`]:oe==="small"}),w=o()({[`${W}-circle`]:ve==="circle",[`${W}-square`]:ve==="square",[`${W}-round`]:ve==="round"}),S=t.useMemo(()=>typeof oe=="number"?{width:oe,height:oe,lineHeight:`${oe}px`}:{},[oe]);return t.createElement("span",{className:o()(W,he,w,re),style:Object.assign(Object.assign({},S),x)})},l=e(85982),d=e(27036),m=e(45503);const b=new l.E4("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),y=ie=>({height:ie,lineHeight:(0,l.bf)(ie)}),f=ie=>Object.assign({width:ie},y(ie)),E=ie=>({background:ie.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:b,animationDuration:ie.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),R=(ie,W)=>Object.assign({width:W(ie).mul(5).equal(),minWidth:W(ie).mul(5).equal()},y(ie)),T=ie=>{const{skeletonAvatarCls:W,gradientFromColor:re,controlHeight:x,controlHeightLG:oe,controlHeightSM:ve}=ie;return{[`${W}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:re},f(x)),[`${W}${W}-circle`]:{borderRadius:"50%"},[`${W}${W}-lg`]:Object.assign({},f(oe)),[`${W}${W}-sm`]:Object.assign({},f(ve))}},C=ie=>{const{controlHeight:W,borderRadiusSM:re,skeletonInputCls:x,controlHeightLG:oe,controlHeightSM:ve,gradientFromColor:he,calc:w}=ie;return{[`${x}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:he,borderRadius:re},R(W,w)),[`${x}-lg`]:Object.assign({},R(oe,w)),[`${x}-sm`]:Object.assign({},R(ve,w))}},M=ie=>Object.assign({width:ie},y(ie)),P=ie=>{const{skeletonImageCls:W,imageSizeBase:re,gradientFromColor:x,borderRadiusSM:oe,calc:ve}=ie;return{[`${W}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:x,borderRadius:oe},M(ve(re).mul(2).equal())),{[`${W}-path`]:{fill:"#bfbfbf"},[`${W}-svg`]:Object.assign(Object.assign({},M(re)),{maxWidth:ve(re).mul(4).equal(),maxHeight:ve(re).mul(4).equal()}),[`${W}-svg${W}-svg-circle`]:{borderRadius:"50%"}}),[`${W}${W}-circle`]:{borderRadius:"50%"}}},A=(ie,W,re)=>{const{skeletonButtonCls:x}=ie;return{[`${re}${x}-circle`]:{width:W,minWidth:W,borderRadius:"50%"},[`${re}${x}-round`]:{borderRadius:W}}},O=(ie,W)=>Object.assign({width:W(ie).mul(2).equal(),minWidth:W(ie).mul(2).equal()},y(ie)),$=ie=>{const{borderRadiusSM:W,skeletonButtonCls:re,controlHeight:x,controlHeightLG:oe,controlHeightSM:ve,gradientFromColor:he,calc:w}=ie;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${re}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:he,borderRadius:W,width:w(x).mul(2).equal(),minWidth:w(x).mul(2).equal()},O(x,w))},A(ie,x,re)),{[`${re}-lg`]:Object.assign({},O(oe,w))}),A(ie,oe,`${re}-lg`)),{[`${re}-sm`]:Object.assign({},O(ve,w))}),A(ie,ve,`${re}-sm`))},Z=ie=>{const{componentCls:W,skeletonAvatarCls:re,skeletonTitleCls:x,skeletonParagraphCls:oe,skeletonButtonCls:ve,skeletonInputCls:he,skeletonImageCls:w,controlHeight:S,controlHeightLG:j,controlHeightSM:B,gradientFromColor:_,padding:D,marginSM:te,borderRadius:be,titleHeight:ge,blockRadius:ye,paragraphLiHeight:Ne,controlHeightXS:ke,paragraphMarginTop:We}=ie;return{[`${W}`]:{display:"table",width:"100%",[`${W}-header`]:{display:"table-cell",paddingInlineEnd:D,verticalAlign:"top",[`${re}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:_},f(S)),[`${re}-circle`]:{borderRadius:"50%"},[`${re}-lg`]:Object.assign({},f(j)),[`${re}-sm`]:Object.assign({},f(B))},[`${W}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${x}`]:{width:"100%",height:ge,background:_,borderRadius:ye,[`+ ${oe}`]:{marginBlockStart:B}},[`${oe}`]:{padding:0,"> li":{width:"100%",height:Ne,listStyle:"none",background:_,borderRadius:ye,"+ li":{marginBlockStart:ke}}},[`${oe}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${W}-content`]:{[`${x}, ${oe} > li`]:{borderRadius:be}}},[`${W}-with-avatar ${W}-content`]:{[`${x}`]:{marginBlockStart:te,[`+ ${oe}`]:{marginBlockStart:We}}},[`${W}${W}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},$(ie)),T(ie)),C(ie)),P(ie)),[`${W}${W}-block`]:{width:"100%",[`${ve}`]:{width:"100%"},[`${he}`]:{width:"100%"}},[`${W}${W}-active`]:{[` - ${x}, - ${oe} > li, - ${re}, - ${ve}, - ${he}, - ${w} - `]:Object.assign({},E(ie))}}},Q=ie=>{const{colorFillContent:W,colorFill:re}=ie,x=W,oe=re;return{color:x,colorGradientEnd:oe,gradientFromColor:x,gradientToColor:oe,titleHeight:ie.controlHeight/2,blockRadius:ie.borderRadiusSM,paragraphMarginTop:ie.marginLG+ie.marginXXS,paragraphLiHeight:ie.controlHeight/2}};var U=(0,d.I$)("Skeleton",ie=>{const{componentCls:W,calc:re}=ie,x=(0,m.TS)(ie,{skeletonAvatarCls:`${W}-avatar`,skeletonTitleCls:`${W}-title`,skeletonParagraphCls:`${W}-paragraph`,skeletonButtonCls:`${W}-button`,skeletonInputCls:`${W}-input`,skeletonImageCls:`${W}-image`,imageSizeBase:re(ie.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${ie.gradientFromColor} 25%, ${ie.gradientToColor} 37%, ${ie.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Z(x)]},Q,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),H=ie=>{const{prefixCls:W,className:re,rootClassName:x,active:oe,shape:ve="circle",size:he="default"}=ie,{getPrefixCls:w}=t.useContext(a.E_),S=w("skeleton",W),[j,B,_]=U(S),D=(0,s.Z)(ie,["prefixCls","className"]),te=o()(S,`${S}-element`,{[`${S}-active`]:oe},re,x,B,_);return j(t.createElement("div",{className:te},t.createElement(c,Object.assign({prefixCls:`${S}-avatar`,shape:ve,size:he},D))))},J=ie=>{const{prefixCls:W,className:re,rootClassName:x,active:oe,block:ve=!1,size:he="default"}=ie,{getPrefixCls:w}=t.useContext(a.E_),S=w("skeleton",W),[j,B,_]=U(S),D=(0,s.Z)(ie,["prefixCls"]),te=o()(S,`${S}-element`,{[`${S}-active`]:oe,[`${S}-block`]:ve},re,x,B,_);return j(t.createElement("div",{className:te},t.createElement(c,Object.assign({prefixCls:`${S}-button`,size:he},D))))};const X="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var q=ie=>{const{prefixCls:W,className:re,rootClassName:x,style:oe,active:ve}=ie,{getPrefixCls:he}=t.useContext(a.E_),w=he("skeleton",W),[S,j,B]=U(w),_=o()(w,`${w}-element`,{[`${w}-active`]:ve},re,x,j,B);return S(t.createElement("div",{className:_},t.createElement("div",{className:o()(`${w}-image`,re),style:oe},t.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${w}-image-svg`},t.createElement("title",null,"Image placeholder"),t.createElement("path",{d:X,className:`${w}-image-path`})))))},k=ie=>{const{prefixCls:W,className:re,rootClassName:x,active:oe,block:ve,size:he="default"}=ie,{getPrefixCls:w}=t.useContext(a.E_),S=w("skeleton",W),[j,B,_]=U(S),D=(0,s.Z)(ie,["prefixCls"]),te=o()(S,`${S}-element`,{[`${S}-active`]:oe,[`${S}-block`]:ve},re,x,B,_);return j(t.createElement("div",{className:te},t.createElement(c,Object.assign({prefixCls:`${S}-input`,size:he},D))))},L=e(87462),F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},N=F,ee=e(93771),ce=function(W,re){return t.createElement(ee.Z,(0,L.Z)({},W,{ref:re,icon:N}))},le=t.forwardRef(ce),se=le,xe=ie=>{const{prefixCls:W,className:re,rootClassName:x,style:oe,active:ve,children:he}=ie,{getPrefixCls:w}=t.useContext(a.E_),S=w("skeleton",W),[j,B,_]=U(S),D=o()(S,`${S}-element`,{[`${S}-active`]:ve},B,re,x,_),te=he!=null?he:t.createElement(se,null);return j(t.createElement("div",{className:D},t.createElement("div",{className:o()(`${S}-image`,re),style:oe},te)))},Ie=e(74902);const Pe=(ie,W)=>{const{width:re,rows:x=2}=W;if(Array.isArray(re))return re[ie];if(x-1===ie)return re};var at=ie=>{const{prefixCls:W,className:re,style:x,rows:oe}=ie,ve=(0,Ie.Z)(Array(oe)).map((he,w)=>t.createElement("li",{key:w,style:{width:Pe(w,ie)}}));return t.createElement("ul",{className:o()(W,re),style:x},ve)},Ue=ie=>{let{prefixCls:W,className:re,width:x,style:oe}=ie;return t.createElement("h3",{className:o()(W,re),style:Object.assign({width:x},oe)})};function Ye(ie){return ie&&typeof ie=="object"?ie:{}}function Xe(ie,W){return ie&&!W?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Fe(ie,W){return!ie&&W?{width:"38%"}:ie&&W?{width:"50%"}:{}}function Je(ie,W){const re={};return(!ie||!W)&&(re.width="61%"),!ie&&W?re.rows=3:re.rows=2,re}const Le=ie=>{const{prefixCls:W,loading:re,className:x,rootClassName:oe,style:ve,children:he,avatar:w=!1,title:S=!0,paragraph:j=!0,active:B,round:_}=ie,{getPrefixCls:D,direction:te,skeleton:be}=t.useContext(a.E_),ge=D("skeleton",W),[ye,Ne,ke]=U(ge);if(re||!("loading"in ie)){const We=!!w,je=!!S,Ve=!!j;let mt;if(We){const _t=Object.assign(Object.assign({prefixCls:`${ge}-avatar`},Xe(je,Ve)),Ye(w));mt=t.createElement("div",{className:`${ge}-header`},t.createElement(c,Object.assign({},_t)))}let Pt;if(je||Ve){let _t;if(je){const Rt=Object.assign(Object.assign({prefixCls:`${ge}-title`},Fe(We,Ve)),Ye(S));_t=t.createElement(Ue,Object.assign({},Rt))}let Dt;if(Ve){const Rt=Object.assign(Object.assign({prefixCls:`${ge}-paragraph`},Je(We,je)),Ye(j));Dt=t.createElement(at,Object.assign({},Rt))}Pt=t.createElement("div",{className:`${ge}-content`},_t,Dt)}const bt=o()(ge,{[`${ge}-with-avatar`]:We,[`${ge}-active`]:B,[`${ge}-rtl`]:te==="rtl",[`${ge}-round`]:_},be==null?void 0:be.className,x,oe,Ne,ke);return ye(t.createElement("div",{className:bt,style:Object.assign(Object.assign({},be==null?void 0:be.style),ve)},mt,Pt))}return he!=null?he:null};Le.Button=J,Le.Avatar=H,Le.Input=k,Le.Image=q,Le.Node=xe;var qe=Le,ze=qe},4173:function(v,p,e){"use strict";e.d(p,{BR:function(){return b},ri:function(){return m}});var t=e(67294),r=e(93967),o=e.n(r),a=e(50344),s=e(53124),u=e(98675),c=e(51916),l=function(E,R){var T={};for(var C in E)Object.prototype.hasOwnProperty.call(E,C)&&R.indexOf(C)<0&&(T[C]=E[C]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,C=Object.getOwnPropertySymbols(E);M{const T=t.useContext(d),C=t.useMemo(()=>{if(!T)return"";const{compactDirection:M,isFirstItem:P,isLastItem:A}=T,O=M==="vertical"?"-vertical-":"-";return o()(`${E}-compact${O}item`,{[`${E}-compact${O}first-item`]:P,[`${E}-compact${O}last-item`]:A,[`${E}-compact${O}item-rtl`]:R==="rtl"})},[E,R,T]);return{compactSize:T==null?void 0:T.compactSize,compactDirection:T==null?void 0:T.compactDirection,compactItemClassnames:C}},b=E=>{let{children:R}=E;return t.createElement(d.Provider,{value:null},R)},y=E=>{var{children:R}=E,T=l(E,["children"]);return t.createElement(d.Provider,{value:T},R)},f=E=>{const{getPrefixCls:R,direction:T}=t.useContext(s.E_),{size:C,direction:M,block:P,prefixCls:A,className:O,rootClassName:$,children:Z}=E,Q=l(E,["size","direction","block","prefixCls","className","rootClassName","children"]),U=(0,u.Z)(z=>C!=null?C:z),Y=R("space-compact",A),[H,G]=(0,c.Z)(Y),J=o()(Y,G,{[`${Y}-rtl`]:T==="rtl",[`${Y}-block`]:P,[`${Y}-vertical`]:M==="vertical"},O,$),X=t.useContext(d),V=(0,a.Z)(Z),q=t.useMemo(()=>V.map((z,k)=>{const L=(z==null?void 0:z.key)||`${Y}-item-${k}`;return t.createElement(y,{key:L,compactSize:U,compactDirection:M,isFirstItem:k===0&&(!X||(X==null?void 0:X.isFirstItem)),isLastItem:k===V.length-1&&(!X||(X==null?void 0:X.isLastItem))},z)}),[C,V,X]);return V.length===0?null:H(t.createElement("div",Object.assign({className:J},Q),q))};p.ZP=f},42075:function(v,p,e){"use strict";e.d(p,{Z:function(){return T}});var t=e(67294),r=e(93967),o=e.n(r),a=e(50344),s=e(98065),u=e(53124),c=e(4173);const l=t.createContext({latestIndex:0}),d=l.Provider;var b=C=>{let{className:M,index:P,children:A,split:O,style:$}=C;const{latestIndex:Z}=t.useContext(l);return A==null?null:t.createElement(t.Fragment,null,t.createElement("div",{className:M,style:$},A),P{var P,A,O;const{getPrefixCls:$,space:Z,direction:Q}=t.useContext(u.E_),{size:U=(P=Z==null?void 0:Z.size)!==null&&P!==void 0?P:"small",align:Y,className:H,rootClassName:G,children:J,direction:X="horizontal",prefixCls:V,split:q,style:z,wrap:k=!1,classNames:L,styles:F}=C,N=f(C,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ee,ce]=Array.isArray(U)?U:[U,U],le=(0,s.n)(ce),se=(0,s.n)(ee),fe=(0,s.T)(ce),xe=(0,s.T)(ee),Ie=(0,a.Z)(J,{keepEmpty:!0}),Pe=Y===void 0&&X==="horizontal"?"center":Y,$e=$("space",V),[at,ut,Ue]=(0,y.Z)($e),Ye=o()($e,Z==null?void 0:Z.className,ut,`${$e}-${X}`,{[`${$e}-rtl`]:Q==="rtl",[`${$e}-align-${Pe}`]:Pe,[`${$e}-gap-row-${ce}`]:le,[`${$e}-gap-col-${ee}`]:se},H,G,Ue),Xe=o()(`${$e}-item`,(A=L==null?void 0:L.item)!==null&&A!==void 0?A:(O=Z==null?void 0:Z.classNames)===null||O===void 0?void 0:O.item);let Fe=0;const Je=Ie.map((ze,ie)=>{var W,re;ze!=null&&(Fe=ie);const x=(ze==null?void 0:ze.key)||`${Xe}-${ie}`;return t.createElement(b,{className:Xe,key:x,index:ie,split:q,style:(W=F==null?void 0:F.item)!==null&&W!==void 0?W:(re=Z==null?void 0:Z.styles)===null||re===void 0?void 0:re.item},ze)}),Le=t.useMemo(()=>({latestIndex:Fe}),[Fe]);if(Ie.length===0)return null;const qe={};return k&&(qe.flexWrap="wrap"),!se&&xe&&(qe.columnGap=ee),!le&&fe&&(qe.rowGap=ce),at(t.createElement("div",Object.assign({ref:M,className:Ye,style:Object.assign(Object.assign(Object.assign({},qe),Z==null?void 0:Z.style),z)},N),t.createElement(d,{value:Le},Je)))});R.Compact=c.ZP;var T=R},51916:function(v,p,e){"use strict";e.d(p,{Z:function(){return l}});var t=e(27036),r=e(45503),a=d=>{const{componentCls:m}=d;return{[m]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const s=d=>{const{componentCls:m,antCls:b}=d;return{[m]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${m}-item:empty`]:{display:"none"},[`${m}-item > ${b}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},u=d=>{const{componentCls:m}=d;return{[m]:{"&-gap-row-small":{rowGap:d.spaceGapSmallSize},"&-gap-row-middle":{rowGap:d.spaceGapMiddleSize},"&-gap-row-large":{rowGap:d.spaceGapLargeSize},"&-gap-col-small":{columnGap:d.spaceGapSmallSize},"&-gap-col-middle":{columnGap:d.spaceGapMiddleSize},"&-gap-col-large":{columnGap:d.spaceGapLargeSize}}}},c=()=>({});var l=(0,t.I$)("Space",d=>{const m=(0,r.TS)(d,{spaceGapSmallSize:d.paddingXS,spaceGapMiddleSize:d.padding,spaceGapLargeSize:d.paddingLG});return[s(m),u(m),a(m)]},()=>({}),{resetStyle:!1})},74330:function(v,p,e){"use strict";e.d(p,{Z:function(){return J}});var t=e(67294),r=e(93967),o=e.n(r);function a(X,V,q){var z=q||{},k=z.noTrailing,L=k===void 0?!1:k,F=z.noLeading,N=F===void 0?!1:F,ee=z.debounceMode,ce=ee===void 0?void 0:ee,le,se=!1,fe=0;function xe(){le&&clearTimeout(le)}function Ie($e){var at=$e||{},ut=at.upcomingOnly,Ue=ut===void 0?!1:ut;xe(),se=!Ue}function Pe(){for(var $e=arguments.length,at=new Array($e),ut=0;ut<$e;ut++)at[ut]=arguments[ut];var Ue=this,Ye=Date.now()-fe;if(se)return;function Xe(){fe=Date.now(),V.apply(Ue,at)}function Fe(){le=void 0}!N&&ce&&!le&&Xe(),xe(),ce===void 0&&Ye>X?N?(fe=Date.now(),L||(le=setTimeout(ce?Fe:Xe,X))):Xe():L!==!0&&(le=setTimeout(ce?Fe:Xe,ce===void 0?X-Ye:X))}return Pe.cancel=Ie,Pe}function s(X,V,q){var z=q||{},k=z.atBegin,L=k===void 0?!1:k;return a(X,V,{debounceMode:L!==!1})}var u=e(53124),c=e(96159),l=e(8410);function d(X){let{percent:V,prefixCls:q}=X;const z=`${q}-dot`,k=`${z}-holder`,L=`${k}-hidden`,[F,N]=t.useState(!1);(0,l.Z)(()=>{V!==0&&N(!0)},[V!==0]);const ee=Math.max(Math.min(V,100),0),ce=100,le=ce/5,se=ce/2-le/2,fe=se*2*Math.PI,xe=(Ie,Pe)=>t.createElement("circle",{className:o()(Ie,`${z}-circle`),r:se,cx:"50",cy:"50",strokeWidth:le,style:Pe});return F?t.createElement("span",{className:o()(k,`${z}-progress`,ee<=0&&L)},t.createElement("svg",{viewBox:`0 0 ${ce} ${ce}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":ee},xe(`${z}-circle-bg`),xe("",{strokeDasharray:`${fe*ee/100} ${fe*(100-ee)/100}`,strokeDashoffset:`${fe/4}`}))):null}function m(X){const{prefixCls:V,percent:q=0}=X,z=`${V}-dot`,k=`${z}-holder`,L=`${k}-hidden`;return t.createElement(t.Fragment,null,t.createElement("span",{className:o()(k,q>0&&L)},t.createElement("span",{className:o()(z,`${V}-dot-spin`)},[1,2,3,4].map(F=>t.createElement("i",{className:`${V}-dot-item`,key:F})))),t.createElement(d,{prefixCls:V,percent:q}))}function b(X){const{prefixCls:V,indicator:q,percent:z}=X,k=`${V}-dot`;return q&&t.isValidElement(q)?(0,c.Tm)(q,{className:o()(q.props.className,k),percent:z}):t.createElement(m,{prefixCls:V,percent:z})}var y=e(85982),f=e(14747),E=e(27036),R=e(45503);const T=new y.E4("antSpinMove",{to:{opacity:1}}),C=new y.E4("antRotate",{to:{transform:"rotate(405deg)"}}),M=X=>{const{componentCls:V,calc:q}=X;return{[`${V}`]:Object.assign(Object.assign({},(0,f.Wf)(X)),{position:"absolute",display:"none",color:X.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${X.motionDurationSlow} ${X.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${V}-text`]:{fontSize:X.fontSize,paddingTop:q(q(X.dotSize).sub(X.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:X.colorBgMask,zIndex:X.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${X.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[V]:{[`${V}-dot-holder`]:{color:X.colorWhite},[`${V}-text`]:{color:X.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${V}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:X.contentHeight,[`${V}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:q(X.dotSize).mul(-1).div(2).equal()},[`${V}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${X.colorBgContainer}`},[`&${V}-show-text ${V}-dot`]:{marginTop:q(X.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${V}-dot`]:{margin:q(X.dotSizeSM).mul(-1).div(2).equal()},[`${V}-text`]:{paddingTop:q(q(X.dotSizeSM).sub(X.fontSize)).div(2).add(2).equal()},[`&${V}-show-text ${V}-dot`]:{marginTop:q(X.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${V}-dot`]:{margin:q(X.dotSizeLG).mul(-1).div(2).equal()},[`${V}-text`]:{paddingTop:q(q(X.dotSizeLG).sub(X.fontSize)).div(2).add(2).equal()},[`&${V}-show-text ${V}-dot`]:{marginTop:q(X.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${V}-container`]:{position:"relative",transition:`opacity ${X.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:X.colorBgContainer,opacity:0,transition:`all ${X.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${V}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:X.spinDotDefault},[`${V}-dot-progress`]:{position:"absolute",top:0,insetInlineStart:0},[`${V}-dot-holder`]:{width:"1em",height:"1em",fontSize:X.dotSize,display:"inline-block",transition:`transform ${X.motionDurationSlow} ease, opacity ${X.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:X.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${V}-dot-progress`]:{position:"absolute",top:0,insetInlineStart:0},[`${V}-dot`]:{position:"relative",display:"inline-block",fontSize:X.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:q(X.dotSize).sub(q(X.marginXXS).div(2)).div(2).equal(),height:q(X.dotSize).sub(q(X.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:T,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:C,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(z=>`${z} ${X.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:X.colorFillSecondary}},[`&-sm ${V}-dot`]:{fontSize:X.dotSizeSM},[`&-sm ${V}-dot-holder`]:{i:{width:q(q(X.dotSizeSM).sub(q(X.marginXXS).div(2))).div(2).equal(),height:q(q(X.dotSizeSM).sub(q(X.marginXXS).div(2))).div(2).equal()}},[`&-lg ${V}-dot`]:{fontSize:X.dotSizeLG},[`&-lg ${V}-dot-holder`]:{i:{width:q(q(X.dotSizeLG).sub(X.marginXXS)).div(2).equal(),height:q(q(X.dotSizeLG).sub(X.marginXXS)).div(2).equal()}},[`&${V}-show-text ${V}-text`]:{display:"block"}})}},P=X=>{const{controlHeightLG:V,controlHeight:q}=X;return{contentHeight:400,dotSize:V/2,dotSizeSM:V*.35,dotSizeLG:q}};var A=(0,E.I$)("Spin",X=>{const V=(0,R.TS)(X,{spinDotDefault:X.colorTextDescription});return[M(V)]},P);const O=200,$=[[30,.05],[70,.03],[96,.01]];function Z(X,V){const[q,z]=t.useState(0),k=t.useRef(),L=V==="auto";return t.useEffect(()=>(L&&X&&(z(0),k.current=setInterval(()=>{z(F=>{const N=100-F;for(let ee=0;ee<$.length;ee+=1){const[ce,le]=$[ee];if(F<=ce)return F+N*le}return F})},O)),()=>{clearInterval(k.current)}),[L,X]),L?q:V}var Q=function(X,V){var q={};for(var z in X)Object.prototype.hasOwnProperty.call(X,z)&&V.indexOf(z)<0&&(q[z]=X[z]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,z=Object.getOwnPropertySymbols(X);k{const{prefixCls:V,spinning:q=!0,delay:z=0,className:k,rootClassName:L,size:F="default",tip:N,wrapperClassName:ee,style:ce,children:le,fullscreen:se=!1,indicator:fe,percent:xe}=X,Ie=Q(X,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:Pe}=t.useContext(u.E_),$e=Pe("spin",V),[at,ut,Ue]=A($e),[Ye,Xe]=t.useState(()=>q&&!H(q,z)),Fe=Z(Ye,xe);t.useEffect(()=>{if(q){const x=s(z,()=>{Xe(!0)});return x(),()=>{var oe;(oe=x==null?void 0:x.cancel)===null||oe===void 0||oe.call(x)}}Xe(!1)},[z,q]);const Je=t.useMemo(()=>typeof le!="undefined"&&!se,[le,se]),{direction:Le,spin:qe}=t.useContext(u.E_),ze=o()($e,qe==null?void 0:qe.className,{[`${$e}-sm`]:F==="small",[`${$e}-lg`]:F==="large",[`${$e}-spinning`]:Ye,[`${$e}-show-text`]:!!N,[`${$e}-rtl`]:Le==="rtl"},k,!se&&L,ut,Ue),ie=o()(`${$e}-container`,{[`${$e}-blur`]:Ye}),W=Object.assign(Object.assign({},qe==null?void 0:qe.style),ce),re=t.createElement("div",Object.assign({},Ie,{style:W,className:ze,"aria-live":"polite","aria-busy":Ye}),t.createElement(b,{prefixCls:$e,indicator:fe!=null?fe:Y,percent:Fe}),N&&(Je||se)?t.createElement("div",{className:`${$e}-text`},N):null);return at(Je?t.createElement("div",Object.assign({},Ie,{className:o()(`${$e}-nested-loading`,ee,ut,Ue)}),Ye&&t.createElement("div",{key:"loading"},re),t.createElement("div",{className:ie,key:"container"},le)):se?t.createElement("div",{className:o()(`${$e}-fullscreen`,{[`${$e}-fullscreen-show`]:Ye},L,ut,Ue)},re):re)};G.setDefaultIndicator=X=>{Y=X};var J=G},80110:function(v,p,e){"use strict";e.d(p,{c:function(){return o}});function t(a,s,u){const{focusElCls:c,focus:l,borderElCls:d}=u,m=d?"> *":"",b=["hover",l?"focus":null,"active"].filter(Boolean).map(y=>`&:${y} ${m}`).join(",");return{[`&-item:not(${s}-last-item)`]:{marginInlineEnd:a.calc(a.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[b]:{zIndex:2}},c?{[`&${c}`]:{zIndex:2}}:{}),{[`&[disabled] ${m}`]:{zIndex:0}})}}function r(a,s,u){const{borderElCls:c}=u,l=c?`> ${c}`:"";return{[`&-item:not(${s}-first-item):not(${s}-last-item) ${l}`]:{borderRadius:0},[`&-item:not(${s}-last-item)${s}-first-item`]:{[`& ${l}, &${a}-sm ${l}, &${a}-lg ${l}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${s}-first-item)${s}-last-item`]:{[`& ${l}, &${a}-sm ${l}, &${a}-lg ${l}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function o(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:u}=a,c=`${u}-compact`;return{[c]:Object.assign(Object.assign({},t(a,c,s)),r(u,c,s))}}},14747:function(v,p,e){"use strict";e.d(p,{Lx:function(){return u},Qy:function(){return d},Ro:function(){return a},Wf:function(){return o},dF:function(){return s},du:function(){return c},oN:function(){return l},vS:function(){return r}});var t=e(85982);const r={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},o=function(m){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:m.colorText,fontSize:m.fontSize,lineHeight:m.lineHeight,listStyle:"none",fontFamily:b?"inherit":m.fontFamily}},a=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),s=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),u=m=>({a:{color:m.colorLink,textDecoration:m.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${m.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:m.colorLinkHover},"&:active":{color:m.colorLinkActive},"&:active, &:hover":{textDecoration:m.linkHoverDecoration,outline:0},"&:focus":{textDecoration:m.linkFocusDecoration,outline:0},"&[disabled]":{color:m.colorTextDisabled,cursor:"not-allowed"}}}),c=(m,b,y,f)=>{const E=`[class^="${b}"], [class*=" ${b}"]`,R=y?`.${y}`:E,T={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let C={};return f!==!1&&(C={fontFamily:m.fontFamily,fontSize:m.fontSize}),{[R]:Object.assign(Object.assign(Object.assign({},C),T),{[E]:T})}},l=m=>({outline:`${(0,t.bf)(m.lineWidthFocus)} solid ${m.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),d=m=>({"&:focus-visible":Object.assign({},l(m))})},33507:function(v,p){"use strict";const e=t=>({[t.componentCls]:{[`${t.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${t.motionDurationMid} ${t.motionEaseInOut}, - opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}},[`${t.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${t.motionDurationMid} ${t.motionEaseInOut}, - opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}}});p.Z=e},16932:function(v,p,e){"use strict";e.d(p,{J$:function(){return s}});var t=e(85982),r=e(93590);const o=new t.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),a=new t.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),s=function(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:l}=u,d=`${l}-fade`,m=c?"&":"";return[(0,r.R)(d,o,a,u.motionDurationMid,c),{[` - ${m}${d}-enter, - ${m}${d}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${m}${d}-leave`]:{animationTimingFunction:"linear"}}]}},93590:function(v,p,e){"use strict";e.d(p,{R:function(){return o}});const t=a=>({animationDuration:a,animationFillMode:"both"}),r=a=>({animationDuration:a,animationFillMode:"both"}),o=function(a,s,u,c){const d=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` - ${d}${a}-enter, - ${d}${a}-appear - `]:Object.assign(Object.assign({},t(c)),{animationPlayState:"paused"}),[`${d}${a}-leave`]:Object.assign(Object.assign({},r(c)),{animationPlayState:"paused"}),[` - ${d}${a}-enter${a}-enter-active, - ${d}${a}-appear${a}-appear-active - `]:{animationName:s,animationPlayState:"running"},[`${d}${a}-leave${a}-leave-active`]:{animationName:u,animationPlayState:"running",pointerEvents:"none"}}}},33297:function(v,p,e){"use strict";e.d(p,{Fm:function(){return y}});var t=e(85982),r=e(93590);const o=new t.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new t.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),s=new t.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new t.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),c=new t.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new t.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d=new t.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),m=new t.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),b={"move-up":{inKeyframes:d,outKeyframes:m},"move-down":{inKeyframes:o,outKeyframes:a},"move-left":{inKeyframes:s,outKeyframes:u},"move-right":{inKeyframes:c,outKeyframes:l}},y=(f,E)=>{const{antCls:R}=f,T=`${R}-${E}`,{inKeyframes:C,outKeyframes:M}=b[E];return[(0,r.R)(T,C,M,f.motionDurationMid),{[` - ${T}-enter, - ${T}-appear - `]:{opacity:0,animationTimingFunction:f.motionEaseOutCirc},[`${T}-leave`]:{animationTimingFunction:f.motionEaseInOutCirc}}]}},67771:function(v,p,e){"use strict";e.d(p,{Qt:function(){return s},Uw:function(){return a},fJ:function(){return o},ly:function(){return u},oN:function(){return y}});var t=e(85982),r=e(93590);const o=new t.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new t.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),s=new t.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),u=new t.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c=new t.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),l=new t.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),d=new t.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),m=new t.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),b={"slide-up":{inKeyframes:o,outKeyframes:a},"slide-down":{inKeyframes:s,outKeyframes:u},"slide-left":{inKeyframes:c,outKeyframes:l},"slide-right":{inKeyframes:d,outKeyframes:m}},y=(f,E)=>{const{antCls:R}=f,T=`${R}-${E}`,{inKeyframes:C,outKeyframes:M}=b[E];return[(0,r.R)(T,C,M,f.motionDurationMid),{[` - ${T}-enter, - ${T}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:f.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${T}-leave`]:{animationTimingFunction:f.motionEaseInQuint}}]}},50438:function(v,p,e){"use strict";e.d(p,{_y:function(){return T},kr:function(){return o}});var t=e(85982),r=e(93590);const o=new t.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),a=new t.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),s=new t.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),u=new t.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),c=new t.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),l=new t.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),d=new t.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),m=new t.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),b=new t.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),y=new t.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),f=new t.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),E=new t.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),R={zoom:{inKeyframes:o,outKeyframes:a},"zoom-big":{inKeyframes:s,outKeyframes:u},"zoom-big-fast":{inKeyframes:s,outKeyframes:u},"zoom-left":{inKeyframes:d,outKeyframes:m},"zoom-right":{inKeyframes:b,outKeyframes:y},"zoom-up":{inKeyframes:c,outKeyframes:l},"zoom-down":{inKeyframes:f,outKeyframes:E}},T=(C,M)=>{const{antCls:P}=C,A=`${P}-${M}`,{inKeyframes:O,outKeyframes:$}=R[M];return[(0,r.R)(A,O,$,M==="zoom-big-fast"?C.motionDurationFast:C.motionDurationMid),{[` - ${A}-enter, - ${A}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:C.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${A}-leave`]:{animationTimingFunction:C.motionEaseInOutCirc}}]}},97414:function(v,p,e){"use strict";e.d(p,{ZP:function(){return s},qN:function(){return r},wZ:function(){return o}});var t=e(79511);const r=8;function o(u){const{contentRadius:c,limitVerticalRadius:l}=u,d=c>12?c+2:12;return{arrowOffsetHorizontal:d,arrowOffsetVertical:l?r:d}}function a(u,c){return u?c:{}}function s(u,c,l){const{componentCls:d,boxShadowPopoverArrow:m,arrowOffsetVertical:b,arrowOffsetHorizontal:y}=u,{arrowDistance:f=0,arrowPlacement:E={left:!0,right:!0,top:!0,bottom:!0}}=l||{};return{[d]:Object.assign(Object.assign(Object.assign(Object.assign({[`${d}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,t.W)(u,c,m)),{"&:before":{background:c}})]},a(!!E.top,{[[`&-placement-top > ${d}-arrow`,`&-placement-topLeft > ${d}-arrow`,`&-placement-topRight > ${d}-arrow`].join(",")]:{bottom:f,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${d}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${d}-arrow`]:{left:{_skip_check_:!0,value:y}},[`&-placement-topRight > ${d}-arrow`]:{right:{_skip_check_:!0,value:y}}})),a(!!E.bottom,{[[`&-placement-bottom > ${d}-arrow`,`&-placement-bottomLeft > ${d}-arrow`,`&-placement-bottomRight > ${d}-arrow`].join(",")]:{top:f,transform:"translateY(-100%)"},[`&-placement-bottom > ${d}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${d}-arrow`]:{left:{_skip_check_:!0,value:y}},[`&-placement-bottomRight > ${d}-arrow`]:{right:{_skip_check_:!0,value:y}}})),a(!!E.left,{[[`&-placement-left > ${d}-arrow`,`&-placement-leftTop > ${d}-arrow`,`&-placement-leftBottom > ${d}-arrow`].join(",")]:{right:{_skip_check_:!0,value:f},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${d}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${d}-arrow`]:{top:b},[`&-placement-leftBottom > ${d}-arrow`]:{bottom:b}})),a(!!E.right,{[[`&-placement-right > ${d}-arrow`,`&-placement-rightTop > ${d}-arrow`,`&-placement-rightBottom > ${d}-arrow`].join(",")]:{left:{_skip_check_:!0,value:f},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${d}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${d}-arrow`]:{top:b},[`&-placement-rightBottom > ${d}-arrow`]:{bottom:b}}))}}},79511:function(v,p,e){"use strict";e.d(p,{W:function(){return o},w:function(){return r}});var t=e(85982);function r(a){const{sizePopupArrow:s,borderRadiusXS:u,borderRadiusOuter:c}=a,l=s/2,d=0,m=l,b=c*1/Math.sqrt(2),y=l-c*(1-1/Math.sqrt(2)),f=l-u*(1/Math.sqrt(2)),E=c*(Math.sqrt(2)-1)+u*(1/Math.sqrt(2)),R=2*l-f,T=E,C=2*l-b,M=y,P=2*l-d,A=m,O=l*Math.sqrt(2)+c*(Math.sqrt(2)-2),$=c*(Math.sqrt(2)-1),Z=`polygon(${$}px 100%, 50% ${$}px, ${2*l-$}px 100%, ${$}px 100%)`,Q=`path('M ${d} ${m} A ${c} ${c} 0 0 0 ${b} ${y} L ${f} ${E} A ${u} ${u} 0 0 1 ${R} ${T} L ${C} ${M} A ${c} ${c} 0 0 0 ${P} ${A} Z')`;return{arrowShadowWidth:O,arrowPath:Q,arrowPolygon:Z}}const o=(a,s,u)=>{const{sizePopupArrow:c,arrowPolygon:l,arrowPath:d,arrowShadowWidth:m,borderRadiusXS:b,calc:y}=a;return{pointerEvents:"none",width:c,height:c,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:c,height:y(c).div(2).equal(),background:s,clipPath:{_multi_value_:!0,value:[l,d]},content:'""'},"&::after":{content:'""',position:"absolute",width:m,height:m,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,t.bf)(b)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:u,zIndex:0,background:"transparent"}}}},33083:function(v,p,e){"use strict";e.d(p,{Mj:function(){return c},uH:function(){return s},u_:function(){return u}});var t=e(67294),r=e(85982),o=e(67164),a=e(2790);const s=(0,r.jG)(o.Z),u={token:a.Z,override:{override:a.Z},hashed:!0},c=t.createContext(u)},9361:function(v,p,e){"use strict";e.d(p,{Z:function(){return Q}});var t=e(85982),r=e(67164),o=e(2790),a=e(1393),u=U=>{const Y=U!=null&&U.algorithm?(0,t.jG)(U.algorithm):(0,t.jG)(r.Z),H=Object.assign(Object.assign({},o.Z),U==null?void 0:U.token);return(0,t.t2)(H,{override:U==null?void 0:U.token},Y,a.Z)},c=e(29691),l=e(33083),d=e(372),m=e(69594);function b(U){const{sizeUnit:Y,sizeStep:H}=U,G=H-2;return{sizeXXL:Y*(G+10),sizeXL:Y*(G+6),sizeLG:Y*(G+2),sizeMD:Y*(G+2),sizeMS:Y*(G+1),size:Y*G,sizeSM:Y*G,sizeXS:Y*(G-1),sizeXXS:Y*(G-1)}}var f=(U,Y)=>{const H=Y!=null?Y:(0,r.Z)(U),G=H.fontSizeSM,J=H.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},H),b(Y!=null?Y:U)),(0,m.Z)(G)),{controlHeight:J}),(0,d.Z)(Object.assign(Object.assign({},H),{controlHeight:J})))},E=e(84898),R=e(57),T=e(10274);const C=(U,Y)=>new T.C(U).setAlpha(Y).toRgbString(),M=(U,Y)=>new T.C(U).lighten(Y).toHexString(),P=U=>{const Y=(0,E.R_)(U,{theme:"dark"});return{1:Y[0],2:Y[1],3:Y[2],4:Y[3],5:Y[6],6:Y[5],7:Y[4],8:Y[6],9:Y[5],10:Y[4]}},A=(U,Y)=>{const H=U||"#000",G=Y||"#fff";return{colorBgBase:H,colorTextBase:G,colorText:C(G,.85),colorTextSecondary:C(G,.65),colorTextTertiary:C(G,.45),colorTextQuaternary:C(G,.25),colorFill:C(G,.18),colorFillSecondary:C(G,.12),colorFillTertiary:C(G,.08),colorFillQuaternary:C(G,.04),colorBgElevated:M(H,12),colorBgContainer:M(H,8),colorBgLayout:M(H,0),colorBgSpotlight:M(H,26),colorBgBlur:C(G,.04),colorBorder:M(H,26),colorBorderSecondary:M(H,19)}};var $=(U,Y)=>{const H=Object.keys(o.M).map(J=>{const X=(0,E.R_)(U[J],{theme:"dark"});return new Array(10).fill(1).reduce((V,q,z)=>(V[`${J}-${z+1}`]=X[z],V[`${J}${z+1}`]=X[z],V),{})}).reduce((J,X)=>(J=Object.assign(Object.assign({},J),X),J),{}),G=Y!=null?Y:(0,r.Z)(U);return Object.assign(Object.assign(Object.assign({},G),H),(0,R.Z)(U,{generateColorPalettes:P,generateNeutralColorPalettes:A}))};function Z(){const[U,Y,H]=(0,c.ZP)();return{theme:U,token:Y,hashId:H}}var Q={defaultConfig:l.u_,defaultSeed:l.u_.token,useToken:Z,defaultAlgorithm:r.Z,darkAlgorithm:$,compactAlgorithm:f,getDesignToken:u}},8796:function(v,p,e){"use strict";e.d(p,{i:function(){return t}});const t=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},67164:function(v,p,e){"use strict";e.d(p,{Z:function(){return R}});var t=e(84898),r=e(2790),o=e(57),s=T=>{let C=T,M=T,P=T,A=T;return T<6&&T>=5?C=T+1:T<16&&T>=6?C=T+2:T>=16&&(C=16),T<7&&T>=5?M=4:T<8&&T>=7?M=5:T<14&&T>=8?M=6:T<16&&T>=14?M=7:T>=16&&(M=8),T<6&&T>=2?P=1:T>=6&&(P=2),T>4&&T<8?A=4:T>=8&&(A=6),{borderRadius:T,borderRadiusXS:P,borderRadiusSM:M,borderRadiusLG:C,borderRadiusOuter:A}};function u(T){const{motionUnit:C,motionBase:M,borderRadius:P,lineWidth:A}=T;return Object.assign({motionDurationFast:`${(M+C).toFixed(1)}s`,motionDurationMid:`${(M+C*2).toFixed(1)}s`,motionDurationSlow:`${(M+C*3).toFixed(1)}s`,lineWidthBold:A+1},s(P))}var c=e(372),l=e(69594);function d(T){const{sizeUnit:C,sizeStep:M}=T;return{sizeXXL:C*(M+8),sizeXL:C*(M+4),sizeLG:C*(M+2),sizeMD:C*(M+1),sizeMS:C*M,size:C*M,sizeSM:C*(M-1),sizeXS:C*(M-2),sizeXXS:C*(M-3)}}var m=e(10274);const b=(T,C)=>new m.C(T).setAlpha(C).toRgbString(),y=(T,C)=>new m.C(T).darken(C).toHexString(),f=T=>{const C=(0,t.R_)(T);return{1:C[0],2:C[1],3:C[2],4:C[3],5:C[4],6:C[5],7:C[6],8:C[4],9:C[5],10:C[6]}},E=(T,C)=>{const M=T||"#fff",P=C||"#000";return{colorBgBase:M,colorTextBase:P,colorText:b(P,.88),colorTextSecondary:b(P,.65),colorTextTertiary:b(P,.45),colorTextQuaternary:b(P,.25),colorFill:b(P,.15),colorFillSecondary:b(P,.06),colorFillTertiary:b(P,.04),colorFillQuaternary:b(P,.02),colorBgLayout:y(M,4),colorBgContainer:y(M,0),colorBgElevated:y(M,0),colorBgSpotlight:b(P,.85),colorBgBlur:"transparent",colorBorder:y(M,15),colorBorderSecondary:y(M,6)}};function R(T){t.ez.pink=t.ez.magenta,t.Ti.pink=t.Ti.magenta;const C=Object.keys(r.M).map(M=>{const P=T[M]===t.ez[M]?t.Ti[M]:(0,t.R_)(T[M]);return new Array(10).fill(1).reduce((A,O,$)=>(A[`${M}-${$+1}`]=P[$],A[`${M}${$+1}`]=P[$],A),{})}).reduce((M,P)=>(M=Object.assign(Object.assign({},M),P),M),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},T),C),(0,o.Z)(T,{generateColorPalettes:f,generateNeutralColorPalettes:E})),(0,l.Z)(T.fontSize)),d(T)),(0,c.Z)(T)),u(T))}},2790:function(v,p,e){"use strict";e.d(p,{M:function(){return t}});const t={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},r=Object.assign(Object.assign({},t),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, -'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});p.Z=r},57:function(v,p,e){"use strict";e.d(p,{Z:function(){return r}});var t=e(10274);function r(o,a){let{generateColorPalettes:s,generateNeutralColorPalettes:u}=a;const{colorSuccess:c,colorWarning:l,colorError:d,colorInfo:m,colorPrimary:b,colorBgBase:y,colorTextBase:f}=o,E=s(b),R=s(c),T=s(l),C=s(d),M=s(m),P=u(y,f),A=o.colorLink||o.colorInfo,O=s(A);return Object.assign(Object.assign({},P),{colorPrimaryBg:E[1],colorPrimaryBgHover:E[2],colorPrimaryBorder:E[3],colorPrimaryBorderHover:E[4],colorPrimaryHover:E[5],colorPrimary:E[6],colorPrimaryActive:E[7],colorPrimaryTextHover:E[8],colorPrimaryText:E[9],colorPrimaryTextActive:E[10],colorSuccessBg:R[1],colorSuccessBgHover:R[2],colorSuccessBorder:R[3],colorSuccessBorderHover:R[4],colorSuccessHover:R[4],colorSuccess:R[6],colorSuccessActive:R[7],colorSuccessTextHover:R[8],colorSuccessText:R[9],colorSuccessTextActive:R[10],colorErrorBg:C[1],colorErrorBgHover:C[2],colorErrorBgActive:C[3],colorErrorBorder:C[3],colorErrorBorderHover:C[4],colorErrorHover:C[5],colorError:C[6],colorErrorActive:C[7],colorErrorTextHover:C[8],colorErrorText:C[9],colorErrorTextActive:C[10],colorWarningBg:T[1],colorWarningBgHover:T[2],colorWarningBorder:T[3],colorWarningBorderHover:T[4],colorWarningHover:T[4],colorWarning:T[6],colorWarningActive:T[7],colorWarningTextHover:T[8],colorWarningText:T[9],colorWarningTextActive:T[10],colorInfoBg:M[1],colorInfoBgHover:M[2],colorInfoBorder:M[3],colorInfoBorderHover:M[4],colorInfoHover:M[4],colorInfo:M[6],colorInfoActive:M[7],colorInfoTextHover:M[8],colorInfoText:M[9],colorInfoTextActive:M[10],colorLinkHover:O[4],colorLink:O[6],colorLinkActive:O[7],colorBgMask:new t.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},372:function(v,p){"use strict";const e=t=>{const{controlHeight:r}=t;return{controlHeightSM:r*.75,controlHeightXS:r*.5,controlHeightLG:r*1.25}};p.Z=e},69594:function(v,p,e){"use strict";var t=e(51734);const r=o=>{const a=(0,t.Z)(o),s=a.map(f=>f.size),u=a.map(f=>f.lineHeight),c=s[1],l=s[0],d=s[2],m=u[1],b=u[0],y=u[2];return{fontSizeSM:l,fontSize:c,fontSizeLG:d,fontSizeXL:s[3],fontSizeHeading1:s[6],fontSizeHeading2:s[5],fontSizeHeading3:s[4],fontSizeHeading4:s[3],fontSizeHeading5:s[2],lineHeight:m,lineHeightLG:y,lineHeightSM:b,fontHeight:Math.round(m*c),fontHeightLG:Math.round(y*d),fontHeightSM:Math.round(b*l),lineHeightHeading1:u[6],lineHeightHeading2:u[5],lineHeightHeading3:u[4],lineHeightHeading4:u[3],lineHeightHeading5:u[2]}};p.Z=r},51734:function(v,p,e){"use strict";e.d(p,{D:function(){return t},Z:function(){return r}});function t(o){return(o+8)/o}function r(o){const a=new Array(10).fill(null).map((s,u)=>{const c=u-1,l=o*Math.pow(Math.E,c/5),d=u>1?Math.floor(l):Math.ceil(l);return Math.floor(d/2)*2});return a[1]=o,a.map(s=>({size:s,lineHeight:t(s)}))}},29691:function(v,p,e){"use strict";e.d(p,{ID:function(){return d},NJ:function(){return l},ZP:function(){return y}});var t=e(67294),r=e(85982),o=e(67159),a=e(33083),s=e(2790),u=e(1393),c=function(f,E){var R={};for(var T in f)Object.prototype.hasOwnProperty.call(f,T)&&E.indexOf(T)<0&&(R[T]=f[T]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,T=Object.getOwnPropertySymbols(f);C{const T=R.getDerivativeToken(f),{override:C}=E,M=c(E,["override"]);let P=Object.assign(Object.assign({},T),{override:C});return P=(0,u.Z)(P),M&&Object.entries(M).forEach(A=>{let[O,$]=A;const{theme:Z}=$,Q=c($,["theme"]);let U=Q;Z&&(U=b(Object.assign(Object.assign({},P),Q),{override:Q},Z)),P[O]=U}),P};function y(){const{token:f,hashed:E,theme:R,override:T,cssVar:C}=t.useContext(a.Mj),M=`${o.Z}-${E||""}`,P=R||a.uH,[A,O,$]=(0,r.fp)(P,[s.Z,f],{salt:M,override:T,getComputedToken:b,formatToken:u.Z,cssVar:C&&{prefix:C.prefix,key:C.key,unitless:l,ignore:d,preserve:m}});return[P,$,E?O:"",A,C]}},1393:function(v,p,e){"use strict";e.d(p,{Z:function(){return c}});var t=e(10274),r=e(2790);function o(l){return l>=0&&l<=255}function a(l,d){const{r:m,g:b,b:y,a:f}=new t.C(l).toRgb();if(f<1)return l;const{r:E,g:R,b:T}=new t.C(d).toRgb();for(let C=.01;C<=1;C+=.01){const M=Math.round((m-E*(1-C))/C),P=Math.round((b-R*(1-C))/C),A=Math.round((y-T*(1-C))/C);if(o(M)&&o(P)&&o(A))return new t.C({r:M,g:P,b:A,a:Math.round(C*100)/100}).toRgbString()}return new t.C({r:m,g:b,b:y,a:1}).toRgbString()}var s=a,u=function(l,d){var m={};for(var b in l)Object.prototype.hasOwnProperty.call(l,b)&&d.indexOf(b)<0&&(m[b]=l[b]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,b=Object.getOwnPropertySymbols(l);y{delete b[A]});const y=Object.assign(Object.assign({},m),b),f=480,E=576,R=768,T=992,C=1200,M=1600;if(y.motion===!1){const A="0s";y.motionDurationFast=A,y.motionDurationMid=A,y.motionDurationSlow=A}return Object.assign(Object.assign(Object.assign({},y),{colorFillContent:y.colorFillSecondary,colorFillContentHover:y.colorFill,colorFillAlter:y.colorFillQuaternary,colorBgContainerDisabled:y.colorFillTertiary,colorBorderBg:y.colorBgContainer,colorSplit:s(y.colorBorderSecondary,y.colorBgContainer),colorTextPlaceholder:y.colorTextQuaternary,colorTextDisabled:y.colorTextQuaternary,colorTextHeading:y.colorText,colorTextLabel:y.colorTextSecondary,colorTextDescription:y.colorTextTertiary,colorTextLightSolid:y.colorWhite,colorHighlight:y.colorError,colorBgTextHover:y.colorFillSecondary,colorBgTextActive:y.colorFill,colorIcon:y.colorTextTertiary,colorIconHover:y.colorText,colorErrorOutline:s(y.colorErrorBg,y.colorBgContainer),colorWarningOutline:s(y.colorWarningBg,y.colorBgContainer),fontSizeIcon:y.fontSizeSM,lineWidthFocus:y.lineWidth*4,lineWidth:y.lineWidth,controlOutlineWidth:y.lineWidth*2,controlInteractiveSize:y.controlHeight/2,controlItemBgHover:y.colorFillTertiary,controlItemBgActive:y.colorPrimaryBg,controlItemBgActiveHover:y.colorPrimaryBgHover,controlItemBgActiveDisabled:y.colorFill,controlTmpOutline:y.colorFillQuaternary,controlOutline:s(y.colorPrimaryBg,y.colorBgContainer),lineType:y.lineType,borderRadius:y.borderRadius,borderRadiusXS:y.borderRadiusXS,borderRadiusSM:y.borderRadiusSM,borderRadiusLG:y.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:y.sizeXXS,paddingXS:y.sizeXS,paddingSM:y.sizeSM,padding:y.size,paddingMD:y.sizeMD,paddingLG:y.sizeLG,paddingXL:y.sizeXL,paddingContentHorizontalLG:y.sizeLG,paddingContentVerticalLG:y.sizeMS,paddingContentHorizontal:y.sizeMS,paddingContentVertical:y.sizeSM,paddingContentHorizontalSM:y.size,paddingContentVerticalSM:y.sizeXS,marginXXS:y.sizeXXS,marginXS:y.sizeXS,marginSM:y.sizeSM,margin:y.size,marginMD:y.sizeMD,marginLG:y.sizeLG,marginXL:y.sizeXL,marginXXL:y.sizeXXL,boxShadow:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowSecondary:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTertiary:` - 0 1px 2px 0 rgba(0, 0, 0, 0.03), - 0 1px 6px -1px rgba(0, 0, 0, 0.02), - 0 2px 4px 0 rgba(0, 0, 0, 0.02) - `,screenXS:f,screenXSMin:f,screenXSMax:E-1,screenSM:E,screenSMMin:E,screenSMMax:R-1,screenMD:R,screenMDMin:R,screenMDMax:T-1,screenLG:T,screenLGMin:T,screenLGMax:C-1,screenXL:C,screenXLMin:C,screenXLMax:M-1,screenXXL:M,screenXXLMin:M,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` - 0 1px 2px -2px ${new t.C("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new t.C("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new t.C("rgba(0, 0, 0, 0.09)").toRgbString()} - `,boxShadowDrawerRight:` - -6px 0 16px 0 rgba(0, 0, 0, 0.08), - -3px 0 6px -4px rgba(0, 0, 0, 0.12), - -9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerLeft:` - 6px 0 16px 0 rgba(0, 0, 0, 0.08), - 3px 0 6px -4px rgba(0, 0, 0, 0.12), - 9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerUp:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerDown:` - 0 -6px 16px 0 rgba(0, 0, 0, 0.08), - 0 -3px 6px -4px rgba(0, 0, 0, 0.12), - 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),b)}},27036:function(v,p,e){"use strict";e.d(p,{ZP:function(){return A},I$:function(){return Z},bk:function(){return O}});var t=e(67294),r=e(85982),o=e(56790),a=e(15671),s=e(43144);const u=1e3*60*10;let c=function(){function Q(){(0,a.Z)(this,Q),this.map=new Map,this.objectIDMap=new WeakMap,this.nextID=0,this.lastAccessBeat=new Map,this.accessBeat=0}return(0,s.Z)(Q,[{key:"set",value:function(Y,H){this.clear();const G=this.getCompositeKey(Y);this.map.set(G,H),this.lastAccessBeat.set(G,Date.now())}},{key:"get",value:function(Y){const H=this.getCompositeKey(Y),G=this.map.get(H);return this.lastAccessBeat.set(H,Date.now()),this.accessBeat+=1,G}},{key:"getCompositeKey",value:function(Y){return Y.map(G=>G&&typeof G=="object"?`obj_${this.getObjectID(G)}`:`${typeof G}_${G}`).join("|")}},{key:"getObjectID",value:function(Y){if(this.objectIDMap.has(Y))return this.objectIDMap.get(Y);const H=this.nextID;return this.objectIDMap.set(Y,H),this.nextID+=1,H}},{key:"clear",value:function(){if(this.accessBeat>1e4){const Y=Date.now();this.lastAccessBeat.forEach((H,G)=>{Y-H>u&&(this.map.delete(G),this.lastAccessBeat.delete(G))}),this.accessBeat=0}}}])}();const l=new c;function d(Q,U){return t.useMemo(()=>{const Y=l.get(U);if(Y)return Y;const H=Q();return l.set(U,H),H},U)}var m=d,b=e(53124),y=e(14747),f=e(29691);function E(Q){return Q==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var U=arguments.length,Y=new Array(U),H=0;H(0,r.bf)(G)).join(",")})`},min:function(){for(var U=arguments.length,Y=new Array(U),H=0;H(0,r.bf)(G)).join(",")})`}}}var R=e(45503),T=e(53269);const C=(Q,U,Y)=>{var H;return typeof Y=="function"?Y((0,R.TS)(U,(H=U[Q])!==null&&H!==void 0?H:{})):Y!=null?Y:{}},M=(Q,U,Y,H)=>{const G=Object.assign({},U[Q]);if(H!=null&&H.deprecatedTokens){const{deprecatedTokens:X}=H;X.forEach(V=>{let[q,z]=V;var k;(G!=null&&G[q]||G!=null&&G[z])&&((k=G[z])!==null&&k!==void 0||(G[z]=G==null?void 0:G[q]))})}const J=Object.assign(Object.assign({},Y),G);return Object.keys(J).forEach(X=>{J[X]===U[X]&&delete J[X]}),J},P=(Q,U)=>`${[U,Q.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function A(Q,U,Y){let H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const G=Array.isArray(Q)?Q:[Q,Q],[J]=G,X=G.join("-");return function(V){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:V;const[z,k,L,F,N]=(0,f.ZP)(),{getPrefixCls:ee,iconPrefixCls:ce,csp:le}=(0,t.useContext)(b.E_),se=ee(),fe=N?"css":"js",xe=m(()=>{const ut=new Set;return N&&Object.keys(H.unitless||{}).forEach(Ue=>{ut.add((0,r.ks)(Ue,N.prefix)),ut.add((0,r.ks)(Ue,P(J,N.prefix)))}),(0,r._m)(fe,ut)},[fe,J,N==null?void 0:N.prefix]),{max:Ie,min:Pe}=E(fe),$e={theme:z,token:F,hashId:L,nonce:()=>le==null?void 0:le.nonce,clientOnly:H.clientOnly,layer:{name:"antd"},order:H.order||-999};return(0,r.xy)(Object.assign(Object.assign({},$e),{clientOnly:!1,path:["Shared",se]}),()=>[{"&":(0,y.Lx)(F)}]),(0,T.Z)(ce,le),[(0,r.xy)(Object.assign(Object.assign({},$e),{path:[X,V,ce]}),()=>{if(H.injectStyle===!1)return[];const{token:ut,flush:Ue}=(0,R.ZP)(F),Ye=C(J,k,Y),Xe=`.${V}`,Fe=M(J,k,Ye,{deprecatedTokens:H.deprecatedTokens});N&&Object.keys(Ye).forEach(qe=>{Ye[qe]=`var(${(0,r.ks)(qe,P(J,N.prefix))})`});const Je=(0,R.TS)(ut,{componentCls:Xe,prefixCls:V,iconCls:`.${ce}`,antCls:`.${se}`,calc:xe,max:Ie,min:Pe},N?Ye:Fe),Le=U(Je,{hashId:L,prefixCls:V,rootPrefixCls:se,iconPrefixCls:ce});return Ue(J,Fe),[H.resetStyle===!1?null:(0,y.du)(Je,V,q,H.resetFont),Le]}),L]}}const O=(Q,U,Y,H)=>{const G=A(Q,U,Y,Object.assign({resetStyle:!1,order:-998},H));return X=>{let{prefixCls:V,rootCls:q=V}=X;return G(V,q),null}},$=(Q,U,Y)=>{const{unitless:H,injectStyle:G=!0,prefixToken:J}=Y,X=q=>{let{rootCls:z,cssVar:k}=q;const[,L]=(0,f.ZP)();return(0,r.CI)({path:[Q],prefix:k.prefix,key:k==null?void 0:k.key,unitless:H,ignore:f.ID,token:L,scope:z},()=>{const F=C(Q,L,U),N=M(Q,L,F,{deprecatedTokens:Y==null?void 0:Y.deprecatedTokens});return Object.keys(F).forEach(ee=>{N[J(ee)]=N[ee],delete N[ee]}),N}),null};return q=>{const[,,,,z]=(0,f.ZP)();return[k=>G&&z?t.createElement(t.Fragment,null,t.createElement(X,{rootCls:q,cssVar:z,component:Q}),k):k,z==null?void 0:z.key]}},Z=(Q,U,Y,H)=>{const G=Array.isArray(Q)?Q[0]:Q;function J(L){return`${G}${L.slice(0,1).toUpperCase()}${L.slice(1)}`}const X=(H==null?void 0:H.unitless)||{},V=Object.assign(Object.assign({},f.NJ),{[J("zIndexPopup")]:!0});Object.keys(X).forEach(L=>{V[J(L)]=X[L]});const q=Object.assign(Object.assign({},H),{unitless:V,prefixToken:J}),z=A(Q,U,Y,q),k=$(G,Y,q);return function(L){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L;const[,N]=z(L,F),[ee,ce]=k(F);return[ee,N,ce]}}},98719:function(v,p,e){"use strict";e.d(p,{Z:function(){return r}});var t=e(8796);function r(o,a){return t.i.reduce((s,u)=>{const c=o[`${u}1`],l=o[`${u}3`],d=o[`${u}6`],m=o[`${u}7`];return Object.assign(Object.assign({},s),a(u,{lightColor:c,lightBorderColor:l,darkColor:d,textColor:m}))},{})}},45503:function(v,p,e){"use strict";e.d(p,{TS:function(){return o}});const t=typeof CSSINJS_STATISTIC!="undefined";let r=!0;function o(){for(var l=arguments.length,d=new Array(l),m=0;m{Object.keys(y).forEach(E=>{Object.defineProperty(b,E,{configurable:!0,enumerable:!0,get:()=>y[E]})})}),r=!0,b}const a={},s={};function u(){}const c=l=>{let d,m=l,b=u;return t&&typeof Proxy!="undefined"&&(d=new Set,m=new Proxy(l,{get(y,f){return r&&d.add(f),y[f]}}),b=(y,f)=>{var E;a[y]={global:Array.from(d),component:Object.assign(Object.assign({},(E=a[y])===null||E===void 0?void 0:E.component),f)}}),{token:m,keys:d,flush:b}};p.ZP=c},53269:function(v,p,e){"use strict";var t=e(85982),r=e(14747),o=e(29691);const a=(s,u)=>{const[c,l]=(0,o.ZP)();return(0,t.xy)({theme:c,token:l,hashId:"",path:["ant-design-icons",s],nonce:()=>u==null?void 0:u.nonce,layer:{name:"antd"}},()=>[{[`.${s}`]:Object.assign(Object.assign({},(0,r.Ro)()),{[`.${s} .${s}-icon`]:{display:"block"}})}])};p.Z=a},42115:function(v,p){"use strict";const e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};p.Z=e},83062:function(v,p,e){"use strict";e.d(p,{Z:function(){return z}});var t=e(67294),r=e(93967),o=e.n(r),a=e(92419),s=e(21770),u=e(89942),c=e(87263),l=e(33603),d=e(80636),m=e(96159),b=e(27288),y=e(43945),f=e(53124),E=e(29691),R=e(85982),T=e(14747),C=e(50438),M=e(97414),P=e(79511),A=e(98719),O=e(45503),$=e(27036);const Z=k=>{const{componentCls:L,tooltipMaxWidth:F,tooltipColor:N,tooltipBg:ee,tooltipBorderRadius:ce,zIndexPopup:le,controlHeight:se,boxShadowSecondary:fe,paddingSM:xe,paddingXS:Ie}=k;return[{[L]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,T.Wf)(k)),{position:"absolute",zIndex:le,display:"block",width:"max-content",maxWidth:F,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":ee,[`${L}-inner`]:{minWidth:"1em",minHeight:se,padding:`${(0,R.bf)(k.calc(xe).div(2).equal())} ${(0,R.bf)(Ie)}`,color:N,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:ee,borderRadius:ce,boxShadow:fe,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${L}-inner`]:{borderRadius:k.min(ce,M.qN)}},[`${L}-content`]:{position:"relative"}}),(0,A.Z)(k,(Pe,$e)=>{let{darkColor:at}=$e;return{[`&${L}-${Pe}`]:{[`${L}-inner`]:{backgroundColor:at},[`${L}-arrow`]:{"--antd-arrow-background-color":at}}}})),{"&-rtl":{direction:"rtl"}})},(0,M.ZP)(k,"var(--antd-arrow-background-color)"),{[`${L}-pure`]:{position:"relative",maxWidth:"none",margin:k.sizePopupArrow}}]},Q=k=>Object.assign(Object.assign({zIndexPopup:k.zIndexPopupBase+70},(0,M.wZ)({contentRadius:k.borderRadius,limitVerticalRadius:!0})),(0,P.w)((0,O.TS)(k,{borderRadiusOuter:Math.min(k.borderRadiusOuter,4)})));var U=function(k){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,$.I$)("Tooltip",N=>{const{borderRadius:ee,colorTextLightSolid:ce,colorBgSpotlight:le}=N,se=(0,O.TS)(N,{tooltipMaxWidth:250,tooltipColor:ce,tooltipBorderRadius:ee,tooltipBg:le});return[Z(se),(0,C._y)(N,"zoom-big-fast")]},Q,{resetStyle:!1,injectStyle:L})(k)},Y=e(98787);function H(k,L){const F=(0,Y.o2)(L),N=o()({[`${k}-${L}`]:L&&F}),ee={},ce={};return L&&!F&&(ee.background=L,ce["--antd-arrow-background-color"]=L),{className:N,overlayStyle:ee,arrowStyle:ce}}var J=k=>{const{prefixCls:L,className:F,placement:N="top",title:ee,color:ce,overlayInnerStyle:le}=k,{getPrefixCls:se}=t.useContext(f.E_),fe=se("tooltip",L),[xe,Ie,Pe]=U(fe),$e=H(fe,ce),at=$e.arrowStyle,ut=Object.assign(Object.assign({},le),$e.overlayStyle),Ue=o()(Ie,Pe,fe,`${fe}-pure`,`${fe}-placement-${N}`,F,$e.className);return xe(t.createElement("div",{className:Ue,style:at},t.createElement("div",{className:`${fe}-arrow`}),t.createElement(a.G,Object.assign({},k,{className:Ie,prefixCls:fe,overlayInnerStyle:ut}),ee)))},X=function(k,L){var F={};for(var N in k)Object.prototype.hasOwnProperty.call(k,N)&&L.indexOf(N)<0&&(F[N]=k[N]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,N=Object.getOwnPropertySymbols(k);ee{var F,N;const{prefixCls:ee,openClassName:ce,getTooltipContainer:le,overlayClassName:se,color:fe,overlayInnerStyle:xe,children:Ie,afterOpenChange:Pe,afterVisibleChange:$e,destroyTooltipOnHide:at,arrow:ut=!0,title:Ue,overlay:Ye,builtinPlacements:Xe,arrowPointAtCenter:Fe=!1,autoAdjustOverflow:Je=!0}=k,Le=!!ut,[,qe]=(0,E.ZP)(),{getPopupContainer:ze,getPrefixCls:ie,direction:W}=t.useContext(f.E_),re=(0,b.ln)("Tooltip"),x=t.useRef(null),oe=()=>{var _n;(_n=x.current)===null||_n===void 0||_n.forceAlign()};t.useImperativeHandle(L,()=>{var _n;return{forceAlign:oe,forcePopupAlign:()=>{re.deprecated(!1,"forcePopupAlign","forceAlign"),oe()},nativeElement:(_n=x.current)===null||_n===void 0?void 0:_n.nativeElement}});const[ve,he]=(0,s.Z)(!1,{value:(F=k.open)!==null&&F!==void 0?F:k.visible,defaultValue:(N=k.defaultOpen)!==null&&N!==void 0?N:k.defaultVisible}),w=!Ue&&!Ye&&Ue!==0,S=_n=>{var Ln,kn;he(w?!1:_n),w||((Ln=k.onOpenChange)===null||Ln===void 0||Ln.call(k,_n),(kn=k.onVisibleChange)===null||kn===void 0||kn.call(k,_n))},j=t.useMemo(()=>{var _n,Ln;let kn=Fe;return typeof ut=="object"&&(kn=(Ln=(_n=ut.pointAtCenter)!==null&&_n!==void 0?_n:ut.arrowPointAtCenter)!==null&&Ln!==void 0?Ln:Fe),Xe||(0,d.Z)({arrowPointAtCenter:kn,autoAdjustOverflow:Je,arrowWidth:Le?qe.sizePopupArrow:0,borderRadius:qe.borderRadius,offset:qe.marginXXS,visibleFirst:!0})},[Fe,ut,Xe,qe]),B=t.useMemo(()=>Ue===0?Ue:Ye||Ue||"",[Ye,Ue]),_=t.createElement(u.Z,{space:!0},typeof B=="function"?B():B),{getPopupContainer:D,placement:te="top",mouseEnterDelay:be=.1,mouseLeaveDelay:ge=.1,overlayStyle:ye,rootClassName:Ne}=k,ke=X(k,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),We=ie("tooltip",ee),je=ie(),Ve=k["data-popover-inject"];let mt=ve;!("open"in k)&&!("visible"in k)&&w&&(mt=!1);const Pt=t.isValidElement(Ie)&&!(0,m.M2)(Ie)?Ie:t.createElement("span",null,Ie),bt=Pt.props,_t=!bt.className||typeof bt.className=="string"?o()(bt.className,ce||`${We}-open`):bt.className,[Dt,Rt,Ht]=U(We,!Ve),$t=H(We,fe),vn=$t.arrowStyle,mn=Object.assign(Object.assign({},xe),$t.overlayStyle),zn=o()(se,{[`${We}-rtl`]:W==="rtl"},$t.className,Ne,Rt,Ht),[Xt,Vn]=(0,c.Cn)("Tooltip",ke.zIndex),Un=t.createElement(a.Z,Object.assign({},ke,{zIndex:Xt,showArrow:Le,placement:te,mouseEnterDelay:be,mouseLeaveDelay:ge,prefixCls:We,overlayClassName:zn,overlayStyle:Object.assign(Object.assign({},vn),ye),getTooltipContainer:D||le||ze,ref:x,builtinPlacements:j,overlay:_,visible:mt,onVisibleChange:S,afterVisibleChange:Pe!=null?Pe:$e,overlayInnerStyle:mn,arrowContent:t.createElement("span",{className:`${We}-arrow-content`}),motion:{motionName:(0,l.m)(je,"zoom-big-fast",k.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!at}),mt?(0,m.Tm)(Pt,{className:_t}):Pt);return Dt(t.createElement(y.Z.Provider,{value:Vn},Un))});q._InternalPanelDoNotUseOrYouWillBeFired=J;var z=q},67159:function(v,p,e){"use strict";e.d(p,{Z:function(){return r}});var t="5.19.1",r=t},16569:function(v,p,e){"use strict";e.d(p,{H:function(){return s}});var t=e(67294),r=e(56790);function o(){}const a=t.createContext({add:o,remove:o});function s(c){const l=t.useContext(a),d=t.useRef();return(0,r.zX)(b=>{if(b){const y=c?b.querySelector(c):b;l.add(y),d.current=y}else l.remove(d.current)})}var u=null},80037:function(v,p,e){"use strict";var t=e(64836).default;Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var r=t(e(5584)),o=p.default=r.default},5584:function(v,p,e){"use strict";var t=e(64836).default;Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var r=t(e(85369)),o=t(e(15704));const a={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},r.default),timePickerLocale:Object.assign({},o.default)};a.lang.ok="\u786E\u5B9A";var s=p.default=a},82925:function(v,p,e){"use strict";var t,r=e(64836).default;t={value:!0},p.Z=void 0;var o=r(e(74219)),a=r(e(80037)),s=r(e(5584)),u=r(e(15704));const c="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",l={locale:"zh-cn",Pagination:o.default,DatePicker:s.default,TimePicker:u.default,Calendar:a.default,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",emptyText:"\u6682\u65E0\u6570\u636E",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",deselectAll:"\u53D6\u6D88\u5168\u9009",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00",collapse:"\u6536\u8D77"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:c,method:c,array:c,object:c,number:c,date:c,boolean:c,integer:c,float:c,regexp:c,email:c,url:c,hex:c},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0",scanned:"\u5DF2\u626B\u63CF"},ColorPicker:{presetEmpty:"\u6682\u65E0"}};var d=p.Z=l},15704:function(v,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;const e={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};var t=p.default=e},93771:function(v,p,e){"use strict";e.d(p,{Z:function(){return L}});var t=e(87462),r=e(97685),o=e(4942),a=e(91),s=e(67294),u=e(93967),c=e.n(u),l=e(84898),d=e(54775),m=e(1413),b=e(71002),y=e(44958),f=e(27571),E=e(80334);function R(F){return F.replace(/-(.)/g,function(N,ee){return ee.toUpperCase()})}function T(F,N){(0,E.ZP)(F,"[@ant-design/icons] ".concat(N))}function C(F){return(0,b.Z)(F)==="object"&&typeof F.name=="string"&&typeof F.theme=="string"&&((0,b.Z)(F.icon)==="object"||typeof F.icon=="function")}function M(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(F).reduce(function(N,ee){var ce=F[ee];switch(ee){case"class":N.className=ce,delete N.class;break;default:delete N[ee],N[R(ee)]=ce}return N},{})}function P(F,N,ee){return ee?s.createElement(F.tag,(0,m.Z)((0,m.Z)({key:N},M(F.attrs)),ee),(F.children||[]).map(function(ce,le){return P(ce,"".concat(N,"-").concat(F.tag,"-").concat(le))})):s.createElement(F.tag,(0,m.Z)({key:N},M(F.attrs)),(F.children||[]).map(function(ce,le){return P(ce,"".concat(N,"-").concat(F.tag,"-").concat(le))}))}function A(F){return(0,l.R_)(F)[0]}function O(F){return F?Array.isArray(F)?F:[F]:[]}var $={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Z=` -.anticon { - display: inline-flex; - align-items: 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); - } -} -`,Q=function(N){var ee=(0,s.useContext)(d.Z),ce=ee.csp,le=ee.prefixCls,se=Z;le&&(se=se.replace(/anticon/g,le)),(0,s.useEffect)(function(){var fe=N.current,xe=(0,f.A)(fe);(0,y.hq)(se,"@ant-design-icons",{prepend:!0,csp:ce,attachTo:xe})},[])},U=["icon","className","onClick","style","primaryColor","secondaryColor"],Y={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function H(F){var N=F.primaryColor,ee=F.secondaryColor;Y.primaryColor=N,Y.secondaryColor=ee||A(N),Y.calculated=!!ee}function G(){return(0,m.Z)({},Y)}var J=function(N){var ee=N.icon,ce=N.className,le=N.onClick,se=N.style,fe=N.primaryColor,xe=N.secondaryColor,Ie=(0,a.Z)(N,U),Pe=s.useRef(),$e=Y;if(fe&&($e={primaryColor:fe,secondaryColor:xe||A(fe)}),Q(Pe),T(C(ee),"icon should be icon definiton, but got ".concat(ee)),!C(ee))return null;var at=ee;return at&&typeof at.icon=="function"&&(at=(0,m.Z)((0,m.Z)({},at),{},{icon:at.icon($e.primaryColor,$e.secondaryColor)})),P(at.icon,"svg-".concat(at.name),(0,m.Z)((0,m.Z)({className:ce,onClick:le,style:se,"data-icon":at.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Ie),{},{ref:Pe}))};J.displayName="IconReact",J.getTwoToneColors=G,J.setTwoToneColors=H;var X=J;function V(F){var N=O(F),ee=(0,r.Z)(N,2),ce=ee[0],le=ee[1];return X.setTwoToneColors({primaryColor:ce,secondaryColor:le})}function q(){var F=X.getTwoToneColors();return F.calculated?[F.primaryColor,F.secondaryColor]:F.primaryColor}var z=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];V(l.iN.primary);var k=s.forwardRef(function(F,N){var ee=F.className,ce=F.icon,le=F.spin,se=F.rotate,fe=F.tabIndex,xe=F.onClick,Ie=F.twoToneColor,Pe=(0,a.Z)(F,z),$e=s.useContext(d.Z),at=$e.prefixCls,ut=at===void 0?"anticon":at,Ue=$e.rootClassName,Ye=c()(Ue,ut,(0,o.Z)((0,o.Z)({},"".concat(ut,"-").concat(ce.name),!!ce.name),"".concat(ut,"-spin"),!!le||ce.name==="loading"),ee),Xe=fe;Xe===void 0&&xe&&(Xe=-1);var Fe=se?{msTransform:"rotate(".concat(se,"deg)"),transform:"rotate(".concat(se,"deg)")}:void 0,Je=O(Ie),Le=(0,r.Z)(Je,2),qe=Le[0],ze=Le[1];return s.createElement("span",(0,t.Z)({role:"img","aria-label":ce.name},Pe,{ref:N,tabIndex:Xe,onClick:xe,className:Ye}),s.createElement(X,{icon:ce,primaryColor:qe,secondaryColor:ze,style:Fe}))});k.displayName="AntdIcon",k.getTwoToneColor=q,k.setTwoToneColor=V;var L=k},54775:function(v,p,e){"use strict";var t=e(67294),r=(0,t.createContext)({});p.Z=r},76278:function(v,p,e){"use strict";e.d(p,{Z:function(){return l}});var t=e(87462),r=e(67294),o={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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=o,s=e(93771),u=function(m,b){return r.createElement(s.Z,(0,t.Z)({},m,{ref:b,icon:a}))},c=r.forwardRef(u),l=c},17012:function(v,p,e){"use strict";var t=e(87462),r=e(67294),o=e(1085),a=e(93771),s=function(l,d){return r.createElement(a.Z,(0,t.Z)({},l,{ref:d,icon:o.Z}))},u=r.forwardRef(s);p.Z=u},84481:function(v,p,e){"use strict";e.d(p,{Z:function(){return l}});var t=e(87462),r=e(67294),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},a=o,s=e(93771),u=function(m,b){return r.createElement(s.Z,(0,t.Z)({},m,{ref:b,icon:a}))},c=r.forwardRef(u),l=c},35872:function(v,p,e){"use strict";e.d(p,{Z:function(){return l}});var t=e(87462),r=e(67294),o={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"},a=o,s=e(93771),u=function(m,b){return r.createElement(s.Z,(0,t.Z)({},m,{ref:b,icon:a}))},c=r.forwardRef(u),l=c},26702:function(v,p,e){"use strict";e.d(p,{Z:function(){return l}});var t=e(87462),r=e(67294),o={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 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=o,s=e(93771),u=function(m,b){return r.createElement(s.Z,(0,t.Z)({},m,{ref:b,icon:a}))},c=r.forwardRef(u),l=c},1558:function(v,p,e){"use strict";e.d(p,{Z:function(){return l}});var t=e(87462),r=e(67294),o={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 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=o,s=e(93771),u=function(m,b){return r.createElement(s.Z,(0,t.Z)({},m,{ref:b,icon:a}))},c=r.forwardRef(u),l=c},62946:function(v,p,e){"use strict";e.d(p,{Z:function(){return l}});var t=e(87462),r=e(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=o,s=e(93771),u=function(m,b){return r.createElement(s.Z,(0,t.Z)({},m,{ref:b,icon:a}))},c=r.forwardRef(u),l=c},19267:function(v,p,e){"use strict";var t=e(87462),r=e(67294),o=e(15294),a=e(93771),s=function(l,d){return r.createElement(a.Z,(0,t.Z)({},l,{ref:d,icon:o.Z}))},u=r.forwardRef(s);p.Z=u},62994:function(v,p,e){"use strict";var t=e(87462),r=e(67294),o=e(50756),a=e(93771),s=function(l,d){return r.createElement(a.Z,(0,t.Z)({},l,{ref:d,icon:o.Z}))},u=r.forwardRef(s);p.Z=u},9669:function(v,p,e){v.exports=e(51609)},55448:function(v,p,e){"use strict";var t=e(64867),r=e(36026),o=e(4372),a=e(15327),s=e(94097),u=e(84109),c=e(67985),l=e(77874),d=e(82648),m=e(60644),b=e(90205);v.exports=function(f){return new Promise(function(R,T){var C=f.data,M=f.headers,P=f.responseType,A;function O(){f.cancelToken&&f.cancelToken.unsubscribe(A),f.signal&&f.signal.removeEventListener("abort",A)}t.isFormData(C)&&t.isStandardBrowserEnv()&&delete M["Content-Type"];var $=new XMLHttpRequest;if(f.auth){var Z=f.auth.username||"",Q=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";M.Authorization="Basic "+btoa(Z+":"+Q)}var U=s(f.baseURL,f.url);$.open(f.method.toUpperCase(),a(U,f.params,f.paramsSerializer),!0),$.timeout=f.timeout;function Y(){if($){var J="getAllResponseHeaders"in $?u($.getAllResponseHeaders()):null,X=!P||P==="text"||P==="json"?$.responseText:$.response,V={data:X,status:$.status,statusText:$.statusText,headers:J,config:f,request:$};r(function(z){R(z),O()},function(z){T(z),O()},V),$=null}}if("onloadend"in $?$.onloadend=Y:$.onreadystatechange=function(){!$||$.readyState!==4||$.status===0&&!($.responseURL&&$.responseURL.indexOf("file:")===0)||setTimeout(Y)},$.onabort=function(){$&&(T(new d("Request aborted",d.ECONNABORTED,f,$)),$=null)},$.onerror=function(){T(new d("Network Error",d.ERR_NETWORK,f,$,$)),$=null},$.ontimeout=function(){var X=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",V=f.transitional||l;f.timeoutErrorMessage&&(X=f.timeoutErrorMessage),T(new d(X,V.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,f,$)),$=null},t.isStandardBrowserEnv()){var H=(f.withCredentials||c(U))&&f.xsrfCookieName?o.read(f.xsrfCookieName):void 0;H&&(M[f.xsrfHeaderName]=H)}"setRequestHeader"in $&&t.forEach(M,function(X,V){typeof C=="undefined"&&V.toLowerCase()==="content-type"?delete M[V]:$.setRequestHeader(V,X)}),t.isUndefined(f.withCredentials)||($.withCredentials=!!f.withCredentials),P&&P!=="json"&&($.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&$.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&$.upload&&$.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(A=function(J){$&&(T(!J||J&&J.type?new m:J),$.abort(),$=null)},f.cancelToken&&f.cancelToken.subscribe(A),f.signal&&(f.signal.aborted?A():f.signal.addEventListener("abort",A))),C||(C=null);var G=b(U);if(G&&["http","https","file"].indexOf(G)===-1){T(new d("Unsupported protocol "+G+":",d.ERR_BAD_REQUEST,f));return}$.send(C)})}},51609:function(v,p,e){"use strict";var t=e(64867),r=e(91849),o=e(30321),a=e(47185),s=e(45546);function u(l){var d=new o(l),m=r(o.prototype.request,d);return t.extend(m,o.prototype,d),t.extend(m,d),m.create=function(y){return u(a(l,y))},m}var c=u(s);c.Axios=o,c.CanceledError=e(60644),c.CancelToken=e(14972),c.isCancel=e(26502),c.VERSION=e(97288).version,c.toFormData=e(47675),c.AxiosError=e(82648),c.Cancel=c.CanceledError,c.all=function(d){return Promise.all(d)},c.spread=e(8713),c.isAxiosError=e(16268),v.exports=c,v.exports.default=c},14972:function(v,p,e){"use strict";var t=e(60644);function r(o){if(typeof o!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(c){a=c});var s=this;this.promise.then(function(u){if(s._listeners){var c,l=s._listeners.length;for(c=0;c=200&&f<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(f){b.headers[f]={}}),r.forEach(["post","put","patch"],function(f){b.headers[f]=r.merge(c)}),v.exports=b},77874:function(v){"use strict";v.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},97288:function(v){v.exports={version:"0.27.2"}},91849:function(v){"use strict";v.exports=function(e,t){return function(){for(var o=new Array(arguments.length),a=0;a=0)return;u==="set-cookie"?s[u]=(s[u]?s[u]:[]).concat([c]):s[u]=s[u]?s[u]+", "+c:c}}),s}},90205:function(v){"use strict";v.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:function(v){"use strict";v.exports=function(e){return function(r){return e.apply(null,r)}}},47675:function(v,p,e){"use strict";var t=e(48764).lW,r=e(64867);function o(a,s){s=s||new FormData;var u=[];function c(d){return d===null?"":r.isDate(d)?d.toISOString():r.isArrayBuffer(d)||r.isTypedArray(d)?typeof Blob=="function"?new Blob([d]):t.from(d):d}function l(d,m){if(r.isPlainObject(d)||r.isArray(d)){if(u.indexOf(d)!==-1)throw Error("Circular reference detected in "+m);u.push(d),r.forEach(d,function(y,f){if(!r.isUndefined(y)){var E=m?m+"."+f:f,R;if(y&&!m&&typeof y=="object"){if(r.endsWith(f,"{}"))y=JSON.stringify(y);else if(r.endsWith(f,"[]")&&(R=r.toArray(y))){R.forEach(function(T){!r.isUndefined(T)&&s.append(E,c(T))});return}}l(y,E)}}),u.pop()}else s.append(m,c(d))}return l(a),s}v.exports=o},54875:function(v,p,e){"use strict";var t=e(97288).version,r=e(82648),o={};["object","boolean","number","function","string","symbol"].forEach(function(u,c){o[u]=function(d){return typeof d===u||"a"+(c<1?"n ":" ")+u}});var a={};o.transitional=function(c,l,d){function m(b,y){return"[Axios v"+t+"] Transitional option '"+b+"'"+y+(d?". "+d:"")}return function(b,y,f){if(c===!1)throw new r(m(y," has been removed"+(l?" in "+l:"")),r.ERR_DEPRECATED);return l&&!a[y]&&(a[y]=!0,console.warn(m(y," has been deprecated since v"+l+" and will be removed in the near future"))),c?c(b,y,f):!0}};function s(u,c,l){if(typeof u!="object")throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);for(var d=Object.keys(u),m=d.length;m-- >0;){var b=d[m],y=c[b];if(y){var f=u[b],E=f===void 0||y(f,b,u);if(E!==!0)throw new r("option "+b+" must be "+E,r.ERR_BAD_OPTION_VALUE);continue}if(l!==!0)throw new r("Unknown option "+b,r.ERR_BAD_OPTION)}}v.exports={assertOptions:s,validators:o}},64867:function(v,p,e){"use strict";var t=e(91849),r=Object.prototype.toString,o=function(z){return function(k){var L=r.call(k);return z[L]||(z[L]=L.slice(8,-1).toLowerCase())}}(Object.create(null));function a(z){return z=z.toLowerCase(),function(L){return o(L)===z}}function s(z){return Array.isArray(z)}function u(z){return typeof z=="undefined"}function c(z){return z!==null&&!u(z)&&z.constructor!==null&&!u(z.constructor)&&typeof z.constructor.isBuffer=="function"&&z.constructor.isBuffer(z)}var l=a("ArrayBuffer");function d(z){var k;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?k=ArrayBuffer.isView(z):k=z&&z.buffer&&l(z.buffer),k}function m(z){return typeof z=="string"}function b(z){return typeof z=="number"}function y(z){return z!==null&&typeof z=="object"}function f(z){if(o(z)!=="object")return!1;var k=Object.getPrototypeOf(z);return k===null||k===Object.prototype}var E=a("Date"),R=a("File"),T=a("Blob"),C=a("FileList");function M(z){return r.call(z)==="[object Function]"}function P(z){return y(z)&&M(z.pipe)}function A(z){var k="[object FormData]";return z&&(typeof FormData=="function"&&z instanceof FormData||r.call(z)===k||M(z.toString)&&z.toString()===k)}var O=a("URLSearchParams");function $(z){return z.trim?z.trim():z.replace(/^\s+|\s+$/g,"")}function Z(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function Q(z,k){if(!(z===null||typeof z=="undefined"))if(typeof z!="object"&&(z=[z]),s(z))for(var L=0,F=z.length;L0;)ee=F[N],ce[ee]||(k[ee]=z[ee],ce[ee]=!0);z=Object.getPrototypeOf(z)}while(z&&(!L||L(z,k))&&z!==Object.prototype);return k}function X(z,k,L){z=String(z),(L===void 0||L>z.length)&&(L=z.length),L-=k.length;var F=z.indexOf(k,L);return F!==-1&&F===L}function V(z){if(!z)return null;var k=z.length;if(u(k))return null;for(var L=new Array(k);k-- >0;)L[k]=z[k];return L}var q=function(z){return function(k){return z&&k instanceof z}}(typeof Uint8Array!="undefined"&&Object.getPrototypeOf(Uint8Array));v.exports={isArray:s,isArrayBuffer:l,isBuffer:c,isFormData:A,isArrayBufferView:d,isString:m,isNumber:b,isObject:y,isPlainObject:f,isUndefined:u,isDate:E,isFile:R,isBlob:T,isFunction:M,isStream:P,isURLSearchParams:O,isStandardBrowserEnv:Z,forEach:Q,merge:U,extend:Y,trim:$,stripBOM:H,inherits:G,toFlatObject:J,kindOf:o,kindOfTest:a,endsWith:X,toArray:V,isTypedArray:q,isFileList:C}},79742:function(v,p){"use strict";p.byteLength=c,p.toByteArray=d,p.fromByteArray=y;for(var e=[],t=[],r=typeof Uint8Array!="undefined"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var R=f.indexOf("=");R===-1&&(R=E);var T=R===E?0:4-R%4;return[R,T]}function c(f){var E=u(f),R=E[0],T=E[1];return(R+T)*3/4-T}function l(f,E,R){return(E+R)*3/4-R}function d(f){var E,R=u(f),T=R[0],C=R[1],M=new r(l(f,T,C)),P=0,A=C>0?T-4:T,O;for(O=0;O>16&255,M[P++]=E>>8&255,M[P++]=E&255;return C===2&&(E=t[f.charCodeAt(O)]<<2|t[f.charCodeAt(O+1)]>>4,M[P++]=E&255),C===1&&(E=t[f.charCodeAt(O)]<<10|t[f.charCodeAt(O+1)]<<4|t[f.charCodeAt(O+2)]>>2,M[P++]=E>>8&255,M[P++]=E&255),M}function m(f){return e[f>>18&63]+e[f>>12&63]+e[f>>6&63]+e[f&63]}function b(f,E,R){for(var T,C=[],M=E;MA?A:P+M));return T===1?(E=f[R-1],C.push(e[E>>2]+e[E<<4&63]+"==")):T===2&&(E=(f[R-2]<<8)+f[R-1],C.push(e[E>>10]+e[E>>4&63]+e[E<<2&63]+"=")),C.join("")}},48764:function(v,p,e){"use strict";var t;const r=e(79742),o=e(80645),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;p.lW=l,t=P,p.h2=50;const s=2147483647;t=s,l.TYPED_ARRAY_SUPPORT=u(),!l.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function u(){try{const w=new Uint8Array(1),S={foo:function(){return 42}};return Object.setPrototypeOf(S,Uint8Array.prototype),Object.setPrototypeOf(w,S),w.foo()===42}catch(w){return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function c(w){if(w>s)throw new RangeError('The value "'+w+'" is invalid for option "size"');const S=new Uint8Array(w);return Object.setPrototypeOf(S,l.prototype),S}function l(w,S,j){if(typeof w=="number"){if(typeof S=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(w)}return d(w,S,j)}l.poolSize=8192;function d(w,S,j){if(typeof w=="string")return f(w,S);if(ArrayBuffer.isView(w))return R(w);if(w==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w);if(re(w,ArrayBuffer)||w&&re(w.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(re(w,SharedArrayBuffer)||w&&re(w.buffer,SharedArrayBuffer)))return T(w,S,j);if(typeof w=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const B=w.valueOf&&w.valueOf();if(B!=null&&B!==w)return l.from(B,S,j);const _=C(w);if(_)return _;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof w[Symbol.toPrimitive]=="function")return l.from(w[Symbol.toPrimitive]("string"),S,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w)}l.from=function(w,S,j){return d(w,S,j)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function m(w){if(typeof w!="number")throw new TypeError('"size" argument must be of type number');if(w<0)throw new RangeError('The value "'+w+'" is invalid for option "size"')}function b(w,S,j){return m(w),w<=0?c(w):S!==void 0?typeof j=="string"?c(w).fill(S,j):c(w).fill(S):c(w)}l.alloc=function(w,S,j){return b(w,S,j)};function y(w){return m(w),c(w<0?0:M(w)|0)}l.allocUnsafe=function(w){return y(w)},l.allocUnsafeSlow=function(w){return y(w)};function f(w,S){if((typeof S!="string"||S==="")&&(S="utf8"),!l.isEncoding(S))throw new TypeError("Unknown encoding: "+S);const j=A(w,S)|0;let B=c(j);const _=B.write(w,S);return _!==j&&(B=B.slice(0,_)),B}function E(w){const S=w.length<0?0:M(w.length)|0,j=c(S);for(let B=0;B=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return w|0}function P(w){return+w!=w&&(w=0),l.alloc(+w)}l.isBuffer=function(S){return S!=null&&S._isBuffer===!0&&S!==l.prototype},l.compare=function(S,j){if(re(S,Uint8Array)&&(S=l.from(S,S.offset,S.byteLength)),re(j,Uint8Array)&&(j=l.from(j,j.offset,j.byteLength)),!l.isBuffer(S)||!l.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(S===j)return 0;let B=S.length,_=j.length;for(let D=0,te=Math.min(B,_);D_.length?(l.isBuffer(te)||(te=l.from(te)),te.copy(_,D)):Uint8Array.prototype.set.call(_,te,D);else if(l.isBuffer(te))te.copy(_,D);else throw new TypeError('"list" argument must be an Array of Buffers');D+=te.length}return _};function A(w,S){if(l.isBuffer(w))return w.length;if(ArrayBuffer.isView(w)||re(w,ArrayBuffer))return w.byteLength;if(typeof w!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof w);const j=w.length,B=arguments.length>2&&arguments[2]===!0;if(!B&&j===0)return 0;let _=!1;for(;;)switch(S){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":return Le(w).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j*2;case"hex":return j>>>1;case"base64":return ie(w).length;default:if(_)return B?-1:Le(w).length;S=(""+S).toLowerCase(),_=!0}}l.byteLength=A;function O(w,S,j){let B=!1;if((S===void 0||S<0)&&(S=0),S>this.length||((j===void 0||j>this.length)&&(j=this.length),j<=0)||(j>>>=0,S>>>=0,j<=S))return"";for(w||(w="utf8");;)switch(w){case"hex":return F(this,S,j);case"utf8":case"utf-8":return V(this,S,j);case"ascii":return k(this,S,j);case"latin1":case"binary":return L(this,S,j);case"base64":return X(this,S,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,S,j);default:if(B)throw new TypeError("Unknown encoding: "+w);w=(w+"").toLowerCase(),B=!0}}l.prototype._isBuffer=!0;function $(w,S,j){const B=w[S];w[S]=w[j],w[j]=B}l.prototype.swap16=function(){const S=this.length;if(S%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let j=0;jj&&(S+=" ... "),""},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(S,j,B,_,D){if(re(S,Uint8Array)&&(S=l.from(S,S.offset,S.byteLength)),!l.isBuffer(S))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof S);if(j===void 0&&(j=0),B===void 0&&(B=S?S.length:0),_===void 0&&(_=0),D===void 0&&(D=this.length),j<0||B>S.length||_<0||D>this.length)throw new RangeError("out of range index");if(_>=D&&j>=B)return 0;if(_>=D)return-1;if(j>=B)return 1;if(j>>>=0,B>>>=0,_>>>=0,D>>>=0,this===S)return 0;let te=D-_,be=B-j;const ge=Math.min(te,be),ye=this.slice(_,D),Ne=S.slice(j,B);for(let ke=0;ke2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),j=+j,x(j)&&(j=_?0:w.length-1),j<0&&(j=w.length+j),j>=w.length){if(_)return-1;j=w.length-1}else if(j<0)if(_)j=0;else return-1;if(typeof S=="string"&&(S=l.from(S,B)),l.isBuffer(S))return S.length===0?-1:Q(w,S,j,B,_);if(typeof S=="number")return S=S&255,typeof Uint8Array.prototype.indexOf=="function"?_?Uint8Array.prototype.indexOf.call(w,S,j):Uint8Array.prototype.lastIndexOf.call(w,S,j):Q(w,[S],j,B,_);throw new TypeError("val must be string, number or Buffer")}function Q(w,S,j,B,_){let D=1,te=w.length,be=S.length;if(B!==void 0&&(B=String(B).toLowerCase(),B==="ucs2"||B==="ucs-2"||B==="utf16le"||B==="utf-16le")){if(w.length<2||S.length<2)return-1;D=2,te/=2,be/=2,j/=2}function ge(Ne,ke){return D===1?Ne[ke]:Ne.readUInt16BE(ke*D)}let ye;if(_){let Ne=-1;for(ye=j;yete&&(j=te-be),ye=j;ye>=0;ye--){let Ne=!0;for(let ke=0;ke_&&(B=_)):B=_;const D=S.length;B>D/2&&(B=D/2);let te;for(te=0;te>>0,isFinite(B)?(B=B>>>0,_===void 0&&(_="utf8")):(_=B,B=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const D=this.length-j;if((B===void 0||B>D)&&(B=D),S.length>0&&(B<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");_||(_="utf8");let te=!1;for(;;)switch(_){case"hex":return U(this,S,j,B);case"utf8":case"utf-8":return Y(this,S,j,B);case"ascii":case"latin1":case"binary":return H(this,S,j,B);case"base64":return G(this,S,j,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,S,j,B);default:if(te)throw new TypeError("Unknown encoding: "+_);_=(""+_).toLowerCase(),te=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X(w,S,j){return S===0&&j===w.length?r.fromByteArray(w):r.fromByteArray(w.slice(S,j))}function V(w,S,j){j=Math.min(w.length,j);const B=[];let _=S;for(;_239?4:D>223?3:D>191?2:1;if(_+be<=j){let ge,ye,Ne,ke;switch(be){case 1:D<128&&(te=D);break;case 2:ge=w[_+1],(ge&192)===128&&(ke=(D&31)<<6|ge&63,ke>127&&(te=ke));break;case 3:ge=w[_+1],ye=w[_+2],(ge&192)===128&&(ye&192)===128&&(ke=(D&15)<<12|(ge&63)<<6|ye&63,ke>2047&&(ke<55296||ke>57343)&&(te=ke));break;case 4:ge=w[_+1],ye=w[_+2],Ne=w[_+3],(ge&192)===128&&(ye&192)===128&&(Ne&192)===128&&(ke=(D&15)<<18|(ge&63)<<12|(ye&63)<<6|Ne&63,ke>65535&&ke<1114112&&(te=ke))}}te===null?(te=65533,be=1):te>65535&&(te-=65536,B.push(te>>>10&1023|55296),te=56320|te&1023),B.push(te),_+=be}return z(B)}const q=4096;function z(w){const S=w.length;if(S<=q)return String.fromCharCode.apply(String,w);let j="",B=0;for(;BB)&&(j=B);let _="";for(let D=S;DB&&(S=B),j<0?(j+=B,j<0&&(j=0)):j>B&&(j=B),jj)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(S,j,B){S=S>>>0,j=j>>>0,B||ee(S,j,this.length);let _=this[S],D=1,te=0;for(;++te>>0,j=j>>>0,B||ee(S,j,this.length);let _=this[S+--j],D=1;for(;j>0&&(D*=256);)_+=this[S+--j]*D;return _},l.prototype.readUint8=l.prototype.readUInt8=function(S,j){return S=S>>>0,j||ee(S,1,this.length),this[S]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(S,j){return S=S>>>0,j||ee(S,2,this.length),this[S]|this[S+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(S,j){return S=S>>>0,j||ee(S,2,this.length),this[S]<<8|this[S+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(S,j){return S=S>>>0,j||ee(S,4,this.length),(this[S]|this[S+1]<<8|this[S+2]<<16)+this[S+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(S,j){return S=S>>>0,j||ee(S,4,this.length),this[S]*16777216+(this[S+1]<<16|this[S+2]<<8|this[S+3])},l.prototype.readBigUInt64LE=ve(function(S){S=S>>>0,Ye(S,"offset");const j=this[S],B=this[S+7];(j===void 0||B===void 0)&&Xe(S,this.length-8);const _=j+this[++S]*Ba(2,8)+this[++S]*Ba(2,16)+this[++S]*Ba(2,24),D=this[++S]+this[++S]*Ba(2,8)+this[++S]*Ba(2,16)+B*Ba(2,24);return BigInt(_)+(BigInt(D)<>>0,Ye(S,"offset");const j=this[S],B=this[S+7];(j===void 0||B===void 0)&&Xe(S,this.length-8);const _=j*Ba(2,24)+this[++S]*Ba(2,16)+this[++S]*Ba(2,8)+this[++S],D=this[++S]*Ba(2,24)+this[++S]*Ba(2,16)+this[++S]*Ba(2,8)+B;return(BigInt(_)<>>0,j=j>>>0,B||ee(S,j,this.length);let _=this[S],D=1,te=0;for(;++te=D&&(_-=Math.pow(2,8*j)),_},l.prototype.readIntBE=function(S,j,B){S=S>>>0,j=j>>>0,B||ee(S,j,this.length);let _=j,D=1,te=this[S+--_];for(;_>0&&(D*=256);)te+=this[S+--_]*D;return D*=128,te>=D&&(te-=Math.pow(2,8*j)),te},l.prototype.readInt8=function(S,j){return S=S>>>0,j||ee(S,1,this.length),this[S]&128?(255-this[S]+1)*-1:this[S]},l.prototype.readInt16LE=function(S,j){S=S>>>0,j||ee(S,2,this.length);const B=this[S]|this[S+1]<<8;return B&32768?B|4294901760:B},l.prototype.readInt16BE=function(S,j){S=S>>>0,j||ee(S,2,this.length);const B=this[S+1]|this[S]<<8;return B&32768?B|4294901760:B},l.prototype.readInt32LE=function(S,j){return S=S>>>0,j||ee(S,4,this.length),this[S]|this[S+1]<<8|this[S+2]<<16|this[S+3]<<24},l.prototype.readInt32BE=function(S,j){return S=S>>>0,j||ee(S,4,this.length),this[S]<<24|this[S+1]<<16|this[S+2]<<8|this[S+3]},l.prototype.readBigInt64LE=ve(function(S){S=S>>>0,Ye(S,"offset");const j=this[S],B=this[S+7];(j===void 0||B===void 0)&&Xe(S,this.length-8);const _=this[S+4]+this[S+5]*Ba(2,8)+this[S+6]*Ba(2,16)+(B<<24);return(BigInt(_)<>>0,Ye(S,"offset");const j=this[S],B=this[S+7];(j===void 0||B===void 0)&&Xe(S,this.length-8);const _=(j<<24)+this[++S]*Ba(2,16)+this[++S]*Ba(2,8)+this[++S];return(BigInt(_)<>>0,j||ee(S,4,this.length),o.read(this,S,!0,23,4)},l.prototype.readFloatBE=function(S,j){return S=S>>>0,j||ee(S,4,this.length),o.read(this,S,!1,23,4)},l.prototype.readDoubleLE=function(S,j){return S=S>>>0,j||ee(S,8,this.length),o.read(this,S,!0,52,8)},l.prototype.readDoubleBE=function(S,j){return S=S>>>0,j||ee(S,8,this.length),o.read(this,S,!1,52,8)};function ce(w,S,j,B,_,D){if(!l.isBuffer(w))throw new TypeError('"buffer" argument must be a Buffer instance');if(S>_||Sw.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(S,j,B,_){if(S=+S,j=j>>>0,B=B>>>0,!_){const be=Math.pow(2,8*B)-1;ce(this,S,j,B,be,0)}let D=1,te=0;for(this[j]=S&255;++te>>0,B=B>>>0,!_){const be=Math.pow(2,8*B)-1;ce(this,S,j,B,be,0)}let D=B-1,te=1;for(this[j+D]=S&255;--D>=0&&(te*=256);)this[j+D]=S/te&255;return j+B},l.prototype.writeUint8=l.prototype.writeUInt8=function(S,j,B){return S=+S,j=j>>>0,B||ce(this,S,j,1,255,0),this[j]=S&255,j+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(S,j,B){return S=+S,j=j>>>0,B||ce(this,S,j,2,65535,0),this[j]=S&255,this[j+1]=S>>>8,j+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(S,j,B){return S=+S,j=j>>>0,B||ce(this,S,j,2,65535,0),this[j]=S>>>8,this[j+1]=S&255,j+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(S,j,B){return S=+S,j=j>>>0,B||ce(this,S,j,4,4294967295,0),this[j+3]=S>>>24,this[j+2]=S>>>16,this[j+1]=S>>>8,this[j]=S&255,j+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(S,j,B){return S=+S,j=j>>>0,B||ce(this,S,j,4,4294967295,0),this[j]=S>>>24,this[j+1]=S>>>16,this[j+2]=S>>>8,this[j+3]=S&255,j+4};function le(w,S,j,B,_){Ue(S,B,_,w,j,7);let D=Number(S&BigInt(4294967295));w[j++]=D,D=D>>8,w[j++]=D,D=D>>8,w[j++]=D,D=D>>8,w[j++]=D;let te=Number(S>>BigInt(32)&BigInt(4294967295));return w[j++]=te,te=te>>8,w[j++]=te,te=te>>8,w[j++]=te,te=te>>8,w[j++]=te,j}function se(w,S,j,B,_){Ue(S,B,_,w,j,7);let D=Number(S&BigInt(4294967295));w[j+7]=D,D=D>>8,w[j+6]=D,D=D>>8,w[j+5]=D,D=D>>8,w[j+4]=D;let te=Number(S>>BigInt(32)&BigInt(4294967295));return w[j+3]=te,te=te>>8,w[j+2]=te,te=te>>8,w[j+1]=te,te=te>>8,w[j]=te,j+8}l.prototype.writeBigUInt64LE=ve(function(S,j=0){return le(this,S,j,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=ve(function(S,j=0){return se(this,S,j,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(S,j,B,_){if(S=+S,j=j>>>0,!_){const ge=Math.pow(2,8*B-1);ce(this,S,j,B,ge-1,-ge)}let D=0,te=1,be=0;for(this[j]=S&255;++D>0)-be&255;return j+B},l.prototype.writeIntBE=function(S,j,B,_){if(S=+S,j=j>>>0,!_){const ge=Math.pow(2,8*B-1);ce(this,S,j,B,ge-1,-ge)}let D=B-1,te=1,be=0;for(this[j+D]=S&255;--D>=0&&(te*=256);)S<0&&be===0&&this[j+D+1]!==0&&(be=1),this[j+D]=(S/te>>0)-be&255;return j+B},l.prototype.writeInt8=function(S,j,B){return S=+S,j=j>>>0,B||ce(this,S,j,1,127,-128),S<0&&(S=255+S+1),this[j]=S&255,j+1},l.prototype.writeInt16LE=function(S,j,B){return S=+S,j=j>>>0,B||ce(this,S,j,2,32767,-32768),this[j]=S&255,this[j+1]=S>>>8,j+2},l.prototype.writeInt16BE=function(S,j,B){return S=+S,j=j>>>0,B||ce(this,S,j,2,32767,-32768),this[j]=S>>>8,this[j+1]=S&255,j+2},l.prototype.writeInt32LE=function(S,j,B){return S=+S,j=j>>>0,B||ce(this,S,j,4,2147483647,-2147483648),this[j]=S&255,this[j+1]=S>>>8,this[j+2]=S>>>16,this[j+3]=S>>>24,j+4},l.prototype.writeInt32BE=function(S,j,B){return S=+S,j=j>>>0,B||ce(this,S,j,4,2147483647,-2147483648),S<0&&(S=4294967295+S+1),this[j]=S>>>24,this[j+1]=S>>>16,this[j+2]=S>>>8,this[j+3]=S&255,j+4},l.prototype.writeBigInt64LE=ve(function(S,j=0){return le(this,S,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=ve(function(S,j=0){return se(this,S,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function fe(w,S,j,B,_,D){if(j+B>w.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function xe(w,S,j,B,_){return S=+S,j=j>>>0,_||fe(w,S,j,4,34028234663852886e22,-34028234663852886e22),o.write(w,S,j,B,23,4),j+4}l.prototype.writeFloatLE=function(S,j,B){return xe(this,S,j,!0,B)},l.prototype.writeFloatBE=function(S,j,B){return xe(this,S,j,!1,B)};function Ie(w,S,j,B,_){return S=+S,j=j>>>0,_||fe(w,S,j,8,17976931348623157e292,-17976931348623157e292),o.write(w,S,j,B,52,8),j+8}l.prototype.writeDoubleLE=function(S,j,B){return Ie(this,S,j,!0,B)},l.prototype.writeDoubleBE=function(S,j,B){return Ie(this,S,j,!1,B)},l.prototype.copy=function(S,j,B,_){if(!l.isBuffer(S))throw new TypeError("argument should be a Buffer");if(B||(B=0),!_&&_!==0&&(_=this.length),j>=S.length&&(j=S.length),j||(j=0),_>0&&_=this.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("sourceEnd out of bounds");_>this.length&&(_=this.length),S.length-j<_-B&&(_=S.length-j+B);const D=_-B;return this===S&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(j,B,_):Uint8Array.prototype.set.call(S,this.subarray(B,_),j),D},l.prototype.fill=function(S,j,B,_){if(typeof S=="string"){if(typeof j=="string"?(_=j,j=0,B=this.length):typeof B=="string"&&(_=B,B=this.length),_!==void 0&&typeof _!="string")throw new TypeError("encoding must be a string");if(typeof _=="string"&&!l.isEncoding(_))throw new TypeError("Unknown encoding: "+_);if(S.length===1){const te=S.charCodeAt(0);(_==="utf8"&&te<128||_==="latin1")&&(S=te)}}else typeof S=="number"?S=S&255:typeof S=="boolean"&&(S=Number(S));if(j<0||this.length>>0,B=B===void 0?this.length:B>>>0,S||(S=0);let D;if(typeof S=="number")for(D=j;D4294967296?_=at(String(j)):typeof j=="bigint"&&(_=String(j),(j>Ba(BigInt(2),BigInt(32))||j<-Ba(BigInt(2),BigInt(32)))&&(_=at(_)),_+="n"),B+=` It must be ${S}. Received ${_}`,B},RangeError);function at(w){let S="",j=w.length;const B=w[0]==="-"?1:0;for(;j>=B+4;j-=3)S=`_${w.slice(j-3,j)}${S}`;return`${w.slice(0,j)}${S}`}function ut(w,S,j){Ye(S,"offset"),(w[S]===void 0||w[S+j]===void 0)&&Xe(S,w.length-(j+1))}function Ue(w,S,j,B,_,D){if(w>j||w3?S===0||S===BigInt(0)?be=`>= 0${te} and < 2${te} ** ${(D+1)*8}${te}`:be=`>= -(2${te} ** ${(D+1)*8-1}${te}) and < 2 ** ${(D+1)*8-1}${te}`:be=`>= ${S}${te} and <= ${j}${te}`,new Pe.ERR_OUT_OF_RANGE("value",be,w)}ut(B,_,D)}function Ye(w,S){if(typeof w!="number")throw new Pe.ERR_INVALID_ARG_TYPE(S,"number",w)}function Xe(w,S,j){throw Math.floor(w)!==w?(Ye(w,j),new Pe.ERR_OUT_OF_RANGE(j||"offset","an integer",w)):S<0?new Pe.ERR_BUFFER_OUT_OF_BOUNDS:new Pe.ERR_OUT_OF_RANGE(j||"offset",`>= ${j?1:0} and <= ${S}`,w)}const Fe=/[^+/0-9A-Za-z-_]/g;function Je(w){if(w=w.split("=")[0],w=w.trim().replace(Fe,""),w.length<2)return"";for(;w.length%4!==0;)w=w+"=";return w}function Le(w,S){S=S||1/0;let j;const B=w.length;let _=null;const D=[];for(let te=0;te55295&&j<57344){if(!_){if(j>56319){(S-=3)>-1&&D.push(239,191,189);continue}else if(te+1===B){(S-=3)>-1&&D.push(239,191,189);continue}_=j;continue}if(j<56320){(S-=3)>-1&&D.push(239,191,189),_=j;continue}j=(_-55296<<10|j-56320)+65536}else _&&(S-=3)>-1&&D.push(239,191,189);if(_=null,j<128){if((S-=1)<0)break;D.push(j)}else if(j<2048){if((S-=2)<0)break;D.push(j>>6|192,j&63|128)}else if(j<65536){if((S-=3)<0)break;D.push(j>>12|224,j>>6&63|128,j&63|128)}else if(j<1114112){if((S-=4)<0)break;D.push(j>>18|240,j>>12&63|128,j>>6&63|128,j&63|128)}else throw new Error("Invalid code point")}return D}function qe(w){const S=[];for(let j=0;j>8,_=j%256,D.push(_),D.push(B);return D}function ie(w){return r.toByteArray(Je(w))}function W(w,S,j,B){let _;for(_=0;_=S.length||_>=w.length);++_)S[_+j]=w[_];return _}function re(w,S){return w instanceof S||w!=null&&w.constructor!=null&&w.constructor.name!=null&&w.constructor.name===S.name}function x(w){return w!==w}const oe=function(){const w="0123456789abcdef",S=new Array(256);for(let j=0;j<16;++j){const B=j*16;for(let _=0;_<16;++_)S[B+_]=w[j]+w[_]}return S}();function ve(w){return typeof BigInt=="undefined"?he:w}function he(){throw new Error("BigInt not supported")}},51804:function(v,p,e){"use strict";var t=e(75618),r=e(17205),o=e(67191),a=e(5516),s=e(49981),u=v.exports=function(c,l){var d,m,b,y,f;return arguments.length<2||typeof c!="string"?(y=l,l=c,c=null):y=arguments[2],t(c)?(d=s.call(c,"c"),m=s.call(c,"e"),b=s.call(c,"w")):(d=b=!0,m=!1),f={value:l,configurable:d,enumerable:m,writable:b},y?o(a(y),f):f};u.gs=function(c,l,d){var m,b,y,f;return typeof c!="string"?(y=d,d=l,l=c,c=null):y=arguments[3],t(l)?r(l)?t(d)?r(d)||(y=d,d=void 0):d=void 0:(y=l,l=d=void 0):l=void 0,t(c)?(m=s.call(c,"c"),b=s.call(c,"e")):(m=!0,b=!1),f={get:l,set:d,configurable:m,enumerable:b},y?o(a(y),f):f}},27484:function(v){(function(p,e){v.exports=e()})(this,function(){"use strict";var p=1e3,e=6e4,t=36e5,r="millisecond",o="second",a="minute",s="hour",u="day",c="week",l="month",d="quarter",m="year",b="date",y="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var G=["th","st","nd","rd"],J=H%100;return"["+H+(G[(J-20)%10]||G[J]||G[0])+"]"}},T=function(H,G,J){var X=String(H);return!X||X.length>=G?H:""+Array(G+1-X.length).join(J)+H},C={s:T,z:function(H){var G=-H.utcOffset(),J=Math.abs(G),X=Math.floor(J/60),V=J%60;return(G<=0?"+":"-")+T(X,2,"0")+":"+T(V,2,"0")},m:function H(G,J){if(G.date()1)return H(z[0])}else{var k=G.name;P[k]=G,V=k}return!X&&V&&(M=V),V||!X&&M},Z=function(H,G){if(O(H))return H.clone();var J=typeof G=="object"?G:{};return J.date=H,J.args=arguments,new U(J)},Q=C;Q.l=$,Q.i=O,Q.w=function(H,G){return Z(H,{locale:G.$L,utc:G.$u,x:G.$x,$offset:G.$offset})};var U=function(){function H(J){this.$L=$(J.locale,null,!0),this.parse(J),this.$x=this.$x||J.x||{},this[A]=!0}var G=H.prototype;return G.parse=function(J){this.$d=function(X){var V=X.date,q=X.utc;if(V===null)return new Date(NaN);if(Q.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var z=V.match(f);if(z){var k=z[2]-1||0,L=(z[7]||"0").substring(0,3);return q?new Date(Date.UTC(z[1],k,z[3]||1,z[4]||0,z[5]||0,z[6]||0,L)):new Date(z[1],k,z[3]||1,z[4]||0,z[5]||0,z[6]||0,L)}}return new Date(V)}(J),this.init()},G.init=function(){var J=this.$d;this.$y=J.getFullYear(),this.$M=J.getMonth(),this.$D=J.getDate(),this.$W=J.getDay(),this.$H=J.getHours(),this.$m=J.getMinutes(),this.$s=J.getSeconds(),this.$ms=J.getMilliseconds()},G.$utils=function(){return Q},G.isValid=function(){return this.$d.toString()!==y},G.isSame=function(J,X){var V=Z(J);return this.startOf(X)<=V&&V<=this.endOf(X)},G.isAfter=function(J,X){return Z(J)68?1900:2e3)},u=function(y){return function(f){this[y]=+f}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(f){if(!f||f==="Z")return 0;var E=f.match(/([+-]|\d\d)/g),R=60*E[1]+(+E[2]||0);return R===0?0:E[0]==="+"?-R:R}(y)}],l=function(y){var f=a[y];return f&&(f.indexOf?f:f.s.concat(f.f))},d=function(y,f){var E,R=a.meridiem;if(R){for(var T=1;T<=24;T+=1)if(y.indexOf(R(T,0,f))>-1){E=T>12;break}}else E=y===(f?"pm":"PM");return E},m={A:[o,function(y){this.afternoon=d(y,!1)}],a:[o,function(y){this.afternoon=d(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[t,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[r,u("seconds")],ss:[r,u("seconds")],m:[r,u("minutes")],mm:[r,u("minutes")],H:[r,u("hours")],h:[r,u("hours")],HH:[r,u("hours")],hh:[r,u("hours")],D:[r,u("day")],DD:[t,u("day")],Do:[o,function(y){var f=a.ordinal,E=y.match(/\d+/);if(this.day=E[0],f)for(var R=1;R<=31;R+=1)f(R).replace(/\[|\]/g,"")===y&&(this.day=R)}],M:[r,u("month")],MM:[t,u("month")],MMM:[o,function(y){var f=l("months"),E=(l("monthsShort")||f.map(function(R){return R.slice(0,3)})).indexOf(y)+1;if(E<1)throw new Error;this.month=E%12||E}],MMMM:[o,function(y){var f=l("months").indexOf(y)+1;if(f<1)throw new Error;this.month=f%12||f}],Y:[/[+-]?\d+/,u("year")],YY:[t,function(y){this.year=s(y)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function b(y){var f,E;f=y,E=a&&a.formats;for(var R=(y=f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,Z,Q){var U=Q&&Q.toUpperCase();return Z||E[Q]||p[Q]||E[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Y,H,G){return H||G.slice(1)})})).match(e),T=R.length,C=0;C-1)return new Date((X==="X"?1e3:1)*J);var q=b(X)(J),z=q.year,k=q.month,L=q.day,F=q.hours,N=q.minutes,ee=q.seconds,ce=q.milliseconds,le=q.zone,se=new Date,fe=L||(z||k?1:se.getDate()),xe=z||se.getFullYear(),Ie=0;z&&!k||(Ie=k>0?k-1:se.getMonth());var Pe=F||0,$e=N||0,at=ee||0,ut=ce||0;return le?new Date(Date.UTC(xe,Ie,fe,Pe,$e,at,ut+60*le.offset*1e3)):V?new Date(Date.UTC(xe,Ie,fe,Pe,$e,at,ut)):new Date(xe,Ie,fe,Pe,$e,at,ut)}catch(Ue){return new Date("")}}(M,O,P),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),Q&&M!=this.format(O)&&(this.$d=new Date("")),a={}}else if(O instanceof Array)for(var Y=O.length,H=1;H<=Y;H+=1){A[1]=O[H-1];var G=E.apply(this,A);if(G.isValid()){this.$d=G.$d,this.$L=G.$L,this.init();break}H===Y&&(this.$d=new Date(""))}else T.call(this,C)}}})},1646:function(v){(function(p,e){v.exports=e()})(this,function(){"use strict";var p,e,t=1e3,r=6e4,o=36e5,a=864e5,s=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=31536e6,c=2628e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,d={years:u,months:c,days:a,hours:o,minutes:r,seconds:t,milliseconds:1,weeks:6048e5},m=function(P){return P instanceof C},b=function(P,A,O){return new C(P,O,A.$l)},y=function(P){return e.p(P)+"s"},f=function(P){return P<0},E=function(P){return f(P)?Math.ceil(P):Math.floor(P)},R=function(P){return Math.abs(P)},T=function(P,A){return P?f(P)?{negative:!0,format:""+R(P)+A}:{negative:!1,format:""+P+A}:{negative:!1,format:""}},C=function(){function P(O,$,Z){var Q=this;if(this.$d={},this.$l=Z,O===void 0&&(this.$ms=0,this.parseFromMilliseconds()),$)return b(O*d[y($)],this);if(typeof O=="number")return this.$ms=O,this.parseFromMilliseconds(),this;if(typeof O=="object")return Object.keys(O).forEach(function(H){Q.$d[y(H)]=O[H]}),this.calMilliseconds(),this;if(typeof O=="string"){var U=O.match(l);if(U){var Y=U.slice(2).map(function(H){return H!=null?Number(H):0});return this.$d.years=Y[0],this.$d.months=Y[1],this.$d.weeks=Y[2],this.$d.days=Y[3],this.$d.hours=Y[4],this.$d.minutes=Y[5],this.$d.seconds=Y[6],this.calMilliseconds(),this}}return this}var A=P.prototype;return A.calMilliseconds=function(){var O=this;this.$ms=Object.keys(this.$d).reduce(function($,Z){return $+(O.$d[Z]||0)*d[Z]},0)},A.parseFromMilliseconds=function(){var O=this.$ms;this.$d.years=E(O/u),O%=u,this.$d.months=E(O/c),O%=c,this.$d.days=E(O/a),O%=a,this.$d.hours=E(O/o),O%=o,this.$d.minutes=E(O/r),O%=r,this.$d.seconds=E(O/t),O%=t,this.$d.milliseconds=O},A.toISOString=function(){var O=T(this.$d.years,"Y"),$=T(this.$d.months,"M"),Z=+this.$d.days||0;this.$d.weeks&&(Z+=7*this.$d.weeks);var Q=T(Z,"D"),U=T(this.$d.hours,"H"),Y=T(this.$d.minutes,"M"),H=this.$d.seconds||0;this.$d.milliseconds&&(H+=this.$d.milliseconds/1e3,H=Math.round(1e3*H)/1e3);var G=T(H,"S"),J=O.negative||$.negative||Q.negative||U.negative||Y.negative||G.negative,X=U.format||Y.format||G.format?"T":"",V=(J?"-":"")+"P"+O.format+$.format+Q.format+X+U.format+Y.format+G.format;return V==="P"||V==="-P"?"P0D":V},A.toJSON=function(){return this.toISOString()},A.format=function(O){var $=O||"YYYY-MM-DDTHH:mm:ss",Z={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return $.replace(s,function(Q,U){return U||String(Z[Q])})},A.as=function(O){return this.$ms/d[y(O)]},A.get=function(O){var $=this.$ms,Z=y(O);return Z==="milliseconds"?$%=1e3:$=Z==="weeks"?E($/d[Z]):this.$d[Z],$||0},A.add=function(O,$,Z){var Q;return Q=$?O*d[y($)]:m(O)?O.$ms:b(O,this).$ms,b(this.$ms+Q*(Z?-1:1),this)},A.subtract=function(O,$){return this.add(O,$,!0)},A.locale=function(O){var $=this.clone();return $.$l=O,$},A.clone=function(){return b(this.$ms,this)},A.humanize=function(O){return p().add(this.$ms,"ms").locale(this.$l).fromNow(!O)},A.valueOf=function(){return this.asMilliseconds()},A.milliseconds=function(){return this.get("milliseconds")},A.asMilliseconds=function(){return this.as("milliseconds")},A.seconds=function(){return this.get("seconds")},A.asSeconds=function(){return this.as("seconds")},A.minutes=function(){return this.get("minutes")},A.asMinutes=function(){return this.as("minutes")},A.hours=function(){return this.get("hours")},A.asHours=function(){return this.as("hours")},A.days=function(){return this.get("days")},A.asDays=function(){return this.as("days")},A.weeks=function(){return this.get("weeks")},A.asWeeks=function(){return this.as("weeks")},A.months=function(){return this.get("months")},A.asMonths=function(){return this.as("months")},A.years=function(){return this.get("years")},A.asYears=function(){return this.as("years")},P}(),M=function(P,A,O){return P.add(A.years()*O,"y").add(A.months()*O,"M").add(A.days()*O,"d").add(A.hours()*O,"h").add(A.minutes()*O,"m").add(A.seconds()*O,"s").add(A.milliseconds()*O,"ms")};return function(P,A,O){p=O,e=O().$utils(),O.duration=function(Q,U){var Y=O.locale();return b(Q,{$l:Y},U)},O.isDuration=m;var $=A.prototype.add,Z=A.prototype.subtract;A.prototype.add=function(Q,U){return m(Q)?M(this,Q,1):$.bind(this)(Q,U)},A.prototype.subtract=function(Q,U){return m(Q)?M(this,Q,-1):Z.bind(this)(Q,U)}}})},34425:function(v){(function(p,e){v.exports=e()})(this,function(){"use strict";return function(p,e,t){t.isMoment=function(r){return t.isDayjs(r)}}})},79212:function(v){(function(p,e){v.exports=e()})(this,function(){"use strict";return function(p,e){e.prototype.isSameOrAfter=function(t,r){return this.isSame(t,r)||this.isAfter(t,r)}}})},37412:function(v){(function(p,e){v.exports=e()})(this,function(){"use strict";return function(p,e){e.prototype.isSameOrBefore=function(t,r){return this.isSame(t,r)||this.isBefore(t,r)}}})},96036:function(v){(function(p,e){v.exports=e()})(this,function(){"use strict";return function(p,e,t){var r=e.prototype,o=function(l){return l&&(l.indexOf?l:l.s)},a=function(l,d,m,b,y){var f=l.name?l:l.$locale(),E=o(f[d]),R=o(f[m]),T=E||R.map(function(M){return M.slice(0,b)});if(!y)return T;var C=f.weekStart;return T.map(function(M,P){return T[(P+(C||0))%7]})},s=function(){return t.Ls[t.locale()]},u=function(l,d){return l.formats[d]||function(m){return m.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,y,f){return y||f.slice(1)})}(l.formats[d.toUpperCase()])},c=function(){var l=this;return{months:function(d){return d?d.format("MMMM"):a(l,"months")},monthsShort:function(d){return d?d.format("MMM"):a(l,"monthsShort","months",3)},firstDayOfWeek:function(){return l.$locale().weekStart||0},weekdays:function(d){return d?d.format("dddd"):a(l,"weekdays")},weekdaysMin:function(d){return d?d.format("dd"):a(l,"weekdaysMin","weekdays",2)},weekdaysShort:function(d){return d?d.format("ddd"):a(l,"weekdaysShort","weekdays",3)},longDateFormat:function(d){return u(l.$locale(),d)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},t.localeData=function(){var l=s();return{firstDayOfWeek:function(){return l.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(d){return u(l,d)},meridiem:l.meridiem,ordinal:l.ordinal}},t.months=function(){return a(s(),"months")},t.monthsShort=function(){return a(s(),"monthsShort","months",3)},t.weekdays=function(l){return a(s(),"weekdays",null,null,l)},t.weekdaysShort=function(l){return a(s(),"weekdaysShort","weekdays",3,l)},t.weekdaysMin=function(l){return a(s(),"weekdaysMin","weekdays",2,l)}}})},56176:function(v){(function(p,e){v.exports=e()})(this,function(){"use strict";var p={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(e,t,r){var o=t.prototype,a=o.format;r.en.formats=p,o.format=function(s){s===void 0&&(s="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,c=function(l,d){return l.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,b,y){var f=y&&y.toUpperCase();return b||d[y]||p[y]||d[f].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(E,R,T){return R||T.slice(1)})})}(s,u===void 0?{}:u);return a.call(this,c)}}})},55183:function(v){(function(p,e){v.exports=e()})(this,function(){"use strict";var p="week",e="year";return function(t,r,o){var a=r.prototype;a.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=o(this).startOf(e).add(1,e).date(u),l=o(this).endOf(p);if(c.isBefore(l))return 1}var d=o(this).startOf(e).date(u).startOf(p).subtract(1,"millisecond"),m=this.diff(d,p,!0);return m<0?o(this).startOf("week").week():Math.ceil(m)},a.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})},172:function(v){(function(p,e){v.exports=e()})(this,function(){"use strict";return function(p,e){e.prototype.weekYear=function(){var t=this.month(),r=this.week(),o=this.year();return r===1&&t===11?o+1:t===0&&r>=52?o-1:o}}})},6833:function(v){(function(p,e){v.exports=e()})(this,function(){"use strict";return function(p,e){e.prototype.weekday=function(t){var r=this.$locale().weekStart||0,o=this.$W,a=(o-1}},48370:function(v,p,e){"use strict";var t=e(51804),r=e(31290),o=Function.prototype.apply,a=Function.prototype.call,s=Object.create,u=Object.defineProperty,c=Object.defineProperties,l=Object.prototype.hasOwnProperty,d={configurable:!0,enumerable:!1,writable:!0},m,b,y,f,E,R,T;m=function(C,M){var P;return r(M),l.call(this,"__ee__")?P=this.__ee__:(P=d.value=s(null),u(this,"__ee__",d),d.value=null),P[C]?typeof P[C]=="object"?P[C].push(M):P[C]=[P[C],M]:P[C]=M,this},b=function(C,M){var P,A;return r(M),A=this,m.call(this,C,P=function(){y.call(A,C,P),o.call(M,this,arguments)}),P.__eeOnceListener__=M,this},y=function(C,M){var P,A,O,$;if(r(M),!l.call(this,"__ee__"))return this;if(P=this.__ee__,!P[C])return this;if(A=P[C],typeof A=="object")for($=0;O=A[$];++$)(O===M||O.__eeOnceListener__===M)&&(A.length===2?P[C]=A[$?0:1]:A.splice($,1));else(A===M||A.__eeOnceListener__===M)&&delete P[C];return this},f=function(C){var M,P,A,O,$;if(l.call(this,"__ee__")&&(O=this.__ee__[C],!!O))if(typeof O=="object"){for(P=arguments.length,$=new Array(P-1),M=1;M=0&&(M.hash=C.substr(P),C=C.substr(0,P));var A=C.indexOf("?");A>=0&&(M.search=C.substr(A),C=C.substr(0,A)),C&&(M.pathname=C)}return M}},8679:function(v,p,e){"use strict";var t=e(59864),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[t.ForwardRef]=a,u[t.Memo]=s;function c(R){return t.isMemo(R)?s:u[R.$$typeof]||r}var l=Object.defineProperty,d=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,f=Object.prototype;function E(R,T,C){if(typeof T!="string"){if(f){var M=y(T);M&&M!==f&&E(R,M,C)}var P=d(T);m&&(P=P.concat(m(T)));for(var A=c(R),O=c(T),$=0;$>1,m=-7,b=r?a-1:0,y=r?-1:1,f=e[t+b];for(b+=y,s=f&(1<<-m)-1,f>>=-m,m+=c;m>0;s=s*256+e[t+b],b+=y,m-=8);for(u=s&(1<<-m)-1,s>>=-m,m+=o;m>0;u=u*256+e[t+b],b+=y,m-=8);if(s===0)s=1-d;else{if(s===l)return u?NaN:(f?-1:1)*(1/0);u=u+Math.pow(2,o),s=s-d}return(f?-1:1)*u*Math.pow(2,s-o)},p.write=function(e,t,r,o,a,s){var u,c,l,d=s*8-a-1,m=(1<>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:s-1,E=o?1:-1,R=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,u=m):(u=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-u))<1&&(u--,l*=2),u+b>=1?t+=y/l:t+=y*Math.pow(2,1-b),t*l>=2&&(u++,l/=2),u+b>=m?(c=0,u=m):u+b>=1?(c=(t*l-1)*Math.pow(2,a),u=u+b):(c=t*Math.pow(2,b-1)*Math.pow(2,a),u=0));a>=8;e[r+f]=c&255,f+=E,c/=256,a-=8);for(u=u<0;e[r+f]=u&255,f+=E,u/=256,d-=8);e[r+f-E]|=R*128}},22418:function(v,p){"use strict";var e=function(){for(var a=0,s=0,u=arguments.length;s=Z||Pe<0||z&&$e>=H}function ce(){var Ie=T();if(ee(Ie))return le(Ie);J=setTimeout(ce,N(Ie))}function le(Ie){return J=void 0,k&&U?L(Ie):(U=Y=void 0,G)}function se(){J!==void 0&&clearTimeout(J),V=0,U=X=Y=J=void 0}function fe(){return J===void 0?G:le(T())}function xe(){var Ie=T(),Pe=ee(Ie);if(U=arguments,Y=this,X=Ie,Pe){if(J===void 0)return F(X);if(z)return J=setTimeout(ce,Z),L(X)}return J===void 0&&(J=setTimeout(ce,Z)),G}return xe.cancel=se,xe.flush=fe,xe}function M($){var Z=typeof $;return!!$&&(Z=="object"||Z=="function")}function P($){return!!$&&typeof $=="object"}function A($){return typeof $=="symbol"||P($)&&f.call($)==o}function O($){if(typeof $=="number")return $;if(A($))return r;if(M($)){var Z=typeof $.valueOf=="function"?$.valueOf():$;$=M(Z)?Z+"":Z}if(typeof $!="string")return $===0?$:+$;$=$.replace(a,"");var Q=u.test($);return Q||c.test($)?l($.slice(2),Q?2:8):s.test($)?r:+$}v.exports=C},93096:function(v,p,e){var t="Expected a function",r=NaN,o="[object Symbol]",a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,d=typeof e.g=="object"&&e.g&&e.g.Object===Object&&e.g,m=typeof self=="object"&&self&&self.Object===Object&&self,b=d||m||Function("return this")(),y=Object.prototype,f=y.toString,E=Math.max,R=Math.min,T=function(){return b.Date.now()};function C(Z,Q,U){var Y,H,G,J,X,V,q=0,z=!1,k=!1,L=!0;if(typeof Z!="function")throw new TypeError(t);Q=$(Q)||0,P(U)&&(z=!!U.leading,k="maxWait"in U,G=k?E($(U.maxWait)||0,Q):G,L="trailing"in U?!!U.trailing:L);function F(Pe){var $e=Y,at=H;return Y=H=void 0,q=Pe,J=Z.apply(at,$e),J}function N(Pe){return q=Pe,X=setTimeout(le,Q),z?F(Pe):J}function ee(Pe){var $e=Pe-V,at=Pe-q,ut=Q-$e;return k?R(ut,G-at):ut}function ce(Pe){var $e=Pe-V,at=Pe-q;return V===void 0||$e>=Q||$e<0||k&&at>=G}function le(){var Pe=T();if(ce(Pe))return se(Pe);X=setTimeout(le,ee(Pe))}function se(Pe){return X=void 0,L&&Y?F(Pe):(Y=H=void 0,J)}function fe(){X!==void 0&&clearTimeout(X),q=0,Y=V=H=X=void 0}function xe(){return X===void 0?J:se(T())}function Ie(){var Pe=T(),$e=ce(Pe);if(Y=arguments,H=this,V=Pe,$e){if(X===void 0)return N(V);if(k)return X=setTimeout(le,Q),F(V)}return X===void 0&&(X=setTimeout(le,Q)),J}return Ie.cancel=fe,Ie.flush=xe,Ie}function M(Z,Q,U){var Y=!0,H=!0;if(typeof Z!="function")throw new TypeError(t);return P(U)&&(Y="leading"in U?!!U.leading:Y,H="trailing"in U?!!U.trailing:H),C(Z,Q,{leading:Y,maxWait:Q,trailing:H})}function P(Z){var Q=typeof Z;return!!Z&&(Q=="object"||Q=="function")}function A(Z){return!!Z&&typeof Z=="object"}function O(Z){return typeof Z=="symbol"||A(Z)&&f.call(Z)==o}function $(Z){if(typeof Z=="number")return Z;if(O(Z))return r;if(P(Z)){var Q=typeof Z.valueOf=="function"?Z.valueOf():Z;Z=P(Q)?Q+"":Q}if(typeof Z!="string")return Z===0?Z:+Z;Z=Z.replace(a,"");var U=u.test(Z);return U||c.test(Z)?l(Z.slice(2),U?2:8):s.test(Z)?r:+Z}v.exports=M},62705:function(v,p,e){var t=e(55639),r=t.Symbol;v.exports=r},29932:function(v){function p(e,t){for(var r=-1,o=e==null?0:e.length,a=Array(o);++ra?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(a);++o=u?o:t(o,a,s)}v.exports=r},98805:function(v,p,e){var t=e(40180),r=e(62689),o=e(83140),a=e(79833);function s(u){return function(c){c=a(c);var l=r(c)?o(c):void 0,d=l?l[0]:c.charAt(0),m=l?t(l,1).join(""):c.slice(1);return d[u]()+m}}v.exports=s},35393:function(v,p,e){var t=e(62663),r=e(53816),o=e(58748),a="['\u2019]",s=RegExp(a,"g");function u(c){return function(l){return t(o(r(l).replace(s,"")),c,"")}}v.exports=u},69389:function(v,p,e){var t=e(18674),r={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},o=t(r);v.exports=o},31957:function(v,p,e){var t=typeof e.g=="object"&&e.g&&e.g.Object===Object&&e.g;v.exports=t},89607:function(v,p,e){var t=e(62705),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=t?t.toStringTag:void 0;function u(c){var l=o.call(c,s),d=c[s];try{c[s]=void 0;var m=!0}catch(y){}var b=a.call(c);return m&&(l?c[s]=d:delete c[s]),b}v.exports=u},62689:function(v){var p="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=e+t+r,a="\\ufe0e\\ufe0f",s="\\u200d",u=RegExp("["+s+p+o+a+"]");function c(l){return u.test(l)}v.exports=c},93157:function(v){var p=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function e(t){return p.test(t)}v.exports=e},2333:function(v){var p=Object.prototype,e=p.toString;function t(r){return e.call(r)}v.exports=t},55639:function(v,p,e){var t=e(31957),r=typeof self=="object"&&self&&self.Object===Object&&self,o=t||r||Function("return this")();v.exports=o},83140:function(v,p,e){var t=e(44286),r=e(62689),o=e(676);function a(s){return r(s)?o(s):t(s)}v.exports=a},676:function(v){var p="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=e+t+r,a="\\ufe0e\\ufe0f",s="["+p+"]",u="["+o+"]",c="\\ud83c[\\udffb-\\udfff]",l="(?:"+u+"|"+c+")",d="[^"+p+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",y="\\u200d",f=l+"?",E="["+a+"]?",R="(?:"+y+"(?:"+[d,m,b].join("|")+")"+E+f+")*",T=E+f+R,C="(?:"+[d+u+"?",u,m,b,s].join("|")+")",M=RegExp(c+"(?="+c+")|"+C+T,"g");function P(A){return A.match(M)||[]}v.exports=P},2757:function(v){var p="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=e+t+r,a="\\u2700-\\u27bf",s="a-z\\xdf-\\xf6\\xf8-\\xff",u="\\xac\\xb1\\xd7\\xf7",c="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",l="\\u2000-\\u206f",d=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",m="A-Z\\xc0-\\xd6\\xd8-\\xde",b="\\ufe0e\\ufe0f",y=u+c+l+d,f="['\u2019]",E="["+y+"]",R="["+o+"]",T="\\d+",C="["+a+"]",M="["+s+"]",P="[^"+p+y+T+a+s+m+"]",A="\\ud83c[\\udffb-\\udfff]",O="(?:"+R+"|"+A+")",$="[^"+p+"]",Z="(?:\\ud83c[\\udde6-\\uddff]){2}",Q="[\\ud800-\\udbff][\\udc00-\\udfff]",U="["+m+"]",Y="\\u200d",H="(?:"+M+"|"+P+")",G="(?:"+U+"|"+P+")",J="(?:"+f+"(?:d|ll|m|re|s|t|ve))?",X="(?:"+f+"(?:D|LL|M|RE|S|T|VE))?",V=O+"?",q="["+b+"]?",z="(?:"+Y+"(?:"+[$,Z,Q].join("|")+")"+q+V+")*",k="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",L="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",F=q+V+z,N="(?:"+[C,Z,Q].join("|")+")"+F,ee=RegExp([U+"?"+M+"+"+J+"(?="+[E,U,"$"].join("|")+")",G+"+"+X+"(?="+[E,U+H,"$"].join("|")+")",U+"?"+H+"+"+J,U+"+"+X,L,k,T,N].join("|"),"g");function ce(le){return le.match(ee)||[]}v.exports=ce},68929:function(v,p,e){var t=e(48403),r=e(35393),o=r(function(a,s,u){return s=s.toLowerCase(),a+(u?t(s):s)});v.exports=o},48403:function(v,p,e){var t=e(79833),r=e(11700);function o(a){return r(t(a).toLowerCase())}v.exports=o},53816:function(v,p,e){var t=e(69389),r=e(79833),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a="\\u0300-\\u036f",s="\\ufe20-\\ufe2f",u="\\u20d0-\\u20ff",c=a+s+u,l="["+c+"]",d=RegExp(l,"g");function m(b){return b=r(b),b&&b.replace(o,t).replace(d,"")}v.exports=m},1469:function(v){var p=Array.isArray;v.exports=p},37005:function(v){function p(e){return e!=null&&typeof e=="object"}v.exports=p},33448:function(v,p,e){var t=e(44239),r=e(37005),o="[object Symbol]";function a(s){return typeof s=="symbol"||r(s)&&t(s)==o}v.exports=a},79833:function(v,p,e){var t=e(80531);function r(o){return o==null?"":t(o)}v.exports=r},11700:function(v,p,e){var t=e(98805),r=t("toUpperCase");v.exports=r},58748:function(v,p,e){var t=e(49029),r=e(93157),o=e(79833),a=e(2757);function s(u,c,l){return u=o(u),c=l?void 0:c,c===void 0?r(u)?a(u):t(u):u.match(c)||[]}v.exports=s},34155:function(v){var p=v.exports={},e,t;function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=r}catch(E){e=r}try{typeof clearTimeout=="function"?t=clearTimeout:t=o}catch(E){t=o}})();function a(E){if(e===setTimeout)return setTimeout(E,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(E,0);try{return e(E,0)}catch(R){try{return e.call(null,E,0)}catch(T){return e.call(this,E,0)}}}function s(E){if(t===clearTimeout)return clearTimeout(E);if((t===o||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(E);try{return t(E)}catch(R){try{return t.call(null,E)}catch(T){return t.call(this,E)}}}var u=[],c=!1,l,d=-1;function m(){!c||!l||(c=!1,l.length?u=l.concat(u):d=-1,u.length&&b())}function b(){if(!c){var E=a(m);c=!0;for(var R=u.length;R;){for(l=u,u=[];++d1)for(var T=1;T0&&c>u&&(c=u);for(var l=0;l=0?(b=d.substr(0,m),y=d.substr(m+1)):(b=d,y=""),f=decodeURIComponent(b),E=decodeURIComponent(y),p(a,f)?Array.isArray(a[f])?a[f].push(E):a[f]=[a[f],E]:a[f]=E}return a}},12361:function(v){"use strict";var p=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};v.exports=function(e,t,r,o){return t=t||"&",r=r||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(a){var s=encodeURIComponent(p(a))+r;return Array.isArray(e[a])?e[a].map(function(u){return s+encodeURIComponent(p(u))}).join(t):s+encodeURIComponent(p(e[a]))}).filter(Boolean).join(t):o?encodeURIComponent(p(o))+r+encodeURIComponent(p(e)):""}},17673:function(v,p,e){"use strict";var t;t=e(62587),t=p.stringify=e(12361)},40974:function(v,p,e){"use strict";e.d(p,{s:function(){return Z},Z:function(){return z}});var t=e(87462),r=e(97685),o=e(2788),a=e(67294),s=a.createContext({}),u=e(1413),c=e(93967),l=e.n(c),d=e(94999),m=e(7028),b=e(15105),y=e(64217);function f(k,L,F){var N=L;return!N&&F&&(N="".concat(k,"-").concat(F)),N}function E(k,L){var F=k["page".concat(L?"Y":"X","Offset")],N="scroll".concat(L?"Top":"Left");if(typeof F!="number"){var ee=k.document;F=ee.documentElement[N],typeof F!="number"&&(F=ee.body[N])}return F}function R(k){var L=k.getBoundingClientRect(),F={left:L.left,top:L.top},N=k.ownerDocument,ee=N.defaultView||N.parentWindow;return F.left+=E(ee),F.top+=E(ee,!0),F}var T=e(29372),C=e(71002),M=e(42550),P=a.memo(function(k){var L=k.children;return L},function(k,L){var F=L.shouldUpdate;return!F}),A={width:0,height:0,overflow:"hidden",outline:"none"},O={outline:"none"},$=a.forwardRef(function(k,L){var F=k.prefixCls,N=k.className,ee=k.style,ce=k.title,le=k.ariaId,se=k.footer,fe=k.closable,xe=k.closeIcon,Ie=k.onClose,Pe=k.children,$e=k.bodyStyle,at=k.bodyProps,ut=k.modalRender,Ue=k.onMouseDown,Ye=k.onMouseUp,Xe=k.holderRef,Fe=k.visible,Je=k.forceRender,Le=k.width,qe=k.height,ze=k.classNames,ie=k.styles,W=a.useContext(s),re=W.panel,x=(0,M.x1)(Xe,re),oe=(0,a.useRef)(),ve=(0,a.useRef)(),he=(0,a.useRef)();a.useImperativeHandle(L,function(){return{focus:function(){var ye;(ye=he.current)===null||ye===void 0||ye.focus({preventScroll:!0})},changeActive:function(ye){var Ne=document,ke=Ne.activeElement;ye&&ke===ve.current?oe.current.focus({preventScroll:!0}):!ye&&ke===oe.current&&ve.current.focus({preventScroll:!0})}}});var w={};Le!==void 0&&(w.width=Le),qe!==void 0&&(w.height=qe);var S=se?a.createElement("div",{className:l()("".concat(F,"-footer"),ze==null?void 0:ze.footer),style:(0,u.Z)({},ie==null?void 0:ie.footer)},se):null,j=ce?a.createElement("div",{className:l()("".concat(F,"-header"),ze==null?void 0:ze.header),style:(0,u.Z)({},ie==null?void 0:ie.header)},a.createElement("div",{className:"".concat(F,"-title"),id:le},ce)):null,B=(0,a.useMemo)(function(){return(0,C.Z)(fe)==="object"&&fe!==null?fe:fe?{closeIcon:xe!=null?xe:a.createElement("span",{className:"".concat(F,"-close-x")})}:{}},[fe,xe,F]),_=(0,y.Z)(B,!0),D=(0,C.Z)(fe)==="object"&&fe.disabled,te=fe?a.createElement("button",(0,t.Z)({type:"button",onClick:Ie,"aria-label":"Close"},_,{className:"".concat(F,"-close"),disabled:D}),B.closeIcon):null,be=a.createElement("div",{className:l()("".concat(F,"-content"),ze==null?void 0:ze.content),style:ie==null?void 0:ie.content},te,j,a.createElement("div",(0,t.Z)({className:l()("".concat(F,"-body"),ze==null?void 0:ze.body),style:(0,u.Z)((0,u.Z)({},$e),ie==null?void 0:ie.body)},at),Pe),S);return a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":ce?le:null,"aria-modal":"true",ref:x,style:(0,u.Z)((0,u.Z)({},ee),w),className:l()(F,N),onMouseDown:Ue,onMouseUp:Ye},a.createElement("div",{tabIndex:0,ref:oe,style:A,"aria-hidden":"true"}),a.createElement("div",{ref:he,tabIndex:-1,style:O},a.createElement(P,{shouldUpdate:Fe||Je},ut?ut(be):be)),a.createElement("div",{tabIndex:0,ref:ve,style:A,"aria-hidden":"true"}))}),Z=$,Q=a.forwardRef(function(k,L){var F=k.prefixCls,N=k.title,ee=k.style,ce=k.className,le=k.visible,se=k.forceRender,fe=k.destroyOnClose,xe=k.motionName,Ie=k.ariaId,Pe=k.onVisibleChanged,$e=k.mousePosition,at=(0,a.useRef)(),ut=a.useState(),Ue=(0,r.Z)(ut,2),Ye=Ue[0],Xe=Ue[1],Fe={};Ye&&(Fe.transformOrigin=Ye);function Je(){var Le=R(at.current);Xe($e&&($e.x||$e.y)?"".concat($e.x-Le.left,"px ").concat($e.y-Le.top,"px"):"")}return a.createElement(T.ZP,{visible:le,onVisibleChanged:Pe,onAppearPrepare:Je,onEnterPrepare:Je,forceRender:se,motionName:xe,removeOnLeave:fe,ref:at},function(Le,qe){var ze=Le.className,ie=Le.style;return a.createElement(Z,(0,t.Z)({},k,{ref:L,title:N,ariaId:Ie,prefixCls:F,holderRef:qe,style:(0,u.Z)((0,u.Z)((0,u.Z)({},ie),ee),Fe),className:l()(ce,ze)}))})});Q.displayName="Content";var U=Q,Y=function(L){var F=L.prefixCls,N=L.style,ee=L.visible,ce=L.maskProps,le=L.motionName,se=L.className;return a.createElement(T.ZP,{key:"mask",visible:ee,motionName:le,leavedClassName:"".concat(F,"-mask-hidden")},function(fe,xe){var Ie=fe.className,Pe=fe.style;return a.createElement("div",(0,t.Z)({ref:xe,style:(0,u.Z)((0,u.Z)({},Pe),N),className:l()("".concat(F,"-mask"),Ie,se)},ce))})},H=Y,G=e(80334),J=function(L){var F=L.prefixCls,N=F===void 0?"rc-dialog":F,ee=L.zIndex,ce=L.visible,le=ce===void 0?!1:ce,se=L.keyboard,fe=se===void 0?!0:se,xe=L.focusTriggerAfterClose,Ie=xe===void 0?!0:xe,Pe=L.wrapStyle,$e=L.wrapClassName,at=L.wrapProps,ut=L.onClose,Ue=L.afterOpenChange,Ye=L.afterClose,Xe=L.transitionName,Fe=L.animation,Je=L.closable,Le=Je===void 0?!0:Je,qe=L.mask,ze=qe===void 0?!0:qe,ie=L.maskTransitionName,W=L.maskAnimation,re=L.maskClosable,x=re===void 0?!0:re,oe=L.maskStyle,ve=L.maskProps,he=L.rootClassName,w=L.classNames,S=L.styles,j=(0,a.useRef)(),B=(0,a.useRef)(),_=(0,a.useRef)(),D=a.useState(le),te=(0,r.Z)(D,2),be=te[0],ge=te[1],ye=(0,m.Z)();function Ne(){(0,d.Z)(B.current,document.activeElement)||(j.current=document.activeElement)}function ke(){if(!(0,d.Z)(B.current,document.activeElement)){var Ht;(Ht=_.current)===null||Ht===void 0||Ht.focus()}}function We(Ht){if(Ht)ke();else{if(ge(!1),ze&&j.current&&Ie){try{j.current.focus({preventScroll:!0})}catch($t){}j.current=null}be&&(Ye==null||Ye())}Ue==null||Ue(Ht)}function je(Ht){ut==null||ut(Ht)}var Ve=(0,a.useRef)(!1),mt=(0,a.useRef)(),Pt=function(){clearTimeout(mt.current),Ve.current=!0},bt=function(){mt.current=setTimeout(function(){Ve.current=!1})},_t=null;x&&(_t=function($t){Ve.current?Ve.current=!1:B.current===$t.target&&je($t)});function Dt(Ht){if(fe&&Ht.keyCode===b.Z.ESC){Ht.stopPropagation(),je(Ht);return}le&&Ht.keyCode===b.Z.TAB&&_.current.changeActive(!Ht.shiftKey)}(0,a.useEffect)(function(){le&&(ge(!0),Ne())},[le]),(0,a.useEffect)(function(){return function(){clearTimeout(mt.current)}},[]);var Rt=(0,u.Z)((0,u.Z)((0,u.Z)({zIndex:ee},Pe),S==null?void 0:S.wrapper),{},{display:be?null:"none"});return a.createElement("div",(0,t.Z)({className:l()("".concat(N,"-root"),he)},(0,y.Z)(L,{data:!0})),a.createElement(H,{prefixCls:N,visible:ze&&le,motionName:f(N,ie,W),style:(0,u.Z)((0,u.Z)({zIndex:ee},oe),S==null?void 0:S.mask),maskProps:ve,className:w==null?void 0:w.mask}),a.createElement("div",(0,t.Z)({tabIndex:-1,onKeyDown:Dt,className:l()("".concat(N,"-wrap"),$e,w==null?void 0:w.wrapper),ref:B,onClick:_t,style:Rt},at),a.createElement(U,(0,t.Z)({},L,{onMouseDown:Pt,onMouseUp:bt,ref:_,closable:Le,ariaId:ye,prefixCls:N,visible:le&&be,onClose:je,onVisibleChanged:We,motionName:f(N,Xe,Fe)}))))},X=J,V=function(L){var F=L.visible,N=L.getContainer,ee=L.forceRender,ce=L.destroyOnClose,le=ce===void 0?!1:ce,se=L.afterClose,fe=L.panelRef,xe=a.useState(F),Ie=(0,r.Z)(xe,2),Pe=Ie[0],$e=Ie[1],at=a.useMemo(function(){return{panel:fe}},[fe]);return a.useEffect(function(){F&&$e(!0)},[F]),!ee&&le&&!Pe?null:a.createElement(s.Provider,{value:at},a.createElement(o.Z,{open:F||ee||Pe,autoDestroy:!1,getContainer:N,autoLock:F||Pe},a.createElement(X,(0,t.Z)({},L,{destroyOnClose:le,afterClose:function(){se==null||se(),$e(!1)}}))))};V.displayName="Dialog";var q=V,z=q},29171:function(v,p,e){"use strict";e.d(p,{Z:function(){return Q}});var t=e(87462),r=e(4942),o=e(97685),a=e(91),s=e(40228),u=e(93967),c=e.n(u),l=e(42550),d=e(67294),m=e(15105),b=e(75164),y=m.Z.ESC,f=m.Z.TAB;function E(U){var Y=U.visible,H=U.triggerRef,G=U.onVisibleChange,J=U.autoFocus,X=U.overlayRef,V=d.useRef(!1),q=function(){if(Y){var F,N;(F=H.current)===null||F===void 0||(N=F.focus)===null||N===void 0||N.call(F),G==null||G(!1)}},z=function(){var F;return(F=X.current)!==null&&F!==void 0&&F.focus?(X.current.focus(),V.current=!0,!0):!1},k=function(F){switch(F.keyCode){case y:q();break;case f:{var N=!1;V.current||(N=z()),N?F.preventDefault():q();break}}};d.useEffect(function(){return Y?(window.addEventListener("keydown",k),J&&(0,b.Z)(z,3),function(){window.removeEventListener("keydown",k),V.current=!1}):function(){V.current=!1}},[Y])}var R=(0,d.forwardRef)(function(U,Y){var H=U.overlay,G=U.arrow,J=U.prefixCls,X=(0,d.useMemo)(function(){var q;return typeof H=="function"?q=H():q=H,q},[H]),V=(0,l.sQ)(Y,X==null?void 0:X.ref);return d.createElement(d.Fragment,null,G&&d.createElement("div",{className:"".concat(J,"-arrow")}),d.cloneElement(X,{ref:(0,l.Yr)(X)?V:void 0}))}),T=R,C={adjustX:1,adjustY:1},M=[0,0],P={topLeft:{points:["bl","tl"],overflow:C,offset:[0,-4],targetOffset:M},top:{points:["bc","tc"],overflow:C,offset:[0,-4],targetOffset:M},topRight:{points:["br","tr"],overflow:C,offset:[0,-4],targetOffset:M},bottomLeft:{points:["tl","bl"],overflow:C,offset:[0,4],targetOffset:M},bottom:{points:["tc","bc"],overflow:C,offset:[0,4],targetOffset:M},bottomRight:{points:["tr","br"],overflow:C,offset:[0,4],targetOffset:M}},A=P,O=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function $(U,Y){var H,G=U.arrow,J=G===void 0?!1:G,X=U.prefixCls,V=X===void 0?"rc-dropdown":X,q=U.transitionName,z=U.animation,k=U.align,L=U.placement,F=L===void 0?"bottomLeft":L,N=U.placements,ee=N===void 0?A:N,ce=U.getPopupContainer,le=U.showAction,se=U.hideAction,fe=U.overlayClassName,xe=U.overlayStyle,Ie=U.visible,Pe=U.trigger,$e=Pe===void 0?["hover"]:Pe,at=U.autoFocus,ut=U.overlay,Ue=U.children,Ye=U.onVisibleChange,Xe=(0,a.Z)(U,O),Fe=d.useState(),Je=(0,o.Z)(Fe,2),Le=Je[0],qe=Je[1],ze="visible"in U?Ie:Le,ie=d.useRef(null),W=d.useRef(null),re=d.useRef(null);d.useImperativeHandle(Y,function(){return ie.current});var x=function(D){qe(D),Ye==null||Ye(D)};E({visible:ze,triggerRef:re,onVisibleChange:x,autoFocus:at,overlayRef:W});var oe=function(D){var te=U.onOverlayClick;qe(!1),te&&te(D)},ve=function(){return d.createElement(T,{ref:W,overlay:ut,prefixCls:V,arrow:J})},he=function(){return typeof ut=="function"?ve:ve()},w=function(){var D=U.minOverlayWidthMatchTrigger,te=U.alignPoint;return"minOverlayWidthMatchTrigger"in U?D:!te},S=function(){var D=U.openClassName;return D!==void 0?D:"".concat(V,"-open")},j=d.cloneElement(Ue,{className:c()((H=Ue.props)===null||H===void 0?void 0:H.className,ze&&S()),ref:(0,l.Yr)(Ue)?(0,l.sQ)(re,Ue.ref):void 0}),B=se;return!B&&$e.indexOf("contextMenu")!==-1&&(B=["click"]),d.createElement(s.Z,(0,t.Z)({builtinPlacements:ee},Xe,{prefixCls:V,ref:ie,popupClassName:c()(fe,(0,r.Z)({},"".concat(V,"-show-arrow"),J)),popupStyle:xe,action:$e,showAction:le,hideAction:B,popupPlacement:F,popupAlign:k,popupTransitionName:q,popupAnimation:z,popupVisible:ze,stretch:w()?"minWidth":"",popup:he(),onPopupVisibleChange:x,onPopupClick:oe,getPopupContainer:ce}),j)}var Z=d.forwardRef($),Q=Z},12617:function(v,p,e){"use strict";e.d(p,{gN:function(){return Ut},zb:function(){return A},RV:function(){return Ae},aV:function(){return ft},ZM:function(){return $},ZP:function(){return Gn},cI:function(){return Ce},qo:function(){return bn}});var t=e(67294),r=e(87462),o=e(91),a=e(74165),s=e(15861),u=e(1413),c=e(74902),l=e(15671),d=e(43144),m=e(97326),b=e(60136),y=e(29388),f=e(4942),E=e(50344),R=e(91881),T=e(80334),C="RC_FORM_INTERNAL_HOOKS",M=function(){(0,T.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},P=t.createContext({getFieldValue:M,getFieldsValue:M,getFieldError:M,getFieldWarning:M,getFieldsError:M,isFieldsTouched:M,isFieldTouched:M,isFieldValidating:M,isFieldsValidating:M,resetFields:M,setFields:M,setFieldValue:M,setFieldsValue:M,validateFields:M,submit:M,getInternalHooks:function(){return M(),{dispatch:M,initEntityValue:M,registerField:M,useSubscribe:M,setInitialValues:M,destroyForm:M,setCallbacks:M,registerWatch:M,getFields:M,setValidateMessages:M,setPreserve:M,getInitialValue:M}}}),A=P,O=t.createContext(null),$=O;function Z(Me){return Me==null?[]:Array.isArray(Me)?Me:[Me]}function Q(Me){return Me&&!!Me._init}var U=e(71002);function Y(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var me=JSON.parse(JSON.stringify(this));return me.clone=this.clone,me}}}var H=Y(),G=e(88467),J=e(34155),X=/%[sdj%]/g,V=function(){};function q(Me){if(!Me||!Me.length)return null;var me={};return Me.forEach(function(ue){var Oe=ue.field;me[Oe]=me[Oe]||[],me[Oe].push(ue)}),me}function z(Me){for(var me=arguments.length,ue=new Array(me>1?me-1:0),Oe=1;Oe=De)return ae;switch(ae){case"%s":return String(ue[pe++]);case"%d":return Number(ue[pe++]);case"%j":try{return JSON.stringify(ue[pe++])}catch(vt){return"[Circular]"}break;default:return ae}});return _e}return Me}function k(Me){return Me==="string"||Me==="url"||Me==="hex"||Me==="email"||Me==="date"||Me==="pattern"}function L(Me,me){return!!(Me==null||me==="array"&&Array.isArray(Me)&&!Me.length||k(me)&&typeof Me=="string"&&!Me)}function F(Me){return Object.keys(Me).length===0}function N(Me,me,ue){var Oe=[],pe=0,De=Me.length;function _e(ae){Oe.push.apply(Oe,(0,c.Z)(ae||[])),pe++,pe===De&&ue(Oe)}Me.forEach(function(ae){me(ae,_e)})}function ee(Me,me,ue){var Oe=0,pe=Me.length;function De(_e){if(_e&&_e.length){ue(_e);return}var ae=Oe;Oe=Oe+1,aeme.max?pe.push(z(De.messages[nn].max,me.fullField,me.max)):ae&&vt&&(ptme.max)&&pe.push(z(De.messages[nn].range,me.fullField,me.min,me.max))},Fe=Xe,Je=function(me,ue,Oe,pe,De,_e){me.required&&(!Oe.hasOwnProperty(me.field)||L(ue,_e||me.type))&&pe.push(z(De.messages.required,me.fullField))},Le=Je,qe,ze=function(){if(qe)return qe;var Me="[a-fA-F\\d:]",me=function(sn){return sn&&sn.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(Me,")|(?<=").concat(Me,")(?=\\s|$))"):""},ue="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",Oe="[a-fA-F\\d]{1,4}",pe=["(?:".concat(Oe,":){7}(?:").concat(Oe,"|:)"),"(?:".concat(Oe,":){6}(?:").concat(ue,"|:").concat(Oe,"|:)"),"(?:".concat(Oe,":){5}(?::").concat(ue,"|(?::").concat(Oe,"){1,2}|:)"),"(?:".concat(Oe,":){4}(?:(?::").concat(Oe,"){0,1}:").concat(ue,"|(?::").concat(Oe,"){1,3}|:)"),"(?:".concat(Oe,":){3}(?:(?::").concat(Oe,"){0,2}:").concat(ue,"|(?::").concat(Oe,"){1,4}|:)"),"(?:".concat(Oe,":){2}(?:(?::").concat(Oe,"){0,3}:").concat(ue,"|(?::").concat(Oe,"){1,5}|:)"),"(?:".concat(Oe,":){1}(?:(?::").concat(Oe,"){0,4}:").concat(ue,"|(?::").concat(Oe,"){1,6}|:)"),"(?::(?:(?::".concat(Oe,"){0,5}:").concat(ue,"|(?::").concat(Oe,"){1,7}|:))")],De="(?:%[0-9a-zA-Z]{1,})?",_e="(?:".concat(pe.join("|"),")").concat(De),ae=new RegExp("(?:^".concat(ue,"$)|(?:^").concat(_e,"$)")),vt=new RegExp("^".concat(ue,"$")),It=new RegExp("^".concat(_e,"$")),pt=function(sn){return sn&&sn.exact?ae:new RegExp("(?:".concat(me(sn)).concat(ue).concat(me(sn),")|(?:").concat(me(sn)).concat(_e).concat(me(sn),")"),"g")};pt.v4=function(on){return on&&on.exact?vt:new RegExp("".concat(me(on)).concat(ue).concat(me(on)),"g")},pt.v6=function(on){return on&&on.exact?It:new RegExp("".concat(me(on)).concat(_e).concat(me(on)),"g")};var nn="(?:(?:[a-z]+:)?//)",it="(?:\\S+(?::\\S*)?@)?",yn=pt.v4().source,en=pt.v6().source,un="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",jt="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",Et="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",rt="(?::\\d{2,5})?",xt='(?:[/?#][^\\s"]*)?',qt="(?:".concat(nn,"|www\\.)").concat(it,"(?:localhost|").concat(yn,"|").concat(en,"|").concat(un).concat(jt).concat(Et,")").concat(rt).concat(xt);return qe=new RegExp("(?:^".concat(qt,"$)"),"i"),qe},ie={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},W={integer:function(me){return W.number(me)&&parseInt(me,10)===me},float:function(me){return W.number(me)&&!W.integer(me)},array:function(me){return Array.isArray(me)},regexp:function(me){if(me instanceof RegExp)return!0;try{return!!new RegExp(me)}catch(ue){return!1}},date:function(me){return typeof me.getTime=="function"&&typeof me.getMonth=="function"&&typeof me.getYear=="function"&&!isNaN(me.getTime())},number:function(me){return isNaN(me)?!1:typeof me=="number"},object:function(me){return(0,U.Z)(me)==="object"&&!W.array(me)},method:function(me){return typeof me=="function"},email:function(me){return typeof me=="string"&&me.length<=320&&!!me.match(ie.email)},url:function(me){return typeof me=="string"&&me.length<=2048&&!!me.match(ze())},hex:function(me){return typeof me=="string"&&!!me.match(ie.hex)}},re=function(me,ue,Oe,pe,De){if(me.required&&ue===void 0){Le(me,ue,Oe,pe,De);return}var _e=["integer","float","array","regexp","object","method","email","number","date","url","hex"],ae=me.type;_e.indexOf(ae)>-1?W[ae](ue)||pe.push(z(De.messages.types[ae],me.fullField,me.type)):ae&&(0,U.Z)(ue)!==me.type&&pe.push(z(De.messages.types[ae],me.fullField,me.type))},x=re,oe=function(me,ue,Oe,pe,De){(/^\s+$/.test(ue)||ue==="")&&pe.push(z(De.messages.whitespace,me.fullField))},ve=oe,he={required:Le,whitespace:ve,type:x,range:Fe,enum:ut,pattern:Ye},w=function(me,ue,Oe,pe,De){var _e=[],ae=me.required||!me.required&&pe.hasOwnProperty(me.field);if(ae){if(L(ue)&&!me.required)return Oe();he.required(me,ue,pe,_e,De)}Oe(_e)},S=w,j=function(me,ue,Oe,pe,De){var _e=[],ae=me.required||!me.required&&pe.hasOwnProperty(me.field);if(ae){if(ue==null&&!me.required)return Oe();he.required(me,ue,pe,_e,De,"array"),ue!=null&&(he.type(me,ue,pe,_e,De),he.range(me,ue,pe,_e,De))}Oe(_e)},B=j,_=function(me,ue,Oe,pe,De){var _e=[],ae=me.required||!me.required&&pe.hasOwnProperty(me.field);if(ae){if(L(ue)&&!me.required)return Oe();he.required(me,ue,pe,_e,De),ue!==void 0&&he.type(me,ue,pe,_e,De)}Oe(_e)},D=_,te=function(me,ue,Oe,pe,De){var _e=[],ae=me.required||!me.required&&pe.hasOwnProperty(me.field);if(ae){if(L(ue,"date")&&!me.required)return Oe();if(he.required(me,ue,pe,_e,De),!L(ue,"date")){var vt;ue instanceof Date?vt=ue:vt=new Date(ue),he.type(me,vt,pe,_e,De),vt&&he.range(me,vt.getTime(),pe,_e,De)}}Oe(_e)},be=te,ge="enum",ye=function(me,ue,Oe,pe,De){var _e=[],ae=me.required||!me.required&&pe.hasOwnProperty(me.field);if(ae){if(L(ue)&&!me.required)return Oe();he.required(me,ue,pe,_e,De),ue!==void 0&&he[ge](me,ue,pe,_e,De)}Oe(_e)},Ne=ye,ke=function(me,ue,Oe,pe,De){var _e=[],ae=me.required||!me.required&&pe.hasOwnProperty(me.field);if(ae){if(L(ue)&&!me.required)return Oe();he.required(me,ue,pe,_e,De),ue!==void 0&&(he.type(me,ue,pe,_e,De),he.range(me,ue,pe,_e,De))}Oe(_e)},We=ke,je=function(me,ue,Oe,pe,De){var _e=[],ae=me.required||!me.required&&pe.hasOwnProperty(me.field);if(ae){if(L(ue)&&!me.required)return Oe();he.required(me,ue,pe,_e,De),ue!==void 0&&(he.type(me,ue,pe,_e,De),he.range(me,ue,pe,_e,De))}Oe(_e)},Ve=je,mt=function(me,ue,Oe,pe,De){var _e=[],ae=me.required||!me.required&&pe.hasOwnProperty(me.field);if(ae){if(L(ue)&&!me.required)return Oe();he.required(me,ue,pe,_e,De),ue!==void 0&&he.type(me,ue,pe,_e,De)}Oe(_e)},Pt=mt,bt=function(me,ue,Oe,pe,De){var _e=[],ae=me.required||!me.required&&pe.hasOwnProperty(me.field);if(ae){if(ue===""&&(ue=void 0),L(ue)&&!me.required)return Oe();he.required(me,ue,pe,_e,De),ue!==void 0&&(he.type(me,ue,pe,_e,De),he.range(me,ue,pe,_e,De))}Oe(_e)},_t=bt,Dt=function(me,ue,Oe,pe,De){var _e=[],ae=me.required||!me.required&&pe.hasOwnProperty(me.field);if(ae){if(L(ue)&&!me.required)return Oe();he.required(me,ue,pe,_e,De),ue!==void 0&&he.type(me,ue,pe,_e,De)}Oe(_e)},Rt=Dt,Ht=function(me,ue,Oe,pe,De){var _e=[],ae=me.required||!me.required&&pe.hasOwnProperty(me.field);if(ae){if(L(ue,"string")&&!me.required)return Oe();he.required(me,ue,pe,_e,De),L(ue,"string")||he.pattern(me,ue,pe,_e,De)}Oe(_e)},$t=Ht,vn=function(me,ue,Oe,pe,De){var _e=[],ae=me.required||!me.required&&pe.hasOwnProperty(me.field);if(ae){if(L(ue)&&!me.required)return Oe();he.required(me,ue,pe,_e,De),L(ue)||he.type(me,ue,pe,_e,De)}Oe(_e)},mn=vn,zn=function(me,ue,Oe,pe,De){var _e=[],ae=Array.isArray(ue)?"array":(0,U.Z)(ue);he.required(me,ue,pe,_e,De,ae),Oe(_e)},Xt=zn,Vn=function(me,ue,Oe,pe,De){var _e=[],ae=me.required||!me.required&&pe.hasOwnProperty(me.field);if(ae){if(L(ue,"string")&&!me.required)return Oe();he.required(me,ue,pe,_e,De,"string"),L(ue,"string")||(he.type(me,ue,pe,_e,De),he.range(me,ue,pe,_e,De),he.pattern(me,ue,pe,_e,De),me.whitespace===!0&&he.whitespace(me,ue,pe,_e,De))}Oe(_e)},Un=Vn,_n=function(me,ue,Oe,pe,De){var _e=me.type,ae=[],vt=me.required||!me.required&&pe.hasOwnProperty(me.field);if(vt){if(L(ue,_e)&&!me.required)return Oe();he.required(me,ue,pe,ae,De,_e),L(ue,_e)||he.type(me,ue,pe,ae,De)}Oe(ae)},Ln=_n,kn={string:Un,method:Pt,number:_t,boolean:D,regexp:mn,integer:Ve,float:We,array:B,object:Rt,enum:Ne,pattern:$t,date:be,url:Ln,hex:Ln,email:Ln,required:Xt,any:S},Rn=function(){function Me(me){(0,l.Z)(this,Me),(0,f.Z)(this,"rules",null),(0,f.Z)(this,"_messages",H),this.define(me)}return(0,d.Z)(Me,[{key:"define",value:function(ue){var Oe=this;if(!ue)throw new Error("Cannot configure a schema with no rules");if((0,U.Z)(ue)!=="object"||Array.isArray(ue))throw new Error("Rules must be an object");this.rules={},Object.keys(ue).forEach(function(pe){var De=ue[pe];Oe.rules[pe]=Array.isArray(De)?De:[De]})}},{key:"messages",value:function(ue){return ue&&(this._messages=Pe(Y(),ue)),this._messages}},{key:"validate",value:function(ue){var Oe=this,pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},_e=ue,ae=pe,vt=De;if(typeof ae=="function"&&(vt=ae,ae={}),!this.rules||Object.keys(this.rules).length===0)return vt&&vt(null,_e),Promise.resolve(_e);function It(en){var un=[],jt={};function Et(xt){if(Array.isArray(xt)){var qt;un=(qt=un).concat.apply(qt,(0,c.Z)(xt))}else un.push(xt)}for(var rt=0;rt0&&arguments[0]!==void 0?arguments[0]:[],xn=Array.isArray(Dn)?Dn:[Dn];!ae.suppressWarning&&xn.length&&Me.warning("async-validator:",xn),xn.length&&jt.message!==void 0&&(xn=[].concat(jt.message));var At=xn.map(Ie(jt,_e));if(ae.first&&At.length)return yn[jt.field]=1,un(At);if(!Et)un(At);else{if(jt.required&&!en.value)return jt.message!==void 0?At=[].concat(jt.message).map(Ie(jt,_e)):ae.error&&(At=[ae.error(jt,z(ae.messages.required,jt.field))]),un(At);var Jn={};jt.defaultField&&Object.keys(en.value).map(function(Mr){Jn[Mr]=jt.defaultField}),Jn=(0,u.Z)((0,u.Z)({},Jn),en.rule.fields);var or={};Object.keys(Jn).forEach(function(Mr){var zr=Jn[Mr],qr=Array.isArray(zr)?zr:[zr];or[Mr]=qr.map(rt.bind(null,Mr))});var Ar=new Me(or);Ar.messages(ae.messages),en.rule.options&&(en.rule.options.messages=ae.messages,en.rule.options.error=ae.error),Ar.validate(en.value,en.rule.options||ae,function(Mr){var zr=[];At&&At.length&&zr.push.apply(zr,(0,c.Z)(At)),Mr&&Mr.length&&zr.push.apply(zr,(0,c.Z)(Mr)),un(zr.length?zr:null)})}}var qt;if(jt.asyncValidator)qt=jt.asyncValidator(jt,en.value,xt,en.source,ae);else if(jt.validator){try{qt=jt.validator(jt,en.value,xt,en.source,ae)}catch(Dn){var on,sn;(on=(sn=console).error)===null||on===void 0||on.call(sn,Dn),ae.suppressValidatorError||setTimeout(function(){throw Dn},0),xt(Dn.message)}qt===!0?xt():qt===!1?xt(typeof jt.message=="function"?jt.message(jt.fullField||jt.field):jt.message||"".concat(jt.fullField||jt.field," fails")):qt instanceof Array?xt(qt):qt instanceof Error&&xt(qt.message)}qt&&qt.then&&qt.then(function(){return xt()},function(Dn){return xt(Dn)})},function(en){It(en)},_e)}},{key:"getType",value:function(ue){if(ue.type===void 0&&ue.pattern instanceof RegExp&&(ue.type="pattern"),typeof ue.validator!="function"&&ue.type&&!kn.hasOwnProperty(ue.type))throw new Error(z("Unknown rule type %s",ue.type));return ue.type||"string"}},{key:"getValidationMethod",value:function(ue){if(typeof ue.validator=="function")return ue.validator;var Oe=Object.keys(ue),pe=Oe.indexOf("message");return pe!==-1&&Oe.splice(pe,1),Oe.length===1&&Oe[0]==="required"?kn.required:kn[this.getType(ue)]||void 0}}]),Me}();(0,f.Z)(Rn,"register",function(me,ue){if(typeof ue!="function")throw new Error("Cannot register a validator by type, validator is not a function");kn[me]=ue}),(0,f.Z)(Rn,"warning",V),(0,f.Z)(Rn,"messages",H),(0,f.Z)(Rn,"validators",kn);var Mn=Rn,$n="'${name}' is not a valid ${type}",In={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:$n,method:$n,array:$n,object:$n,number:$n,date:$n,boolean:$n,integer:$n,float:$n,regexp:$n,email:$n,url:$n,hex:$n},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},lr=e(8880),yr=Mn;function rr(Me,me){return Me.replace(/\$\{\w+\}/g,function(ue){var Oe=ue.slice(2,-1);return me[Oe]})}var Lr="CODE_LOGIC_ERROR";function $r(Me,me,ue,Oe,pe){return br.apply(this,arguments)}function br(){return br=(0,s.Z)((0,a.Z)().mark(function Me(me,ue,Oe,pe,De){var _e,ae,vt,It,pt,nn,it,yn,en;return(0,a.Z)().wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return _e=(0,u.Z)({},Oe),delete _e.ruleIndex,yr.warning=function(){},_e.validator&&(ae=_e.validator,_e.validator=function(){try{return ae.apply(void 0,arguments)}catch(Et){return console.error(Et),Promise.reject(Lr)}}),vt=null,_e&&_e.type==="array"&&_e.defaultField&&(vt=_e.defaultField,delete _e.defaultField),It=new yr((0,f.Z)({},me,[_e])),pt=(0,lr.T)(In,pe.validateMessages),It.messages(pt),nn=[],jt.prev=10,jt.next=13,Promise.resolve(It.validate((0,f.Z)({},me,ue),(0,u.Z)({},pe)));case 13:jt.next=18;break;case 15:jt.prev=15,jt.t0=jt.catch(10),jt.t0.errors&&(nn=jt.t0.errors.map(function(Et,rt){var xt=Et.message,qt=xt===Lr?pt.default:xt;return t.isValidElement(qt)?t.cloneElement(qt,{key:"error_".concat(rt)}):qt}));case 18:if(!(!nn.length&&vt)){jt.next=23;break}return jt.next=21,Promise.all(ue.map(function(Et,rt){return $r("".concat(me,".").concat(rt),Et,vt,pe,De)}));case 21:return it=jt.sent,jt.abrupt("return",it.reduce(function(Et,rt){return[].concat((0,c.Z)(Et),(0,c.Z)(rt))},[]));case 23:return yn=(0,u.Z)((0,u.Z)({},Oe),{},{name:me,enum:(Oe.enum||[]).join(", ")},De),en=nn.map(function(Et){return typeof Et=="string"?rr(Et,yn):Et}),jt.abrupt("return",en);case 26:case"end":return jt.stop()}},Me,null,[[10,15]])})),br.apply(this,arguments)}function Or(Me,me,ue,Oe,pe,De){var _e=Me.join("."),ae=ue.map(function(pt,nn){var it=pt.validator,yn=(0,u.Z)((0,u.Z)({},pt),{},{ruleIndex:nn});return it&&(yn.validator=function(en,un,jt){var Et=!1,rt=function(){for(var on=arguments.length,sn=new Array(on),Dn=0;Dn2&&arguments[2]!==void 0?arguments[2]:!1;return Me&&Me.some(function(Oe){return na(me,Oe,ue)})}function na(Me,me){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!Me||!me||!ue&&Me.length!==me.length?!1:me.every(function(Oe,pe){return Me[pe]===Oe})}function wr(Me,me){if(Me===me)return!0;if(!Me&&me||Me&&!me||!Me||!me||(0,U.Z)(Me)!=="object"||(0,U.Z)(me)!=="object")return!1;var ue=Object.keys(Me),Oe=Object.keys(me),pe=new Set([].concat(ue,Oe));return(0,c.Z)(pe).every(function(De){var _e=Me[De],ae=me[De];return typeof _e=="function"&&typeof ae=="function"?!0:_e===ae})}function Gr(Me){var me=arguments.length<=1?void 0:arguments[1];return me&&me.target&&(0,U.Z)(me.target)==="object"&&Me in me.target?me.target[Me]:me}function Rr(Me,me,ue){var Oe=Me.length;if(me<0||me>=Oe||ue<0||ue>=Oe)return Me;var pe=Me[me],De=me-ue;return De>0?[].concat((0,c.Z)(Me.slice(0,ue)),[pe],(0,c.Z)(Me.slice(ue,me)),(0,c.Z)(Me.slice(me+1,Oe))):De<0?[].concat((0,c.Z)(Me.slice(0,me)),(0,c.Z)(Me.slice(me+1,ue+1)),[pe],(0,c.Z)(Me.slice(ue+1,Oe))):Me}var Yn=["name"],Wn=[];function ot(Me,me,ue,Oe,pe,De){return typeof Me=="function"?Me(me,ue,"source"in De?{source:De.source}:{}):Oe!==pe}var Tt=function(Me){(0,b.Z)(ue,Me);var me=(0,y.Z)(ue);function ue(Oe){var pe;if((0,l.Z)(this,ue),pe=me.call(this,Oe),(0,f.Z)((0,m.Z)(pe),"state",{resetCount:0}),(0,f.Z)((0,m.Z)(pe),"cancelRegisterFunc",null),(0,f.Z)((0,m.Z)(pe),"mounted",!1),(0,f.Z)((0,m.Z)(pe),"touched",!1),(0,f.Z)((0,m.Z)(pe),"dirty",!1),(0,f.Z)((0,m.Z)(pe),"validatePromise",void 0),(0,f.Z)((0,m.Z)(pe),"prevValidating",void 0),(0,f.Z)((0,m.Z)(pe),"errors",Wn),(0,f.Z)((0,m.Z)(pe),"warnings",Wn),(0,f.Z)((0,m.Z)(pe),"cancelRegister",function(){var vt=pe.props,It=vt.preserve,pt=vt.isListField,nn=vt.name;pe.cancelRegisterFunc&&pe.cancelRegisterFunc(pt,It,nr(nn)),pe.cancelRegisterFunc=null}),(0,f.Z)((0,m.Z)(pe),"getNamePath",function(){var vt=pe.props,It=vt.name,pt=vt.fieldContext,nn=pt.prefixName,it=nn===void 0?[]:nn;return It!==void 0?[].concat((0,c.Z)(it),(0,c.Z)(It)):[]}),(0,f.Z)((0,m.Z)(pe),"getRules",function(){var vt=pe.props,It=vt.rules,pt=It===void 0?[]:It,nn=vt.fieldContext;return pt.map(function(it){return typeof it=="function"?it(nn):it})}),(0,f.Z)((0,m.Z)(pe),"refresh",function(){pe.mounted&&pe.setState(function(vt){var It=vt.resetCount;return{resetCount:It+1}})}),(0,f.Z)((0,m.Z)(pe),"metaCache",null),(0,f.Z)((0,m.Z)(pe),"triggerMetaEvent",function(vt){var It=pe.props.onMetaChange;if(It){var pt=(0,u.Z)((0,u.Z)({},pe.getMeta()),{},{destroy:vt});(0,R.Z)(pe.metaCache,pt)||It(pt),pe.metaCache=pt}else pe.metaCache=null}),(0,f.Z)((0,m.Z)(pe),"onStoreChange",function(vt,It,pt){var nn=pe.props,it=nn.shouldUpdate,yn=nn.dependencies,en=yn===void 0?[]:yn,un=nn.onReset,jt=pt.store,Et=pe.getNamePath(),rt=pe.getValue(vt),xt=pe.getValue(jt),qt=It&&ar(It,Et);switch(pt.type==="valueUpdate"&&pt.source==="external"&&!(0,R.Z)(rt,xt)&&(pe.touched=!0,pe.dirty=!0,pe.validatePromise=null,pe.errors=Wn,pe.warnings=Wn,pe.triggerMetaEvent()),pt.type){case"reset":if(!It||qt){pe.touched=!1,pe.dirty=!1,pe.validatePromise=void 0,pe.errors=Wn,pe.warnings=Wn,pe.triggerMetaEvent(),un==null||un(),pe.refresh();return}break;case"remove":{if(it){pe.reRender();return}break}case"setField":{var on=pt.data;if(qt){"touched"in on&&(pe.touched=on.touched),"validating"in on&&!("originRCField"in on)&&(pe.validatePromise=on.validating?Promise.resolve([]):null),"errors"in on&&(pe.errors=on.errors||Wn),"warnings"in on&&(pe.warnings=on.warnings||Wn),pe.dirty=!0,pe.triggerMetaEvent(),pe.reRender();return}else if("value"in on&&ar(It,Et,!0)){pe.reRender();return}if(it&&!Et.length&&ot(it,vt,jt,rt,xt,pt)){pe.reRender();return}break}case"dependenciesUpdate":{var sn=en.map(nr);if(sn.some(function(Dn){return ar(pt.relatedFields,Dn)})){pe.reRender();return}break}default:if(qt||(!en.length||Et.length||it)&&ot(it,vt,jt,rt,xt,pt)){pe.reRender();return}break}it===!0&&pe.reRender()}),(0,f.Z)((0,m.Z)(pe),"validateRules",function(vt){var It=pe.getNamePath(),pt=pe.getValue(),nn=vt||{},it=nn.triggerName,yn=nn.validateOnly,en=yn===void 0?!1:yn,un=Promise.resolve().then((0,s.Z)((0,a.Z)().mark(function jt(){var Et,rt,xt,qt,on,sn,Dn;return(0,a.Z)().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:if(pe.mounted){At.next=2;break}return At.abrupt("return",[]);case 2:if(Et=pe.props,rt=Et.validateFirst,xt=rt===void 0?!1:rt,qt=Et.messageVariables,on=Et.validateDebounce,sn=pe.getRules(),it&&(sn=sn.filter(function(Jn){return Jn}).filter(function(Jn){var or=Jn.validateTrigger;if(!or)return!0;var Ar=Z(or);return Ar.includes(it)})),!(on&&it)){At.next=10;break}return At.next=8,new Promise(function(Jn){setTimeout(Jn,on)});case 8:if(pe.validatePromise===un){At.next=10;break}return At.abrupt("return",[]);case 10:return Dn=Or(It,pt,sn,vt,xt,qt),Dn.catch(function(Jn){return Jn}).then(function(){var Jn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wn;if(pe.validatePromise===un){var or;pe.validatePromise=null;var Ar=[],Mr=[];(or=Jn.forEach)===null||or===void 0||or.call(Jn,function(zr){var qr=zr.rule.warningOnly,Kr=zr.errors,Jr=Kr===void 0?Wn:Kr;qr?Mr.push.apply(Mr,(0,c.Z)(Jr)):Ar.push.apply(Ar,(0,c.Z)(Jr))}),pe.errors=Ar,pe.warnings=Mr,pe.triggerMetaEvent(),pe.reRender()}}),At.abrupt("return",Dn);case 13:case"end":return At.stop()}},jt)})));return en||(pe.validatePromise=un,pe.dirty=!0,pe.errors=Wn,pe.warnings=Wn,pe.triggerMetaEvent(),pe.reRender()),un}),(0,f.Z)((0,m.Z)(pe),"isFieldValidating",function(){return!!pe.validatePromise}),(0,f.Z)((0,m.Z)(pe),"isFieldTouched",function(){return pe.touched}),(0,f.Z)((0,m.Z)(pe),"isFieldDirty",function(){if(pe.dirty||pe.props.initialValue!==void 0)return!0;var vt=pe.props.fieldContext,It=vt.getInternalHooks(C),pt=It.getInitialValue;return pt(pe.getNamePath())!==void 0}),(0,f.Z)((0,m.Z)(pe),"getErrors",function(){return pe.errors}),(0,f.Z)((0,m.Z)(pe),"getWarnings",function(){return pe.warnings}),(0,f.Z)((0,m.Z)(pe),"isListField",function(){return pe.props.isListField}),(0,f.Z)((0,m.Z)(pe),"isList",function(){return pe.props.isList}),(0,f.Z)((0,m.Z)(pe),"isPreserve",function(){return pe.props.preserve}),(0,f.Z)((0,m.Z)(pe),"getMeta",function(){pe.prevValidating=pe.isFieldValidating();var vt={touched:pe.isFieldTouched(),validating:pe.prevValidating,errors:pe.errors,warnings:pe.warnings,name:pe.getNamePath(),validated:pe.validatePromise===null};return vt}),(0,f.Z)((0,m.Z)(pe),"getOnlyChild",function(vt){if(typeof vt=="function"){var It=pe.getMeta();return(0,u.Z)((0,u.Z)({},pe.getOnlyChild(vt(pe.getControlled(),It,pe.props.fieldContext))),{},{isFunction:!0})}var pt=(0,E.Z)(vt);return pt.length!==1||!t.isValidElement(pt[0])?{child:pt,isFunction:!1}:{child:pt[0],isFunction:!1}}),(0,f.Z)((0,m.Z)(pe),"getValue",function(vt){var It=pe.props.fieldContext.getFieldsValue,pt=pe.getNamePath();return(0,xr.Z)(vt||It(!0),pt)}),(0,f.Z)((0,m.Z)(pe),"getControlled",function(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},It=pe.props,pt=It.name,nn=It.trigger,it=It.validateTrigger,yn=It.getValueFromEvent,en=It.normalize,un=It.valuePropName,jt=It.getValueProps,Et=It.fieldContext,rt=it!==void 0?it:Et.validateTrigger,xt=pe.getNamePath(),qt=Et.getInternalHooks,on=Et.getFieldsValue,sn=qt(C),Dn=sn.dispatch,xn=pe.getValue(),At=jt||function(zr){return(0,f.Z)({},un,zr)},Jn=vt[nn],or=pt!==void 0?At(xn):{},Ar=(0,u.Z)((0,u.Z)({},vt),or);Ar[nn]=function(){pe.touched=!0,pe.dirty=!0,pe.triggerMetaEvent();for(var zr,qr=arguments.length,Kr=new Array(qr),Jr=0;Jr=0&&Jn<=or.length?(pt.keys=[].concat((0,c.Z)(pt.keys.slice(0,Jn)),[pt.id],(0,c.Z)(pt.keys.slice(Jn))),xt([].concat((0,c.Z)(or.slice(0,Jn)),[At],(0,c.Z)(or.slice(Jn))))):(pt.keys=[].concat((0,c.Z)(pt.keys),[pt.id]),xt([].concat((0,c.Z)(or),[At]))),pt.id+=1},remove:function(At){var Jn=on(),or=new Set(Array.isArray(At)?At:[At]);or.size<=0||(pt.keys=pt.keys.filter(function(Ar,Mr){return!or.has(Mr)}),xt(Jn.filter(function(Ar,Mr){return!or.has(Mr)})))},move:function(At,Jn){if(At!==Jn){var or=on();At<0||At>=or.length||Jn<0||Jn>=or.length||(pt.keys=Rr(pt.keys,At,Jn),xt(Rr(or,At,Jn)))}}},Dn=rt||[];return Array.isArray(Dn)||(Dn=[]),Oe(Dn.map(function(xn,At){var Jn=pt.keys[At];return Jn===void 0&&(pt.keys[At]=pt.id,Jn=pt.keys[At],pt.id+=1),{name:At,key:Jn,isListField:!0}}),sn,jt)})))}var ft=Ot,et=e(97685);function dt(Me){var me=!1,ue=Me.length,Oe=[];return Me.length?new Promise(function(pe,De){Me.forEach(function(_e,ae){_e.catch(function(vt){return me=!0,vt}).then(function(vt){ue-=1,Oe[ae]=vt,!(ue>0)&&(me&&De(Oe),pe(Oe))})})}):Promise.resolve([])}var ht="__@field_split__";function Nt(Me){return Me.map(function(me){return"".concat((0,U.Z)(me),":").concat(me)}).join(ht)}var Qt=function(){function Me(){(0,l.Z)(this,Me),(0,f.Z)(this,"kvs",new Map)}return(0,d.Z)(Me,[{key:"set",value:function(ue,Oe){this.kvs.set(Nt(ue),Oe)}},{key:"get",value:function(ue){return this.kvs.get(Nt(ue))}},{key:"update",value:function(ue,Oe){var pe=this.get(ue),De=Oe(pe);De?this.set(ue,De):this.delete(ue)}},{key:"delete",value:function(ue){this.kvs.delete(Nt(ue))}},{key:"map",value:function(ue){return(0,c.Z)(this.kvs.entries()).map(function(Oe){var pe=(0,et.Z)(Oe,2),De=pe[0],_e=pe[1],ae=De.split(ht);return ue({key:ae.map(function(vt){var It=vt.match(/^([^:]*):(.*)$/),pt=(0,et.Z)(It,3),nn=pt[1],it=pt[2];return nn==="number"?Number(it):it}),value:_e})})}},{key:"toJSON",value:function(){var ue={};return this.map(function(Oe){var pe=Oe.key,De=Oe.value;return ue[pe.join(".")]=De,null}),ue}}]),Me}(),Jt=Qt,Vt=["name"],Zt=(0,d.Z)(function Me(me){var ue=this;(0,l.Z)(this,Me),(0,f.Z)(this,"formHooked",!1),(0,f.Z)(this,"forceRootUpdate",void 0),(0,f.Z)(this,"subscribable",!0),(0,f.Z)(this,"store",{}),(0,f.Z)(this,"fieldEntities",[]),(0,f.Z)(this,"initialValues",{}),(0,f.Z)(this,"callbacks",{}),(0,f.Z)(this,"validateMessages",null),(0,f.Z)(this,"preserve",null),(0,f.Z)(this,"lastValidatePromise",null),(0,f.Z)(this,"getForm",function(){return{getFieldValue:ue.getFieldValue,getFieldsValue:ue.getFieldsValue,getFieldError:ue.getFieldError,getFieldWarning:ue.getFieldWarning,getFieldsError:ue.getFieldsError,isFieldsTouched:ue.isFieldsTouched,isFieldTouched:ue.isFieldTouched,isFieldValidating:ue.isFieldValidating,isFieldsValidating:ue.isFieldsValidating,resetFields:ue.resetFields,setFields:ue.setFields,setFieldValue:ue.setFieldValue,setFieldsValue:ue.setFieldsValue,validateFields:ue.validateFields,submit:ue.submit,_init:!0,getInternalHooks:ue.getInternalHooks}}),(0,f.Z)(this,"getInternalHooks",function(Oe){return Oe===C?(ue.formHooked=!0,{dispatch:ue.dispatch,initEntityValue:ue.initEntityValue,registerField:ue.registerField,useSubscribe:ue.useSubscribe,setInitialValues:ue.setInitialValues,destroyForm:ue.destroyForm,setCallbacks:ue.setCallbacks,setValidateMessages:ue.setValidateMessages,getFields:ue.getFields,setPreserve:ue.setPreserve,getInitialValue:ue.getInitialValue,registerWatch:ue.registerWatch}):((0,T.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),(0,f.Z)(this,"useSubscribe",function(Oe){ue.subscribable=Oe}),(0,f.Z)(this,"prevWithoutPreserves",null),(0,f.Z)(this,"setInitialValues",function(Oe,pe){if(ue.initialValues=Oe||{},pe){var De,_e=(0,lr.T)(Oe,ue.store);(De=ue.prevWithoutPreserves)===null||De===void 0||De.map(function(ae){var vt=ae.key;_e=(0,lr.Z)(_e,vt,(0,xr.Z)(Oe,vt))}),ue.prevWithoutPreserves=null,ue.updateStore(_e)}}),(0,f.Z)(this,"destroyForm",function(Oe){if(Oe)ue.updateStore({});else{var pe=new Jt;ue.getFieldEntities(!0).forEach(function(De){ue.isMergedPreserve(De.isPreserve())||pe.set(De.getNamePath(),!0)}),ue.prevWithoutPreserves=pe}}),(0,f.Z)(this,"getInitialValue",function(Oe){var pe=(0,xr.Z)(ue.initialValues,Oe);return Oe.length?(0,lr.T)(pe):pe}),(0,f.Z)(this,"setCallbacks",function(Oe){ue.callbacks=Oe}),(0,f.Z)(this,"setValidateMessages",function(Oe){ue.validateMessages=Oe}),(0,f.Z)(this,"setPreserve",function(Oe){ue.preserve=Oe}),(0,f.Z)(this,"watchList",[]),(0,f.Z)(this,"registerWatch",function(Oe){return ue.watchList.push(Oe),function(){ue.watchList=ue.watchList.filter(function(pe){return pe!==Oe})}}),(0,f.Z)(this,"notifyWatch",function(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(ue.watchList.length){var pe=ue.getFieldsValue(),De=ue.getFieldsValue(!0);ue.watchList.forEach(function(_e){_e(pe,De,Oe)})}}),(0,f.Z)(this,"timeoutId",null),(0,f.Z)(this,"warningUnhooked",function(){}),(0,f.Z)(this,"updateStore",function(Oe){ue.store=Oe}),(0,f.Z)(this,"getFieldEntities",function(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return Oe?ue.fieldEntities.filter(function(pe){return pe.getNamePath().length}):ue.fieldEntities}),(0,f.Z)(this,"getFieldsMap",function(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,pe=new Jt;return ue.getFieldEntities(Oe).forEach(function(De){var _e=De.getNamePath();pe.set(_e,De)}),pe}),(0,f.Z)(this,"getFieldEntitiesForNamePathList",function(Oe){if(!Oe)return ue.getFieldEntities(!0);var pe=ue.getFieldsMap(!0);return Oe.map(function(De){var _e=nr(De);return pe.get(_e)||{INVALIDATE_NAME_PATH:nr(De)}})}),(0,f.Z)(this,"getFieldsValue",function(Oe,pe){ue.warningUnhooked();var De,_e,ae;if(Oe===!0||Array.isArray(Oe)?(De=Oe,_e=pe):Oe&&(0,U.Z)(Oe)==="object"&&(ae=Oe.strict,_e=Oe.filter),De===!0&&!_e)return ue.store;var vt=ue.getFieldEntitiesForNamePathList(Array.isArray(De)?De:null),It=[];return vt.forEach(function(pt){var nn,it,yn="INVALIDATE_NAME_PATH"in pt?pt.INVALIDATE_NAME_PATH:pt.getNamePath();if(ae){var en,un;if((en=(un=pt).isList)!==null&&en!==void 0&&en.call(un))return}else if(!De&&(nn=(it=pt).isListField)!==null&&nn!==void 0&&nn.call(it))return;if(!_e)It.push(yn);else{var jt="getMeta"in pt?pt.getMeta():null;_e(jt)&&It.push(yn)}}),Hr(ue.store,It.map(nr))}),(0,f.Z)(this,"getFieldValue",function(Oe){ue.warningUnhooked();var pe=nr(Oe);return(0,xr.Z)(ue.store,pe)}),(0,f.Z)(this,"getFieldsError",function(Oe){ue.warningUnhooked();var pe=ue.getFieldEntitiesForNamePathList(Oe);return pe.map(function(De,_e){return De&&!("INVALIDATE_NAME_PATH"in De)?{name:De.getNamePath(),errors:De.getErrors(),warnings:De.getWarnings()}:{name:nr(Oe[_e]),errors:[],warnings:[]}})}),(0,f.Z)(this,"getFieldError",function(Oe){ue.warningUnhooked();var pe=nr(Oe),De=ue.getFieldsError([pe])[0];return De.errors}),(0,f.Z)(this,"getFieldWarning",function(Oe){ue.warningUnhooked();var pe=nr(Oe),De=ue.getFieldsError([pe])[0];return De.warnings}),(0,f.Z)(this,"isFieldsTouched",function(){ue.warningUnhooked();for(var Oe=arguments.length,pe=new Array(Oe),De=0;De0&&arguments[0]!==void 0?arguments[0]:{},pe=new Jt,De=ue.getFieldEntities(!0);De.forEach(function(vt){var It=vt.props.initialValue,pt=vt.getNamePath();if(It!==void 0){var nn=pe.get(pt)||new Set;nn.add({entity:vt,value:It}),pe.set(pt,nn)}});var _e=function(It){It.forEach(function(pt){var nn=pt.props.initialValue;if(nn!==void 0){var it=pt.getNamePath(),yn=ue.getInitialValue(it);if(yn!==void 0)(0,T.ZP)(!1,"Form already set 'initialValues' with path '".concat(it.join("."),"'. Field can not overwrite it."));else{var en=pe.get(it);if(en&&en.size>1)(0,T.ZP)(!1,"Multiple Field with path '".concat(it.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(en){var un=ue.getFieldValue(it),jt=pt.isListField();!jt&&(!Oe.skipExist||un===void 0)&&ue.updateStore((0,lr.Z)(ue.store,it,(0,c.Z)(en)[0].value))}}}})},ae;Oe.entities?ae=Oe.entities:Oe.namePathList?(ae=[],Oe.namePathList.forEach(function(vt){var It=pe.get(vt);if(It){var pt;(pt=ae).push.apply(pt,(0,c.Z)((0,c.Z)(It).map(function(nn){return nn.entity})))}})):ae=De,_e(ae)}),(0,f.Z)(this,"resetFields",function(Oe){ue.warningUnhooked();var pe=ue.store;if(!Oe){ue.updateStore((0,lr.T)(ue.initialValues)),ue.resetWithFieldInitialValue(),ue.notifyObservers(pe,null,{type:"reset"}),ue.notifyWatch();return}var De=Oe.map(nr);De.forEach(function(_e){var ae=ue.getInitialValue(_e);ue.updateStore((0,lr.Z)(ue.store,_e,ae))}),ue.resetWithFieldInitialValue({namePathList:De}),ue.notifyObservers(pe,De,{type:"reset"}),ue.notifyWatch(De)}),(0,f.Z)(this,"setFields",function(Oe){ue.warningUnhooked();var pe=ue.store,De=[];Oe.forEach(function(_e){var ae=_e.name,vt=(0,o.Z)(_e,Vt),It=nr(ae);De.push(It),"value"in vt&&ue.updateStore((0,lr.Z)(ue.store,It,vt.value)),ue.notifyObservers(pe,[It],{type:"setField",data:_e})}),ue.notifyWatch(De)}),(0,f.Z)(this,"getFields",function(){var Oe=ue.getFieldEntities(!0),pe=Oe.map(function(De){var _e=De.getNamePath(),ae=De.getMeta(),vt=(0,u.Z)((0,u.Z)({},ae),{},{name:_e,value:ue.getFieldValue(_e)});return Object.defineProperty(vt,"originRCField",{value:!0}),vt});return pe}),(0,f.Z)(this,"initEntityValue",function(Oe){var pe=Oe.props.initialValue;if(pe!==void 0){var De=Oe.getNamePath(),_e=(0,xr.Z)(ue.store,De);_e===void 0&&ue.updateStore((0,lr.Z)(ue.store,De,pe))}}),(0,f.Z)(this,"isMergedPreserve",function(Oe){var pe=Oe!==void 0?Oe:ue.preserve;return pe!=null?pe:!0}),(0,f.Z)(this,"registerField",function(Oe){ue.fieldEntities.push(Oe);var pe=Oe.getNamePath();if(ue.notifyWatch([pe]),Oe.props.initialValue!==void 0){var De=ue.store;ue.resetWithFieldInitialValue({entities:[Oe],skipExist:!0}),ue.notifyObservers(De,[Oe.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(_e,ae){var vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(ue.fieldEntities=ue.fieldEntities.filter(function(nn){return nn!==Oe}),!ue.isMergedPreserve(ae)&&(!_e||vt.length>1)){var It=_e?void 0:ue.getInitialValue(pe);if(pe.length&&ue.getFieldValue(pe)!==It&&ue.fieldEntities.every(function(nn){return!na(nn.getNamePath(),pe)})){var pt=ue.store;ue.updateStore((0,lr.Z)(pt,pe,It,!0)),ue.notifyObservers(pt,[pe],{type:"remove"}),ue.triggerDependenciesUpdate(pt,pe)}}ue.notifyWatch([pe])}}),(0,f.Z)(this,"dispatch",function(Oe){switch(Oe.type){case"updateValue":{var pe=Oe.namePath,De=Oe.value;ue.updateValue(pe,De);break}case"validateField":{var _e=Oe.namePath,ae=Oe.triggerName;ue.validateFields([_e],{triggerName:ae});break}default:}}),(0,f.Z)(this,"notifyObservers",function(Oe,pe,De){if(ue.subscribable){var _e=(0,u.Z)((0,u.Z)({},De),{},{store:ue.getFieldsValue(!0)});ue.getFieldEntities().forEach(function(ae){var vt=ae.onStoreChange;vt(Oe,pe,_e)})}else ue.forceRootUpdate()}),(0,f.Z)(this,"triggerDependenciesUpdate",function(Oe,pe){var De=ue.getDependencyChildrenFields(pe);return De.length&&ue.validateFields(De),ue.notifyObservers(Oe,De,{type:"dependenciesUpdate",relatedFields:[pe].concat((0,c.Z)(De))}),De}),(0,f.Z)(this,"updateValue",function(Oe,pe){var De=nr(Oe),_e=ue.store;ue.updateStore((0,lr.Z)(ue.store,De,pe)),ue.notifyObservers(_e,[De],{type:"valueUpdate",source:"internal"}),ue.notifyWatch([De]);var ae=ue.triggerDependenciesUpdate(_e,De),vt=ue.callbacks.onValuesChange;if(vt){var It=Hr(ue.store,[De]);vt(It,ue.getFieldsValue())}ue.triggerOnFieldsChange([De].concat((0,c.Z)(ae)))}),(0,f.Z)(this,"setFieldsValue",function(Oe){ue.warningUnhooked();var pe=ue.store;if(Oe){var De=(0,lr.T)(ue.store,Oe);ue.updateStore(De)}ue.notifyObservers(pe,null,{type:"valueUpdate",source:"external"}),ue.notifyWatch()}),(0,f.Z)(this,"setFieldValue",function(Oe,pe){ue.setFields([{name:Oe,value:pe}])}),(0,f.Z)(this,"getDependencyChildrenFields",function(Oe){var pe=new Set,De=[],_e=new Jt;ue.getFieldEntities().forEach(function(vt){var It=vt.props.dependencies;(It||[]).forEach(function(pt){var nn=nr(pt);_e.update(nn,function(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return it.add(vt),it})})});var ae=function vt(It){var pt=_e.get(It)||new Set;pt.forEach(function(nn){if(!pe.has(nn)){pe.add(nn);var it=nn.getNamePath();nn.isFieldDirty()&&it.length&&(De.push(it),vt(it))}})};return ae(Oe),De}),(0,f.Z)(this,"triggerOnFieldsChange",function(Oe,pe){var De=ue.callbacks.onFieldsChange;if(De){var _e=ue.getFields();if(pe){var ae=new Jt;pe.forEach(function(It){var pt=It.name,nn=It.errors;ae.set(pt,nn)}),_e.forEach(function(It){It.errors=ae.get(It.name)||It.errors})}var vt=_e.filter(function(It){var pt=It.name;return ar(Oe,pt)});vt.length&&De(vt,_e)}}),(0,f.Z)(this,"validateFields",function(Oe,pe){ue.warningUnhooked();var De,_e;Array.isArray(Oe)||typeof Oe=="string"||typeof pe=="string"?(De=Oe,_e=pe):_e=Oe;var ae=!!De,vt=ae?De.map(nr):[],It=[],pt=String(Date.now()),nn=new Set,it=_e||{},yn=it.recursive,en=it.dirty;ue.getFieldEntities(!0).forEach(function(rt){if(ae||vt.push(rt.getNamePath()),!(!rt.props.rules||!rt.props.rules.length)&&!(en&&!rt.isFieldDirty())){var xt=rt.getNamePath();if(nn.add(xt.join(pt)),!ae||ar(vt,xt,yn)){var qt=rt.validateRules((0,u.Z)({validateMessages:(0,u.Z)((0,u.Z)({},In),ue.validateMessages)},_e));It.push(qt.then(function(){return{name:xt,errors:[],warnings:[]}}).catch(function(on){var sn,Dn=[],xn=[];return(sn=on.forEach)===null||sn===void 0||sn.call(on,function(At){var Jn=At.rule.warningOnly,or=At.errors;Jn?xn.push.apply(xn,(0,c.Z)(or)):Dn.push.apply(Dn,(0,c.Z)(or))}),Dn.length?Promise.reject({name:xt,errors:Dn,warnings:xn}):{name:xt,errors:Dn,warnings:xn}}))}}});var un=dt(It);ue.lastValidatePromise=un,un.catch(function(rt){return rt}).then(function(rt){var xt=rt.map(function(qt){var on=qt.name;return on});ue.notifyObservers(ue.store,xt,{type:"validateFinish"}),ue.triggerOnFieldsChange(xt,rt)});var jt=un.then(function(){return ue.lastValidatePromise===un?Promise.resolve(ue.getFieldsValue(vt)):Promise.reject([])}).catch(function(rt){var xt=rt.filter(function(qt){return qt&&qt.errors.length});return Promise.reject({values:ue.getFieldsValue(vt),errorFields:xt,outOfDate:ue.lastValidatePromise!==un})});jt.catch(function(rt){return rt});var Et=vt.filter(function(rt){return nn.has(rt.join(pt))});return ue.triggerOnFieldsChange(Et),jt}),(0,f.Z)(this,"submit",function(){ue.warningUnhooked(),ue.validateFields().then(function(Oe){var pe=ue.callbacks.onFinish;if(pe)try{pe(Oe)}catch(De){console.error(De)}}).catch(function(Oe){var pe=ue.callbacks.onFinishFailed;pe&&pe(Oe)})}),this.forceRootUpdate=me});function Ee(Me){var me=t.useRef(),ue=t.useState({}),Oe=(0,et.Z)(ue,2),pe=Oe[1];if(!me.current)if(Me)me.current=Me;else{var De=function(){pe({})},_e=new Zt(De);me.current=_e.getForm()}return[me.current]}var Ce=Ee,Te=t.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Ae=function(me){var ue=me.validateMessages,Oe=me.onFormChange,pe=me.onFormFinish,De=me.children,_e=t.useContext(Te),ae=t.useRef({});return t.createElement(Te.Provider,{value:(0,u.Z)((0,u.Z)({},_e),{},{validateMessages:(0,u.Z)((0,u.Z)({},_e.validateMessages),ue),triggerFormChange:function(It,pt){Oe&&Oe(It,{changedFields:pt,forms:ae.current}),_e.triggerFormChange(It,pt)},triggerFormFinish:function(It,pt){pe&&pe(It,{values:pt,forms:ae.current}),_e.triggerFormFinish(It,pt)},registerForm:function(It,pt){It&&(ae.current=(0,u.Z)((0,u.Z)({},ae.current),{},(0,f.Z)({},It,pt))),_e.registerForm(It,pt)},unregisterForm:function(It){var pt=(0,u.Z)({},ae.current);delete pt[It],ae.current=pt,_e.unregisterForm(It)}})},De)},He=Te,Ct=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],wt=function(me,ue){var Oe=me.name,pe=me.initialValues,De=me.fields,_e=me.form,ae=me.preserve,vt=me.children,It=me.component,pt=It===void 0?"form":It,nn=me.validateMessages,it=me.validateTrigger,yn=it===void 0?"onChange":it,en=me.onValuesChange,un=me.onFieldsChange,jt=me.onFinish,Et=me.onFinishFailed,rt=me.clearOnDestroy,xt=(0,o.Z)(me,Ct),qt=t.useRef(null),on=t.useContext(He),sn=Ce(_e),Dn=(0,et.Z)(sn,1),xn=Dn[0],At=xn.getInternalHooks(C),Jn=At.useSubscribe,or=At.setInitialValues,Ar=At.setCallbacks,Mr=At.setValidateMessages,zr=At.setPreserve,qr=At.destroyForm;t.useImperativeHandle(ue,function(){return(0,u.Z)((0,u.Z)({},xn),{},{nativeElement:qt.current})}),t.useEffect(function(){return on.registerForm(Oe,xn),function(){on.unregisterForm(Oe)}},[on,xn,Oe]),Mr((0,u.Z)((0,u.Z)({},on.validateMessages),nn)),Ar({onValuesChange:en,onFieldsChange:function(st){if(on.triggerFormChange(Oe,st),un){for(var lt=arguments.length,Ge=new Array(lt>1?lt-1:0),ct=1;ct1&&arguments[1]!==void 0?arguments[1]:!1;if((0,V.Z)(ot)){var Mt=ot.nodeName.toLowerCase(),Ut=["input","select","textarea","button"].includes(Mt)||ot.isContentEditable||Mt==="a"&&!!ot.getAttribute("href"),Ot=ot.getAttribute("tabindex"),ft=Number(Ot),et=null;return Ot&&!Number.isNaN(ft)?et=ft:Ut&&et===null&&(et=0),Ut&&ot.disabled&&(et=null),et!==null&&(et>=0||Tt&&et<0)}return!1}function z(ot){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Mt=(0,a.Z)(ot.querySelectorAll("*")).filter(function(Ut){return q(Ut,Tt)});return q(ot,Tt)&&Mt.unshift(ot),Mt}var k=null;function L(){k=document.activeElement}function F(){k=null}function N(){if(k)try{k.focus()}catch(ot){}}function ee(ot,Tt){if(Tt.keyCode===9){var Mt=z(ot),Ut=Mt[Tt.shiftKey?0:Mt.length-1],Ot=Ut===document.activeElement||ot===document.activeElement;if(Ot){var ft=Mt[Tt.shiftKey?Mt.length-1:0];ft.focus(),Tt.preventDefault()}}}var ce=e(15105),le=e(75164),se=ce.Z.LEFT,fe=ce.Z.RIGHT,xe=ce.Z.UP,Ie=ce.Z.DOWN,Pe=ce.Z.ENTER,$e=ce.Z.ESC,at=ce.Z.HOME,ut=ce.Z.END,Ue=[xe,Ie,se,fe];function Ye(ot,Tt,Mt,Ut){var Ot,ft,et,dt,ht="prev",Nt="next",Qt="children",Jt="parent";if(ot==="inline"&&Ut===Pe)return{inlineTrigger:!0};var Vt=(Ot={},(0,r.Z)(Ot,xe,ht),(0,r.Z)(Ot,Ie,Nt),Ot),Zt=(ft={},(0,r.Z)(ft,se,Mt?Nt:ht),(0,r.Z)(ft,fe,Mt?ht:Nt),(0,r.Z)(ft,Ie,Qt),(0,r.Z)(ft,Pe,Qt),ft),Ee=(et={},(0,r.Z)(et,xe,ht),(0,r.Z)(et,Ie,Nt),(0,r.Z)(et,Pe,Qt),(0,r.Z)(et,$e,Jt),(0,r.Z)(et,se,Mt?Qt:Jt),(0,r.Z)(et,fe,Mt?Jt:Qt),et),Ce={inline:Vt,horizontal:Zt,vertical:Ee,inlineSub:Vt,horizontalSub:Ee,verticalSub:Ee},Te=(dt=Ce["".concat(ot).concat(Tt?"":"Sub")])===null||dt===void 0?void 0:dt[Ut];switch(Te){case ht:return{offset:-1,sibling:!0};case Nt:return{offset:1,sibling:!0};case Jt:return{offset:-1,sibling:!1};case Qt:return{offset:1,sibling:!1};default:return null}}function Xe(ot){for(var Tt=ot;Tt;){if(Tt.getAttribute("data-menu-list"))return Tt;Tt=Tt.parentElement}return null}function Fe(ot,Tt){for(var Mt=ot||document.activeElement;Mt;){if(Tt.has(Mt))return Mt;Mt=Mt.parentElement}return null}function Je(ot,Tt){var Mt=z(ot,!0);return Mt.filter(function(Ut){return Tt.has(Ut)})}function Le(ot,Tt,Mt){var Ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!ot)return null;var Ot=Je(ot,Tt),ft=Ot.length,et=Ot.findIndex(function(dt){return Mt===dt});return Ut<0?et===-1?et=ft-1:et-=1:Ut>0&&(et+=1),et=(et+ft)%ft,Ot[et]}var qe=function(Tt,Mt){var Ut=new Set,Ot=new Map,ft=new Map;return Tt.forEach(function(et){var dt=document.querySelector("[data-menu-id='".concat(T(Mt,et),"']"));dt&&(Ut.add(dt),ft.set(dt,et),Ot.set(et,dt))}),{elements:Ut,key2element:Ot,element2key:ft}};function ze(ot,Tt,Mt,Ut,Ot,ft,et,dt,ht,Nt){var Qt=f.useRef(),Jt=f.useRef();Jt.current=Tt;var Vt=function(){le.Z.cancel(Qt.current)};return f.useEffect(function(){return function(){Vt()}},[]),function(Zt){var Ee=Zt.which;if([].concat(Ue,[Pe,$e,at,ut]).includes(Ee)){var Ce=ft(),Te=qe(Ce,Ut),Ae=Te,He=Ae.elements,Ct=Ae.key2element,wt=Ae.element2key,tn=Ct.get(Tt),an=Fe(tn,He),zt=wt.get(an),gn=Ye(ot,et(zt,!0).length===1,Mt,Ee);if(!gn&&Ee!==at&&Ee!==ut)return;(Ue.includes(Ee)||[at,ut].includes(Ee))&&Zt.preventDefault();var bn=function(pe){if(pe){var De=pe,_e=pe.querySelector("a");_e!=null&&_e.getAttribute("href")&&(De=_e);var ae=wt.get(pe);dt(ae),Vt(),Qt.current=(0,le.Z)(function(){Jt.current===ae&&De.focus()})}};if([at,ut].includes(Ee)||gn.sibling||!an){var Sn;!an||ot==="inline"?Sn=Ot.current:Sn=Xe(an);var rn,Gn=Je(Sn,He);Ee===at?rn=Gn[0]:Ee===ut?rn=Gn[Gn.length-1]:rn=Le(Sn,He,an,gn.offset),bn(rn)}else if(gn.inlineTrigger)ht(zt);else if(gn.offset>0)ht(zt,!0),Vt(),Qt.current=(0,le.Z)(function(){Te=qe(Ce,Ut);var Oe=an.getAttribute("aria-controls"),pe=document.getElementById(Oe),De=Le(pe,Te.elements);bn(De)},5);else if(gn.offset<0){var Me=et(zt,!0),me=Me[Me.length-2],ue=Ct.get(me);ht(me,!1),bn(ue)}}Nt==null||Nt(Zt)}}function ie(ot){Promise.resolve().then(ot)}var W="__RC_UTIL_PATH_SPLIT__",re=function(Tt){return Tt.join(W)},x=function(Tt){return Tt.split(W)},oe="rc-menu-more";function ve(){var ot=f.useState({}),Tt=(0,s.Z)(ot,2),Mt=Tt[1],Ut=(0,f.useRef)(new Map),Ot=(0,f.useRef)(new Map),ft=f.useState([]),et=(0,s.Z)(ft,2),dt=et[0],ht=et[1],Nt=(0,f.useRef)(0),Qt=(0,f.useRef)(!1),Jt=function(){Qt.current||Mt({})},Vt=(0,f.useCallback)(function(Ct,wt){var tn=re(wt);Ot.current.set(tn,Ct),Ut.current.set(Ct,tn),Nt.current+=1;var an=Nt.current;ie(function(){an===Nt.current&&Jt()})},[]),Zt=(0,f.useCallback)(function(Ct,wt){var tn=re(wt);Ot.current.delete(tn),Ut.current.delete(Ct)},[]),Ee=(0,f.useCallback)(function(Ct){ht(Ct)},[]),Ce=(0,f.useCallback)(function(Ct,wt){var tn=Ut.current.get(Ct)||"",an=x(tn);return wt&&dt.includes(an[0])&&an.unshift(oe),an},[dt]),Te=(0,f.useCallback)(function(Ct,wt){return Ct.filter(function(tn){return tn!==void 0}).some(function(tn){var an=Ce(tn,!0);return an.includes(wt)})},[Ce]),Ae=function(){var wt=(0,a.Z)(Ut.current.keys());return dt.length&&wt.push(oe),wt},He=(0,f.useCallback)(function(Ct){var wt="".concat(Ut.current.get(Ct)).concat(W),tn=new Set;return(0,a.Z)(Ot.current.keys()).forEach(function(an){an.startsWith(wt)&&tn.add(Ot.current.get(an))}),tn},[]);return f.useEffect(function(){return function(){Qt.current=!0}},[]),{registerPath:Vt,unregisterPath:Zt,refreshOverflowKeys:Ee,isSubPathKey:Te,getKeyPath:Ce,getKeys:Ae,getSubPathKeys:He}}function he(ot){var Tt=f.useRef(ot);Tt.current=ot;var Mt=f.useCallback(function(){for(var Ut,Ot=arguments.length,ft=new Array(Ot),et=0;et1&&(He.motionAppear=!1);var Ct=He.onVisibleChanged;return He.onVisibleChanged=function(wt){return!Vt.current&&!wt&&Te(!0),Ct==null?void 0:Ct(wt)},Ce?null:f.createElement($,{mode:ft,locked:!Vt.current},f.createElement(In.ZP,(0,t.Z)({visible:Ae},He,{forceRender:ht,removeOnLeave:!1,leavedClassName:"".concat(dt,"-hidden")}),function(wt){var tn=wt.className,an=wt.style;return f.createElement(mn,{id:Tt,className:tn,style:an},Ot)}))}var yr=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],rr=["active"],Lr=f.forwardRef(function(ot,Tt){var Mt,Ut=ot.style,Ot=ot.className,ft=ot.title,et=ot.eventKey,dt=ot.warnKey,ht=ot.disabled,Nt=ot.internalPopupClose,Qt=ot.children,Jt=ot.itemIcon,Vt=ot.expandIcon,Zt=ot.popupClassName,Ee=ot.popupOffset,Ce=ot.popupStyle,Te=ot.onClick,Ae=ot.onMouseEnter,He=ot.onMouseLeave,Ct=ot.onTitleClick,wt=ot.onTitleMouseEnter,tn=ot.onTitleMouseLeave,an=(0,u.Z)(ot,yr),zt=C(et),gn=f.useContext(A),bn=gn.prefixCls,Sn=gn.mode,rn=gn.openKeys,Gn=gn.disabled,Me=gn.overflowDisabled,me=gn.activeKey,ue=gn.selectedKeys,Oe=gn.itemIcon,pe=gn.expandIcon,De=gn.onItemClick,_e=gn.onOpenChange,ae=gn.onActive,vt=f.useContext(X),It=vt._internalRenderSubMenuItem,pt=f.useContext(G),nn=pt.isSubPathKey,it=H(),yn="".concat(bn,"-submenu"),en=Gn||ht,un=f.useRef(),jt=f.useRef(),Et=Jt!=null?Jt:Oe,rt=Vt!=null?Vt:pe,xt=rn.includes(et),qt=!Me&&xt,on=nn(ue,et),sn=ye(et,en,wt,tn),Dn=sn.active,xn=(0,u.Z)(sn,rr),At=f.useState(!1),Jn=(0,s.Z)(At,2),or=Jn[0],Ar=Jn[1],Mr=function(Ft){en||Ar(Ft)},zr=function(Ft){Mr(!0),Ae==null||Ae({key:et,domEvent:Ft})},qr=function(Ft){Mr(!1),He==null||He({key:et,domEvent:Ft})},Kr=f.useMemo(function(){return Dn||(Sn!=="inline"?or||nn([me],et):!1)},[Sn,Dn,me,or,et,nn]),Jr=Ne(it.length),da=function(Ft){en||(Ct==null||Ct({key:et,domEvent:Ft}),Sn==="inline"&&_e(et,!xt))},ma=he(function(ct){Te==null||Te(je(ct)),De(ct)}),va=function(Ft){Sn!=="inline"&&_e(et,Ft)},Xr=function(){ae(et)},ga=zt&&"".concat(zt,"-popup"),Qr=f.createElement("div",(0,t.Z)({role:"menuitem",style:Jr,className:"".concat(yn,"-title"),tabIndex:en?null:-1,ref:un,title:typeof ft=="string"?ft:null,"data-menu-id":Me&&zt?null:zt,"aria-expanded":qt,"aria-haspopup":!0,"aria-controls":ga,"aria-disabled":en,onClick:da,onFocus:Xr},xn),ft,f.createElement(ke,{icon:Sn!=="horizontal"?rt:void 0,props:(0,o.Z)((0,o.Z)({},ot),{},{isOpen:qt,isSubMenu:!0})},f.createElement("i",{className:"".concat(yn,"-arrow")}))),st=f.useRef(Sn);if(Sn!=="inline"&&it.length>1?st.current="vertical":st.current=Sn,!Me){var lt=st.current;Qr=f.createElement($n,{mode:lt,prefixCls:yn,visible:!Nt&&qt&&Sn!=="inline",popupClassName:Zt,popupOffset:Ee,popupStyle:Ce,popup:f.createElement($,{mode:lt==="horizontal"?"vertical":lt},f.createElement(mn,{id:ga,ref:jt},Qt)),disabled:en,onVisibleChange:va},Qr)}var Ge=f.createElement(d.Z.Item,(0,t.Z)({ref:Tt,role:"none"},an,{component:"li",style:Ut,className:l()(yn,"".concat(yn,"-").concat(Sn),Ot,(Mt={},(0,r.Z)(Mt,"".concat(yn,"-open"),qt),(0,r.Z)(Mt,"".concat(yn,"-active"),Kr),(0,r.Z)(Mt,"".concat(yn,"-selected"),on),(0,r.Z)(Mt,"".concat(yn,"-disabled"),en),Mt)),onMouseEnter:zr,onMouseLeave:qr}),Qr,!Me&&f.createElement(lr,{id:ga,open:qt,keyPath:it},Qt));return It&&(Ge=It(Ge,ot,{selected:on,active:Kr,open:qt,disabled:en})),f.createElement($,{onItemClick:ma,mode:Sn==="horizontal"?"vertical":Sn,itemIcon:Et,expandIcon:rt},Ge)}),$r=f.forwardRef(function(ot,Tt){var Mt=ot.eventKey,Ut=ot.children,Ot=H(Mt),ft=Xt(Ut,Ot),et=U();f.useEffect(function(){if(et)return et.registerPath(Mt,Ot),function(){et.unregisterPath(Mt,Ot)}},[Ot]);var dt;return et?dt=ft:dt=f.createElement(Lr,(0,t.Z)({ref:Tt},ot),ft),f.createElement(Y.Provider,{value:Ot},dt)}),br=$r,Or=e(71002);function Qn(ot){var Tt=ot.className,Mt=ot.style,Ut=f.useContext(A),Ot=Ut.prefixCls,ft=U();return ft?null:f.createElement("li",{role:"separator",className:l()("".concat(Ot,"-item-divider"),Tt),style:Mt})}var ir=["className","title","eventKey","children"],Pr=f.forwardRef(function(ot,Tt){var Mt=ot.className,Ut=ot.title,Ot=ot.eventKey,ft=ot.children,et=(0,u.Z)(ot,ir),dt=f.useContext(A),ht=dt.prefixCls,Nt="".concat(ht,"-item-group");return f.createElement("li",(0,t.Z)({ref:Tt,role:"presentation"},et,{onClick:function(Jt){return Jt.stopPropagation()},className:l()(Nt,Mt)}),f.createElement("div",{role:"presentation",className:"".concat(Nt,"-title"),title:typeof Ut=="string"?Ut:void 0},Ut),f.createElement("ul",{role:"group",className:"".concat(Nt,"-list")},ft))}),_r=f.forwardRef(function(ot,Tt){var Mt=ot.eventKey,Ut=ot.children,Ot=H(Mt),ft=Xt(Ut,Ot),et=U();return et?ft:f.createElement(Pr,(0,t.Z)({ref:Tt},(0,be.Z)(ot,["warnKey"])),ft)}),xr=_r,nr=["label","children","key","type"];function Hr(ot,Tt){var Mt=Tt.item,Ut=Tt.group,Ot=Tt.submenu,ft=Tt.divider;return(ot||[]).map(function(et,dt){if(et&&(0,Or.Z)(et)==="object"){var ht=et,Nt=ht.label,Qt=ht.children,Jt=ht.key,Vt=ht.type,Zt=(0,u.Z)(ht,nr),Ee=Jt!=null?Jt:"tmp-".concat(dt);return Qt||Vt==="group"?Vt==="group"?f.createElement(Ut,(0,t.Z)({key:Ee},Zt,{title:Nt}),Hr(Qt,Tt)):f.createElement(Ot,(0,t.Z)({key:Ee},Zt,{title:Nt}),Hr(Qt,Tt)):Vt==="divider"?f.createElement(ft,(0,t.Z)({key:Ee},Zt)):f.createElement(Mt,(0,t.Z)({key:Ee},Zt),Nt)}return null}).filter(function(et){return et})}function ar(ot,Tt,Mt,Ut){var Ot=ot,ft=(0,o.Z)({divider:Qn,item:Rt,group:xr,submenu:br},Ut);return Tt&&(Ot=Hr(Tt,ft)),Xt(Ot,Mt)}var na=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],wr=[],Gr=f.forwardRef(function(ot,Tt){var Mt,Ut,Ot=ot,ft=Ot.prefixCls,et=ft===void 0?"rc-menu":ft,dt=Ot.rootClassName,ht=Ot.style,Nt=Ot.className,Qt=Ot.tabIndex,Jt=Qt===void 0?0:Qt,Vt=Ot.items,Zt=Ot.children,Ee=Ot.direction,Ce=Ot.id,Te=Ot.mode,Ae=Te===void 0?"vertical":Te,He=Ot.inlineCollapsed,Ct=Ot.disabled,wt=Ot.disabledOverflow,tn=Ot.subMenuOpenDelay,an=tn===void 0?.1:tn,zt=Ot.subMenuCloseDelay,gn=zt===void 0?.1:zt,bn=Ot.forceSubMenuRender,Sn=Ot.defaultOpenKeys,rn=Ot.openKeys,Gn=Ot.activeKey,Me=Ot.defaultActiveFirst,me=Ot.selectable,ue=me===void 0?!0:me,Oe=Ot.multiple,pe=Oe===void 0?!1:Oe,De=Ot.defaultSelectedKeys,_e=Ot.selectedKeys,ae=Ot.onSelect,vt=Ot.onDeselect,It=Ot.inlineIndent,pt=It===void 0?24:It,nn=Ot.motion,it=Ot.defaultMotions,yn=Ot.triggerSubMenuAction,en=yn===void 0?"hover":yn,un=Ot.builtinPlacements,jt=Ot.itemIcon,Et=Ot.expandIcon,rt=Ot.overflowedIndicator,xt=rt===void 0?"...":rt,qt=Ot.overflowedIndicatorPopupClassName,on=Ot.getPopupContainer,sn=Ot.onClick,Dn=Ot.onOpenChange,xn=Ot.onKeyDown,At=Ot.openAnimation,Jn=Ot.openTransitionName,or=Ot._internalRenderMenuItem,Ar=Ot._internalRenderSubMenuItem,Mr=Ot._internalComponents,zr=(0,u.Z)(Ot,na),qr=f.useMemo(function(){return[ar(Zt,Vt,wr,Mr),ar(Zt,Vt,wr,{})]},[Zt,Vt,Mr]),Kr=(0,s.Z)(qr,2),Jr=Kr[0],da=Kr[1],ma=f.useState(!1),va=(0,s.Z)(ma,2),Xr=va[0],ga=va[1],Qr=f.useRef(),st=j(Ce),lt=Ee==="rtl",Ge=(0,m.Z)(Sn,{value:rn,postState:function(Zn){return Zn||wr}}),ct=(0,s.Z)(Ge,2),Ft=ct[0],fn=ct[1],En=function(Zn){var vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function oa(){fn(Zn),Dn==null||Dn(Zn)}vr?(0,E.flushSync)(oa):oa()},dn=f.useState(Ft),hn=(0,s.Z)(dn,2),er=hn[0],cn=hn[1],ln=f.useRef(!1),Kn=f.useMemo(function(){return(Ae==="inline"||Ae==="vertical")&&He?["vertical",He]:[Ae,!1]},[Ae,He]),Ur=(0,s.Z)(Kn,2),Bn=Ur[0],ea=Ur[1],ca=Bn==="inline",fa=f.useState(Bn),Oa=(0,s.Z)(fa,2),Ia=Oa[0],io=Oa[1],wa=f.useState(ea),jo=(0,s.Z)(wa,2),So=jo[0],La=jo[1];f.useEffect(function(){io(Bn),La(ea),ln.current&&(ca?fn(er):En(wr))},[Bn,ea]);var Bo=f.useState(0),za=(0,s.Z)(Bo,2),ya=za[0],de=za[1],Re=ya>=Jr.length-1||Ia!=="horizontal"||wt;f.useEffect(function(){ca&&cn(Ft)},[Ft]),f.useEffect(function(){return ln.current=!0,function(){ln.current=!1}},[]);var yt=ve(),Gt=yt.registerPath,wn=yt.unregisterPath,Cr=yt.refreshOverflowKeys,aa=yt.isSubPathKey,Yr=yt.getKeyPath,we=yt.getKeys,Ke=yt.getSubPathKeys,Ze=f.useMemo(function(){return{registerPath:Gt,unregisterPath:wn}},[Gt,wn]),Qe=f.useMemo(function(){return{isSubPathKey:aa}},[aa]);f.useEffect(function(){Cr(Re?wr:Jr.slice(ya+1).map(function(dr){return dr.key}))},[ya,Re]);var nt=(0,m.Z)(Gn||Me&&((Mt=Jr[0])===null||Mt===void 0?void 0:Mt.key),{value:Gn}),Kt=(0,s.Z)(nt,2),pn=Kt[0],On=Kt[1],Pn=he(function(dr){On(dr)}),tr=he(function(){On(void 0)});(0,f.useImperativeHandle)(Tt,function(){return{list:Qr.current,focus:function(Zn){var vr,oa=we(),la=qe(oa,st),po=la.elements,so=la.key2element,ba=la.element2key,ha=Je(Qr.current,po),Ua=pn!=null?pn:ha[0]?ba.get(ha[0]):(vr=Jr.find(function(lo){return!lo.props.disabled}))===null||vr===void 0?void 0:vr.key,Ta=so.get(Ua);if(Ua&&Ta){var qa;Ta==null||(qa=Ta.focus)===null||qa===void 0||qa.call(Ta,Zn)}}}});var Hn=(0,m.Z)(De||[],{value:_e,postState:function(Zn){return Array.isArray(Zn)?Zn:Zn==null?wr:[Zn]}}),ur=(0,s.Z)(Hn,2),Xn=ur[0],Tr=ur[1],Zr=function(Zn){if(ue){var vr=Zn.key,oa=Xn.includes(vr),la;pe?oa?la=Xn.filter(function(so){return so!==vr}):la=[].concat((0,a.Z)(Xn),[vr]):la=[vr],Tr(la);var po=(0,o.Z)((0,o.Z)({},Zn),{},{selectedKeys:la});oa?vt==null||vt(po):ae==null||ae(po)}!pe&&Ft.length&&Ia!=="inline"&&En(wr)},mr=he(function(dr){sn==null||sn(je(dr)),Zr(dr)}),Nr=he(function(dr,Zn){var vr=Ft.filter(function(la){return la!==dr});if(Zn)vr.push(dr);else if(Ia!=="inline"){var oa=Ke(dr);vr=vr.filter(function(la){return!oa.has(la)})}(0,b.Z)(Ft,vr,!0)||En(vr,!0)}),Be=function(Zn,vr){var oa=vr!=null?vr:!Ft.includes(Zn);Nr(Zn,oa)},hr=ze(Ia,pn,lt,st,Qr,we,Yr,On,Be,xn);f.useEffect(function(){ga(!0)},[]);var Ir=f.useMemo(function(){return{_internalRenderMenuItem:or,_internalRenderSubMenuItem:Ar}},[or,Ar]),Dr=Ia!=="horizontal"||wt?Jr:Jr.map(function(dr,Zn){return f.createElement($,{key:dr.key,overflowDisabled:Zn>ya},dr)}),kr=f.createElement(d.Z,(0,t.Z)({id:Ce,ref:Qr,prefixCls:"".concat(et,"-overflow"),component:"ul",itemComponent:Rt,className:l()(et,"".concat(et,"-root"),"".concat(et,"-").concat(Ia),Nt,(Ut={},(0,r.Z)(Ut,"".concat(et,"-inline-collapsed"),So),(0,r.Z)(Ut,"".concat(et,"-rtl"),lt),Ut),dt),dir:Ee,style:ht,role:"menu",tabIndex:Jt,data:Dr,renderRawItem:function(Zn){return Zn},renderRawRest:function(Zn){var vr=Zn.length,oa=vr?Jr.slice(-vr):null;return f.createElement(br,{eventKey:oe,title:xt,disabled:Re,internalPopupClose:vr===0,popupClassName:qt},oa)},maxCount:Ia!=="horizontal"||wt?d.Z.INVALIDATE:d.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Zn){de(Zn)},onKeyDown:hr},zr));return f.createElement(X.Provider,{value:Ir},f.createElement(R.Provider,{value:st},f.createElement($,{prefixCls:et,rootClassName:dt,mode:Ia,openKeys:Ft,rtl:lt,disabled:Ct,motion:Xr?nn:null,defaultMotions:Xr?it:null,activeKey:pn,onActive:Pn,onInactive:tr,selectedKeys:Xn,inlineIndent:pt,subMenuOpenDelay:an,subMenuCloseDelay:gn,forceSubMenuRender:bn,builtinPlacements:un,triggerSubMenuAction:en,getPopupContainer:on,itemIcon:jt,expandIcon:Et,onItemClick:mr,onOpenChange:Nr},f.createElement(G.Provider,{value:Qe},kr),f.createElement("div",{style:{display:"none"},"aria-hidden":!0},f.createElement(Q.Provider,{value:Ze},da)))))}),Rr=Gr,Yn=Rr;Yn.Item=Rt,Yn.SubMenu=br,Yn.ItemGroup=xr,Yn.Divider=Qn;var Wn=Yn},29372:function(v,p,e){"use strict";e.d(p,{V4:function(){return ke},zt:function(){return f},ZP:function(){return We}});var t=e(4942),r=e(1413),o=e(97685),a=e(71002),s=e(93967),u=e.n(s),c=e(34203),l=e(42550),d=e(67294),m=e(91),b=["children"],y=d.createContext({});function f(je){var Ve=je.children,mt=(0,m.Z)(je,b);return d.createElement(y.Provider,{value:mt},Ve)}var E=e(15671),R=e(43144),T=e(60136),C=e(29388),M=function(je){(0,T.Z)(mt,je);var Ve=(0,C.Z)(mt);function mt(){return(0,E.Z)(this,mt),Ve.apply(this,arguments)}return(0,R.Z)(mt,[{key:"render",value:function(){return this.props.children}}]),mt}(d.Component),P=M,A=e(56790),O=e(30470),$=e(66680);function Z(je){var Ve=d.useReducer(function(Rt){return Rt+1},0),mt=(0,o.Z)(Ve,2),Pt=mt[1],bt=d.useRef(je),_t=(0,$.Z)(function(){return bt.current}),Dt=(0,$.Z)(function(Rt){bt.current=typeof Rt=="function"?Rt(bt.current):Rt,Pt()});return[_t,Dt]}var Q="none",U="appear",Y="enter",H="leave",G="none",J="prepare",X="start",V="active",q="end",z="prepared",k=e(98924);function L(je,Ve){var mt={};return mt[je.toLowerCase()]=Ve.toLowerCase(),mt["Webkit".concat(je)]="webkit".concat(Ve),mt["Moz".concat(je)]="moz".concat(Ve),mt["ms".concat(je)]="MS".concat(Ve),mt["O".concat(je)]="o".concat(Ve.toLowerCase()),mt}function F(je,Ve){var mt={animationend:L("Animation","AnimationEnd"),transitionend:L("Transition","TransitionEnd")};return je&&("AnimationEvent"in Ve||delete mt.animationend.animation,"TransitionEvent"in Ve||delete mt.transitionend.transition),mt}var N=F((0,k.Z)(),typeof window!="undefined"?window:{}),ee={};if((0,k.Z)()){var ce=document.createElement("div");ee=ce.style}var le={};function se(je){if(le[je])return le[je];var Ve=N[je];if(Ve)for(var mt=Object.keys(Ve),Pt=mt.length,bt=0;bt1&&arguments[1]!==void 0?arguments[1]:2;Ve();var _t=(0,Xe.Z)(function(){bt<=1?Pt({isCanceled:function(){return _t!==je.current}}):mt(Pt,bt-1)});je.current=_t}return d.useEffect(function(){return function(){Ve()}},[]),[mt,Ve]},Je=[J,X,V,q],Le=[J,z],qe=!1,ze=!0;function ie(je){return je===V||je===q}var W=function(je,Ve,mt){var Pt=(0,O.Z)(G),bt=(0,o.Z)(Pt,2),_t=bt[0],Dt=bt[1],Rt=Fe(),Ht=(0,o.Z)(Rt,2),$t=Ht[0],vn=Ht[1];function mn(){Dt(J,!0)}var zn=Ve?Le:Je;return Ye(function(){if(_t!==G&&_t!==q){var Xt=zn.indexOf(_t),Vn=zn[Xt+1],Un=mt(_t);Un===qe?Dt(Vn,!0):Vn&&$t(function(_n){function Ln(){_n.isCanceled()||Dt(Vn,!0)}Un===!0?Ln():Promise.resolve(Un).then(Ln)})}},[je,_t]),d.useEffect(function(){return function(){vn()}},[]),[mn,_t]};function re(je,Ve,mt,Pt){var bt=Pt.motionEnter,_t=bt===void 0?!0:bt,Dt=Pt.motionAppear,Rt=Dt===void 0?!0:Dt,Ht=Pt.motionLeave,$t=Ht===void 0?!0:Ht,vn=Pt.motionDeadline,mn=Pt.motionLeaveImmediately,zn=Pt.onAppearPrepare,Xt=Pt.onEnterPrepare,Vn=Pt.onLeavePrepare,Un=Pt.onAppearStart,_n=Pt.onEnterStart,Ln=Pt.onLeaveStart,kn=Pt.onAppearActive,Rn=Pt.onEnterActive,Mn=Pt.onLeaveActive,$n=Pt.onAppearEnd,In=Pt.onEnterEnd,lr=Pt.onLeaveEnd,yr=Pt.onVisibleChanged,rr=(0,O.Z)(),Lr=(0,o.Z)(rr,2),$r=Lr[0],br=Lr[1],Or=Z(Q),Qn=(0,o.Z)(Or,2),ir=Qn[0],Pr=Qn[1],_r=(0,O.Z)(null),xr=(0,o.Z)(_r,2),nr=xr[0],Hr=xr[1],ar=ir(),na=(0,d.useRef)(!1),wr=(0,d.useRef)(null);function Gr(){return mt()}var Rr=(0,d.useRef)(!1);function Yn(){Pr(Q),Hr(null,!0)}var Wn=(0,A.zX)(function(Vt){var Zt=ir();if(Zt!==Q){var Ee=Gr();if(!(Vt&&!Vt.deadline&&Vt.target!==Ee)){var Ce=Rr.current,Te;Zt===U&&Ce?Te=$n==null?void 0:$n(Ee,Vt):Zt===Y&&Ce?Te=In==null?void 0:In(Ee,Vt):Zt===H&&Ce&&(Te=lr==null?void 0:lr(Ee,Vt)),Ce&&Te!==!1&&Yn()}}}),ot=ut(Wn),Tt=(0,o.Z)(ot,1),Mt=Tt[0],Ut=function(Zt){switch(Zt){case U:return(0,t.Z)((0,t.Z)((0,t.Z)({},J,zn),X,Un),V,kn);case Y:return(0,t.Z)((0,t.Z)((0,t.Z)({},J,Xt),X,_n),V,Rn);case H:return(0,t.Z)((0,t.Z)((0,t.Z)({},J,Vn),X,Ln),V,Mn);default:return{}}},Ot=d.useMemo(function(){return Ut(ar)},[ar]),ft=W(ar,!je,function(Vt){if(Vt===J){var Zt=Ot[J];return Zt?Zt(Gr()):qe}if(ht in Ot){var Ee;Hr(((Ee=Ot[ht])===null||Ee===void 0?void 0:Ee.call(Ot,Gr(),null))||null)}return ht===V&&ar!==Q&&(Mt(Gr()),vn>0&&(clearTimeout(wr.current),wr.current=setTimeout(function(){Wn({deadline:!0})},vn))),ht===z&&Yn(),ze}),et=(0,o.Z)(ft,2),dt=et[0],ht=et[1],Nt=ie(ht);Rr.current=Nt,Ye(function(){br(Ve);var Vt=na.current;na.current=!0;var Zt;!Vt&&Ve&&Rt&&(Zt=U),Vt&&Ve&&_t&&(Zt=Y),(Vt&&!Ve&&$t||!Vt&&mn&&!Ve&&$t)&&(Zt=H);var Ee=Ut(Zt);Zt&&(je||Ee[J])?(Pr(Zt),dt()):Pr(Q)},[Ve]),(0,d.useEffect)(function(){(ar===U&&!Rt||ar===Y&&!_t||ar===H&&!$t)&&Pr(Q)},[Rt,_t,$t]),(0,d.useEffect)(function(){return function(){na.current=!1,clearTimeout(wr.current)}},[]);var Qt=d.useRef(!1);(0,d.useEffect)(function(){$r&&(Qt.current=!0),$r!==void 0&&ar===Q&&((Qt.current||$r)&&(yr==null||yr($r)),Qt.current=!0)},[$r,ar]);var Jt=nr;return Ot[J]&&ht===X&&(Jt=(0,r.Z)({transition:"none"},Jt)),[ar,ht,Jt,$r!=null?$r:Ve]}function x(je){var Ve=je;(0,a.Z)(je)==="object"&&(Ve=je.transitionSupport);function mt(bt,_t){return!!(bt.motionName&&Ve&&_t!==!1)}var Pt=d.forwardRef(function(bt,_t){var Dt=bt.visible,Rt=Dt===void 0?!0:Dt,Ht=bt.removeOnLeave,$t=Ht===void 0?!0:Ht,vn=bt.forceRender,mn=bt.children,zn=bt.motionName,Xt=bt.leavedClassName,Vn=bt.eventProps,Un=d.useContext(y),_n=Un.motion,Ln=mt(bt,_n),kn=(0,d.useRef)(),Rn=(0,d.useRef)();function Mn(){try{return kn.current instanceof HTMLElement?kn.current:(0,c.ZP)(Rn.current)}catch(nr){return null}}var $n=re(Ln,Rt,Mn,bt),In=(0,o.Z)($n,4),lr=In[0],yr=In[1],rr=In[2],Lr=In[3],$r=d.useRef(Lr);Lr&&($r.current=!0);var br=d.useCallback(function(nr){kn.current=nr,(0,l.mH)(_t,nr)},[_t]),Or,Qn=(0,r.Z)((0,r.Z)({},Vn),{},{visible:Rt});if(!mn)Or=null;else if(lr===Q)Lr?Or=mn((0,r.Z)({},Qn),br):!$t&&$r.current&&Xt?Or=mn((0,r.Z)((0,r.Z)({},Qn),{},{className:Xt}),br):vn||!$t&&!Xt?Or=mn((0,r.Z)((0,r.Z)({},Qn),{},{style:{display:"none"}}),br):Or=null;else{var ir;yr===J?ir="prepare":ie(yr)?ir="active":yr===X&&(ir="start");var Pr=at(zn,"".concat(lr,"-").concat(ir));Or=mn((0,r.Z)((0,r.Z)({},Qn),{},{className:u()(at(zn,lr),(0,t.Z)((0,t.Z)({},Pr,Pr&&ir),zn,typeof zn=="string")),style:rr}),br)}if(d.isValidElement(Or)&&(0,l.Yr)(Or)){var _r=Or,xr=_r.ref;xr||(Or=d.cloneElement(Or,{ref:br}))}return d.createElement(P,{ref:Rn},Or)});return Pt.displayName="CSSMotion",Pt}var oe=x(Ie),ve=e(87462),he=e(97326),w="add",S="keep",j="remove",B="removed";function _(je){var Ve;return je&&(0,a.Z)(je)==="object"&&"key"in je?Ve=je:Ve={key:je},(0,r.Z)((0,r.Z)({},Ve),{},{key:String(Ve.key)})}function D(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return je.map(_)}function te(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],mt=[],Pt=0,bt=Ve.length,_t=D(je),Dt=D(Ve);_t.forEach(function($t){for(var vn=!1,mn=Pt;mn1});return Ht.forEach(function($t){mt=mt.filter(function(vn){var mn=vn.key,zn=vn.status;return mn!==$t||zn!==j}),mt.forEach(function(vn){vn.key===$t&&(vn.status=S)})}),mt}var be=["component","children","onVisibleChanged","onAllRemoved"],ge=["status"],ye=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ne(je){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oe,mt=function(Pt){(0,T.Z)(_t,Pt);var bt=(0,C.Z)(_t);function _t(){var Dt;(0,E.Z)(this,_t);for(var Rt=arguments.length,Ht=new Array(Rt),$t=0;$t0&&fe,D=function(){Fe(Pe)},te=function(We){(We.key==="Enter"||We.code==="Enter"||We.keyCode===f.Z.ENTER)&&D()};a.useEffect(function(){if(!B&&se>0){var ke=Date.now()-S,We=setTimeout(function(){D()},se*1e3-S);return function(){Ie&&clearTimeout(We),j(Date.now()-ke)}}},[se,B,Je]),a.useEffect(function(){if(!B&&_&&(Ie||S===0)){var ke=performance.now(),We,je=function Ve(){cancelAnimationFrame(We),We=requestAnimationFrame(function(mt){var Pt=mt+S-ke,bt=Math.min(Pt/(se*1e3),1);ve(bt*100),bt<1&&Ve()})};return je(),function(){Ie&&cancelAnimationFrame(We)}}},[se,S,B,_,Je]);var be=a.useMemo(function(){return(0,y.Z)(at)==="object"&&at!==null?at:at?{closeIcon:Ue}:{}},[at,Ue]),ge=(0,E.Z)(be,!0),ye=100-(!oe||oe<0?0:oe>100?100:oe),Ne="".concat(N,"-notice");return a.createElement("div",(0,c.Z)({},Ye,{ref:F,className:m()(Ne,ce,(0,l.Z)({},"".concat(Ne,"-closable"),at)),style:ee,onMouseEnter:function(We){var je;W(!0),Ye==null||(je=Ye.onMouseEnter)===null||je===void 0||je.call(Ye,We)},onMouseLeave:function(We){var je;W(!1),Ye==null||(je=Ye.onMouseLeave)===null||je===void 0||je.call(Ye,We)},onClick:Xe}),a.createElement("div",{className:"".concat(Ne,"-content")},$e),at&&a.createElement("a",(0,c.Z)({tabIndex:0,className:"".concat(Ne,"-close"),onKeyDown:te,"aria-label":"Close"},ge,{onClick:function(We){We.preventDefault(),We.stopPropagation(),D()}}),be.closeIcon),_&&a.createElement("progress",{className:"".concat(Ne,"-progress"),max:"100",value:ye},ye+"%"))}),T=R,C=a.createContext({}),M=function(F){var N=F.children,ee=F.classNames;return a.createElement(C.Provider,{value:{classNames:ee}},N)},P=M,A=8,O=3,$=16,Z=function(F){var N={offset:A,threshold:O,gap:$};if(F&&(0,y.Z)(F)==="object"){var ee,ce,le;N.offset=(ee=F.offset)!==null&&ee!==void 0?ee:A,N.threshold=(ce=F.threshold)!==null&&ce!==void 0?ce:O,N.gap=(le=F.gap)!==null&&le!==void 0?le:$}return[!!F,N]},Q=Z,U=["className","style","classNames","styles"],Y=function(F){var N=F.configList,ee=F.placement,ce=F.prefixCls,le=F.className,se=F.style,fe=F.motion,xe=F.onAllNoticeRemoved,Ie=F.onNoticeClose,Pe=F.stack,$e=(0,a.useContext)(C),at=$e.classNames,ut=(0,a.useRef)({}),Ue=(0,a.useState)(null),Ye=(0,r.Z)(Ue,2),Xe=Ye[0],Fe=Ye[1],Je=(0,a.useState)([]),Le=(0,r.Z)(Je,2),qe=Le[0],ze=Le[1],ie=N.map(function(B){return{config:B,key:String(B.key)}}),W=Q(Pe),re=(0,r.Z)(W,2),x=re[0],oe=re[1],ve=oe.offset,he=oe.threshold,w=oe.gap,S=x&&(qe.length>0||ie.length<=he),j=typeof fe=="function"?fe(ee):fe;return(0,a.useEffect)(function(){x&&qe.length>1&&ze(function(B){return B.filter(function(_){return ie.some(function(D){var te=D.key;return _===te})})})},[qe,ie,x]),(0,a.useEffect)(function(){var B;if(x&&ut.current[(B=ie[ie.length-1])===null||B===void 0?void 0:B.key]){var _;Fe(ut.current[(_=ie[ie.length-1])===null||_===void 0?void 0:_.key])}},[ie,x]),a.createElement(b.V4,(0,c.Z)({key:ee,className:m()(ce,"".concat(ce,"-").concat(ee),at==null?void 0:at.list,le,(0,l.Z)((0,l.Z)({},"".concat(ce,"-stack"),!!x),"".concat(ce,"-stack-expanded"),S)),style:se,keys:ie,motionAppear:!0},j,{onAllRemoved:function(){xe(ee)}}),function(B,_){var D=B.config,te=B.className,be=B.style,ge=B.index,ye=D,Ne=ye.key,ke=ye.times,We=String(Ne),je=D,Ve=je.className,mt=je.style,Pt=je.classNames,bt=je.styles,_t=(0,o.Z)(je,U),Dt=ie.findIndex(function(kn){return kn.key===We}),Rt={};if(x){var Ht=ie.length-1-(Dt>-1?Dt:ge-1),$t=ee==="top"||ee==="bottom"?"-50%":"0";if(Ht>0){var vn,mn,zn;Rt.height=S?(vn=ut.current[We])===null||vn===void 0?void 0:vn.offsetHeight:Xe==null?void 0:Xe.offsetHeight;for(var Xt=0,Vn=0;Vn-1?ut.current[We]=Rn:delete ut.current[We]},prefixCls:ce,classNames:Pt,styles:bt,className:m()(Ve,at==null?void 0:at.notice),style:mt,times:ke,key:Ne,eventKey:Ne,onNoticeClose:Ie,hovering:x&&qe.length>0})))})},H=Y,G=a.forwardRef(function(L,F){var N=L.prefixCls,ee=N===void 0?"rc-notification":N,ce=L.container,le=L.motion,se=L.maxCount,fe=L.className,xe=L.style,Ie=L.onAllRemoved,Pe=L.stack,$e=L.renderNotifications,at=a.useState([]),ut=(0,r.Z)(at,2),Ue=ut[0],Ye=ut[1],Xe=function(x){var oe,ve=Ue.find(function(he){return he.key===x});ve==null||(oe=ve.onClose)===null||oe===void 0||oe.call(ve),Ye(function(he){return he.filter(function(w){return w.key!==x})})};a.useImperativeHandle(F,function(){return{open:function(x){Ye(function(oe){var ve=(0,t.Z)(oe),he=ve.findIndex(function(j){return j.key===x.key}),w=(0,s.Z)({},x);if(he>=0){var S;w.times=(((S=oe[he])===null||S===void 0?void 0:S.times)||0)+1,ve[he]=w}else w.times=0,ve.push(w);return se>0&&ve.length>se&&(ve=ve.slice(-se)),ve})},close:function(x){Xe(x)},destroy:function(){Ye([])}}});var Fe=a.useState({}),Je=(0,r.Z)(Fe,2),Le=Je[0],qe=Je[1];a.useEffect(function(){var re={};Ue.forEach(function(x){var oe=x.placement,ve=oe===void 0?"topRight":oe;ve&&(re[ve]=re[ve]||[],re[ve].push(x))}),Object.keys(Le).forEach(function(x){re[x]=re[x]||[]}),qe(re)},[Ue]);var ze=function(x){qe(function(oe){var ve=(0,s.Z)({},oe),he=ve[x]||[];return he.length||delete ve[x],ve})},ie=a.useRef(!1);if(a.useEffect(function(){Object.keys(Le).length>0?ie.current=!0:ie.current&&(Ie==null||Ie(),ie.current=!1)},[Le]),!ce)return null;var W=Object.keys(Le);return(0,u.createPortal)(a.createElement(a.Fragment,null,W.map(function(re){var x=Le[re],oe=a.createElement(H,{key:re,configList:x,placement:re,prefixCls:ee,className:fe==null?void 0:fe(re),style:xe==null?void 0:xe(re),motion:le,onNoticeClose:Xe,onAllNoticeRemoved:ze,stack:Pe});return $e?$e(oe,{prefixCls:ee,key:re}):oe})),ce)}),J=G,X=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],V=function(){return document.body},q=0;function z(){for(var L={},F=arguments.length,N=new Array(F),ee=0;ee0&&arguments[0]!==void 0?arguments[0]:{},F=L.getContainer,N=F===void 0?V:F,ee=L.motion,ce=L.prefixCls,le=L.maxCount,se=L.className,fe=L.style,xe=L.onAllRemoved,Ie=L.stack,Pe=L.renderNotifications,$e=(0,o.Z)(L,X),at=a.useState(),ut=(0,r.Z)(at,2),Ue=ut[0],Ye=ut[1],Xe=a.useRef(),Fe=a.createElement(J,{container:Ue,ref:Xe,prefixCls:ce,motion:ee,maxCount:le,className:se,style:fe,onAllRemoved:xe,stack:Ie,renderNotifications:Pe}),Je=a.useState([]),Le=(0,r.Z)(Je,2),qe=Le[0],ze=Le[1],ie=a.useMemo(function(){return{open:function(re){var x=z($e,re);(x.key===null||x.key===void 0)&&(x.key="rc-notification-".concat(q),q+=1),ze(function(oe){return[].concat((0,t.Z)(oe),[{type:"open",config:x}])})},close:function(re){ze(function(x){return[].concat((0,t.Z)(x),[{type:"close",key:re}])})},destroy:function(){ze(function(re){return[].concat((0,t.Z)(re),[{type:"destroy"}])})}}},[]);return a.useEffect(function(){Ye(N())}),a.useEffect(function(){Xe.current&&qe.length&&(qe.forEach(function(W){switch(W.type){case"open":Xe.current.open(W.config);break;case"close":Xe.current.close(W.key);break;case"destroy":Xe.current.destroy();break}}),ze(function(W){return W.filter(function(re){return!qe.includes(re)})}))},[qe]),[ie,Fe]}},39983:function(v,p,e){"use strict";e.d(p,{Z:function(){return L}});var t=e(87462),r=e(1413),o=e(97685),a=e(91),s=e(67294),u=e(93967),c=e.n(u),l=e(9220),d=e(8410),m=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],b=void 0;function y(F,N){var ee=F.prefixCls,ce=F.invalidate,le=F.item,se=F.renderItem,fe=F.responsive,xe=F.responsiveDisabled,Ie=F.registerSize,Pe=F.itemKey,$e=F.className,at=F.style,ut=F.children,Ue=F.display,Ye=F.order,Xe=F.component,Fe=Xe===void 0?"div":Xe,Je=(0,a.Z)(F,m),Le=fe&&!Ue;function qe(x){Ie(Pe,x)}s.useEffect(function(){return function(){qe(null)}},[]);var ze=se&&le!==b?se(le):ut,ie;ce||(ie={opacity:Le?0:1,height:Le?0:b,overflowY:Le?"hidden":b,order:fe?Ye:b,pointerEvents:Le?"none":b,position:Le?"absolute":b});var W={};Le&&(W["aria-hidden"]=!0);var re=s.createElement(Fe,(0,t.Z)({className:c()(!ce&&ee,$e),style:(0,r.Z)((0,r.Z)({},ie),at)},W,Je,{ref:N}),ze);return fe&&(re=s.createElement(l.Z,{onResize:function(oe){var ve=oe.offsetWidth;qe(ve)},disabled:xe},re)),re}var f=s.forwardRef(y);f.displayName="Item";var E=f,R=e(66680),T=e(73935),C=e(75164);function M(F){if(typeof MessageChannel=="undefined")(0,C.Z)(F);else{var N=new MessageChannel;N.port1.onmessage=function(){return F()},N.port2.postMessage(void 0)}}function P(){var F=s.useRef(null),N=function(ce){F.current||(F.current=[],M(function(){(0,T.unstable_batchedUpdates)(function(){F.current.forEach(function(le){le()}),F.current=null})})),F.current.push(ce)};return N}function A(F,N){var ee=s.useState(N),ce=(0,o.Z)(ee,2),le=ce[0],se=ce[1],fe=(0,R.Z)(function(xe){F(function(){se(xe)})});return[le,fe]}var O=s.createContext(null),$=["component"],Z=["className"],Q=["className"],U=function(N,ee){var ce=s.useContext(O);if(!ce){var le=N.component,se=le===void 0?"div":le,fe=(0,a.Z)(N,$);return s.createElement(se,(0,t.Z)({},fe,{ref:ee}))}var xe=ce.className,Ie=(0,a.Z)(ce,Z),Pe=N.className,$e=(0,a.Z)(N,Q);return s.createElement(O.Provider,{value:null},s.createElement(E,(0,t.Z)({ref:ee,className:c()(xe,Pe)},Ie,$e)))},Y=s.forwardRef(U);Y.displayName="RawItem";var H=Y,G=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],J="responsive",X="invalidate";function V(F){return"+ ".concat(F.length," ...")}function q(F,N){var ee=F.prefixCls,ce=ee===void 0?"rc-overflow":ee,le=F.data,se=le===void 0?[]:le,fe=F.renderItem,xe=F.renderRawItem,Ie=F.itemKey,Pe=F.itemWidth,$e=Pe===void 0?10:Pe,at=F.ssr,ut=F.style,Ue=F.className,Ye=F.maxCount,Xe=F.renderRest,Fe=F.renderRawRest,Je=F.suffix,Le=F.component,qe=Le===void 0?"div":Le,ze=F.itemComponent,ie=F.onVisibleChange,W=(0,a.Z)(F,G),re=at==="full",x=P(),oe=A(x,null),ve=(0,o.Z)(oe,2),he=ve[0],w=ve[1],S=he||0,j=A(x,new Map),B=(0,o.Z)(j,2),_=B[0],D=B[1],te=A(x,0),be=(0,o.Z)(te,2),ge=be[0],ye=be[1],Ne=A(x,0),ke=(0,o.Z)(Ne,2),We=ke[0],je=ke[1],Ve=A(x,0),mt=(0,o.Z)(Ve,2),Pt=mt[0],bt=mt[1],_t=(0,s.useState)(null),Dt=(0,o.Z)(_t,2),Rt=Dt[0],Ht=Dt[1],$t=(0,s.useState)(null),vn=(0,o.Z)($t,2),mn=vn[0],zn=vn[1],Xt=s.useMemo(function(){return mn===null&&re?Number.MAX_SAFE_INTEGER:mn||0},[mn,he]),Vn=(0,s.useState)(!1),Un=(0,o.Z)(Vn,2),_n=Un[0],Ln=Un[1],kn="".concat(ce,"-item"),Rn=Math.max(ge,We),Mn=Ye===J,$n=se.length&&Mn,In=Ye===X,lr=$n||typeof Ye=="number"&&se.length>Ye,yr=(0,s.useMemo)(function(){var Yn=se;return $n?he===null&&re?Yn=se:Yn=se.slice(0,Math.min(se.length,S/$e)):typeof Ye=="number"&&(Yn=se.slice(0,Ye)),Yn},[se,$e,he,Ye,$n]),rr=(0,s.useMemo)(function(){return $n?se.slice(Xt+1):se.slice(yr.length)},[se,yr,$n,Xt]),Lr=(0,s.useCallback)(function(Yn,Wn){var ot;return typeof Ie=="function"?Ie(Yn):(ot=Ie&&(Yn==null?void 0:Yn[Ie]))!==null&&ot!==void 0?ot:Wn},[Ie]),$r=(0,s.useCallback)(fe||function(Yn){return Yn},[fe]);function br(Yn,Wn,ot){mn===Yn&&(Wn===void 0||Wn===Rt)||(zn(Yn),ot||(Ln(YnS){br(Tt-1,Yn-Mt-Pt+We);break}}Je&&_r(0)+Pt>S&&Ht(null)}},[S,_,We,Pt,Lr,yr]);var xr=_n&&!!rr.length,nr={};Rt!==null&&$n&&(nr={position:"absolute",left:Rt,top:0});var Hr={prefixCls:kn,responsive:$n,component:ze,invalidate:In},ar=xe?function(Yn,Wn){var ot=Lr(Yn,Wn);return s.createElement(O.Provider,{key:ot,value:(0,r.Z)((0,r.Z)({},Hr),{},{order:Wn,item:Yn,itemKey:ot,registerSize:Qn,display:Wn<=Xt})},xe(Yn,Wn))}:function(Yn,Wn){var ot=Lr(Yn,Wn);return s.createElement(E,(0,t.Z)({},Hr,{order:Wn,key:ot,item:Yn,renderItem:$r,itemKey:ot,registerSize:Qn,display:Wn<=Xt}))},na,wr={order:xr?Xt:Number.MAX_SAFE_INTEGER,className:"".concat(kn,"-rest"),registerSize:ir,display:xr};if(Fe)Fe&&(na=s.createElement(O.Provider,{value:(0,r.Z)((0,r.Z)({},Hr),wr)},Fe(rr)));else{var Gr=Xe||V;na=s.createElement(E,(0,t.Z)({},Hr,wr),typeof Gr=="function"?Gr(rr):Gr)}var Rr=s.createElement(qe,(0,t.Z)({className:c()(!In&&ce,Ue),style:ut,ref:N},W),yr.map(ar),lr?na:null,Je&&s.createElement(E,(0,t.Z)({},Hr,{responsive:Mn,responsiveDisabled:!$n,order:Xt,className:"".concat(kn,"-suffix"),registerSize:Pr,display:!0,style:nr}),Je));return Mn&&(Rr=s.createElement(l.Z,{onResize:Or,disabled:!$n},Rr)),Rr}var z=s.forwardRef(q);z.displayName="Overflow",z.Item=H,z.RESPONSIVE=J,z.INVALIDATE=X;var k=z,L=k},62906:function(v,p){"use strict";var e={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};p.Z=e},81626:function(v,p){"use strict";var e={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"};p.Z=e},74219:function(v,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var e={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"},t=p.default=e},85369:function(v,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var e={locale:"zh_CN",yearFormat:"YYYY\u5E74",cellDateFormat:"D",cellMeridiemFormat:"A",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},t=p.default=e},9220:function(v,p,e){"use strict";e.d(p,{Z:function(){return re}});var t=e(87462),r=e(67294),o=e(50344),a=e(80334),s=e(1413),u=e(71002),c=e(34203),l=e(42550),d=r.createContext(null);function m(x){var oe=x.children,ve=x.onBatchResize,he=r.useRef(0),w=r.useRef([]),S=r.useContext(d),j=r.useCallback(function(B,_,D){he.current+=1;var te=he.current;w.current.push({size:B,element:_,data:D}),Promise.resolve().then(function(){te===he.current&&(ve==null||ve(w.current),w.current=[])}),S==null||S(B,_,D)},[ve,S]);return r.createElement(d.Provider,{value:j},oe)}var b=function(){if(typeof Map!="undefined")return Map;function x(oe,ve){var he=-1;return oe.some(function(w,S){return w[0]===ve?(he=S,!0):!1}),he}return function(){function oe(){this.__entries__=[]}return Object.defineProperty(oe.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),oe.prototype.get=function(ve){var he=x(this.__entries__,ve),w=this.__entries__[he];return w&&w[1]},oe.prototype.set=function(ve,he){var w=x(this.__entries__,ve);~w?this.__entries__[w][1]=he:this.__entries__.push([ve,he])},oe.prototype.delete=function(ve){var he=this.__entries__,w=x(he,ve);~w&&he.splice(w,1)},oe.prototype.has=function(ve){return!!~x(this.__entries__,ve)},oe.prototype.clear=function(){this.__entries__.splice(0)},oe.prototype.forEach=function(ve,he){he===void 0&&(he=null);for(var w=0,S=this.__entries__;w0},x.prototype.connect_=function(){!y||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),P?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},x.prototype.disconnect_=function(){!y||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},x.prototype.onTransitionEnd_=function(oe){var ve=oe.propertyName,he=ve===void 0?"":ve,w=M.some(function(S){return!!~he.indexOf(S)});w&&this.refresh()},x.getInstance=function(){return this.instance_||(this.instance_=new x),this.instance_},x.instance_=null,x}(),O=function(x,oe){for(var ve=0,he=Object.keys(oe);ve0},x}(),N=typeof WeakMap!="undefined"?new WeakMap:new b,ee=function(){function x(oe){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var ve=A.getInstance(),he=new F(oe,ve,this);N.set(this,he)}return x}();["observe","unobserve","disconnect"].forEach(function(x){ee.prototype[x]=function(){var oe;return(oe=N.get(this))[x].apply(oe,arguments)}});var ce=function(){return typeof f.ResizeObserver!="undefined"?f.ResizeObserver:ee}(),le=ce,se=new Map;function fe(x){x.forEach(function(oe){var ve,he=oe.target;(ve=se.get(he))===null||ve===void 0||ve.forEach(function(w){return w(he)})})}var xe=new le(fe),Ie=null,Pe=null;function $e(x,oe){se.has(x)||(se.set(x,new Set),xe.observe(x)),se.get(x).add(oe)}function at(x,oe){se.has(x)&&(se.get(x).delete(oe),se.get(x).size||(xe.unobserve(x),se.delete(x)))}var ut=e(15671),Ue=e(43144),Ye=e(60136),Xe=e(29388),Fe=function(x){(0,Ye.Z)(ve,x);var oe=(0,Xe.Z)(ve);function ve(){return(0,ut.Z)(this,ve),oe.apply(this,arguments)}return(0,Ue.Z)(ve,[{key:"render",value:function(){return this.props.children}}]),ve}(r.Component);function Je(x,oe){var ve=x.children,he=x.disabled,w=r.useRef(null),S=r.useRef(null),j=r.useContext(d),B=typeof ve=="function",_=B?ve(w):ve,D=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),te=!B&&r.isValidElement(_)&&(0,l.Yr)(_),be=te?_.ref:null,ge=(0,l.x1)(be,w),ye=function(){var je;return(0,c.ZP)(w.current)||(w.current&&(0,u.Z)(w.current)==="object"?(0,c.ZP)((je=w.current)===null||je===void 0?void 0:je.nativeElement):null)||(0,c.ZP)(S.current)};r.useImperativeHandle(oe,function(){return ye()});var Ne=r.useRef(x);Ne.current=x;var ke=r.useCallback(function(We){var je=Ne.current,Ve=je.onResize,mt=je.data,Pt=We.getBoundingClientRect(),bt=Pt.width,_t=Pt.height,Dt=We.offsetWidth,Rt=We.offsetHeight,Ht=Math.floor(bt),$t=Math.floor(_t);if(D.current.width!==Ht||D.current.height!==$t||D.current.offsetWidth!==Dt||D.current.offsetHeight!==Rt){var vn={width:Ht,height:$t,offsetWidth:Dt,offsetHeight:Rt};D.current=vn;var mn=Dt===Math.round(bt)?bt:Dt,zn=Rt===Math.round(_t)?_t:Rt,Xt=(0,s.Z)((0,s.Z)({},vn),{},{offsetWidth:mn,offsetHeight:zn});j==null||j(Xt,We,mt),Ve&&Promise.resolve().then(function(){Ve(Xt,We)})}},[]);return r.useEffect(function(){var We=ye();return We&&!he&&$e(We,ke),function(){return at(We,ke)}},[w.current,he]),r.createElement(Fe,{ref:S},te?r.cloneElement(_,{ref:ge}):_)}var Le=r.forwardRef(Je),qe=Le,ze="rc-observer-key";function ie(x,oe){var ve=x.children,he=typeof ve=="function"?[ve]:(0,o.Z)(ve);return he.map(function(w,S){var j=(w==null?void 0:w.key)||"".concat(ze,"-").concat(S);return r.createElement(qe,(0,t.Z)({},x,{key:j,ref:S===0?oe:void 0}),w)})}var W=r.forwardRef(ie);W.Collection=m;var re=W},92419:function(v,p,e){"use strict";e.d(p,{G:function(){return a},Z:function(){return C}});var t=e(93967),r=e.n(t),o=e(67294);function a(M){var P=M.children,A=M.prefixCls,O=M.id,$=M.overlayInnerStyle,Z=M.className,Q=M.style;return o.createElement("div",{className:r()("".concat(A,"-content"),Z),style:Q},o.createElement("div",{className:"".concat(A,"-inner"),id:O,role:"tooltip",style:$},typeof P=="function"?P():P))}var s=e(87462),u=e(1413),c=e(91),l=e(40228),d={shiftX:64,adjustY:1},m={adjustX:1,shiftY:!0},b=[0,0],y={left:{points:["cr","cl"],overflow:m,offset:[-4,0],targetOffset:b},right:{points:["cl","cr"],overflow:m,offset:[4,0],targetOffset:b},top:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:b},bottom:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:b},topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:b},leftTop:{points:["tr","tl"],overflow:m,offset:[-4,0],targetOffset:b},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:b},rightTop:{points:["tl","tr"],overflow:m,offset:[4,0],targetOffset:b},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:b},rightBottom:{points:["bl","br"],overflow:m,offset:[4,0],targetOffset:b},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:b},leftBottom:{points:["br","bl"],overflow:m,offset:[-4,0],targetOffset:b}},f=null,E=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],R=function(P,A){var O=P.overlayClassName,$=P.trigger,Z=$===void 0?["hover"]:$,Q=P.mouseEnterDelay,U=Q===void 0?0:Q,Y=P.mouseLeaveDelay,H=Y===void 0?.1:Y,G=P.overlayStyle,J=P.prefixCls,X=J===void 0?"rc-tooltip":J,V=P.children,q=P.onVisibleChange,z=P.afterVisibleChange,k=P.transitionName,L=P.animation,F=P.motion,N=P.placement,ee=N===void 0?"right":N,ce=P.align,le=ce===void 0?{}:ce,se=P.destroyTooltipOnHide,fe=se===void 0?!1:se,xe=P.defaultVisible,Ie=P.getTooltipContainer,Pe=P.overlayInnerStyle,$e=P.arrowContent,at=P.overlay,ut=P.id,Ue=P.showArrow,Ye=Ue===void 0?!0:Ue,Xe=(0,c.Z)(P,E),Fe=(0,o.useRef)(null);(0,o.useImperativeHandle)(A,function(){return Fe.current});var Je=(0,u.Z)({},Xe);"visible"in P&&(Je.popupVisible=P.visible);var Le=function(){return o.createElement(a,{key:"content",prefixCls:X,id:ut,overlayInnerStyle:Pe},at)};return o.createElement(l.Z,(0,s.Z)({popupClassName:O,prefixCls:X,popup:Le,action:Z,builtinPlacements:y,popupPlacement:ee,ref:Fe,popupAlign:le,getPopupContainer:Ie,onPopupVisibleChange:q,afterPopupVisibleChange:z,popupTransitionName:k,popupAnimation:L,popupMotion:F,defaultPopupVisible:xe,autoDestroy:fe,mouseLeaveDelay:H,popupStyle:G,mouseEnterDelay:U,arrow:Ye},Je),V)},T=(0,o.forwardRef)(R),C=T},50344:function(v,p,e){"use strict";e.d(p,{Z:function(){return o}});var t=e(67294),r=e(11805);function o(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=[];return t.Children.forEach(a,function(c){c==null&&!s.keepEmpty||(Array.isArray(c)?u=u.concat(o(c)):(0,r.isFragment)(c)&&c.props?u=u.concat(o(c.props.children,s)):u.push(c))}),u}},98924:function(v,p,e){"use strict";e.d(p,{Z:function(){return t}});function t(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},94999:function(v,p,e){"use strict";e.d(p,{Z:function(){return t}});function t(r,o){if(!r)return!1;if(r.contains)return r.contains(o);for(var a=o;a;){if(a===r)return!0;a=a.parentNode}return!1}},44958:function(v,p,e){"use strict";e.d(p,{hq:function(){return C},jL:function(){return E}});var t=e(1413),r=e(98924),o=e(94999),a="data-rc-order",s="data-rc-priority",u="rc-util-key",c=new Map;function l(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=M.mark;return P?P.startsWith("data-")?P:"data-".concat(P):u}function d(M){if(M.attachTo)return M.attachTo;var P=document.querySelector("head");return P||document.body}function m(M){return M==="queue"?"prependQueue":M?"prepend":"append"}function b(M){return Array.from((c.get(M)||M).children).filter(function(P){return P.tagName==="STYLE"})}function y(M){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,r.Z)())return null;var A=P.csp,O=P.prepend,$=P.priority,Z=$===void 0?0:$,Q=m(O),U=Q==="prependQueue",Y=document.createElement("style");Y.setAttribute(a,Q),U&&Z&&Y.setAttribute(s,"".concat(Z)),A!=null&&A.nonce&&(Y.nonce=A==null?void 0:A.nonce),Y.innerHTML=M;var H=d(P),G=H.firstChild;if(O){if(U){var J=(P.styles||b(H)).filter(function(X){if(!["prepend","prependQueue"].includes(X.getAttribute(a)))return!1;var V=Number(X.getAttribute(s)||0);return Z>=V});if(J.length)return H.insertBefore(Y,J[J.length-1].nextSibling),Y}H.insertBefore(Y,G)}else H.appendChild(Y);return Y}function f(M){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=d(P);return(P.styles||b(A)).find(function(O){return O.getAttribute(l(P))===M})}function E(M){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=f(M,P);if(A){var O=d(P);O.removeChild(A)}}function R(M,P){var A=c.get(M);if(!A||!(0,o.Z)(document,A)){var O=y("",P),$=O.parentNode;c.set(M,$),M.removeChild(O)}}function T(){c.clear()}function C(M,P){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},O=d(A),$=b(O),Z=(0,t.Z)((0,t.Z)({},A),{},{styles:$});R(O,Z);var Q=f(P,Z);if(Q){var U,Y;if((U=Z.csp)!==null&&U!==void 0&&U.nonce&&Q.nonce!==((Y=Z.csp)===null||Y===void 0?void 0:Y.nonce)){var H;Q.nonce=(H=Z.csp)===null||H===void 0?void 0:H.nonce}return Q.innerHTML!==M&&(Q.innerHTML=M),Q}var G=y(M,Z);return G.setAttribute(l(Z),P),G}},34203:function(v,p,e){"use strict";e.d(p,{Sh:function(){return a},ZP:function(){return u},bn:function(){return s}});var t=e(71002),r=e(67294),o=e(73935);function a(c){return c instanceof HTMLElement||c instanceof SVGElement}function s(c){return c&&(0,t.Z)(c)==="object"&&a(c.nativeElement)?c.nativeElement:a(c)?c:null}function u(c){var l=s(c);if(l)return l;if(c instanceof r.Component){var d;return(d=o.findDOMNode)===null||d===void 0?void 0:d.call(o,c)}return null}},5110:function(v,p){"use strict";p.Z=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,o=t.height;if(r||o)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),s=a.width,u=a.height;if(s||u)return!0}}return!1}},27571:function(v,p,e){"use strict";e.d(p,{A:function(){return o}});function t(a){var s;return a==null||(s=a.getRootNode)===null||s===void 0?void 0:s.call(a)}function r(a){return t(a)instanceof ShadowRoot}function o(a){return r(a)?t(a):null}},15105:function(v,p){"use strict";var e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(r){var o=r.keyCode;if(r.altKey&&!r.ctrlKey||r.metaKey||o>=e.F1&&o<=e.F12)return!1;switch(o){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(r){if(r>=e.ZERO&&r<=e.NINE||r>=e.NUM_ZERO&&r<=e.NUM_MULTIPLY||r>=e.A&&r<=e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&r===0)return!0;switch(r){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};p.Z=e},38135:function(v,p,e){"use strict";var t;e.d(p,{s:function(){return M},v:function(){return Z}});var r=e(74165),o=e(15861),a=e(71002),s=e(1413),u=e(73935),c=(0,s.Z)({},t||(t=e.t(u,2))),l=c.version,d=c.render,m=c.unmountComponentAtNode,b;try{var y=Number((l||"").split(".")[0]);y>=18&&(b=c.createRoot)}catch(U){}function f(U){var Y=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Y&&(0,a.Z)(Y)==="object"&&(Y.usingClientEntryPoint=U)}var E="__rc_react_root__";function R(U,Y){f(!0);var H=Y[E]||b(Y);f(!1),H.render(U),Y[E]=H}function T(U,Y){d(U,Y)}function C(U,Y){}function M(U,Y){if(b){R(U,Y);return}T(U,Y)}function P(U){return A.apply(this,arguments)}function A(){return A=(0,o.Z)((0,r.Z)().mark(function U(Y){return(0,r.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Promise.resolve().then(function(){var J;(J=Y[E])===null||J===void 0||J.unmount(),delete Y[E]}));case 1:case"end":return G.stop()}},U)})),A.apply(this,arguments)}function O(U){m(U)}function $(U){}function Z(U){return Q.apply(this,arguments)}function Q(){return Q=(0,o.Z)((0,r.Z)().mark(function U(Y){return(0,r.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(b===void 0){G.next=2;break}return G.abrupt("return",P(Y));case 2:O(Y);case 3:case"end":return G.stop()}},U)})),Q.apply(this,arguments)}},74204:function(v,p,e){"use strict";e.d(p,{Z:function(){return a},o:function(){return s}});var t=e(44958),r;function o(u){var c="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),l=document.createElement("div");l.id=c;var d=l.style;d.position="absolute",d.left="0",d.top="0",d.width="100px",d.height="100px",d.overflow="scroll";var m,b;if(u){var y=getComputedStyle(u);d.scrollbarColor=y.scrollbarColor,d.scrollbarWidth=y.scrollbarWidth;var f=getComputedStyle(u,"::-webkit-scrollbar"),E=parseInt(f.width,10),R=parseInt(f.height,10);try{var T=E?"width: ".concat(f.width,";"):"",C=R?"height: ".concat(f.height,";"):"";(0,t.hq)(` -#`.concat(c,`::-webkit-scrollbar { -`).concat(T,` -`).concat(C,` -}`),c)}catch(A){console.error(A),m=E,b=R}}document.body.appendChild(l);var M=u&&m&&!isNaN(m)?m:l.offsetWidth-l.clientWidth,P=u&&b&&!isNaN(b)?b:l.offsetHeight-l.clientHeight;return document.body.removeChild(l),(0,t.jL)(c),{width:M,height:P}}function a(u){return typeof document=="undefined"?0:((u||r===void 0)&&(r=o()),r.width)}function s(u){return typeof document=="undefined"||!u||!(u instanceof Element)?{width:0,height:0}:o(u)}},66680:function(v,p,e){"use strict";e.d(p,{Z:function(){return r}});var t=e(67294);function r(o){var a=t.useRef();a.current=o;var s=t.useCallback(function(){for(var u,c=arguments.length,l=new Array(c),d=0;d2&&arguments[2]!==void 0?arguments[2]:!1,c=new Set;function l(d,m){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,y=c.has(d);if((0,r.ZP)(!y,"Warning: There may be circular references"),y)return!1;if(d===m)return!0;if(u&&b>1)return!1;c.add(d);var f=b+1;if(Array.isArray(d)){if(!Array.isArray(m)||d.length!==m.length)return!1;for(var E=0;E